[ERROR] Usa cualquier caller ID :s

Discussion in 'Elastix 2.x' started by carnoldo, Nov 4, 2010.

  1. carnoldo

    Joined:
    Sep 18, 2010
    Messages:
    40
    Likes Received:
    0
    Buenas, tengo un inconveniente. Cuando hago una llamada entre 2 extensiones de diferente servidor me toma cualquier caller id :s

    Mas o menos tengo lo siguiente:
    Servidor A:
    IP: 10.8.0.1.
    Dos extensiones IAX2.
    - 3998 extensión de enlace con servidor B.
    - 3992 extensión destinada a la recepción de fax.
    Extensiones SIP (conectados por softphone).
    Teléfono conectado por FXS con captor.

    Servidor B:
    IP: 10.8.0.6.
    Dos extensiones IAX2.
    - 2998 extensión de enlace con servidor A.
    - 2992 extensión destinada a la recepción de fax.
    Extensiones SIP (conectados por softphone).
    Teléfono conectado por FXS con captor.


    El servidor A y B están conectados por una VPN.
    El problema es el siguiente, cuando yo llamo a una extensión del servidor B desde una ext. del servidor A, a las extensiones del servidor B les aparece como si estuviese llamando la extensión 2992 (LA EXTENSIÓN DEL FAX DE SU PROPIO SERVIDOR)!!!!, y viceversa tiene el mismo comportamiento!..... no entiendo porque!!!! :S

    Les dejo adjunto los logs de ambos servidores.

    Log servidor A:
    Code:
     == Using SIP RTP TOS bits 184
      == Using SIP RTP CoS mark 5
        -- Executing [2000@from-internal:1] Macro("SIP/3001-00000035", "user-callerid,SKIPTTL,") in new stack
        -- Executing [s@macro-user-callerid:1] Set("SIP/3001-00000035", "AMPUSER=3001") in new stack
        -- Executing [s@macro-user-callerid:2] GotoIf("SIP/3001-00000035", "0?report") in new stack
        -- Executing [s@macro-user-callerid:3] ExecIf("SIP/3001-00000035", "1?Set(REALCALLERIDNUM=3001)") in new stack
        -- Executing [s@macro-user-callerid:4] Set("SIP/3001-00000035", "AMPUSER=3001") in new stack
        -- Executing [s@macro-user-callerid:5] Set("SIP/3001-00000035", "AMPUSERCIDNAME=Isella") in new stack
        -- Executing [s@macro-user-callerid:6] GotoIf("SIP/3001-00000035", "0?report") in new stack
        -- Executing [s@macro-user-callerid:7] Set("SIP/3001-00000035", "AMPUSERCID=3001") in new stack
        -- Executing [s@macro-user-callerid:8] Set("SIP/3001-00000035", "CALLERID(all)="Isella" <3001>") in new stack
        -- Executing [s@macro-user-callerid:9] ExecIf("SIP/3001-00000035", "1?Set(CHANNEL(language)=es)") in new stack
        -- Executing [s@macro-user-callerid:10] GotoIf("SIP/3001-00000035", "1?continue") in new stack
        -- Goto (macro-user-callerid,s,19)
        -- Executing [s@macro-user-callerid:19] NoOp("SIP/3001-00000035", "Using CallerID "Isella" <3001>") in new stack
        -- Executing [2000@from-internal:2] Set("SIP/3001-00000035", "_NODEST=") in new stack
        -- Executing [2000@from-internal:3] Macro("SIP/3001-00000035", "record-enable,3001,OUT,") in new stack
        -- Executing [s@macro-record-enable:1] GotoIf("SIP/3001-00000035", "1?check") in new stack
        -- Goto (macro-record-enable,s,4)
        -- Executing [s@macro-record-enable:4] ExecIf("SIP/3001-00000035", "0?MacroExit()") in new stack
        -- Executing [s@macro-record-enable:5] GotoIf("SIP/3001-00000035", "0?Group:OUT") in new stack
        -- Goto (macro-record-enable,s,15)
        -- Executing [s@macro-record-enable:15] GotoIf("SIP/3001-00000035", "0?IN") in new stack
        -- Executing [s@macro-record-enable:16] ExecIf("SIP/3001-00000035", "1?MacroExit()") in new stack
        -- Executing [2000@from-internal:4] Macro("SIP/3001-00000035", "dialout-trunk,2,2000,,") in new stack
        -- Executing [s@macro-dialout-trunk:1] Set("SIP/3001-00000035", "DIAL_TRUNK=2") in new stack
        -- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/3001-00000035", "0?sub-pincheck,s,1") in new stack
        -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/3001-00000035", "0?disabletrunk,1") in new stack
        -- Executing [s@macro-dialout-trunk:4] Set("SIP/3001-00000035", "DIAL_NUMBER=2000") in new stack
        -- Executing [s@macro-dialout-trunk:5] Set("SIP/3001-00000035", "DIAL_TRUNK_OPTIONS=tr") in new stack
        -- Executing [s@macro-dialout-trunk:6] Set("SIP/3001-00000035", "OUTBOUND_GROUP=OUT_2") in new stack
        -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/3001-00000035", "1?nomax") in new stack
        -- Goto (macro-dialout-trunk,s,9)
        -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/3001-00000035", "0?skipoutcid") in new stack
        -- Executing [s@macro-dialout-trunk:10] Set("SIP/3001-00000035", "DIAL_TRUNK_OPTIONS=") in new stack
        -- Executing [s@macro-dialout-trunk:11] Macro("SIP/3001-00000035", "outbound-callerid,2") in new stack
        -- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/3001-00000035", "0?Set(CALLERPRES()=)") in new stack
        -- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/3001-00000035", "0?Set(REALCALLERIDNUM=3001)") in new stack
        -- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/3001-00000035", "1?normcid") in new stack
        -- Goto (macro-outbound-callerid,s,6)
        -- Executing [s@macro-outbound-callerid:6] Set("SIP/3001-00000035", "USEROUTCID=") in new stack
        -- Executing [s@macro-outbound-callerid:7] Set("SIP/3001-00000035", "EMERGENCYCID=") in new stack
        -- Executing [s@macro-outbound-callerid:8] Set("SIP/3001-00000035", "TRUNKOUTCID=") in new stack
        -- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/3001-00000035", "1?trunkcid") in new stack
        -- Goto (macro-outbound-callerid,s,12)
        -- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/3001-00000035", "0?Set(CALLERID(all)=)") in new stack
        -- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/3001-00000035", "0?Set(CALLERID(all)=)") in new stack
        -- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/3001-00000035", "0?Set(CALLERID(all)=)") in new stack
        -- Executing [s@macro-outbound-callerid:15] ExecIf("SIP/3001-00000035", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
        -- Executing [s@macro-dialout-trunk:12] ExecIf("SIP/3001-00000035", "0?AGI(fixlocalprefix)") in new stack
        -- Executing [s@macro-dialout-trunk:13] Set("SIP/3001-00000035", "OUTNUM=2000") in new stack
        -- Executing [s@macro-dialout-trunk:14] Set("SIP/3001-00000035", "custom=IAX2/2998") in new stack
        -- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/3001-00000035", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^))") in new stack
        -- Executing [s@macro-dialout-trunk:16] Macro("SIP/3001-00000035", "dialout-trunk-predial-hook,") in new stack
        -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/3001-00000035", "") in new stack
        -- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/3001-00000035", "0?bypass,1") in new stack
        -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/3001-00000035", "0?customtrunk") in new stack
        -- Executing [s@macro-dialout-trunk:19] Dial("SIP/3001-00000035", "IAX2/2998/2000,300,") in new stack
        -- Called 2998/2000
        -- Call accepted by 10.8.0.6 (format ulaw)
        -- Format for call is ulaw
        -- IAX2/2998-11893 is ringing
        -- IAX2/2998-11893 is ringing
        -- Hungup 'IAX2/2998-11893'
      == Spawn extension (macro-dialout-trunk, s, 19) exited non-zero on 'SIP/3001-00000035' in macro 'dialout-trunk'
      == Spawn extension (from-internal, 2000, 4) exited non-zero on 'SIP/3001-00000035'
        -- Executing [h@from-internal:1] Macro("SIP/3001-00000035", "hangupcall") in new stack
        -- Executing [s@macro-hangupcall:1] GotoIf("SIP/3001-00000035", "1?noautomon") in new stack
        -- Goto (macro-hangupcall,s,3)
        -- Executing [s@macro-hangupcall:3] NoOp("SIP/3001-00000035", "TOUCH_MONITOR_OUTPUT=") in new stack
        -- Executing [s@macro-hangupcall:4] GotoIf("SIP/3001-00000035", "1?skiprg") in new stack
        -- Goto (macro-hangupcall,s,7)
        -- Executing [s@macro-hangupcall:7] GotoIf("SIP/3001-00000035", "1?skipblkvm") in new stack
        -- Goto (macro-hangupcall,s,10)
        -- Executing [s@macro-hangupcall:10] GotoIf("SIP/3001-00000035", "1?theend") in new stack
        -- Goto (macro-hangupcall,s,12)
        -- Executing [s@macro-hangupcall:12] Hangup("SIP/3001-00000035", "") in new stack
      == Spawn extension (macro-hangupcall, s, 12) exited non-zero on 'SIP/3001-00000035' in macro 'hangupcall'
      == Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/3001-00000035'
    
    Log servidor B:
    Code:
     -- Accepting AUTHENTICATED call from 10.8.0.1:
           > requested format = ulaw,
           > requested prefs = (ulaw|alaw|gsm),
           > actual format = ulaw,
           > host prefs = (ulaw),
           > priority = mine
        -- Executing [2000@from-internal:1] Macro("IAX2/2992-4696", "exten-vm,2000,2000") in new stack
        -- Executing [s@macro-exten-vm:1] Macro("IAX2/2992-4696", "user-callerid,") in new stack
        -- Executing [s@macro-user-callerid:1] Set("IAX2/2992-4696", "AMPUSER=2992") in new stack
        -- Executing [s@macro-user-callerid:2] GotoIf("IAX2/2992-4696", "0?report") in new stack
        -- Executing [s@macro-user-callerid:3] ExecIf("IAX2/2992-4696", "0?Set(REALCALLERIDNUM=2992)") in new stack
        -- Executing [s@macro-user-callerid:4] Set("IAX2/2992-4696", "AMPUSER=2992") in new stack
        -- Executing [s@macro-user-callerid:5] Set("IAX2/2992-4696", "AMPUSERCIDNAME=Fax") in new stack
        -- Executing [s@macro-user-callerid:6] GotoIf("IAX2/2992-4696", "0?report") in new stack
        -- Executing [s@macro-user-callerid:7] Set("IAX2/2992-4696", "AMPUSERCID=2992") in new stack
        -- Executing [s@macro-user-callerid:8] Set("IAX2/2992-4696", "CALLERID(all)="Fax" <2992>") in new stack
        -- Executing [s@macro-user-callerid:9] ExecIf("IAX2/2992-4696", "1?Set(CHANNEL(language)=es)") in new stack
        -- Executing [s@macro-user-callerid:10] GotoIf("IAX2/2992-4696", "0?continue") in new stack
        -- Executing [s@macro-user-callerid:11] Set("IAX2/2992-4696", "__TTL=64") in new stack
        -- Executing [s@macro-user-callerid:12] GotoIf("IAX2/2992-4696", "1?continue") in new stack
        -- Goto (macro-user-callerid,s,19)
        -- Executing [s@macro-user-callerid:19] NoOp("IAX2/2992-4696", "Using CallerID "Fax" <2992>") in new stack
        -- Executing [s@macro-exten-vm:2] Set("IAX2/2992-4696", "RingGroupMethod=none") in new stack
        -- Executing [s@macro-exten-vm:3] Set("IAX2/2992-4696", "VMBOX=2000") in new stack
        -- Executing [s@macro-exten-vm:4] Set("IAX2/2992-4696", "EXTTOCALL=2000") in new stack
        -- Executing [s@macro-exten-vm:5] Set("IAX2/2992-4696", "CFUEXT=") in new stack
        -- Executing [s@macro-exten-vm:6] Set("IAX2/2992-4696", "CFBEXT=") in new stack
        -- Executing [s@macro-exten-vm:7] Set("IAX2/2992-4696", "RT=30") in new stack
        -- Executing [s@macro-exten-vm:8] Macro("IAX2/2992-4696", "record-enable,2000,IN") in new stack
        -- Executing [s@macro-record-enable:1] GotoIf("IAX2/2992-4696", "1?check") in new stack
        -- Goto (macro-record-enable,s,4)
        -- Executing [s@macro-record-enable:4] ExecIf("IAX2/2992-4696", "0?MacroExit()") in new stack
        -- Executing [s@macro-record-enable:5] GotoIf("IAX2/2992-4696", "0?Group:OUT") in new stack
        -- Goto (macro-record-enable,s,15)
        -- Executing [s@macro-record-enable:15] GotoIf("IAX2/2992-4696", "1?IN") in new stack
        -- Goto (macro-record-enable,s,20)
        -- Executing [s@macro-record-enable:20] ExecIf("IAX2/2992-4696", "1?MacroExit()") in new stack
        -- Executing [s@macro-exten-vm:9] Macro("IAX2/2992-4696", "dial,30,tr,2000") in new stack
        -- Executing [s@macro-dial:1] GotoIf("IAX2/2992-4696", "1?dial") in new stack
        -- Goto (macro-dial,s,3)
        -- Executing [s@macro-dial:3] AGI("IAX2/2992-4696", "dialparties.agi") in new stack
        -- Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
     dialparties.agi: Starting New Dialparties.agi
     dialparties.agi: Caller ID name is 'Fax' number is '2992'
     dialparties.agi: Methodology of ring is  'none'
        -- dialparties.agi: Added extension 2000 to extension map
        -- dialparties.agi: Extension 2000 cf is disabled
        -- dialparties.agi: Extension 2000 do not disturb is disabled
     dialparties.agi: EXTENSION_STATE: 0 (NOT_INUSE)
     dialparties.agi: Extension 2000 has ExtensionState: 0
        -- dialparties.agi: Checking CW and CFB status for extension 2000
        -- dialparties.agi: dbset CALLTRACE/2000 to 2992
        -- dialparties.agi: Filtered ARG3: 2000
        -- <IAX2/2992-4696>AGI Script dialparties.agi completed, returning 0
        -- Executing [s@macro-dial:7] Dial("IAX2/2992-4696", "DAHDI/2,30,tr") in new stack
        -- Called 2
        -- DAHDI/2-1 is ringing
        -- Hungup 'DAHDI/2-1'
      == Spawn extension (macro-dial, s, 7) exited non-zero on 'IAX2/2992-4696' in macro 'dial'
      == Spawn extension (macro-exten-vm, s, 9) exited non-zero on 'IAX2/2992-4696' in macro 'exten-vm'
      == Spawn extension (from-internal, 2000, 1) exited non-zero on 'IAX2/2992-4696'
        -- Executing [h@from-internal:1] Macro("IAX2/2992-4696", "hangupcall") in new stack
        -- Executing [s@macro-hangupcall:1] GotoIf("IAX2/2992-4696", "1?noautomon") in new stack
        -- Goto (macro-hangupcall,s,3)
        -- Executing [s@macro-hangupcall:3] NoOp("IAX2/2992-4696", "TOUCH_MONITOR_OUTPUT=") in new stack
        -- Executing [s@macro-hangupcall:4] GotoIf("IAX2/2992-4696", "1?skiprg") in new stack
        -- Goto (macro-hangupcall,s,7)
        -- Executing [s@macro-hangupcall:7] GotoIf("IAX2/2992-4696", "1?skipblkvm") in new stack
        -- Goto (macro-hangupcall,s,10)
        -- Executing [s@macro-hangupcall:10] GotoIf("IAX2/2992-4696", "1?theend") in new stack
        -- Goto (macro-hangupcall,s,12)
        -- Executing [s@macro-hangupcall:12] Hangup("IAX2/2992-4696", "") in new stack
      == Spawn extension (macro-hangupcall, s, 12) exited non-zero on 'IAX2/2992-4696' in macro 'hangupcall'
      == Spawn extension (from-internal, h, 1) exited non-zero on 'IAX2/2992-4696'
        -- Hungup 'IAX2/2992-4696'
    
    Mi idea es que se conserve el Caller ID de la persona que llama. También si la llamada entra por la PSTN que también se conserve el caller ID cuando suena en una extensión del otro servidor.

    Si necesitan que postee alguna configuración avísenme que lo hago.
    ¿Como seteo que en las extensiones SIP e IAX2 de mis servidores se utilice el codec GSM o el 711?

    Slds.-
     
  2. jgutierrez

    Joined:
    Feb 28, 2008
    Messages:
    5,737
    Likes Received:
    0
    Intenta con las diferentes variantes del CID options en la definición de la troncal. Puede que ahí encuentres tu solución
     
  3. carnoldo

    Joined:
    Sep 18, 2010
    Messages:
    40
    Likes Received:
    0
    Lo voy a intentar.
    Hay alguna explicación lógica a mi problema? o cual puede ser el problema?.


    Slds.-
     
  4. jgutierrez

    Joined:
    Feb 28, 2008
    Messages:
    5,737
    Likes Received:
    0
    Claro, la epxlicación lógica a tu problema es que el otro elastix toma el número del caller ID y lo busca en su base de datos, para ver si tiene algún registro de nombre que le pertenezca a ese número, sobreescribiendo el nombre que se le envió. Una segunda alternativa sería modificar aquella búsqueda, cuando la llamada provenga del otro elastix, que no realice la búsqueda.
     
  5. carnoldo

    Joined:
    Sep 18, 2010
    Messages:
    40
    Likes Received:
    0
    Pero porque realiza esa búsqueda?, aparte realiza la búsqueda y no encuentra ningún ID y le mete el del FAX :s

    Veo que andas bien para esto y me estas dando una mano barbara, me estas haciendo razonar, eso está bueno.
    Como modifico eso que me marcas para que no realice la búsqueda?.

    Yo tengo algo así, en el servidor A tengo captor de caller id de las linea PSTN y del servidor B no tengo detector de caller ID en las PSTN(por ahora, en dos semanas se va a activar).
    Las llamadas que ingresan en el servidor A, suenan en todas las extensiones del servidor A y B, pero cuando suenan en el servidor B el caller id aparece el del fax y no el de la persona que está llamando al servidor A, yo quiero que aparezca el de la persona que llama (como aparece en el servidor A).
    Como puedo lograr eso?.

    Tengo configurado en enlace de comunicación entre los dos servidores con IAX2, tipo friend.

    Espero haberme expresado bien!.

    Slds.-

    P.D: Uso elastix en ambos servidores.
     
  6. carnoldo

    Joined:
    Sep 18, 2010
    Messages:
    40
    Likes Received:
    0
    Re: Re:[ERROR] Usa cualquier caller ID :s

    Lo solucione :)

    Era cuestión de darse maña!
    Costo pero se pudo. Hay que leer, leer, razonar, practicar y sale :)

    Slds.-
     

Share This Page