Hello, Need some help with an outbound trunk. Currently have ATT PRI with 15 channels. Trunk configured from what I can see correctly and OutBound route is set as a allow everything for testing but unable to make a call out. “all circuits are busy”
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Executing [6523126@from-internal:1] Macro(“SIP/106-00000003”, “user-callerid,LIMIT”) in new stack
– Executing [s@macro-user-callerid:1] Set(“SIP/106-00000003”, “TOUCH_MONITOR=1548704927.19”) in new stack
– Executing [s@macro-user-callerid:2] Set(“SIP/106-00000003”, “AMPUSER=106”) in new stack
– Executing [s@macro-user-callerid:3] GotoIf(“SIP/106-00000003”, “0?report”) in new stack
– Executing [s@macro-user-callerid:4] ExecIf(“SIP/106-00000003”, “1?Set(REALCALLERIDNUM=106)”) in new stack
– Executing [s@macro-user-callerid:5] Set(“SIP/106-00000003”, “AMPUSER=106”) in new stack
– Executing [s@macro-user-callerid:6] GotoIf(“SIP/106-00000003”, “0?limit”) in new stack
– Executing [s@macro-user-callerid:7] Set(“SIP/106-00000003”, "AMPUSERCIDNAME=Jeremy Barrow ") in new stack
– Executing [s@macro-user-callerid:8] ExecIf(“SIP/106-00000003”, “0?Set(__CIDMASQUERADING=TRUE)”) in new stack
– Executing [s@macro-user-callerid:9] GotoIf(“SIP/106-00000003”, “0?report”) in new stack
– Executing [s@macro-user-callerid:10] Set(“SIP/106-00000003”, “AMPUSERCID=106”) in new stack
– Executing [s@macro-user-callerid:11] Set(“SIP/106-00000003”, “__DIAL_OPTIONS=HhTtr”) in new stack
– Executing [s@macro-user-callerid:12] Set(“SIP/106-00000003”, "CALLERID(all)=“Jeremy Barrow " <106>”) in new stack
[2019-01-28 19:48:47] WARNING[27847][C-00000003]: ast_expr2.fl:470 ast_yyerror: ast_yyerror(): syntax error: syntax error, unexpected ‘>’, expecting ‘-’ or ‘!’ or ‘(’ or ‘’; Input:
"LIMIT"=“LIMIT” & 3 & 1 & >0 & 0>=
** ^**
[2019-01-28 19:48:47] WARNING[27847][C-00000003]: ast_expr2.fl:474 ast_yyerror: If you have questions, please refer to https://wiki.asterisk.org/wiki/display/AST/Channel+Variables
– Executing [s@macro-user-callerid:13] GotoIf(“SIP/106-00000003”, “0?limit”) in new stack
– Executing [s@macro-user-callerid:14] ExecIf(“SIP/106-00000003”, “1?Set(GROUP(concurrency_limit)=106)”) in new stack
– Executing [s@macro-user-callerid:15] ExecIf(“SIP/106-00000003”, “0?Set(CHANNEL(language)=)”) in new stack
– Executing [s@macro-user-callerid:16] NoOp(“SIP/106-00000003”, “Macro Depth is 1”) in new stack
– Executing [s@macro-user-callerid:17] GotoIf(“SIP/106-00000003”, “1?report2:macroerror”) in new stack
– Goto (macro-user-callerid,s,18)
– Executing [s@macro-user-callerid:18] GotoIf(“SIP/106-00000003”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,37)
– Executing [s@macro-user-callerid:37] Set(“SIP/106-00000003”, “CALLERID(number)=106”) in new stack
– Executing [s@macro-user-callerid:38] Set(“SIP/106-00000003”, "CALLERID(name)=Jeremy Barrow ") in new stack
– Executing [s@macro-user-callerid:39] GotoIf(“SIP/106-00000003”, “0?cnum”) in new stack
– Executing [s@macro-user-callerid:40] Set(“SIP/106-00000003”, “CDR(cnam)=Jeremy Barrow”) in new stack
– Executing [s@macro-user-callerid:41] Set(“SIP/106-00000003”, “CDR(cnum)=106”) in new stack
– Executing [s@macro-user-callerid:42] Set(“SIP/106-00000003”, “CHANNEL(language)=en”) in new stack
– Executing [6523126@from-internal:2] Set(“SIP/106-00000003”, “ROUTEUSER=106”) in new stack
– Executing [6523126@from-internal:3] Set(“SIP/106-00000003”, “ROUTEUSER=106”) in new stack
– Executing [6523126@from-internal:4] GotoIf(“SIP/106-00000003”, “1?notblind”) in new stack
– Goto (from-internal,6523126,7)
– Executing [6523126@from-internal:7] GotoIf(“SIP/106-00000003”, “1?restrictedroute-5aee0cc44da9dd93c7b7f7493389cea8,6523126,2:outbound-allroutes,6523126,2”) in new stack
– Goto (restrictedroute-5aee0cc44da9dd93c7b7f7493389cea8,6523126,2)
– Executing [6523126@restrictedroute-5aee0cc44da9dd93c7b7f7493389cea8:2] Gosub(“SIP/106-00000003”, “sub-record-check,s,1(out,6523126,dontcare)”) in new stack
– Executing [s@sub-record-check:1] GotoIf(“SIP/106-00000003”, “0?initialized”) in new stack
– Executing [s@sub-record-check:2] Set(“SIP/106-00000003”, “__REC_STATUS=INITIALIZED”) in new stack
– Executing [s@sub-record-check:3] Set(“SIP/106-00000003”, “NOW=1548704927”) in new stack
– Executing [s@sub-record-check:4] Set(“SIP/106-00000003”, “__DAY=28”) in new stack
– Executing [s@sub-record-check:5] Set(“SIP/106-00000003”, “__MONTH=01”) in new stack
– Executing [s@sub-record-check:6] Set(“SIP/106-00000003”, “__YEAR=2019”) in new stack
– Executing [s@sub-record-check:7] Set(“SIP/106-00000003”, “__TIMESTR=20190128-194847”) in new stack
== Extension Changed 106[ext-local] new state InUse for Notify User 101
– Executing [s@sub-record-check:8] Set(“SIP/106-00000003”, “__FROMEXTEN=106”) in new stack
– Executing [s@sub-record-check:9] Set(“SIP/106-00000003”, “__MON_FMT=wav”) in new stack
– Executing [s@sub-record-check:10] NoOp(“SIP/106-00000003”, “Recordings initialized”) in new stack
– Executing [s@sub-record-check:11] ExecIf(“SIP/106-00000003”, “0?Set(ARG3=dontcare)”) in new stack
– Executing [s@sub-record-check:12] Set(“SIP/106-00000003”, “REC_POLICY_MODE_SAVE=”) in new stack
– Executing [s@sub-record-check:13] ExecIf(“SIP/106-00000003”, “0?Set(REC_STATUS=NO)”) in new stack
– Executing [s@sub-record-check:14] GotoIf(“SIP/106-00000003”, “3?checkaction”) in new stack
– Goto (sub-record-check,s,17)
– Executing [s@sub-record-check:17] GotoIf(“SIP/106-00000003”, “1?sub-record-check,out,1”) in new stack
– Goto (sub-record-check,out,1)
– Executing [out@sub-record-check:1] NoOp(“SIP/106-00000003”, “Outbound Recording Check from 106 to 6523126”) in new stack
– Executing [out@sub-record-check:2] Set(“SIP/106-00000003”, “RECMODE=dontcare”) in new stack
– Executing [out@sub-record-check:3] ExecIf(“SIP/106-00000003”, “1?Goto(routewins)”) in new stack
– Goto (sub-record-check,out,7)
– Executing [out@sub-record-check:7] Gosub(“SIP/106-00000003”, “recordcheck,1(dontcare,out,6523126)”) in new stack
– Executing [recordcheck@sub-record-check:1] NoOp(“SIP/106-00000003”, “Starting recording check against dontcare”) in new stack
– Executing [recordcheck@sub-record-check:2] Goto(“SIP/106-00000003”, “dontcare”) in new stack
– Goto (sub-record-check,recordcheck,3)
– Executing [recordcheck@sub-record-check:3] Return(“SIP/106-00000003”, “”) in new stack
– Executing [out@sub-record-check:8] Return(“SIP/106-00000003”, “”) in new stack
– Executing [6523126@restrictedroute-5aee0cc44da9dd93c7b7f7493389cea8:3] ExecIf(“SIP/106-00000003”, “0 ?Set(CDR(accountcode)=)”) in new stack
– Executing [6523126@restrictedroute-5aee0cc44da9dd93c7b7f7493389cea8:4] Set(“SIP/106-00000003”, “MOHCLASS=default”) in new stack
– Executing [6523126@restrictedroute-5aee0cc44da9dd93c7b7f7493389cea8:5] ExecIf(“SIP/106-00000003”, “1?Set(TRUNKCIDOVERRIDE=“Medics First”<2175350100>)”) in new stack
– Executing [6523126@restrictedroute-5aee0cc44da9dd93c7b7f7493389cea8:6] Set(“SIP/106-00000003”, “_NODEST=”) in new stack
– Executing [6523126@restrictedroute-5aee0cc44da9dd93c7b7f7493389cea8:7] Macro(“SIP/106-00000003”, “dialout-trunk,1,6523126,off”) in new stack
– Executing [s@macro-dialout-trunk:1] Set(“SIP/106-00000003”, “DIAL_TRUNK=1”) in new stack
– Executing [s@macro-dialout-trunk:2] UserEvent(“SIP/106-00000003”, “zulu-outbound-call,from:106,to:6523126”) in new stack
– Executing [s@macro-dialout-trunk:3] ExecIf(“SIP/106-00000003”, “0?Set(DIAL_OPTIONS=Hhtr)”) in new stack
– Executing [s@macro-dialout-trunk:4] GosubIf(“SIP/106-00000003”, “0?sub-pincheck,s,1()”) in new stack
– Executing [s@macro-dialout-trunk:5] ExecIf(“SIP/106-00000003”, “0?Set(CALLERID(num)=106)”) in new stack
– Executing [s@macro-dialout-trunk:6] GotoIf(“SIP/106-00000003”, “0?disabletrunk,1”) in new stack
– Executing [s@macro-dialout-trunk:7] Set(“SIP/106-00000003”, “DIAL_NUMBER=6523126”) in new stack
– Executing [s@macro-dialout-trunk:8] Set(“SIP/106-00000003”, “DIAL_TRUNK_OPTIONS=HhTtr”) in new stack
– Executing [s@macro-dialout-trunk:9] Set(“SIP/106-00000003”, “OUTBOUND_GROUP=OUT_1”) in new stack
– Executing [s@macro-dialout-trunk:10] Set(“SIP/106-00000003”, “DIAL_TRUNK_OPTIONS=T”) in new stack
– Executing [s@macro-dialout-trunk:11] GotoIf(“SIP/106-00000003”, “0?nomax”) in new stack
– Executing [s@macro-dialout-trunk:12] GotoIf(“SIP/106-00000003”, “0?chanfull”) in new stack
– Executing [s@macro-dialout-trunk:13] GotoIf(“SIP/106-00000003”, “0?skipoutcid”) in new stack
– Executing [s@macro-dialout-trunk:14] Macro(“SIP/106-00000003”, “outbound-callerid,1”) in new stack
– Executing [s@macro-outbound-callerid:1] NoOp(“SIP/106-00000003”, “106”) in new stack
– Executing [s@macro-outbound-callerid:2] NoOp(“SIP/106-00000003”, “”) in new stack
– Executing [s@macro-outbound-callerid:3] NoOp(“SIP/106-00000003”, “off”) in new stack
– Executing [s@macro-outbound-callerid:4] ExecIf(“SIP/106-00000003”, “0?Set(CALLERPRES(name-pres)=)”) in new stack
– Executing [s@macro-outbound-callerid:5] ExecIf(“SIP/106-00000003”, “0?Set(CALLERPRES(num-pres)=)”) in new stack
– Executing [s@macro-outbound-callerid:6] ExecIf(“SIP/106-00000003”, “0?Set(REALCALLERIDNUM=106)”) in new stack
– Executing [s@macro-outbound-callerid:7] ExecIf(“SIP/106-00000003”, “0?Set(AMPUSER=106)”) in new stack
– Executing [s@macro-outbound-callerid:8] GotoIf(“SIP/106-00000003”, “1?normcid”) in new stack
– Goto (macro-outbound-callerid,s,12)
– Executing [s@macro-outbound-callerid:12] Set(“SIP/106-00000003”, “USEROUTCID=”) in new stack
– Executing [s@macro-outbound-callerid:13] Set(“SIP/106-00000003”, “EMERGENCYCID=”) in new stack
– Executing [s@macro-outbound-callerid:14] Set(“SIP/106-00000003”, “TRUNKOUTCID=“Medics First”<2175350100>”) in new stack
– Executing [s@macro-outbound-callerid:15] GotoIf(“SIP/106-00000003”, “1?trunkcid”) in new stack
– Goto (macro-outbound-callerid,s,20)
– Executing [s@macro-outbound-callerid:20] ExecIf(“SIP/106-00000003”, “1?Set(CALLERID(all)=“Medics First”<2175350100>)”) in new stack
– Executing [s@macro-outbound-callerid:21] ExecIf(“SIP/106-00000003”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [s@macro-outbound-callerid:22] ExecIf(“SIP/106-00000003”, “1?Set(CALLERID(all)=Medics First<2175350100>)”) in new stack
– Executing [s@macro-outbound-callerid:23] ExecIf(“SIP/106-00000003”, “0?Set(CALLERPRES(name-pres)=prohib_passed_screen)”) in new stack
– Executing [s@macro-outbound-callerid:24] ExecIf(“SIP/106-00000003”, “0?Set(CALLERPRES(num-pres)=prohib_passed_screen)”) in new stack
– Executing [s@macro-outbound-callerid:25] Set(“SIP/106-00000003”, “CDR(outbound_cnum)=2175350100”) in new stack
– Executing [s@macro-outbound-callerid:26] Set(“SIP/106-00000003”, “CDR(outbound_cnam)=Medics First”) in new stack
– Executing [s@macro-dialout-trunk:15] GosubIf(“SIP/106-00000003”, “1?sub-flp-1,s,1()”) in new stack
– Executing [s@sub-flp-1:1] ExecIf(“SIP/106-00000003”, “1?Return()”) in new stack
– Executing [s@macro-dialout-trunk:16] Set(“SIP/106-00000003”, “OUTNUM=6523126”) in new stack
– Executing [s@macro-dialout-trunk:17] Set(“SIP/106-00000003”, “custom=DAHDI/g0”) in new stack
– Executing [s@macro-dialout-trunk:18] ExecIf(“SIP/106-00000003”, “0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)T)”) in new stack
– Executing [s@macro-dialout-trunk:19] ExecIf(“SIP/106-00000003”, “0?Set(DIAL_TRUNK_OPTIONS=TM(confirm))”) in new stack
– Executing [s@macro-dialout-trunk:20] Macro(“SIP/106-00000003”, “dialout-trunk-predial-hook,”) in new stack
– Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit(“SIP/106-00000003”, “”) in new stack
– Executing [s@macro-dialout-trunk:21] GotoIf(“SIP/106-00000003”, “0?skipcrm”) in new stack
– Executing [s@macro-dialout-trunk:22] Set(“SIP/106-00000003”, “__CRM_DIRECTION=OUTBOUND”) in new stack
– Executing [s@macro-dialout-trunk:23] Set(“SIP/106-00000003”, “__CRM_DESTINATION=6523126”) in new stack
– Executing [s@macro-dialout-trunk:24] Set(“SIP/106-00000003”, “__CRM_SOURCE=106”) in new stack
– Executing [s@macro-dialout-trunk:25] AGI(“SIP/106-00000003”, “sangomacrm.agi”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/sangomacrm.agi
– <SIP/106-00000003>AGI Script sangomacrm.agi completed, returning 0
– Executing [s@macro-dialout-trunk:26] Set(“SIP/106-00000003”, “CHANNEL(hangup_handler_push)=crm-hangup,s,1”) in new stack
– Executing [s@macro-dialout-trunk:27] NoOp(“SIP/106-00000003”, “CRM Finished”) in new stack
– Executing [s@macro-dialout-trunk:28] GotoIf(“SIP/106-00000003”, “0?bypass,1”) in new stack
– Executing [s@macro-dialout-trunk:29] ExecIf(“SIP/106-00000003”, “1?Set(CONNECTEDLINE(num,i)=6523126)”) in new stack
– Executing [s@macro-dialout-trunk:30] ExecIf(“SIP/106-00000003”, “1?Set(CONNECTEDLINE(name,i)=CID:2175350100)”) in new stack
– Executing [s@macro-dialout-trunk:31] ExecIf(“SIP/106-00000003”, “0?Set(CONNECTEDLINE(name,i)=CID:(Hidden)2175350100)”) in new stack
– Executing [s@macro-dialout-trunk:32] GotoIf(“SIP/106-00000003”, “0?customtrunk”) in new stack
– Executing [s@macro-dialout-trunk:33] Dial(“SIP/106-00000003”, “DAHDI/g0/6523126,300,Tb(func-apply-sipheaders^s^1,(1))”) in new stack
– DAHDI/i1/6523126-4 Internal Gosub(func-apply-sipheaders,s,1(1)) start
– Executing [s@func-apply-sipheaders:1] ExecIf(“DAHDI/i1/6523126-4”, “0?Set(CHANNEL(hangup_handler_push)=crm-hangup,s,1)”) in new stack
– Executing [s@func-apply-sipheaders:2] UserEvent(“DAHDI/i1/6523126-4”, “zulu-call-b,type:func-apply-sipheaders,to:,from:106”) in new stack
– Executing [s@func-apply-sipheaders:3] NoOp(“DAHDI/i1/6523126-4”, “Applying SIP Headers to channel 1”) in new stack
– Executing [s@func-apply-sipheaders:4] Set(“DAHDI/i1/6523126-4”, “SIPHEADERKEYS=”) in new stack
– Executing [s@func-apply-sipheaders:5] ExecIf(“DAHDI/i1/6523126-4”, “0?Set(Rheader=1)”) in new stack
– Executing [s@func-apply-sipheaders:6] While(“DAHDI/i1/6523126-4”, “0”) in new stack
– Jumping to priority 10
– Executing [s@func-apply-sipheaders:11] ExecIf(“DAHDI/i1/6523126-4”, “0?SIPRemoveHeader(Alert-Info:)”) in new stack
– Executing [s@func-apply-sipheaders:12] ExecIf(“DAHDI/i1/6523126-4”, “0?Set(PJSIP_HEADER(remove,Alert-Info)=)”) in new stack
– Executing [s@func-apply-sipheaders:13] Return(“DAHDI/i1/6523126-4”, “”) in new stack
== Spawn extension (from-digital, 6523126, 1) exited non-zero on ‘DAHDI/i1/6523126-4’
– DAHDI/i1/6523126-4 Internal Gosub(func-apply-sipheaders,s,1(1)) complete GOSUB_RETVAL=
– Requested transfer capability: 0x00 - SPEECH
– Called DAHDI/g0/6523126
– Span 1: Channel 0/1 got hangup, cause 34
– DAHDI/i1/6523126-4 is circuit-busy
– Hungup ‘DAHDI/i1/6523126-4’
== Everyone is busy/congested at this time (1:0/1/0)
– Executing [s@macro-dialout-trunk:34] NoOp(“SIP/106-00000003”, “Dial failed for some reason with DIALSTATUS = CONGESTION and HANGUPCAUSE = 34”) in new stack
– Executing [s@macro-dialout-trunk:35] GotoIf(“SIP/106-00000003”, “0?continue,1:s-CONGESTION,1”) in new stack
– Goto (macro-dialout-trunk,s-CONGESTION,1)
– Executing [s-CONGESTION@macro-dialout-trunk:1] Set(“SIP/106-00000003”, “RC=34”) in new stack
– Executing [s-CONGESTION@macro-dialout-trunk:2] Goto(“SIP/106-00000003”, “34,1”) in new stack
– Goto (macro-dialout-trunk,34,1)
– Executing [34@macro-dialout-trunk:1] Goto(“SIP/106-00000003”, “continue,1”) in new stack
– Goto (macro-dialout-trunk,continue,1)
– Executing [continue@macro-dialout-trunk:1] NoOp(“SIP/106-00000003”, “TRUNK Dial failed due to CONGESTION HANGUPCAUSE: 34 - failing through to other trunks”) in new stack
– Executing [continue@macro-dialout-trunk:2] ExecIf(“SIP/106-00000003”, “1?Set(CALLERID(number)=106)”) in new stack
– Executing [6523126@restrictedroute-5aee0cc44da9dd93c7b7f7493389cea8:8] Macro(“SIP/106-00000003”, “outisbusy,”) in new stack
– Executing [s@macro-outisbusy:1] Progress(“SIP/106-00000003”, “”) in new stack
– Executing [s@macro-outisbusy:2] GotoIf(“SIP/106-00000003”, “0?emergency,1”) in new stack
– Executing [s@macro-outisbusy:3] GotoIf(“SIP/106-00000003”, “0?intracompany,1”) in new stack
– Executing [s@macro-outisbusy:4] Playback(“SIP/106-00000003”, “all-circuits-busy-now&please-try-call-later, noanswer”) in new stack
– <SIP/106-00000003> Playing ‘all-circuits-busy-now.ulaw’ (language ‘en’)
== Extension Changed 106[ext-local] new state Idle for Notify User 101
– <SIP/106-00000003> Playing ‘please-try-call-later.ulaw’ (language ‘en’)
– Executing [h@restrictedroute-5aee0cc44da9dd93c7b7f7493389cea8:1] Hangup(“SIP/106-00000003”, “”) in new stack
== Spawn extension (restrictedroute-5aee0cc44da9dd93c7b7f7493389cea8, h, 1) exited non-zero on ‘SIP/106-00000003’
– SIP/106-00000003 Internal Gosub(crm-hangup,s,1) start
– Executing [s@crm-hangup:1] NoOp(“SIP/106-00000003”, “Sending Hangup to CRM”) in new stack
– Executing [s@crm-hangup:2] NoOp(“SIP/106-00000003”, “HANGUP CAUSE: 34”) in new stack
– Executing [s@crm-hangup:3] ExecIf(“SIP/106-00000003”, “0?Set(__CRM_VOICEMAIL=)”) in new stack
– Executing [s@crm-hangup:4] NoOp(“SIP/106-00000003”, “MASTER CHANNEL: 1548704927.19 = 1548704927.19”) in new stack
– Executing [s@crm-hangup:5] GotoIf(“SIP/106-00000003”, “0?return”) in new stack
– Executing [s@crm-hangup:6] Set(“SIP/106-00000003”, “__CRM_HANGUP=1”) in new stack
– Executing [s@crm-hangup:7] AGI(“SIP/106-00000003”, “sangomacrm.agi”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/sangomacrm.agi
– <SIP/106-00000003>AGI Script sangomacrm.agi completed, returning 0
– Executing [s@crm-hangup:8] Return(“SIP/106-00000003”, “”) in new stack
== Spawn extension (restrictedroute-5aee0cc44da9dd93c7b7f7493389cea8, h, 1) exited non-zero on ‘SIP/106-00000003’
– SIP/106-00000003 Internal Gosub(crm-hangup,s,1) complete GOSUB_RETVAL=
freepbx*CLI>