I am not sure if I am allowed to do this but this is the output from my asterisk cli:
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
== Using SIP VRTP TOS bits 136
== Using SIP VRTP CoS mark 6
– Executing [[email protected]:1] Macro(“SIP/6358-00000026”, “user-callerid,SKIPTTL,”) in new stack
– Executing [[email protected]:1] Set(“SIP/6358-00000026”, “AMPUSER=6358”) in new stack
– Executing [[email protected]:2] GotoIf(“SIP/6358-00000026”, “0?report”) in new stack
– Executing [[email protected]:3] ExecIf(“SIP/6358-00000026”, “1?Set(REALCALLERIDNUM=6358)”) in new stack
– Executing [[email protected]:4] Set(“SIP/6358-00000026”, “AMPUSER=6358”) in new stack
– Executing [[email protected]:5] Set(“SIP/6358-00000026”, “AMPUSERCIDNAME=Anushree Takalkar”) in new stack
– Executing [[email protected]:6] GotoIf(“SIP/6358-00000026”, “0?report”) in new stack
– Executing [[email protected]:7] Set(“SIP/6358-00000026”, “AMPUSERCID=6358”) in new stack
– Executing [[email protected]:8] Set(“SIP/6358-00000026”, “CALLERID(all)=“Anushree Takalkar” <6358>”) in new stack
– Executing [[email protected]:9] ExecIf(“SIP/6358-00000026”, “0?Set(CHANNEL(language)=)”) in new stack
– Executing [[email protected]:10] GotoIf(“SIP/6358-00000026”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,19)
– Executing [[email protected]:19] NoOp(“SIP/6358-00000026”, “Using CallerID “Anushree Takalkar” <6358>”) in new stack
– Executing [[email protected]:2] Set(“SIP/6358-00000026”, “_NODEST=”) in new stack
– Executing [[email protected]:3] Macro(“SIP/6358-00000026”, “record-enable,6358,OUT,”) in new stack
– Executing [[email protected]:1] GotoIf(“SIP/6358-00000026”, “1?check”) in new stack
– Goto (macro-record-enable,s,4)
– Executing [[email protected]:4] AGI(“SIP/6358-00000026”, “recordingcheck,20130115-133002,1358274602.51”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
recordingcheck,20130115-133002,1358274602.51: Outbound recording not enabled
– <SIP/6358-00000026>AGI Script recordingcheck completed, returning 0
– Executing [[email protected]:5] MacroExit(“SIP/6358-00000026”, “”) in new stack
– Executing [[email protected]:4] Macro(“SIP/6358-00000026”, “dialout-trunk,3,0017408172415,86245,”) in new stack
– Executing [[email protected]:1] Set(“SIP/6358-00000026”, “DIAL_TRUNK=3”) in new stack
– Executing [[email protected]:2] GosubIf(“SIP/6358-00000026”, “1?sub-pincheck,s,1”) in new stack
– Executing [[email protected]:1] Authenticate(“SIP/6358-00000026”, “86245,”) in new stack
– <SIP/6358-00000026> Playing ‘agent-pass.gsm’ (language ‘en’)
– <SIP/6358-00000026> Playing ‘auth-thankyou.gsm’ (language ‘en’)
– Executing [[email protected]:2] ResetCDR(“SIP/6358-00000026”, “”) in new stack
– Executing [[email protected]:3] Return(“SIP/6358-00000026”, “”) in new stack
– Executing [[email protected]:3] GotoIf(“SIP/6358-00000026”, “0?disabletrunk,1”) in new stack
– Executing [[email protected]:4] Set(“SIP/6358-00000026”, “DIAL_NUMBER=0017408172415”) in new stack
– Executing [[email protected]:5] Set(“SIP/6358-00000026”, “DIAL_TRUNK_OPTIONS=tr”) in new stack
– Executing [[email protected]:6] Set(“SIP/6358-00000026”, “OUTBOUND_GROUP=OUT_3”) in new stack
– Executing [[email protected]:7] GotoIf(“SIP/6358-00000026”, “0?nomax”) in new stack
– Executing [[email protected]:8] GotoIf(“SIP/6358-00000026”, “0?chanfull”) in new stack
– Executing [[email protected]:9] GotoIf(“SIP/6358-00000026”, “0?skipoutcid”) in new stack
– Executing [[email protected]:10] Set(“SIP/6358-00000026”, “DIAL_TRUNK_OPTIONS=”) in new stack
– Executing [[email protected]:11] Macro(“SIP/6358-00000026”, “outbound-callerid,3”) in new stack
– Executing [[email protected]:1] ExecIf(“SIP/6358-00000026”, “0?Set(CALLERPRES()=)”) in new stack
– Executing [[email protected]:2] ExecIf(“SIP/6358-00000026”, “0?Set(REALCALLERIDNUM=6358)”) in new stack
– Executing [[email protected]:3] GotoIf(“SIP/6358-00000026”, “1?normcid”) in new stack
– Goto (macro-outbound-callerid,s,6)
– Executing [[email protected]:6] Set(“SIP/6358-00000026”, "USEROUTCID=“Anushree Takalkar " <2267803358>”) in new stack
– Executing [[email protected]:7] Set(“SIP/6358-00000026”, "EMERGENCYCID=“Anushree Takalkar " <2267803358>”) in new stack
– Executing [[email protected]:8] Set(“SIP/6358-00000026”, “TRUNKOUTCID=”) in new stack
– Executing [[email protected]:9] GotoIf(“SIP/6358-00000026”, “1?trunkcid”) in new stack
– Goto (macro-outbound-callerid,s,12)
– Executing [[email protected]:12] ExecIf(“SIP/6358-00000026”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [[email protected]:13] ExecIf(“SIP/6358-00000026”, "1?Set(CALLERID(all)=“Anushree Takalkar " <2267803358>)”) in new stack
– Executing [[email protected]:14] ExecIf(“SIP/6358-00000026”, “0?Set(CALLERPRES()=prohib_passed_screen)”) in new stack
– Executing [[email protected]:12] ExecIf(“SIP/6358-00000026”, “1?AGI(fixlocalprefix)”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
> fixlocalprefix: Using pattern 0119122|67803333
> fixlocalprefix: Using pattern 9122|67803333
> fixlocalprefix: Using pattern 001+614NXXXXXX
> fixlocalprefix: Using pattern 00+1614NXXXXXX
> fixlocalprefix: Using pattern 01191|22678032XX
– <SIP/6358-00000026>AGI Script fixlocalprefix completed, returning 0
– Executing [[email protected]:13] Set(“SIP/6358-00000026”, “OUTNUM=0017408172415”) in new stack
– Executing [[email protected]:14] Set(“SIP/6358-00000026”, “custom=IAX2/wdindiapri”) in new stack
– Executing [[email protected]:15] ExecIf(“SIP/6358-00000026”, “0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^))”) in new stack
– Executing [[email protected]:16] Macro(“SIP/6358-00000026”, “dialout-trunk-predial-hook,”) in new stack
– Executing [[email protected]:1] MacroExit(“SIP/6358-00000026”, “”) in new stack
– Executing [[email protected]:17] GotoIf(“SIP/6358-00000026”, “0?bypass,1”) in new stack
– Executing [[email protected]:18] GotoIf(“SIP/6358-00000026”, “0?customtrunk”) in new stack
– Executing [[email protected]:19] Dial(“SIP/6358-00000026”, “IAX2/wdindiapri/0017408172415,300,”) in new stack
– Called wdindiapri/0017408172415
– Call accepted by 192.168.40.50 (format ulaw)
– Format for call is ulaw
– Hungup ‘IAX2/wdindiapri-16733’
– No one is available to answer at this time (1:0/0/0)
– Executing [[email protected]:20] Goto(“SIP/6358-00000026”, “s-NOANSWER,1”) in new stack
– Goto (macro-dialout-trunk,s-NOANSWER,1)
– Executing [[email protected]:1] NoOp(“SIP/6358-00000026”, “Dial failed due to trunk reporting NOANSWER - giving up”) in new stack
– Executing [[email protected]:2] PlayTones(“SIP/6358-00000026”, “congestion”) in new stack
– Executing [[email protected]:3] Congestion(“SIP/6358-00000026”, “20”) in new stack
== Spawn extension (macro-dialout-trunk, s-NOANSWER, 3) exited non-zero on ‘SIP/6358-00000026’ in macro ‘dialout-trunk’
== Spawn extension (from-internal, 0017408172415, 4) exited non-zero on ‘SIP/6358-00000026’
– Executing [[email protected]:1] Macro(“SIP/6358-00000026”, “hangupcall”) in new stack
– Executing [[email protected]:1] GotoIf(“SIP/6358-00000026”, “1?skiprg”) in new stack
– Goto (macro-hangupcall,s,4)
– Executing [[email protected]:4] GotoIf(“SIP/6358-00000026”, “1?skipblkvm”) in new stack
– Goto (macro-hangupcall,s,7)
– Executing [[email protected]:7] GotoIf(“SIP/6358-00000026”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,9)
– Executing [[email protected]:9] Hangup(“SIP/6358-00000026”, “”) in new stack
== Spawn extension (macro-hangupcall, s, 9) exited non-zero on ‘SIP/6358-00000026’ in macro ‘hangupcall’
== Spawn extension (from-internal, h, 1) exited non-zero on ‘SIP/6358-00000026’