Skip to content

Instantly share code, notes, and snippets.

@opr
Created July 22, 2019 16:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save opr/09ccf8703729190481378aff6ed1a6ce to your computer and use it in GitHub Desktop.
Save opr/09ccf8703729190481378aff6ed1a6ce to your computer and use it in GitHub Desktop.
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
> 0x7fbf2402ab20 -- Strict RTP learning after remote address set to: 192.168.0.10:19328
-- Executing [07807801234@from-internal:1] Macro("SIP/201-0000003a", "user-callerid,LIMIT,EXTERNAL,") in new stack
-- Executing [s@macro-user-callerid:1] Set("SIP/201-0000003a", "TOUCH_MONITOR=1563813517.58") in new stack
-- Executing [s@macro-user-callerid:2] Set("SIP/201-0000003a", "AMPUSER=201") in new stack
-- Executing [s@macro-user-callerid:3] GotoIf("SIP/201-0000003a", "0?report") in new stack
-- Executing [s@macro-user-callerid:4] ExecIf("SIP/201-0000003a", "1?Set(REALCALLERIDNUM=201)") in new stack
-- Executing [s@macro-user-callerid:5] Set("SIP/201-0000003a", "AMPUSER=201") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("SIP/201-0000003a", "0?limit") in new stack
-- Executing [s@macro-user-callerid:7] Set("SIP/201-0000003a", "AMPUSERCIDNAME=201") in new stack
-- Executing [s@macro-user-callerid:8] ExecIf("SIP/201-0000003a", "0?Set(__CIDMASQUERADING=TRUE)") in new stack
-- Executing [s@macro-user-callerid:9] GotoIf("SIP/201-0000003a", "0?report") in new stack
-- Executing [s@macro-user-callerid:10] Set("SIP/201-0000003a", "AMPUSERCID=201") in new stack
-- Executing [s@macro-user-callerid:11] Set("SIP/201-0000003a", "__DIAL_OPTIONS=HhTtr") in new stack
-- Executing [s@macro-user-callerid:12] Set("SIP/201-0000003a", "CALLERID(all)="201" <201>") in new stack
-- Executing [s@macro-user-callerid:13] GotoIf("SIP/201-0000003a", "0?limit") in new stack
-- Executing [s@macro-user-callerid:14] ExecIf("SIP/201-0000003a", "1?Set(GROUP(concurrency_limit)=201)") in new stack
-- Executing [s@macro-user-callerid:15] ExecIf("SIP/201-0000003a", "0?Set(CHANNEL(language)=)") in new stack
-- Executing [s@macro-user-callerid:16] NoOp("SIP/201-0000003a", "Macro Depth is 1") in new stack
-- Executing [s@macro-user-callerid:17] GotoIf("SIP/201-0000003a", "1?report2:macroerror") in new stack
-- Goto (macro-user-callerid,s,18)
-- Executing [s@macro-user-callerid:18] GotoIf("SIP/201-0000003a", "1?continue") in new stack
-- Goto (macro-user-callerid,s,37)
-- Executing [s@macro-user-callerid:37] Set("SIP/201-0000003a", "CALLERID(number)=201") in new stack
-- Executing [s@macro-user-callerid:38] Set("SIP/201-0000003a", "CALLERID(name)=201") in new stack
-- Executing [s@macro-user-callerid:39] GotoIf("SIP/201-0000003a", "0?cnum") in new stack
-- Executing [s@macro-user-callerid:40] Set("SIP/201-0000003a", "CDR(cnam)=201") in new stack
-- Executing [s@macro-user-callerid:41] Set("SIP/201-0000003a", "CDR(cnum)=201") in new stack
-- Executing [s@macro-user-callerid:42] Set("SIP/201-0000003a", "CHANNEL(language)=en") in new stack
-- Executing [07807801234@from-internal:2] Gosub("SIP/201-0000003a", "sub-record-check,s,1(out,07807801234,dontcare)") in new stack
-- Executing [s@sub-record-check:1] GotoIf("SIP/201-0000003a", "0?initialized") in new stack
-- Executing [s@sub-record-check:2] Set("SIP/201-0000003a", "__REC_STATUS=INITIALIZED") in new stack
-- Executing [s@sub-record-check:3] Set("SIP/201-0000003a", "NOW=1563813517") in new stack
-- Executing [s@sub-record-check:4] Set("SIP/201-0000003a", "__DAY=22") in new stack
-- Executing [s@sub-record-check:5] Set("SIP/201-0000003a", "__MONTH=07") in new stack
-- Executing [s@sub-record-check:6] Set("SIP/201-0000003a", "__YEAR=2019") in new stack
-- Executing [s@sub-record-check:7] Set("SIP/201-0000003a", "__TIMESTR=20190722-163837") in new stack
-- Executing [s@sub-record-check:8] Set("SIP/201-0000003a", "__FROMEXTEN=201") in new stack
-- Executing [s@sub-record-check:9] Set("SIP/201-0000003a", "__MON_FMT=wav") in new stack
-- Executing [s@sub-record-check:10] NoOp("SIP/201-0000003a", "Recordings initialized") in new stack
-- Executing [s@sub-record-check:11] ExecIf("SIP/201-0000003a", "0?Set(ARG3=dontcare)") in new stack
-- Executing [s@sub-record-check:12] Set("SIP/201-0000003a", "REC_POLICY_MODE_SAVE=") in new stack
-- Executing [s@sub-record-check:13] ExecIf("SIP/201-0000003a", "0?Set(REC_STATUS=NO)") in new stack
-- Executing [s@sub-record-check:14] GotoIf("SIP/201-0000003a", "3?checkaction") in new stack
-- Goto (sub-record-check,s,17)
-- Executing [s@sub-record-check:17] GotoIf("SIP/201-0000003a", "1?sub-record-check,out,1") in new stack
-- Goto (sub-record-check,out,1)
-- Executing [out@sub-record-check:1] NoOp("SIP/201-0000003a", "Outbound Recording Check from 201 to 07807801234") in new stack
-- Executing [out@sub-record-check:2] Set("SIP/201-0000003a", "RECMODE=dontcare") in new stack
-- Executing [out@sub-record-check:3] ExecIf("SIP/201-0000003a", "1?Goto(routewins)") in new stack
-- Goto (sub-record-check,out,7)
-- Executing [out@sub-record-check:7] Gosub("SIP/201-0000003a", "recordcheck,1(dontcare,out,07807801234)") in new stack
-- Executing [recordcheck@sub-record-check:1] NoOp("SIP/201-0000003a", "Starting recording check against dontcare") in new stack
-- Executing [recordcheck@sub-record-check:2] Goto("SIP/201-0000003a", "dontcare") in new stack
-- Goto (sub-record-check,recordcheck,3)
-- Executing [recordcheck@sub-record-check:3] Return("SIP/201-0000003a", "") in new stack
-- Executing [out@sub-record-check:8] Return("SIP/201-0000003a", "") in new stack
-- Executing [07807801234@from-internal:3] ExecIf("SIP/201-0000003a", "0 ?Set(CDR(accountcode)=)") in new stack
-- Executing [07807801234@from-internal:4] Set("SIP/201-0000003a", "MOHCLASS=default") in new stack
-- Executing [07807801234@from-internal:5] ExecIf("SIP/201-0000003a", "1?Set(TRUNKCIDOVERRIDE=+441515411234)") in new stack
-- Executing [07807801234@from-internal:6] Set("SIP/201-0000003a", "_NODEST=") in new stack
-- Executing [07807801234@from-internal:7] Macro("SIP/201-0000003a", "dialout-trunk,1,+447807801234,,off") in new stack
-- Executing [s@macro-dialout-trunk:1] Set("SIP/201-0000003a", "DIAL_TRUNK=1") in new stack
-- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/201-0000003a", "0?sub-pincheck,s,1()") in new stack
-- Executing [s@macro-dialout-trunk:3] ExecIf("SIP/201-0000003a", "0?Set(CALLERID(num)=201)") in new stack
-- Executing [s@macro-dialout-trunk:4] GotoIf("SIP/201-0000003a", "0?disabletrunk,1") in new stack
-- Executing [s@macro-dialout-trunk:5] Set("SIP/201-0000003a", "DIAL_NUMBER=+447807801234") in new stack
-- Executing [s@macro-dialout-trunk:6] Set("SIP/201-0000003a", "DIAL_TRUNK_OPTIONS=HhTtr") in new stack
-- Executing [s@macro-dialout-trunk:7] Set("SIP/201-0000003a", "OUTBOUND_GROUP=OUT_1") in new stack
-- Executing [s@macro-dialout-trunk:8] Set("SIP/201-0000003a", "DIAL_TRUNK_OPTIONS=T") in new stack
-- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/201-0000003a", "1?nomax") in new stack
-- Goto (macro-dialout-trunk,s,11)
-- Executing [s@macro-dialout-trunk:11] GotoIf("SIP/201-0000003a", "0?skipoutcid") in new stack
-- Executing [s@macro-dialout-trunk:12] Macro("SIP/201-0000003a", "outbound-callerid,1") in new stack
-- Executing [s@macro-outbound-callerid:1] NoOp("SIP/201-0000003a", "201") in new stack
-- Executing [s@macro-outbound-callerid:2] NoOp("SIP/201-0000003a", "") in new stack
-- Executing [s@macro-outbound-callerid:3] NoOp("SIP/201-0000003a", "off") in new stack
-- Executing [s@macro-outbound-callerid:4] ExecIf("SIP/201-0000003a", "0?Set(CALLERPRES(name-pres)=)") in new stack
-- Executing [s@macro-outbound-callerid:5] ExecIf("SIP/201-0000003a", "0?Set(CALLERPRES(num-pres)=)") in new stack
-- Executing [s@macro-outbound-callerid:6] ExecIf("SIP/201-0000003a", "0?Set(REALCALLERIDNUM=201)") in new stack
-- Executing [s@macro-outbound-callerid:7] GotoIf("SIP/201-0000003a", "1?normcid") in new stack
-- Goto (macro-outbound-callerid,s,11)
-- Executing [s@macro-outbound-callerid:11] Set("SIP/201-0000003a", "USEROUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:12] Set("SIP/201-0000003a", "EMERGENCYCID=") in new stack
-- Executing [s@macro-outbound-callerid:13] Set("SIP/201-0000003a", "TRUNKOUTCID=+441515411234") in new stack
-- Executing [s@macro-outbound-callerid:14] GotoIf("SIP/201-0000003a", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,19)
-- Executing [s@macro-outbound-callerid:19] ExecIf("SIP/201-0000003a", "1?Set(CALLERID(all)=+441515411234)") in new stack
-- Executing [s@macro-outbound-callerid:20] ExecIf("SIP/201-0000003a", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:21] ExecIf("SIP/201-0000003a", "1?Set(CALLERID(all)=+441515411234)") in new stack
-- Executing [s@macro-outbound-callerid:22] ExecIf("SIP/201-0000003a", "0?Set(CALLERPRES(name-pres)=prohib_passed_screen)") in new stack
-- Executing [s@macro-outbound-callerid:23] ExecIf("SIP/201-0000003a", "0?Set(CALLERPRES(num-pres)=prohib_passed_screen)") in new stack
-- Executing [s@macro-outbound-callerid:24] Set("SIP/201-0000003a", "CDR(outbound_cnum)=+441515411234") in new stack
-- Executing [s@macro-outbound-callerid:25] Set("SIP/201-0000003a", "CDR(outbound_cnam)=") in new stack
-- Executing [s@macro-dialout-trunk:13] GosubIf("SIP/201-0000003a", "0?sub-flp-1,s,1()") in new stack
-- Executing [s@macro-dialout-trunk:14] Set("SIP/201-0000003a", "OUTNUM=+447807801234") in new stack
-- Executing [s@macro-dialout-trunk:15] Set("SIP/201-0000003a", "custom=SIP/Darwin HQ Trunk") in new stack
-- Executing [s@macro-dialout-trunk:16] ExecIf("SIP/201-0000003a", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)T)") in new stack
-- Executing [s@macro-dialout-trunk:17] ExecIf("SIP/201-0000003a", "0?Set(DIAL_TRUNK_OPTIONS=TM(confirm))") in new stack
-- Executing [s@macro-dialout-trunk:18] Macro("SIP/201-0000003a", "dialout-trunk-predial-hook,") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/201-0000003a", "") in new stack
-- Executing [s@macro-dialout-trunk:19] GotoIf("SIP/201-0000003a", "0?skipcrm") in new stack
-- Executing [s@macro-dialout-trunk:20] Set("SIP/201-0000003a", "__CRM_DIRECTION=OUTBOUND") in new stack
-- Executing [s@macro-dialout-trunk:21] Set("SIP/201-0000003a", "__CRM_DESTINATION=+447807801234") in new stack
-- Executing [s@macro-dialout-trunk:22] Set("SIP/201-0000003a", "__CRM_SOURCE=201") in new stack
-- Executing [s@macro-dialout-trunk:23] AGI("SIP/201-0000003a", "sangomacrm.agi") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/sangomacrm.agi
-- <SIP/201-0000003a>AGI Script sangomacrm.agi completed, returning 0
-- Executing [s@macro-dialout-trunk:24] Set("SIP/201-0000003a", "CHANNEL(hangup_handler_push)=crm-hangup,s,1") in new stack
-- Executing [s@macro-dialout-trunk:25] NoOp("SIP/201-0000003a", "CRM Finished") in new stack
-- Executing [s@macro-dialout-trunk:26] GotoIf("SIP/201-0000003a", "0?bypass,1") in new stack
-- Executing [s@macro-dialout-trunk:27] ExecIf("SIP/201-0000003a", "1?Set(CONNECTEDLINE(num,i)=+447807801234)") in new stack
-- Executing [s@macro-dialout-trunk:28] ExecIf("SIP/201-0000003a", "1?Set(CONNECTEDLINE(name,i)=CID:+441515411234)") in new stack
-- Executing [s@macro-dialout-trunk:29] ExecIf("SIP/201-0000003a", "0?Set(CONNECTEDLINE(name,i)=CID:(Hidden)+441515411234)") in new stack
-- Executing [s@macro-dialout-trunk:30] GotoIf("SIP/201-0000003a", "0?customtrunk") in new stack
-- Executing [s@macro-dialout-trunk:31] Dial("SIP/201-0000003a", "SIP/Darwin HQ Trunk/+447807801234,300,Tb(func-apply-sipheaders^s^1)") in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- SIP/Darwin HQ Trunk-0000003b Internal Gosub(func-apply-sipheaders,s,1) start
-- Executing [s@func-apply-sipheaders:1] ExecIf("SIP/Darwin HQ Trunk-0000003b", "0?Set(CHANNEL(hangup_handler_push)=crm-hangup,s,1)") in new stack
-- Executing [s@func-apply-sipheaders:2] NoOp("SIP/Darwin HQ Trunk-0000003b", "Applying SIP Headers to channel") in new stack
-- Executing [s@func-apply-sipheaders:3] Set("SIP/Darwin HQ Trunk-0000003b", "SIPHEADERKEYS=") in new stack
-- Executing [s@func-apply-sipheaders:4] While("SIP/Darwin HQ Trunk-0000003b", "0") in new stack
-- Jumping to priority 7
-- Executing [s@func-apply-sipheaders:8] Return("SIP/Darwin HQ Trunk-0000003b", "") in new stack
== Spawn extension (from-trunk, 07807801234, 1) exited non-zero on 'SIP/Darwin HQ Trunk-0000003b'
-- SIP/Darwin HQ Trunk-0000003b Internal Gosub(func-apply-sipheaders,s,1) complete GOSUB_RETVAL=
-- Called SIP/Darwin HQ Trunk/+447807801234
-- SIP/Darwin HQ Trunk-0000003b is ringing
> 0x7fbf200aec60 -- Strict RTP learning after remote address set to: 52.215.127.197:17002
-- SIP/Darwin HQ Trunk-0000003b is making progress passing it to SIP/201-0000003a
> 0x7fbf2402ab20 -- Strict RTP switching to RTP target address 192.168.0.10:19328 as source
> 0x7fbf200aec60 -- Strict RTP switching to RTP target address 52.215.127.197:17002 as source
-- SIP/Darwin HQ Trunk-0000003b is ringing
[2019-07-22 16:38:40] WARNING[2008]: chan_sip.c:4065 retrans_pkt: Retransmission timeout reached on transmission 1102220850-223720644-610529018 for seqno 1 (Critical Response) -- See https://wiki.asterisk.org/wiki/display/AST/SIP+Retransmissions
Packet timed out after 32000ms with no response
> 0x7fbf2402ab20 -- Strict RTP learning complete - Locking on source address 192.168.0.10:19328
[2019-07-22 16:38:42] WARNING[2008]: chan_sip.c:4065 retrans_pkt: Retransmission timeout reached on transmission 001bd40b-6b520047-25dbf5a8-436d6c0f@192.168.0.10 for seqno 102 (Critical Response) -- See https://wiki.asterisk.org/wiki/display/AST/SIP+Retransmissions
Packet timed out after 9728ms with no response
== Spawn extension (macro-dialout-trunk, s, 31) exited non-zero on 'SIP/201-0000003a' in macro 'dialout-trunk'
== Spawn extension (from-internal, 07807801234, 7) exited non-zero on 'SIP/201-0000003a'
-- Executing [h@from-internal:1] Macro("SIP/201-0000003a", "hangupcall") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("SIP/201-0000003a", "1?theend") in new stack
-- Goto (macro-hangupcall,s,3)
-- Executing [s@macro-hangupcall:3] ExecIf("SIP/201-0000003a", "0?Set(CDR(recordingfile)=)") in new stack
-- Executing [s@macro-hangupcall:4] NoOp("SIP/201-0000003a", "SIP/Darwin HQ Trunk-0000003b monior file= ") in new stack
-- Executing [s@macro-hangupcall:5] AGI("SIP/201-0000003a", "attendedtransfer-rec-restart.php,SIP/Darwin HQ Trunk-0000003b,") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/attendedtransfer-rec-restart.php
-- <SIP/201-0000003a>AGI Script attendedtransfer-rec-restart.php completed, returning 0
-- Executing [s@macro-hangupcall:6] Hangup("SIP/201-0000003a", "") in new stack
== Spawn extension (macro-hangupcall, s, 6) exited non-zero on 'SIP/201-0000003a' in macro 'hangupcall'
== Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/201-0000003a'
-- SIP/201-0000003a Internal Gosub(crm-hangup,s,1) start
-- Executing [s@crm-hangup:1] NoOp("SIP/201-0000003a", "Sending Hangup to CRM") in new stack
-- Executing [s@crm-hangup:2] NoOp("SIP/201-0000003a", "HANGUP CAUSE: 16") in new stack
-- Executing [s@crm-hangup:3] ExecIf("SIP/201-0000003a", "0?Set(__CRM_VOICEMAIL=)") in new stack
-- Executing [s@crm-hangup:4] NoOp("SIP/201-0000003a", "MASTER CHANNEL: 1563813517.58 = 1563813517.58") in new stack
-- Executing [s@crm-hangup:5] GotoIf("SIP/201-0000003a", "0?return") in new stack
-- Executing [s@crm-hangup:6] Set("SIP/201-0000003a", "__CRM_HANGUP=1") in new stack
-- Executing [s@crm-hangup:7] AGI("SIP/201-0000003a", "sangomacrm.agi") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/sangomacrm.agi
-- <SIP/201-0000003a>AGI Script sangomacrm.agi completed, returning 0
-- Executing [s@crm-hangup:8] Return("SIP/201-0000003a", "") in new stack
== Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/201-0000003a'
-- SIP/201-0000003a Internal Gosub(crm-hangup,s,1) complete GOSUB_RETVAL=
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment