Buenas a todos, tras revisar el foro y varios mas hilos de otros foros por internet, tengo un problema, tengo instalada una PBX issabel 4 con asterisk 11.25.3 en la empresa que trabajo, he generado una configuración bastante básico, extensiones, IVR y grupos de timbrado, todavia no esta en producción, la tengo en purebas, lo más "extraño" que tiene es una configuración de chan_dongle con un modem USB, y eso funciona a la perfección, lo logre siguinedo la discusión de este foro.
Ahora al tema, el problema se me genera cuando intento realizar una llamada desde una extensión registrada desde internet a una interna, no hay nada de audio, entre internas no hay problemas. voy a poner el debug de una llamada realizada entre extensiones internas primero, a ver si veis algo raro:
[root@issabelPBX degestec]# asterisk -rvvvvvvvv
Asterisk 11.25.3, Copyright (C) 1999 - 2013 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
Connected to Asterisk 11.25.3 currently running on issabelPBX (pid = 2396)
-- Registered SIP '2102' at 62.15.125.90:32659
[2018-05-22 17:26:54] NOTICE[2498]: chan_sip.c:23892 handle_response_peerpoke: Peer '2102' is now Reachable. (120ms / 2000ms)
-- Unregistered SIP '2102'
-- Registered SIP '2102' at 62.15.125.90:32659
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
> 0x7f420007c530 -- Strict RTP learning after remote address set to: 172.16.0.6:6004
-- Executing [2102@from-internal:1] Set("SIP/2101-00000032", "RINGTIMER=15") in new stack
-- Executing [2102@from-internal:2] Macro("SIP/2101-00000032", "exten-vm,novm,2102,0,0,0") in new stack
-- Executing [s@macro-exten-vm:1] Macro("SIP/2101-00000032", "user-callerid,") in new stack
-- Executing [s@macro-user-callerid:1] Set("SIP/2101-00000032", "TOUCH_MONITOR=1527002864.50") in new stack
-- Executing [s@macro-user-callerid:2] Set("SIP/2101-00000032", "AMPUSER=2101") in new stack
-- Executing [s@macro-user-callerid:3] GotoIf("SIP/2101-00000032", "0?report") in new stack
-- Executing [s@macro-user-callerid:4] ExecIf("SIP/2101-00000032", "1?Set(REALCALLERIDNUM=2101)") in new stack
-- Executing [s@macro-user-callerid:5] Set("SIP/2101-00000032", "AMPUSER=2101") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("SIP/2101-00000032", "0?limit") in new stack
-- Executing [s@macro-user-callerid:7] Set("SIP/2101-00000032", "AMPUSERCIDNAME=Raul S") in new stack
-- Executing [s@macro-user-callerid:8] GotoIf("SIP/2101-00000032", "0?report") in new stack
-- Executing [s@macro-user-callerid:9] Set("SIP/2101-00000032", "AMPUSERCID=2101") in new stack
-- Executing [s@macro-user-callerid:10] Set("SIP/2101-00000032", "DIAL_OPTIONS=Ttr") in new stack
-- Executing [s@macro-user-callerid:11] Set("SIP/2101-00000032", "CALLERID(all)="Raul S" <2101>") in new stack
-- Executing [s@macro-user-callerid:12] GotoIf("SIP/2101-00000032", "0?limit") in new stack
-- Executing [s@macro-user-callerid:13] ExecIf("SIP/2101-00000032", "0?Set(GROUP(concurrency_limit)=2101)") in new stack
-- Executing [s@macro-user-callerid:14] ExecIf("SIP/2101-00000032", "1?Set(CHANNEL(language)=es)") in new stack
-- Executing [s@macro-user-callerid:15] GotoIf("SIP/2101-00000032", "0?continue") in new stack
-- Executing [s@macro-user-callerid:16] ExecIf("SIP/2101-00000032", "1?Set(CALLEE_ACCOUNCODE=)") in new stack
-- Executing [s@macro-user-callerid:17] Set("SIP/2101-00000032", "TTL=64") in new stack
-- Executing [s@macro-user-callerid:18] GotoIf("SIP/2101-00000032", "1?continue") in new stack
-- Goto (macro-user-callerid,s,29)
-- Executing [s@macro-user-callerid:29] Set("SIP/2101-00000032", "CALLERID(number)=2101") in new stack
-- Executing [s@macro-user-callerid:30] Set("SIP/2101-00000032", "CALLERID(name)=Raul S") in new stack
-- Executing [s@macro-user-callerid:31] Set("SIP/2101-00000032", "CDR(cnum)=2101") in new stack
-- Executing [s@macro-user-callerid:32] Set("SIP/2101-00000032", "CDR(cnam)=Raul S") in new stack
-- Executing [s@macro-user-callerid:33] Set("SIP/2101-00000032", "CHANNEL(language)=es") in new stack
-- Executing [s@macro-exten-vm:2] Set("SIP/2101-00000032", "RingGroupMethod=none") in new stack
-- Executing [s@macro-exten-vm:3] Set("SIP/2101-00000032", "EXTTOCALL=2102") in new stack
-- Executing [s@macro-exten-vm:4] Set("SIP/2101-00000032", "PICKUPMARK=2102") in new stack
-- Executing [s@macro-exten-vm:5] Set("SIP/2101-00000032", "RT=") in new stack
-- Executing [s@macro-exten-vm:6] ExecIf("SIP/2101-00000032", "0?Macro(vm,novm,DIRECTDIAL,)") in new stack
-- Executing [s@macro-exten-vm:7] ExecIf("SIP/2101-00000032", "0?MacroExit()") in new stack
-- Executing [s@macro-exten-vm:8] Gosub("SIP/2101-00000032", "sub-record-check,s,1(exten,2102,)") in new stack
-- Executing [s@sub-record-check:1] Set("SIP/2101-00000032", "REC_POLICY_MODE_SAVE=") in new stack
-- Executing [s@sub-record-check:2] GotoIf("SIP/2101-00000032", "1?check") in new stack
-- Goto (sub-record-check,s,7)
-- Executing [s@sub-record-check:7] Set("SIP/2101-00000032", "MON_FMT=WAV") in new stack
-- Executing [s@sub-record-check:8] GotoIf("SIP/2101-00000032", "1?next") in new stack
-- Goto (sub-record-check,s,11)
-- Executing [s@sub-record-check:11] ExecIf("SIP/2101-00000032", "0?Return()") in new stack
-- Executing [s@sub-record-check:12] ExecIf("SIP/2101-00000032", "0?Set(REC_POLICY_MODE=)") in new stack
-- Executing [s@sub-record-check:13] GotoIf("SIP/2101-00000032", "0?exten,1") in new stack
-- Executing [s@sub-record-check:14] Set("SIP/2101-00000032", "REC_STATUS=INITIALIZED") in new stack
-- Executing [s@sub-record-check:15] Set("SIP/2101-00000032", "NOW=1527002864") in new stack
-- Executing [s@sub-record-check:16] Set("SIP/2101-00000032", "DAY=22") in new stack
-- Executing [s@sub-record-check:17] Set("SIP/2101-00000032", "MONTH=05") in new stack
-- Executing [s@sub-record-check:18] Set("SIP/2101-00000032", "YEAR=2018") in new stack
-- Executing [s@sub-record-check:19] Set("SIP/2101-00000032", "TIMESTR=20180522-172744") in new stack
-- Executing [s@sub-record-check:20] Set("SIP/2101-00000032", "FROMEXTEN=2101") in new stack
-- Executing [s@sub-record-check:21] Set("SIP/2101-00000032", "CALLFILENAME=exten-2102-2101-20180522-172744-1527002864.50") in new stack
-- Executing [s@sub-record-check:22] Goto("SIP/2101-00000032", "exten,1") in new stack
-- Goto (sub-record-check,exten,1)
-- Executing [exten@sub-record-check:1] GotoIf("SIP/2101-00000032", "0?callee") in new stack
-- Executing [exten@sub-record-check:2] Set("SIP/2101-00000032", "REC_POLICY_MODE=dontcare") in new stack
-- Executing [exten@sub-record-check:3] GotoIf("SIP/2101-00000032", "1?caller") in new stack
-- Goto (sub-record-check,exten,10)
-- Executing [exten@sub-record-check:10] Set("SIP/2101-00000032", "REC_POLICY_MODE=always") in new stack
-- Executing [exten@sub-record-check:11] GosubIf("SIP/2101-00000032", "1?record,1(exten,2102,2101)") in new stack
-- Executing [record@sub-record-check:1] Set("SIP/2101-00000032", "AUDIOHOOK_INHERIT(MixMonitor)=yes") in new stack
-- Executing [record@sub-record-check:2] MixMonitor("SIP/2101-00000032", "2018/05/22/exten-2102-2101-20180522-172744-1527002864.50.WAV,,") in new stack
== Begin MixMonitor Recording SIP/2101-00000032
-- Executing [record@sub-record-check:3] Set("SIP/2101-00000032", "REC_STATUS=RECORDING") in new stack
-- Executing [record@sub-record-check:4] Set("SIP/2101-00000032", "CDR(recordingfile)=exten-2102-2101-20180522-172744-1527002864.50.WAV") in new stack
-- Executing [record@sub-record-check:5] Return("SIP/2101-00000032", "") in new stack
-- Executing [exten@sub-record-check:12] Return("SIP/2101-00000032", "") in new stack
-- Executing [s@macro-exten-vm:9] Macro("SIP/2101-00000032", "dial-one,,Ttr,2102") in new stack
-- Executing [s@macro-dial-one:1] Set("SIP/2101-00000032", "DEXTEN=2102") in new stack
-- Executing [s@macro-dial-one:2] Set("SIP/2101-00000032", "DIALSTATUS_CW=") in new stack
-- Executing [s@macro-dial-one:3] GosubIf("SIP/2101-00000032", "0?screen,1()") in new stack
-- Executing [s@macro-dial-one:4] GosubIf("SIP/2101-00000032", "0?cf,1()") in new stack
-- Executing [s@macro-dial-one:5] GotoIf("SIP/2101-00000032", "1?skip1") in new stack
-- Goto (macro-dial-one,s,8)
-- Executing [s@macro-dial-one:8] GotoIf("SIP/2101-00000032", "0?nodial") in new stack
-- Executing [s@macro-dial-one:9] GotoIf("SIP/2101-00000032", "0?continue") in new stack
-- Executing [s@macro-dial-one:10] Set("SIP/2101-00000032", "EXTHASCW=ENABLED") in new stack
-- Executing [s@macro-dial-one:11] GotoIf("SIP/2101-00000032", "0?next1:cwinusebusy") in new stack
-- Goto (macro-dial-one,s,23)
-- Executing [s@macro-dial-one:23] GotoIf("SIP/2101-00000032", "1?next3:continue") in new stack
-- Goto (macro-dial-one,s,24)
-- Executing [s@macro-dial-one:24] ExecIf("SIP/2101-00000032", "0?Set(DIALSTATUS_CW=BUSY)") in new stack
-- Executing [s@macro-dial-one:25] GotoIf("SIP/2101-00000032", "0?nodial") in new stack
-- Executing [s@macro-dial-one:26] GosubIf("SIP/2101-00000032", "1?dstring,1():dlocal,1()") in new stack
-- Executing [dstring@macro-dial-one:1] Set("SIP/2101-00000032", "DSTRING=") in new stack
-- Executing [dstring@macro-dial-one:2] Set("SIP/2101-00000032", "DEVICES=2102") in new stack
-- Executing [dstring@macro-dial-one:3] ExecIf("SIP/2101-00000032", "0?Return()") in new stack
-- Executing [dstring@macro-dial-one:4] ExecIf("SIP/2101-00000032", "0?Set(DEVICES=102)") in new stack
-- Executing [dstring@macro-dial-one:5] Set("SIP/2101-00000032", "LOOPCNT=1") in new stack
-- Executing [dstring@macro-dial-one:6] Set("SIP/2101-00000032", "ITER=1") in new stack
-- Executing [dstring@macro-dial-one:7] Set("SIP/2101-00000032", "THISDIAL=SIP/2102") in new stack
-- Executing [dstring@macro-dial-one:8] GosubIf("SIP/2101-00000032", "1?zap2dahdi,1()") in new stack
-- Executing [zap2dahdi@macro-dial-one:1] ExecIf("SIP/2101-00000032", "0?Return()") in new stack
-- Executing [zap2dahdi@macro-dial-one:2] Set("SIP/2101-00000032", "NEWDIAL=") in new stack
-- Executing [zap2dahdi@macro-dial-one:3] Set("SIP/2101-00000032", "LOOPCNT2=1") in new stack
-- Executing [zap2dahdi@macro-dial-one:4] Set("SIP/2101-00000032", "ITER2=1") in new stack
-- Executing [zap2dahdi@macro-dial-one:5] Set("SIP/2101-00000032", "THISPART2=SIP/2102") in new stack
-- Executing [zap2dahdi@macro-dial-one:6] ExecIf("SIP/2101-00000032", "0?Set(THISPART2=DAHDI/2102)") in new stack
-- Executing [zap2dahdi@macro-dial-one:7] Set("SIP/2101-00000032", "NEWDIAL=SIP/2102&") in new stack
-- Executing [zap2dahdi@macro-dial-one:8] Set("SIP/2101-00000032", "ITER2=2") in new stack
-- Executing [zap2dahdi@macro-dial-one:9] GotoIf("SIP/2101-00000032", "0?begin2") in new stack
-- Executing [zap2dahdi@macro-dial-one:10] Set("SIP/2101-00000032", "THISDIAL=SIP/2102") in new stack
-- Executing [zap2dahdi@macro-dial-one:11] Return("SIP/2101-00000032", "") in new stack
-- Executing [dstring@macro-dial-one:9] Set("SIP/2101-00000032", "DSTRING=SIP/2102&") in new stack
-- Executing [dstring@macro-dial-one:10] Set("SIP/2101-00000032", "ITER=2") in new stack
-- Executing [dstring@macro-dial-one:11] GotoIf("SIP/2101-00000032", "0?begin") in new stack
-- Executing [dstring@macro-dial-one:12] Set("SIP/2101-00000032", "DSTRING=SIP/2102") in new stack
-- Executing [dstring@macro-dial-one:13] Return("SIP/2101-00000032", "") in new stack
-- Executing [s@macro-dial-one:27] GotoIf("SIP/2101-00000032", "0?nodial") in new stack
-- Executing [s@macro-dial-one:28] GotoIf("SIP/2101-00000032", "0?skiptrace") in new stack
-- Executing [s@macro-dial-one:29] GosubIf("SIP/2101-00000032", "1?ctset,1():ctclear,1()") in new stack
-- Executing [ctset@macro-dial-one:1] Set("SIP/2101-00000032", "DB(CALLTRACE/2102)=2101") in new stack
-- Executing [ctset@macro-dial-one:2] Return("SIP/2101-00000032", "") in new stack
-- Executing [s@macro-dial-one:30] Set("SIP/2101-00000032", "D_OPTIONS=Ttr") in new stack
-- Executing [s@macro-dial-one:31] ExecIf("SIP/2101-00000032", "0?SIPAddHeader(Alert-Info: )") in new stack
-- Executing [s@macro-dial-one:32] ExecIf("SIP/2101-00000032", "0?SIPAddHeader()") in new stack
-- Executing [s@macro-dial-one:33] ExecIf("SIP/2101-00000032", "0?Set(CHANNEL(musicclass)=)") in new stack
-- Executing [s@macro-dial-one:34] GosubIf("SIP/2101-00000032", "0?qwait,1()") in new stack
-- Executing [s@macro-dial-one:35] Set("SIP/2101-00000032", "CWIGNORE=") in new stack
-- Executing [s@macro-dial-one:36] Set("SIP/2101-00000032", "KEEPCID=TRUE") in new stack
-- Executing [s@macro-dial-one:37] GotoIf("SIP/2101-00000032", "0?usegoto,1") in new stack
-- Executing [s@macro-dial-one:38] GotoIf("SIP/2101-00000032", "0?godial") in new stack
-- Executing [s@macro-dial-one:39] Gosub("SIP/2101-00000032", "sub-presencestate-display,s,1(2102)") in new stack
-- Executing [s@sub-presencestate-display:1] Goto("SIP/2101-00000032", "state-not_set,1") in new stack
-- Goto (sub-presencestate-display,state-not_set,1)
-- Executing [state-not_set@sub-presencestate-display:1] Set("SIP/2101-00000032", "PRESENCESTATE_DISPLAY=") in new stack
-- Executing [state-not_set@sub-presencestate-display:2] Return("SIP/2101-00000032", "") in new stack
-- Executing [s@macro-dial-one:40] Set("SIP/2101-00000032", "CONNECTEDLINE(name,i)=Jose Luis N") in new stack
-- Executing [s@macro-dial-one:41] Set("SIP/2101-00000032", "CONNECTEDLINE(num)=2102") in new stack
-- Executing [s@macro-dial-one:42] Set("SIP/2101-00000032", "D_OPTIONS=TtrI") in new stack
-- Executing [s@macro-dial-one:43] Dial("SIP/2101-00000032", "SIP/2102,,TtrI") in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Called SIP/2102
-- Connected line update to SIP/2101-00000032 prevented.
-- SIP/2102-00000033 is ringing
> 0x7f4240039650 -- Strict RTP learning after remote address set to: 192.168.30.128:9002
-- Connected line update to SIP/2101-00000032 prevented.
-- SIP/2102-00000033 answered SIP/2101-00000032
> 0x7f420007c530 -- Strict RTP switching to RTP remote address 172.16.0.6:6004 as source
> 0x7f420007c530 -- Strict RTP learning complete - Locking on source address 172.16.0.6:6004
-- Executing [h@macro-dial-one:1] Macro("SIP/2101-00000032", "hangupcall,") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("SIP/2101-00000032", "0?endmixmoncheck") in new stack
-- Executing [s@macro-hangupcall:2] Set("SIP/2101-00000032", "MIXMON_CALLFILENAME=/var/spool/asterisk/monitor/exten-2102-2101-20180522-172744-1527002864.50.WAV") in new stack
-- Executing [s@macro-hangupcall:3] System("SIP/2101-00000032", "test -e /var/spool/asterisk/monitor/exten-2102-2101-20180522-172744-1527002864.50.WAV") in new stack
-- Executing [s@macro-hangupcall:4] NoOp("SIP/2101-00000032", "SYSTEMSTATUS = APPERROR") in new stack
-- Executing [s@macro-hangupcall:5] GotoIf("SIP/2101-00000032", "0?finalcdr") in new stack
-- Executing [s@macro-hangupcall:6] Set("SIP/2101-00000032", "MIXMON_CALLFILENAME=/var/spool/asterisk/monitor/2018/05/22/exten-2102-2101-20180522-172744-1527002864.50.WAV") in new stack
-- Executing [s@macro-hangupcall:7] System("SIP/2101-00000032", "test -e /var/spool/asterisk/monitor/2018/05/22/exten-2102-2101-20180522-172744-1527002864.50.WAV") in new stack
-- Executing [s@macro-hangupcall:8] NoOp("SIP/2101-00000032", "SYSTEMSTATUS = SUCCESS") in new stack
-- Executing [s@macro-hangupcall:9] GotoIf("SIP/2101-00000032", "1?mmtestsuccess1") in new stack
-- Goto (macro-hangupcall,s,11)
-- Executing [s@macro-hangupcall:11] Set("SIP/2101-00000032", "CDR(recordingfile)=/var/spool/asterisk/monitor/2018/05/22/exten-2102-2101-20180522-172744-1527002864.50.WAV") in new stack
-- Executing [s@macro-hangupcall:12] Goto("SIP/2101-00000032", "finalcdr") in new stack
-- Goto (macro-hangupcall,s,63)
-- Executing [s@macro-hangupcall:63] NoOp("SIP/2101-00000032", "CDR recordingfile set to: /var/spool/asterisk/monitor/2018/05/22/exten-2102-2101-20180522-172744-1527002864.50.WAV") in new stack
-- Executing [s@macro-hangupcall:64] GotoIf("SIP/2101-00000032", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,67)
-- Executing [s@macro-hangupcall:67] GotoIf("SIP/2101-00000032", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,70)
-- Executing [s@macro-hangupcall:70] GotoIf("SIP/2101-00000032", "1?theend") in new stack
-- Goto (macro-hangupcall,s,72)
-- Executing [s@macro-hangupcall:72] AGI("SIP/2101-00000032", "hangup.agi") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/hangup.agi
-- <SIP/2101-00000032>AGI Script hangup.agi completed, returning 0
-- Executing [s@macro-hangupcall:73] Hangup("SIP/2101-00000032", "") in new stack
== Spawn extension (macro-hangupcall, s, 73) exited non-zero on 'SIP/2101-00000032' in macro 'hangupcall'
== Spawn extension (macro-dial-one, h, 1) exited non-zero on 'SIP/2101-00000032'
== Spawn extension (macro-dial-one, s, 43) exited non-zero on 'SIP/2101-00000032' in macro 'dial-one'
== Spawn extension (macro-exten-vm, s, 9) exited non-zero on 'SIP/2101-00000032' in macro 'exten-vm'
== Spawn extension (from-internal, 2102, 2) exited non-zero on 'SIP/2101-00000032'
== MixMonitor close filestream (mixed)
== End MixMonitor Recording SIP/2101-00000032
issabelPBX*CLI>
aqui tengo audio sin problemas, alguna vez si es verdad que se me corta alguna llamada.
por otra parte si una de las extensiones es externa, adjunto también debug, no hay audio en ningún sentido:
-- Registered SIP '2102' at 84.78.25.175:45013
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
> 0x7f42001bd760 -- Strict RTP learning after remote address set to: 172.16.0.6:6004
-- Executing [2102@from-internal:1] Set("SIP/2101-00000034", "RINGTIMER=15") in new stack
-- Executing [2102@from-internal:2] Macro("SIP/2101-00000034", "exten-vm,novm,2102,0,0,0") in new stack
-- Executing [s@macro-exten-vm:1] Macro("SIP/2101-00000034", "user-callerid,") in new stack
-- Executing [s@macro-user-callerid:1] Set("SIP/2101-00000034", "TOUCH_MONITOR=1527002979.52") in new stack
-- Executing [s@macro-user-callerid:2] Set("SIP/2101-00000034", "AMPUSER=2101") in new stack
-- Executing [s@macro-user-callerid:3] GotoIf("SIP/2101-00000034", "0?report") in new stack
-- Executing [s@macro-user-callerid:4] ExecIf("SIP/2101-00000034", "1?Set(REALCALLERIDNUM=2101)") in new stack
-- Executing [s@macro-user-callerid:5] Set("SIP/2101-00000034", "AMPUSER=2101") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("SIP/2101-00000034", "0?limit") in new stack
-- Executing [s@macro-user-callerid:7] Set("SIP/2101-00000034", "AMPUSERCIDNAME=Raul S") in new stack
-- Executing [s@macro-user-callerid:8] GotoIf("SIP/2101-00000034", "0?report") in new stack
-- Executing [s@macro-user-callerid:9] Set("SIP/2101-00000034", "AMPUSERCID=2101") in new stack
-- Executing [s@macro-user-callerid:10] Set("SIP/2101-00000034", "DIAL_OPTIONS=Ttr") in new stack
-- Executing [s@macro-user-callerid:11] Set("SIP/2101-00000034", "CALLERID(all)="Raul S" <2101>") in new stack
-- Executing [s@macro-user-callerid:12] GotoIf("SIP/2101-00000034", "0?limit") in new stack
-- Executing [s@macro-user-callerid:13] ExecIf("SIP/2101-00000034", "0?Set(GROUP(concurrency_limit)=2101)") in new stack
-- Executing [s@macro-user-callerid:14] ExecIf("SIP/2101-00000034", "1?Set(CHANNEL(language)=es)") in new stack
-- Executing [s@macro-user-callerid:15] GotoIf("SIP/2101-00000034", "0?continue") in new stack
-- Executing [s@macro-user-callerid:16] ExecIf("SIP/2101-00000034", "1?Set(CALLEE_ACCOUNCODE=)") in new stack
-- Executing [s@macro-user-callerid:17] Set("SIP/2101-00000034", "TTL=64") in new stack
-- Executing [s@macro-user-callerid:18] GotoIf("SIP/2101-00000034", "1?continue") in new stack
-- Goto (macro-user-callerid,s,29)
-- Executing [s@macro-user-callerid:29] Set("SIP/2101-00000034", "CALLERID(number)=2101") in new stack
-- Executing [s@macro-user-callerid:30] Set("SIP/2101-00000034", "CALLERID(name)=Raul S") in new stack
-- Executing [s@macro-user-callerid:31] Set("SIP/2101-00000034", "CDR(cnum)=2101") in new stack
-- Executing [s@macro-user-callerid:32] Set("SIP/2101-00000034", "CDR(cnam)=Raul S") in new stack
-- Executing [s@macro-user-callerid:33] Set("SIP/2101-00000034", "CHANNEL(language)=es") in new stack
-- Executing [s@macro-exten-vm:2] Set("SIP/2101-00000034", "RingGroupMethod=none") in new stack
-- Executing [s@macro-exten-vm:3] Set("SIP/2101-00000034", "EXTTOCALL=2102") in new stack
-- Executing [s@macro-exten-vm:4] Set("SIP/2101-00000034", "PICKUPMARK=2102") in new stack
-- Executing [s@macro-exten-vm:5] Set("SIP/2101-00000034", "RT=") in new stack
-- Executing [s@macro-exten-vm:6] ExecIf("SIP/2101-00000034", "0?Macro(vm,novm,DIRECTDIAL,)") in new stack
-- Executing [s@macro-exten-vm:7] ExecIf("SIP/2101-00000034", "0?MacroExit()") in new stack
-- Executing [s@macro-exten-vm:8] Gosub("SIP/2101-00000034", "sub-record-check,s,1(exten,2102,)") in new stack
-- Executing [s@sub-record-check:1] Set("SIP/2101-00000034", "REC_POLICY_MODE_SAVE=") in new stack
-- Executing [s@sub-record-check:2] GotoIf("SIP/2101-00000034", "1?check") in new stack
-- Goto (sub-record-check,s,7)
-- Executing [s@sub-record-check:7] Set("SIP/2101-00000034", "MON_FMT=WAV") in new stack
-- Executing [s@sub-record-check:8] GotoIf("SIP/2101-00000034", "1?next") in new stack
-- Goto (sub-record-check,s,11)
-- Executing [s@sub-record-check:11] ExecIf("SIP/2101-00000034", "0?Return()") in new stack
-- Executing [s@sub-record-check:12] ExecIf("SIP/2101-00000034", "0?Set(REC_POLICY_MODE=)") in new stack
-- Executing [s@sub-record-check:13] GotoIf("SIP/2101-00000034", "0?exten,1") in new stack
-- Executing [s@sub-record-check:14] Set("SIP/2101-00000034", "REC_STATUS=INITIALIZED") in new stack
-- Executing [s@sub-record-check:15] Set("SIP/2101-00000034", "NOW=1527002979") in new stack
-- Executing [s@sub-record-check:16] Set("SIP/2101-00000034", "DAY=22") in new stack
-- Executing [s@sub-record-check:17] Set("SIP/2101-00000034", "MONTH=05") in new stack
-- Executing [s@sub-record-check:18] Set("SIP/2101-00000034", "YEAR=2018") in new stack
-- Executing [s@sub-record-check:19] Set("SIP/2101-00000034", "TIMESTR=20180522-172939") in new stack
-- Executing [s@sub-record-check:20] Set("SIP/2101-00000034", "FROMEXTEN=2101") in new stack
-- Executing [s@sub-record-check:21] Set("SIP/2101-00000034", "CALLFILENAME=exten-2102-2101-20180522-172939-1527002979.52") in new stack
-- Executing [s@sub-record-check:22] Goto("SIP/2101-00000034", "exten,1") in new stack
-- Goto (sub-record-check,exten,1)
-- Executing [exten@sub-record-check:1] GotoIf("SIP/2101-00000034", "0?callee") in new stack
-- Executing [exten@sub-record-check:2] Set("SIP/2101-00000034", "REC_POLICY_MODE=dontcare") in new stack
-- Executing [exten@sub-record-check:3] GotoIf("SIP/2101-00000034", "1?caller") in new stack
-- Goto (sub-record-check,exten,10)
-- Executing [exten@sub-record-check:10] Set("SIP/2101-00000034", "REC_POLICY_MODE=always") in new stack
-- Executing [exten@sub-record-check:11] GosubIf("SIP/2101-00000034", "1?record,1(exten,2102,2101)") in new stack
-- Executing [record@sub-record-check:1] Set("SIP/2101-00000034", "AUDIOHOOK_INHERIT(MixMonitor)=yes") in new stack
-- Executing [record@sub-record-check:2] MixMonitor("SIP/2101-00000034", "2018/05/22/exten-2102-2101-20180522-172939-1527002979.52.WAV,,") in new stack
== Begin MixMonitor Recording SIP/2101-00000034
-- Executing [record@sub-record-check:3] Set("SIP/2101-00000034", "REC_STATUS=RECORDING") in new stack
-- Executing [record@sub-record-check:4] Set("SIP/2101-00000034", "CDR(recordingfile)=exten-2102-2101-20180522-172939-1527002979.52.WAV") in new stack
-- Executing [record@sub-record-check:5] Return("SIP/2101-00000034", "") in new stack
-- Executing [exten@sub-record-check:12] Return("SIP/2101-00000034", "") in new stack
-- Executing [s@macro-exten-vm:9] Macro("SIP/2101-00000034", "dial-one,,Ttr,2102") in new stack
-- Executing [s@macro-dial-one:1] Set("SIP/2101-00000034", "DEXTEN=2102") in new stack
-- Executing [s@macro-dial-one:2] Set("SIP/2101-00000034", "DIALSTATUS_CW=") in new stack
-- Executing [s@macro-dial-one:3] GosubIf("SIP/2101-00000034", "0?screen,1()") in new stack
-- Executing [s@macro-dial-one:4] GosubIf("SIP/2101-00000034", "0?cf,1()") in new stack
-- Executing [s@macro-dial-one:5] GotoIf("SIP/2101-00000034", "1?skip1") in new stack
-- Goto (macro-dial-one,s,8)
-- Executing [s@macro-dial-one:8] GotoIf("SIP/2101-00000034", "0?nodial") in new stack
-- Executing [s@macro-dial-one:9] GotoIf("SIP/2101-00000034", "0?continue") in new stack
-- Executing [s@macro-dial-one:10] Set("SIP/2101-00000034", "EXTHASCW=ENABLED") in new stack
-- Executing [s@macro-dial-one:11] GotoIf("SIP/2101-00000034", "0?next1:cwinusebusy") in new stack
-- Goto (macro-dial-one,s,23)
-- Executing [s@macro-dial-one:23] GotoIf("SIP/2101-00000034", "1?next3:continue") in new stack
-- Goto (macro-dial-one,s,24)
-- Executing [s@macro-dial-one:24] ExecIf("SIP/2101-00000034", "0?Set(DIALSTATUS_CW=BUSY)") in new stack
-- Executing [s@macro-dial-one:25] GotoIf("SIP/2101-00000034", "0?nodial") in new stack
-- Executing [s@macro-dial-one:26] GosubIf("SIP/2101-00000034", "1?dstring,1():dlocal,1()") in new stack
-- Executing [dstring@macro-dial-one:1] Set("SIP/2101-00000034", "DSTRING=") in new stack
-- Executing [dstring@macro-dial-one:2] Set("SIP/2101-00000034", "DEVICES=2102") in new stack
-- Executing [dstring@macro-dial-one:3] ExecIf("SIP/2101-00000034", "0?Return()") in new stack
-- Executing [dstring@macro-dial-one:4] ExecIf("SIP/2101-00000034", "0?Set(DEVICES=102)") in new stack
-- Executing [dstring@macro-dial-one:5] Set("SIP/2101-00000034", "LOOPCNT=1") in new stack
-- Executing [dstring@macro-dial-one:6] Set("SIP/2101-00000034", "ITER=1") in new stack
-- Executing [dstring@macro-dial-one:7] Set("SIP/2101-00000034", "THISDIAL=SIP/2102") in new stack
-- Executing [dstring@macro-dial-one:8] GosubIf("SIP/2101-00000034", "1?zap2dahdi,1()") in new stack
-- Executing [zap2dahdi@macro-dial-one:1] ExecIf("SIP/2101-00000034", "0?Return()") in new stack
-- Executing [zap2dahdi@macro-dial-one:2] Set("SIP/2101-00000034", "NEWDIAL=") in new stack
-- Executing [zap2dahdi@macro-dial-one:3] Set("SIP/2101-00000034", "LOOPCNT2=1") in new stack
-- Executing [zap2dahdi@macro-dial-one:4] Set("SIP/2101-00000034", "ITER2=1") in new stack
-- Executing [zap2dahdi@macro-dial-one:5] Set("SIP/2101-00000034", "THISPART2=SIP/2102") in new stack
-- Executing [zap2dahdi@macro-dial-one:6] ExecIf("SIP/2101-00000034", "0?Set(THISPART2=DAHDI/2102)") in new stack
-- Executing [zap2dahdi@macro-dial-one:7] Set("SIP/2101-00000034", "NEWDIAL=SIP/2102&") in new stack
-- Executing [zap2dahdi@macro-dial-one:8] Set("SIP/2101-00000034", "ITER2=2") in new stack
-- Executing [zap2dahdi@macro-dial-one:9] GotoIf("SIP/2101-00000034", "0?begin2") in new stack
-- Executing [zap2dahdi@macro-dial-one:10] Set("SIP/2101-00000034", "THISDIAL=SIP/2102") in new stack
-- Executing [zap2dahdi@macro-dial-one:11] Return("SIP/2101-00000034", "") in new stack
-- Executing [dstring@macro-dial-one:9] Set("SIP/2101-00000034", "DSTRING=SIP/2102&") in new stack
-- Executing [dstring@macro-dial-one:10] Set("SIP/2101-00000034", "ITER=2") in new stack
-- Executing [dstring@macro-dial-one:11] GotoIf("SIP/2101-00000034", "0?begin") in new stack
-- Executing [dstring@macro-dial-one:12] Set("SIP/2101-00000034", "DSTRING=SIP/2102") in new stack
-- Executing [dstring@macro-dial-one:13] Return("SIP/2101-00000034", "") in new stack
-- Executing [s@macro-dial-one:27] GotoIf("SIP/2101-00000034", "0?nodial") in new stack
-- Executing [s@macro-dial-one:28] GotoIf("SIP/2101-00000034", "0?skiptrace") in new stack
-- Executing [s@macro-dial-one:29] GosubIf("SIP/2101-00000034", "1?ctset,1():ctclear,1()") in new stack
-- Executing [ctset@macro-dial-one:1] Set("SIP/2101-00000034", "DB(CALLTRACE/2102)=2101") in new stack
-- Executing [ctset@macro-dial-one:2] Return("SIP/2101-00000034", "") in new stack
-- Executing [s@macro-dial-one:30] Set("SIP/2101-00000034", "D_OPTIONS=Ttr") in new stack
-- Executing [s@macro-dial-one:31] ExecIf("SIP/2101-00000034", "0?SIPAddHeader(Alert-Info: )") in new stack
-- Executing [s@macro-dial-one:32] ExecIf("SIP/2101-00000034", "0?SIPAddHeader()") in new stack
-- Executing [s@macro-dial-one:33] ExecIf("SIP/2101-00000034", "0?Set(CHANNEL(musicclass)=)") in new stack
-- Executing [s@macro-dial-one:34] GosubIf("SIP/2101-00000034", "0?qwait,1()") in new stack
-- Executing [s@macro-dial-one:35] Set("SIP/2101-00000034", "CWIGNORE=") in new stack
-- Executing [s@macro-dial-one:36] Set("SIP/2101-00000034", "KEEPCID=TRUE") in new stack
-- Executing [s@macro-dial-one:37] GotoIf("SIP/2101-00000034", "0?usegoto,1") in new stack
-- Executing [s@macro-dial-one:38] GotoIf("SIP/2101-00000034", "0?godial") in new stack
-- Executing [s@macro-dial-one:39] Gosub("SIP/2101-00000034", "sub-presencestate-display,s,1(2102)") in new stack
-- Executing [s@sub-presencestate-display:1] Goto("SIP/2101-00000034", "state-not_set,1") in new stack
-- Goto (sub-presencestate-display,state-not_set,1)
-- Executing [state-not_set@sub-presencestate-display:1] Set("SIP/2101-00000034", "PRESENCESTATE_DISPLAY=") in new stack
-- Executing [state-not_set@sub-presencestate-display:2] Return("SIP/2101-00000034", "") in new stack
-- Executing [s@macro-dial-one:40] Set("SIP/2101-00000034", "CONNECTEDLINE(name,i)=Jose Luis N") in new stack
-- Executing [s@macro-dial-one:41] Set("SIP/2101-00000034", "CONNECTEDLINE(num)=2102") in new stack
-- Executing [s@macro-dial-one:42] Set("SIP/2101-00000034", "D_OPTIONS=TtrI") in new stack
-- Executing [s@macro-dial-one:43] Dial("SIP/2101-00000034", "SIP/2102,,TtrI") in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Called SIP/2102
-- Connected line update to SIP/2101-00000034 prevented.
-- SIP/2102-00000035 is ringing
-- SIP/2102-00000035 is ringing
> 0x7f42482697e0 -- Strict RTP learning after remote address set to: 10.220.152.159:9002
-- Connected line update to SIP/2101-00000034 prevented.
-- SIP/2102-00000035 answered SIP/2101-00000034
> 0x7f42001bd760 -- Strict RTP switching to RTP remote address 172.16.0.6:6004 as source
> 0x7f42001bd760 -- Strict RTP learning complete - Locking on source address 172.16.0.6:6004
-- Executing [h@macro-dial-one:1] Macro("SIP/2101-00000034", "hangupcall,") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("SIP/2101-00000034", "0?endmixmoncheck") in new stack
-- Executing [s@macro-hangupcall:2] Set("SIP/2101-00000034", "MIXMON_CALLFILENAME=/var/spool/asterisk/monitor/exten-2102-2101-20180522-172939-1527002979.52.WAV") in new stack
-- Executing [s@macro-hangupcall:3] System("SIP/2101-00000034", "test -e /var/spool/asterisk/monitor/exten-2102-2101-20180522-172939-1527002979.52.WAV") in new stack
-- Executing [s@macro-hangupcall:4] NoOp("SIP/2101-00000034", "SYSTEMSTATUS = APPERROR") in new stack
-- Executing [s@macro-hangupcall:5] GotoIf("SIP/2101-00000034", "0?finalcdr") in new stack
-- Executing [s@macro-hangupcall:6] Set("SIP/2101-00000034", "MIXMON_CALLFILENAME=/var/spool/asterisk/monitor/2018/05/22/exten-2102-2101-20180522-172939-1527002979.52.WAV") in new stack
-- Executing [s@macro-hangupcall:7] System("SIP/2101-00000034", "test -e /var/spool/asterisk/monitor/2018/05/22/exten-2102-2101-20180522-172939-1527002979.52.WAV") in new stack
-- Executing [s@macro-hangupcall:8] NoOp("SIP/2101-00000034", "SYSTEMSTATUS = SUCCESS") in new stack
-- Executing [s@macro-hangupcall:9] GotoIf("SIP/2101-00000034", "1?mmtestsuccess1") in new stack
-- Goto (macro-hangupcall,s,11)
-- Executing [s@macro-hangupcall:11] Set("SIP/2101-00000034", "CDR(recordingfile)=/var/spool/asterisk/monitor/2018/05/22/exten-2102-2101-20180522-172939-1527002979.52.WAV") in new stack
-- Executing [s@macro-hangupcall:12] Goto("SIP/2101-00000034", "finalcdr") in new stack
-- Goto (macro-hangupcall,s,63)
-- Executing [s@macro-hangupcall:63] NoOp("SIP/2101-00000034", "CDR recordingfile set to: /var/spool/asterisk/monitor/2018/05/22/exten-2102-2101-20180522-172939-1527002979.52.WAV") in new stack
-- Executing [s@macro-hangupcall:64] GotoIf("SIP/2101-00000034", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,67)
-- Executing [s@macro-hangupcall:67] GotoIf("SIP/2101-00000034", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,70)
-- Executing [s@macro-hangupcall:70] GotoIf("SIP/2101-00000034", "1?theend") in new stack
-- Goto (macro-hangupcall,s,72)
-- Executing [s@macro-hangupcall:72] AGI("SIP/2101-00000034", "hangup.agi") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/hangup.agi
-- <SIP/2101-00000034>AGI Script hangup.agi completed, returning 0
-- Executing [s@macro-hangupcall:73] Hangup("SIP/2101-00000034", "") in new stack
== Spawn extension (macro-hangupcall, s, 73) exited non-zero on 'SIP/2101-00000034' in macro 'hangupcall'
== Spawn extension (macro-dial-one, h, 1) exited non-zero on 'SIP/2101-00000034'
== Spawn extension (macro-dial-one, s, 43) exited non-zero on 'SIP/2101-00000034' in macro 'dial-one'
== Spawn extension (macro-exten-vm, s, 9) exited non-zero on 'SIP/2101-00000034' in macro 'exten-vm'
== Spawn extension (from-internal, 2102, 2) exited non-zero on 'SIP/2101-00000034'
== MixMonitor close filestream (mixed)
== End MixMonitor Recording SIP/2101-00000034
-- Remote UNI
es mas si cuelgo desde la extensión externa, la interna no se da cuenta y sigue activa.
Ahora os adjunto el sip.conf:
allowguest=no
language=es
#include sip_nat.conf
nat=yes
exterhost=xxxxxxxxxx.xxxxx.xxxxxxx
localnet=172.16.0.0/255.255.0.0
bindaddr=0.0.0.0
;domain=xxxxxxxx.xxxxxxx.xxxxxx
externrefresh=5
y el sip_general_additional.conf:
;--------------------------------------------------------------------------------;
; Do NOT edit this file as it is auto-generated by IssabelPBX. All modifications ;
; to this file must be done via the web gui. There are alternative files to make ;
; custom modifications, details at: http://issabel.org/configuration_files ;
;--------------------------------------------------------------------------------;
;
vmexten=*97
accept_outofcall_message=yes
auth_message_requests=no
outofcall_message_context=dpma_message_context
faxdetect=no
context=from-sip-external
callerid=Unknown
notifyringing=yes
notifyhold=yes
tos_sip=cs3
tos_audio=ef
tos_video=af41
alwaysauthreject=yes
useragent=FPBX-2.11.0(11.25.3)
disallow=all
allow=opus
allow=gsm
allow=alaw
allow=ulaw
language=es
callevents=no
jbenable=yes
jbforce=no
jbimpl=fixed
jbmaxsize=200
jblog=no
jbresyncthreshold=1000
defaultexpiry=120
minexpiry=60
maxexpiry=3600
videosupport=no
allowguest=yes
srvlookup=no
registerattempts=0
registertimeout=20
notifyringing=yes
g726nonstandard=no
maxcallbitrate=384
canreinvite=yes
rtptimeout=30
rtpholdtimeout=300
rtpkeepalive=0
checkmwi=10
notifyhold=yes
nat=yes
externhost=xxxxx.xxxxxx.xxxxx
externrefresh=120
localnet=172.16.0.0/255.255.0.0
En las extensiones tengo activado el nat=yes y el puerto de registro en los telefonos tanto internamente como externamente es el 50600, y los puertos rtp he probado con los de por defecto 10000-20000 y con otros mas bajos 9000-9900, la conexión a internet es con vodafone españa.
si necesitais mas información no dudeis en preguntar...
Gracias de antemano.