dariohimo
Hola Dario agradezco que me estés colaborando, hice lo que tu me indicaste y obtuve el siguiente Log ( que continuación anexo), pero mi poca experiencia no se como proceder y te pediría el favor que en lo posible me sigas echando una ayudadita.
Nota1: En la entrada de la llamada a la troncal análoga: Observo que registra la extension sip:12345 y el numero de celular 30571208oo
Nota2: En la Salida de la llamada por la troncal SIP: observo que arroja: el numero de la extension sip: 12345 , el nombre de la extensión: ventas y el numero de celular: 30571208oo
Entrada de llamada troncal análoga:
siphonevoiptonoli1CLI>
[2018-02-08 18:55:57] NOTICE[3253]: chan_sip.c:28316 handle_request_register: Registration from '<sip:03@192.168.0.50;transport=UDP>' failed for '192.168.0.10:59698' - Wrong password
-- Starting simple switch on 'DAHDI/4-1'
-- Executing [s@from-pstn:1] ExecIf("DAHDI/4-1", "1?Set(FROM_DID=s)") in new stack
-- Executing [s@from-pstn:2] Gosub("DAHDI/4-1", "app-blacklist-check,s,1()") in new stack
-- Executing [s@app-blacklist-check:1] GotoIf("DAHDI/4-1", "0?blacklisted") in new stack
-- Executing [s@app-blacklist-check:2] Set("DAHDI/4-1", "CALLED_BLACKLIST=1") in new stack
-- Executing [s@app-blacklist-check:3] Return("DAHDI/4-1", "") in new stack
-- Executing [s@from-pstn:3] Set("DAHDI/4-1", "CDR(did)=s") in new stack
-- Executing [s@from-pstn:4] ExecIf("DAHDI/4-1", "0 ?Set(CALLERID(name)=3057120800)") in new stack
-- Executing [s@from-pstn:5] Set("DAHDI/4-1", "CHANNEL(musicclass)=default") in new stack
-- Executing [s@from-pstn:6] Set("DAHDI/4-1", "MOHCLASS=default") in new stack
-- Executing [s@from-pstn:7] Set("DAHDI/4-1", "CALLINGPRES_SV=allowed_not_screened") in new stack
-- Executing [s@from-pstn:8] Set("DAHDI/4-1", "CALLERPRES()=allowed_not_screened") in new stack
-- Executing [s@from-pstn:9] Goto("DAHDI/4-1", "from-did-direct,12345,1") in new stack
-- Goto (from-did-direct,12345,1)
-- Executing [12345@from-did-direct:1] GotoIf("DAHDI/4-1", "1?ext-local,12345,1") in new stack
-- Goto (ext-local,12345,1)
-- Executing [12345@ext-local:1] Set("DAHDI/4-1", "RINGTIMER=15") in new stack
-- Executing [12345@ext-local:2] Macro("DAHDI/4-1", "exten-vm,novm,12345,0,0,0") in new stack
-- Executing [s@macro-exten-vm:1] Macro("DAHDI/4-1", "user-callerid,") in new stack
-- Executing [s@macro-user-callerid:1] Set("DAHDI/4-1", "TOUCH_MONITOR=1518134158.99") in new stack
-- Executing [s@macro-user-callerid:2] Set("DAHDI/4-1", "AMPUSER=3057120800") in new stack
-- Executing [s@macro-user-callerid:3] GotoIf("DAHDI/4-1", "0?report") in new stack
-- Executing [s@macro-user-callerid:4] ExecIf("DAHDI/4-1", "1?Set(REALCALLERIDNUM=3057120800)") in new stack
-- Executing [s@macro-user-callerid:5] Set("DAHDI/4-1", "AMPUSER=") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("DAHDI/4-1", "0?limit") in new stack
-- Executing [s@macro-user-callerid:7] Set("DAHDI/4-1", "AMPUSERCIDNAME=") in new stack
-- Executing [s@macro-user-callerid:8] GotoIf("DAHDI/4-1", "1?report") in new stack
-- Goto (macro-user-callerid,s,15)
-- Executing [s@macro-user-callerid:15] GotoIf("DAHDI/4-1", "0?continue") in new stack
-- Executing [s@macro-user-callerid:16] Set("DAHDI/4-1", "TTL=64") in new stack
-- Executing [s@macro-user-callerid:17] GotoIf("DAHDI/4-1", "1?continue") in new stack
-- Goto (macro-user-callerid,s,28)
-- Executing [s@macro-user-callerid:28] Set("DAHDI/4-1", "CALLERID(number)=3057120800") in new stack
-- Executing [s@macro-user-callerid:29] Set("DAHDI/4-1", "CALLERID(name)=+573057120800") in new stack
-- Executing [s@macro-user-callerid:30] Set("DAHDI/4-1", "CDR(cnum)=3057120800") in new stack
-- Executing [s@macro-user-callerid:31] Set("DAHDI/4-1", "CDR(cnam)=+573057120800") in new stack
-- Executing [s@macro-user-callerid:32] Set("DAHDI/4-1", "CHANNEL(language)=en") in new stack
-- Executing [s@macro-exten-vm:2] Set("DAHDI/4-1", "RingGroupMethod=none") in new stack
-- Executing [s@macro-exten-vm:3] Set("DAHDI/4-1", "EXTTOCALL=12345") in new stack
-- Executing [s@macro-exten-vm:4] Set("DAHDI/4-1", "PICKUPMARK=12345") in new stack
-- Executing [s@macro-exten-vm:5] Set("DAHDI/4-1", "RT=") in new stack
-- Executing [s@macro-exten-vm:6] Gosub("DAHDI/4-1", "sub-record-check,s,1(exten,12345,)") in new stack
-- Executing [s@sub-record-check:1] Set("DAHDI/4-1", "REC_POLICY_MODE_SAVE=") in new stack
-- Executing [s@sub-record-check:2] GotoIf("DAHDI/4-1", "1?check") in new stack
-- Goto (sub-record-check,s,7)
-- Executing [s@sub-record-check:7] Set("DAHDI/4-1", "MON_FMT=wav") in new stack
-- Executing [s@sub-record-check:8] GotoIf("DAHDI/4-1", "1?next") in new stack
-- Goto (sub-record-check,s,11)
-- Executing [s@sub-record-check:11] ExecIf("DAHDI/4-1", "0?Return()") in new stack
-- Executing [s@sub-record-check:12] ExecIf("DAHDI/4-1", "0?Set(REC_POLICY_MODE=)") in new stack
-- Executing [s@sub-record-check:13] GotoIf("DAHDI/4-1", "0?exten,1") in new stack
-- Executing [s@sub-record-check:14] Set("DAHDI/4-1", "REC_STATUS=INITIALIZED") in new stack
-- Executing [s@sub-record-check:15] Set("DAHDI/4-1", "NOW=1518134160") in new stack
-- Executing [s@sub-record-check:16] Set("DAHDI/4-1", "DAY=08") in new stack
-- Executing [s@sub-record-check:17] Set("DAHDI/4-1", "MONTH=02") in new stack
-- Executing [s@sub-record-check:18] Set("DAHDI/4-1", "YEAR=2018") in new stack
-- Executing [s@sub-record-check:19] Set("DAHDI/4-1", "TIMESTR=20180208-185600") in new stack
-- Executing [s@sub-record-check:20] Set("DAHDI/4-1", "FROMEXTEN=3057120800") in new stack
-- Executing [s@sub-record-check:21] Set("DAHDI/4-1", "CALLFILENAME=exten-12345-3057120800-20180208-185600-1518134158.99") in new stack
-- Executing [s@sub-record-check:22] Goto("DAHDI/4-1", "exten,1") in new stack
-- Goto (sub-record-check,exten,1)
-- Executing [exten@sub-record-check:1] GotoIf("DAHDI/4-1", "0?callee") in new stack
-- Executing [exten@sub-record-check:2] Set("DAHDI/4-1", "REC_POLICY_MODE=dontcare") in new stack
-- Executing [exten@sub-record-check:3] GotoIf("DAHDI/4-1", "1?caller") in new stack
-- Goto (sub-record-check,exten,10)
-- Executing [exten@sub-record-check:10] Set("DAHDI/4-1", "REC_POLICY_MODE=") in new stack
-- Executing [exten@sub-record-check:11] GosubIf("DAHDI/4-1", "0?record,1(exten,12345,3057120800)") in new stack
-- Executing [exten@sub-record-check:12] Return("DAHDI/4-1", "") in new stack
-- Executing [s@macro-exten-vm:7] Macro("DAHDI/4-1", "dial-one,,tr,12345") in new stack
-- Executing [s@macro-dial-one:1] Set("DAHDI/4-1", "DEXTEN=12345") in new stack
-- Executing [s@macro-dial-one:2] Set("DAHDI/4-1", "DIALSTATUS_CW=") in new stack
-- Executing [s@macro-dial-one:3] GosubIf("DAHDI/4-1", "0?screen,1()") in new stack
-- Executing [s@macro-dial-one:4] GosubIf("DAHDI/4-1", "0?cf,1()") in new stack
-- Executing [s@macro-dial-one:5] GotoIf("DAHDI/4-1", "1?skip1") in new stack
-- Goto (macro-dial-one,s,8)
-- Executing [s@macro-dial-one:8] GotoIf("DAHDI/4-1", "0?nodial") in new stack
-- Executing [s@macro-dial-one:9] GotoIf("DAHDI/4-1", "0?continue") in new stack
-- Executing [s@macro-dial-one:10] Set("DAHDI/4-1", "EXTHASCW=") in new stack
-- Executing [s@macro-dial-one:11] GotoIf("DAHDI/4-1", "1?next1:cwinusebusy") in new stack
-- Goto (macro-dial-one,s,12)
-- Executing [s@macro-dial-one:12] GotoIf("DAHDI/4-1", "0?docfu:skip3") in new stack
-- Goto (macro-dial-one,s,16)
-- Executing [s@macro-dial-one:16] GotoIf("DAHDI/4-1", "1?next2:continue") in new stack
-- Goto (macro-dial-one,s,17)
-- Executing [s@macro-dial-one:17] GotoIf("DAHDI/4-1", "1?continue") in new stack
-- Goto (macro-dial-one,s,25)
-- Executing [s@macro-dial-one:25] GotoIf("DAHDI/4-1", "0?nodial") in new stack
-- Executing [s@macro-dial-one:26] GosubIf("DAHDI/4-1", "1?dstring,1():dlocal,1()") in new stack
-- Executing [dstring@macro-dial-one:1] Set("DAHDI/4-1", "DSTRING=") in new stack
-- Executing [dstring@macro-dial-one:2] Set("DAHDI/4-1", "DEVICES=12345") in new stack
-- Executing [dstring@macro-dial-one:3] ExecIf("DAHDI/4-1", "0?Return()") in new stack
-- Executing [dstring@macro-dial-one:4] ExecIf("DAHDI/4-1", "0?Set(DEVICES=2345)") in new stack
-- Executing [dstring@macro-dial-one:5] Set("DAHDI/4-1", "LOOPCNT=1") in new stack
-- Executing [dstring@macro-dial-one:6] Set("DAHDI/4-1", "ITER=1") in new stack
-- Executing [dstring@macro-dial-one:7] Set("DAHDI/4-1", "THISDIAL=SIP/12345") in new stack
-- Executing [dstring@macro-dial-one:8] GosubIf("DAHDI/4-1", "1?zap2dahdi,1()") in new stack
-- Executing [zap2dahdi@macro-dial-one:1] ExecIf("DAHDI/4-1", "0?Return()") in new stack
-- Executing [zap2dahdi@macro-dial-one:2] Set("DAHDI/4-1", "NEWDIAL=") in new stack
-- Executing [zap2dahdi@macro-dial-one:3] Set("DAHDI/4-1", "LOOPCNT2=1") in new stack
-- Executing [zap2dahdi@macro-dial-one:4] Set("DAHDI/4-1", "ITER2=1") in new stack
-- Executing [zap2dahdi@macro-dial-one:5] Set("DAHDI/4-1", "THISPART2=SIP/12345") in new stack
-- Executing [zap2dahdi@macro-dial-one:6] ExecIf("DAHDI/4-1", "0?Set(THISPART2=DAHDI/12345)") in new stack
-- Executing [zap2dahdi@macro-dial-one:7] Set("DAHDI/4-1", "NEWDIAL=SIP/12345&") in new stack
-- Executing [zap2dahdi@macro-dial-one:8] Set("DAHDI/4-1", "ITER2=2") in new stack
-- Executing [zap2dahdi@macro-dial-one:9] GotoIf("DAHDI/4-1", "0?begin2") in new stack
-- Executing [zap2dahdi@macro-dial-one:10] Set("DAHDI/4-1", "THISDIAL=SIP/12345") in new stack
-- Executing [zap2dahdi@macro-dial-one:11] Return("DAHDI/4-1", "") in new stack
-- Executing [dstring@macro-dial-one:9] Set("DAHDI/4-1", "DSTRING=SIP/12345&") in new stack
-- Executing [dstring@macro-dial-one:10] Set("DAHDI/4-1", "ITER=2") in new stack
-- Executing [dstring@macro-dial-one:11] GotoIf("DAHDI/4-1", "0?begin") in new stack
-- Executing [dstring@macro-dial-one:12] Set("DAHDI/4-1", "DSTRING=SIP/12345") in new stack
-- Executing [dstring@macro-dial-one:13] Return("DAHDI/4-1", "") in new stack
-- Executing [s@macro-dial-one:27] GotoIf("DAHDI/4-1", "0?nodial") in new stack
-- Executing [s@macro-dial-one:28] GotoIf("DAHDI/4-1", "0?skiptrace") in new stack
-- Executing [s@macro-dial-one:29] GosubIf("DAHDI/4-1", "1?ctset,1():ctclear,1()") in new stack
-- Executing [ctset@macro-dial-one:1] Set("DAHDI/4-1", "DB(CALLTRACE/12345)=3057120800") in new stack
-- Executing [ctset@macro-dial-one:2] Return("DAHDI/4-1", "") in new stack
-- Executing [s@macro-dial-one:30] Set("DAHDI/4-1", "D_OPTIONS=tr") in new stack
-- Executing [s@macro-dial-one:31] ExecIf("DAHDI/4-1", "0?SIPAddHeader(Alert-Info: )") in new stack
-- Executing [s@macro-dial-one:32] ExecIf("DAHDI/4-1", "0?SIPAddHeader()") in new stack
-- Executing [s@macro-dial-one:33] ExecIf("DAHDI/4-1", "1?Set(CHANNEL(musicclass)=default)") in new stack
-- Executing [s@macro-dial-one:34] GosubIf("DAHDI/4-1", "0?qwait,1()") in new stack
-- Executing [s@macro-dial-one:35] Set("DAHDI/4-1", "CWIGNORE=") in new stack
-- Executing [s@macro-dial-one:36] Set("DAHDI/4-1", "KEEPCID=TRUE") in new stack
-- Executing [s@macro-dial-one:37] GotoIf("DAHDI/4-1", "0?usegoto,1") in new stack
-- Executing [s@macro-dial-one:38] GotoIf("DAHDI/4-1", "1?godial") in new stack
-- Goto (macro-dial-one,s,43)
-- Executing [s@macro-dial-one:43] Dial("DAHDI/4-1", "SIP/12345,,tr") in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Called SIP/12345
-- SIP/12345-0000004d is ringing
== Spawn extension (macro-dial-one, s, 43) exited non-zero on 'DAHDI/4-1' in macro 'dial-one'
== Spawn extension (macro-exten-vm, s, 7) exited non-zero on 'DAHDI/4-1' in macro 'exten-vm'
== Spawn extension (ext-local, 12345, 2) exited non-zero on 'DAHDI/4-1'
-- Executing [h@ext-local:1] Macro("DAHDI/4-1", "hangupcall,") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("DAHDI/4-1", "1?endmixmoncheck") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing [s@macro-hangupcall:9] NoOp("DAHDI/4-1", "End of MIXMON check") in new stack
-- Executing [s@macro-hangupcall:10] GotoIf("DAHDI/4-1", "1?nomeetmemon") in new stack
-- Goto (macro-hangupcall,s,28)
-- Executing [s@macro-hangupcall:28] NoOp("DAHDI/4-1", "End of MEETME check") in new stack
-- Executing [s@macro-hangupcall:29] GotoIf("DAHDI/4-1", "1?noautomon") in new stack
-- Goto (macro-hangupcall,s,34)
-- Executing [s@macro-hangupcall:34] NoOp("DAHDI/4-1", "TOUCH_MONITOR_OUTPUT=") in new stack
-- Executing [s@macro-hangupcall:35] GotoIf("DAHDI/4-1", "1?noautomon2") in new stack
-- Goto (macro-hangupcall,s,41)
-- Executing [s@macro-hangupcall:41] NoOp("DAHDI/4-1", "MONITOR_FILENAME=") in new stack
-- Executing [s@macro-hangupcall:42] GotoIf("DAHDI/4-1", "1?noautomon3") in new stack
-- Goto (macro-hangupcall,s,48)
-- Executing [s@macro-hangupcall:48] NoOp("DAHDI/4-1", "MIXMONITOR_FILENAME=") in new stack
-- Executing [s@macro-hangupcall:49] GotoIf("DAHDI/4-1", "1?noautomon4") in new stack
-- Goto (macro-hangupcall,s,51)
-- Executing [s@macro-hangupcall:51] NoOp("DAHDI/4-1", "ONETOUCH_RECFILE=") in new stack
-- Executing [s@macro-hangupcall:52] GotoIf("DAHDI/4-1", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,55)
-- Executing [s@macro-hangupcall:55] GotoIf("DAHDI/4-1", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,58)
-- Executing [s@macro-hangupcall:58] GotoIf("DAHDI/4-1", "1?theend") in new stack
-- Goto (macro-hangupcall,s,60)
-- Executing [s@macro-hangupcall:60] AGI("DAHDI/4-1", "hangup.agi") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/hangup.agi
-- <DAHDI/4-1>AGI Script hangup.agi completed, returning 0
-- Executing [s@macro-hangupcall:61] Hangup("DAHDI/4-1", "") in new stack
== Spawn extension (macro-hangupcall, s, 61) exited non-zero on 'DAHDI/4-1' in macro 'hangupcall'
== Spawn extension (ext-local, h, 1) exited non-zero on 'DAHDI/4-1'
-- Hanging up on 'DAHDI/4-1'
-- Hungup 'DAHDI/4-1'
[2018-02-08 18:56:29] NOTICE[3253]: chan_sip.c:28316 handle_request_register: Registration from '<sip:03@192.168.0.50;transport=UDP>' failed for '192.168.0.10:59698' - Wrong password
siphonevoiptonoli1CLI>
Salida de la llamada por la troncal SIP
Nota:observo que arroja: el numero de la extension sip: 12345 , el nombre de la extensio: ventas y el numero de celular: 30571208oo
siphonevoiptonoli1CLI>
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Executing [573057120800@from-internal:1] Macro("SIP/12345-0000005e", "user-callerid,LIMIT,EXTERNAL,") in new stack
-- Executing [s@macro-user-callerid:1] Set("SIP/12345-0000005e", "TOUCH_MONITOR=1518135938.117") in new stack
-- Executing [s@macro-user-callerid:2] Set("SIP/12345-0000005e", "AMPUSER=12345") in new stack
-- Executing [s@macro-user-callerid:3] GotoIf("SIP/12345-0000005e", "0?report") in new stack
-- Executing [s@macro-user-callerid:4] ExecIf("SIP/12345-0000005e", "1?Set(REALCALLERIDNUM=12345)") in new stack
-- Executing [s@macro-user-callerid:5] Set("SIP/12345-0000005e", "AMPUSER=12345") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("SIP/12345-0000005e", "0?limit") in new stack
-- Executing [s@macro-user-callerid:7] Set("SIP/12345-0000005e", "AMPUSERCIDNAME=VENTAS") in new stack
-- Executing [s@macro-user-callerid:8] GotoIf("SIP/12345-0000005e", "0?report") in new stack
-- Executing [s@macro-user-callerid:9] Set("SIP/12345-0000005e", "AMPUSERCID=12345") in new stack
-- Executing [s@macro-user-callerid:10] Set("SIP/12345-0000005e", "DIAL_OPTIONS=tr") in new stack
-- Executing [s@macro-user-callerid:11] Set("SIP/12345-0000005e", "CALLERID(all)="VENTAS" <12345>") in new stack
-- Executing [s@macro-user-callerid:12] GotoIf("SIP/12345-0000005e", "0?limit") in new stack
-- Executing [s@macro-user-callerid:13] ExecIf("SIP/12345-0000005e", "1?Set(GROUP(concurrency_limit)=12345)") in new stack
-- Executing [s@macro-user-callerid:14] ExecIf("SIP/12345-0000005e", "0?Set(CHANNEL(language)=)") in new stack
-- Executing [s@macro-user-callerid:15] GotoIf("SIP/12345-0000005e", "1?continue") in new stack
-- Goto (macro-user-callerid,s,28)
-- Executing [s@macro-user-callerid:28] Set("SIP/12345-0000005e", "CALLERID(number)=12345") in new stack
-- Executing [s@macro-user-callerid:29] Set("SIP/12345-0000005e", "CALLERID(name)=VENTAS") in new stack
-- Executing [s@macro-user-callerid:30] Set("SIP/12345-0000005e", "CDR(cnum)=12345") in new stack
-- Executing [s@macro-user-callerid:31] Set("SIP/12345-0000005e", "CDR(cnam)=VENTAS") in new stack
-- Executing [s@macro-user-callerid:32] Set("SIP/12345-0000005e", "CHANNEL(language)=es") in new stack
-- Executing [573057120800@from-internal:2] Set("SIP/12345-0000005e", "MOHCLASS=default") in new stack
-- Executing [573057120800@from-internal:3] Set("SIP/12345-0000005e", "_NODEST=") in new stack
-- Executing [573057120800@from-internal:4] Gosub("SIP/12345-0000005e", "sub-record-check,s,1(out,573057120800,)") in new stack
-- Executing [s@sub-record-check:1] Set("SIP/12345-0000005e", "REC_POLICY_MODE_SAVE=") in new stack
-- Executing [s@sub-record-check:2] GotoIf("SIP/12345-0000005e", "1?check") in new stack
-- Goto (sub-record-check,s,7)
-- Executing [s@sub-record-check:7] Set("SIP/12345-0000005e", "MON_FMT=wav") in new stack
-- Executing [s@sub-record-check:8] GotoIf("SIP/12345-0000005e", "1?next") in new stack
-- Goto (sub-record-check,s,11)
-- Executing [s@sub-record-check:11] ExecIf("SIP/12345-0000005e", "0?Return()") in new stack
-- Executing [s@sub-record-check:12] ExecIf("SIP/12345-0000005e", "0?Set(REC_POLICY_MODE=)") in new stack
-- Executing [s@sub-record-check:13] GotoIf("SIP/12345-0000005e", "0?out,1") in new stack
-- Executing [s@sub-record-check:14] Set("SIP/12345-0000005e", "REC_STATUS=INITIALIZED") in new stack
-- Executing [s@sub-record-check:15] Set("SIP/12345-0000005e", "NOW=1518135938") in new stack
-- Executing [s@sub-record-check:16] Set("SIP/12345-0000005e", "DAY=08") in new stack
-- Executing [s@sub-record-check:17] Set("SIP/12345-0000005e", "MONTH=02") in new stack
-- Executing [s@sub-record-check:18] Set("SIP/12345-0000005e", "YEAR=2018") in new stack
-- Executing [s@sub-record-check:19] Set("SIP/12345-0000005e", "TIMESTR=20180208-192538") in new stack
-- Executing [s@sub-record-check:20] Set("SIP/12345-0000005e", "FROMEXTEN=12345") in new stack
-- Executing [s@sub-record-check:21] Set("SIP/12345-0000005e", "CALLFILENAME=out-573057120800-12345-20180208-192538-1518135938.117") in new stack
-- Executing [s@sub-record-check:22] Goto("SIP/12345-0000005e", "out,1") in new stack
-- Goto (sub-record-check,out,1)
-- Executing [out@sub-record-check:1] ExecIf("SIP/12345-0000005e", "1?Set(__REC_POLICY_MODE=dontcare)") in new stack
-- Executing [out@sub-record-check:2] GosubIf("SIP/12345-0000005e", "0?record,1(exten,573057120800,12345)") in new stack
-- Executing [out@sub-record-check:3] Return("SIP/12345-0000005e", "") in new stack
-- Executing [573057120800@from-internal:5] Macro("SIP/12345-0000005e", "dialout-trunk,2,573057120800,,off") in new stack
-- Executing [s@macro-dialout-trunk:1] Set("SIP/12345-0000005e", "DIAL_TRUNK=2") in new stack
-- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/12345-0000005e", "0?sub-pincheck,s,1()") in new stack
-- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/12345-0000005e", "0?disabletrunk,1") in new stack
-- Executing [s@macro-dialout-trunk:4] Set("SIP/12345-0000005e", "DIAL_NUMBER=573057120800") in new stack
-- Executing [s@macro-dialout-trunk:5] Set("SIP/12345-0000005e", "DIAL_TRUNK_OPTIONS=tr") in new stack
-- Executing [s@macro-dialout-trunk:6] Set("SIP/12345-0000005e", "OUTBOUND_GROUP=OUT_2") in new stack
-- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/12345-0000005e", "1?nomax") in new stack
-- Goto (macro-dialout-trunk,s,9)
-- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/12345-0000005e", "0?skipoutcid") in new stack
-- Executing [s@macro-dialout-trunk:10] Set("SIP/12345-0000005e", "DIAL_TRUNK_OPTIONS=") in new stack
-- Executing [s@macro-dialout-trunk:11] Macro("SIP/12345-0000005e", "outbound-callerid,2") in new stack
-- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/12345-0000005e", "0?Set(CALLERPRES()=)") in new stack
-- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/12345-0000005e", "0?Set(REALCALLERIDNUM=12345)") in new stack
-- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/12345-0000005e", "1?normcid") in new stack
-- Goto (macro-outbound-callerid,s,6)
-- Executing [s@macro-outbound-callerid:6] Set("SIP/12345-0000005e", "USEROUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:7] Set("SIP/12345-0000005e", "EMERGENCYCID=") in new stack
-- Executing [s@macro-outbound-callerid:8] Set("SIP/12345-0000005e", "TRUNKOUTCID=<20001045>") in new stack
-- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/12345-0000005e", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,14)
-- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/12345-0000005e", "1?Set(CALLERID(all)=<20001045>)") in new stack
-- Executing [s@macro-outbound-callerid:15] ExecIf("SIP/12345-0000005e", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:16] ExecIf("SIP/12345-0000005e", "1?Set(CALLERID(all)=<20001045>)") in new stack
-- Executing [s@macro-outbound-callerid:17] ExecIf("SIP/12345-0000005e", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
-- Executing [s@macro-outbound-callerid:18] Set("SIP/12345-0000005e", "CDR(outbound_cnum)=20001045") in new stack
-- Executing [s@macro-outbound-callerid:19] Set("SIP/12345-0000005e", "CDR(outbound_cnam)=") in new stack
-- Executing [s@macro-dialout-trunk:12] GosubIf("SIP/12345-0000005e", "0?sub-flp-2,s,1()") in new stack
-- Executing [s@macro-dialout-trunk:13] Set("SIP/12345-0000005e", "OUTNUM=573057120800") in new stack
-- Executing [s@macro-dialout-trunk:14] Set("SIP/12345-0000005e", "custom=SIP/20001045") in new stack
-- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/12345-0000005e", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusicdefault))") in new stack
-- Executing [s@macro-dialout-trunk:16] ExecIf("SIP/12345-0000005e", "0?Set(DIAL_TRUNK_OPTIONS=M(confirm))") in new stack
-- Executing [s@macro-dialout-trunk:17] Macro("SIP/12345-0000005e", "dialout-trunk-predial-hook,") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/12345-0000005e", "") in new stack
-- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/12345-0000005e", "0?bypass,1") in new stack
-- Executing [s@macro-dialout-trunk:19] ExecIf("SIP/12345-0000005e", "1?Set(CONNECTEDLINE(num,i)=573057120800)") in new stack
-- Executing [s@macro-dialout-trunk:20] ExecIf("SIP/12345-0000005e", "1?Set(CONNECTEDLINE(name,i)=CID:20001045)") in new stack
-- Executing [s@macro-dialout-trunk:21] GotoIf("SIP/12345-0000005e", "0?customtrunk") in new stack
-- Executing [s@macro-dialout-trunk:22] Dial("SIP/12345-0000005e", "SIP/20001045/573057120800,300,") in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Called SIP/20001045/573057120800
-- SIP/20001045-0000005f is making progress passing it to SIP/12345-0000005e
-- SIP/20001045-0000005f is ringing
-- SIP/20001045-0000005f answered SIP/12345-0000005e
[2018-02-08 19:26:02] NOTICE[3253]: chan_sip.c:28316 handle_request_register: Registration from '<sip:03@192.168.0.50;transport=UDP>' failed for '192.168.0.10:59698' - Wrong password
-- Executing [h@macro-dialout-trunk:1] Macro("SIP/12345-0000005e", "hangupcall,") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("SIP/12345-0000005e", "1?endmixmoncheck") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing [s@macro-hangupcall:9] NoOp("SIP/12345-0000005e", "End of MIXMON check") in new stack
-- Executing [s@macro-hangupcall:10] GotoIf("SIP/12345-0000005e", "1?nomeetmemon") in new stack
-- Goto (macro-hangupcall,s,28)
-- Executing [s@macro-hangupcall:28] NoOp("SIP/12345-0000005e", "End of MEETME check") in new stack
-- Executing [s@macro-hangupcall:29] GotoIf("SIP/12345-0000005e", "1?noautomon") in new stack
-- Goto (macro-hangupcall,s,34)
-- Executing [s@macro-hangupcall:34] NoOp("SIP/12345-0000005e", "TOUCH_MONITOR_OUTPUT=") in new stack
-- Executing [s@macro-hangupcall:35] GotoIf("SIP/12345-0000005e", "1?noautomon2") in new stack
-- Goto (macro-hangupcall,s,41)
-- Executing [s@macro-hangupcall:41] NoOp("SIP/12345-0000005e", "MONITOR_FILENAME=") in new stack
-- Executing [s@macro-hangupcall:42] GotoIf("SIP/12345-0000005e", "1?noautomon3") in new stack
-- Goto (macro-hangupcall,s,48)
-- Executing [s@macro-hangupcall:48] NoOp("SIP/12345-0000005e", "MIXMONITOR_FILENAME=") in new stack
-- Executing [s@macro-hangupcall:49] GotoIf("SIP/12345-0000005e", "1?noautomon4") in new stack
-- Goto (macro-hangupcall,s,51)
-- Executing [s@macro-hangupcall:51] NoOp("SIP/12345-0000005e", "ONETOUCH_RECFILE=") in new stack
-- Executing [s@macro-hangupcall:52] GotoIf("SIP/12345-0000005e", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,55)
-- Executing [s@macro-hangupcall:55] GotoIf("SIP/12345-0000005e", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,58)
-- Executing [s@macro-hangupcall:58] GotoIf("SIP/12345-0000005e", "1?theend") in new stack
-- Goto (macro-hangupcall,s,60)
-- Executing [s@macro-hangupcall:60] AGI("SIP/12345-0000005e", "hangup.agi") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/hangup.agi
-- <SIP/12345-0000005e>AGI Script hangup.agi completed, returning 0
-- Executing [s@macro-hangupcall:61] Hangup("SIP/12345-0000005e", "") in new stack
== Spawn extension (macro-hangupcall, s, 61) exited non-zero on 'SIP/12345-0000005e' in macro 'hangupcall'
== Spawn extension (macro-dialout-trunk, h, 1) exited non-zero on 'SIP/12345-0000005e'
== Spawn extension (macro-dialout-trunk, s, 22) exited non-zero on 'SIP/12345-0000005e' in macro 'dialout-trunk'
== Spawn extension (from-internal, 573057120800, 5) exited non-zero on 'SIP/12345-0000005e'
[2018-02-08 19:26:34] NOTICE[3253]: chan_sip.c:28316 handle_request_register: Registration from '<sip:03@192.168.0.50;transport=UDP>' failed for '192.168.0.10:59698' - Wrong password
siphonevoiptonoli1CLI>