All Curcuits are busy

Can someone help me figure out what may be the cause of this? When making an outbound call I get the All Circuits are busy. I checked with Flowroute and the call request did not even hit their server although my trunk is registered with them. so am guessing it is an error on my outbound config.

Appreciate the assistance.

[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [18005551212@from-internal:1] Macro(“SIP/156-000034f5”, “user-callerid,LIMIT,EXTERNAL,”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [s@macro-user-callerid:1] Set(“SIP/156-000034f5”, “TOUCH_MONITOR=1434987241.81627”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [s@macro-user-callerid:2] Set(“SIP/156-000034f5”, “AMPUSER=156”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [s@macro-user-callerid:3] GotoIf(“SIP/156-000034f5”, “0?report”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [s@macro-user-callerid:4] ExecIf(“SIP/156-000034f5”, “1?Set(REALCALLERIDNUM=156)”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [s@macro-user-callerid:5] Set(“SIP/156-000034f5”, “AMPUSER=156”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [s@macro-user-callerid:6] GotoIf(“SIP/156-000034f5”, “0?limit”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [s@macro-user-callerid:7] Set(“SIP/156-000034f5”, “AMPUSERCIDNAME=Colin Cell”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [s@macro-user-callerid:8] GotoIf(“SIP/156-000034f5”, “0?report”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [s@macro-user-callerid:9] Set(“SIP/156-000034f5”, “AMPUSERCID=156”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [s@macro-user-callerid:10] Set(“SIP/156-000034f5”, “__DIAL_OPTIONS=tr”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [s@macro-user-callerid:11] Set(“SIP/156-000034f5”, “CALLERID(all)=“Colin Cell” <156>”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [s@macro-user-callerid:12] GotoIf(“SIP/156-000034f5”, “0?limit”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [s@macro-user-callerid:13] ExecIf(“SIP/156-000034f5”, “1?Set(GROUP(concurrency_limit)=156)”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [s@macro-user-callerid:14] GosubIf(“SIP/156-000034f5”, “7?sub-ccss,s,1(from-internal,18005551212)”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [s@sub-ccss:1] ExecIf(“SIP/156-000034f5”, “0?Return()”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [s@sub-ccss:2] Set(“SIP/156-000034f5”, “CCSS_SETUP=TRUE”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [s@sub-ccss:3] GosubIf(“SIP/156-000034f5”, “0?monitor_config,1(from-internal,18005551212):monitor_default,1(from-internal,18005551212)”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [monitor_default@sub-ccss:1] GotoIf(“SIP/156-000034f5”, “0?is_exten”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [monitor_default@sub-ccss:2] StackPop(“SIP/156-000034f5”, “”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [monitor_default@sub-ccss:3] Return(“SIP/156-000034f5”, “FALSE”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [s@macro-user-callerid:15] ExecIf(“SIP/156-000034f5”, “0?Set(CHANNEL(language)=)”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [s@macro-user-callerid:16] GotoIf(“SIP/156-000034f5”, “1?continue”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Goto (macro-user-callerid,s,30)
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [s@macro-user-callerid:30] Set(“SIP/156-000034f5”, “CALLERID(number)=156”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [s@macro-user-callerid:31] Set(“SIP/156-000034f5”, “CALLERID(name)=Colin Cell”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [s@macro-user-callerid:32] Set(“SIP/156-000034f5”, “CDR(cnum)=156”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [s@macro-user-callerid:33] Set(“SIP/156-000034f5”, “CDR(cnam)=Colin Cell”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [s@macro-user-callerid:34] Set(“SIP/156-000034f5”, “CHANNEL(language)=en”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [18005551212@from-internal:2] Gosub(“SIP/156-000034f5”, “sub-record-check,s,1(out,18005551212,dontcare)”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [s@sub-record-check:1] GotoIf(“SIP/156-000034f5”, “0?initialized”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [s@sub-record-check:2] Set(“SIP/156-000034f5”, “__REC_STATUS=INITIALIZED”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [s@sub-record-check:3] Set(“SIP/156-000034f5”, “NOW=1434987241”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [s@sub-record-check:4] Set(“SIP/156-000034f5”, “__DAY=22”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [s@sub-record-check:5] Set(“SIP/156-000034f5”, “__MONTH=06”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [s@sub-record-check:6] Set(“SIP/156-000034f5”, “__YEAR=2015”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [s@sub-record-check:7] Set(“SIP/156-000034f5”, “__TIMESTR=20150622-113401”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [s@sub-record-check:8] Set(“SIP/156-000034f5”, “__FROMEXTEN=156”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [s@sub-record-check:9] Set(“SIP/156-000034f5”, “__MON_FMT=wav”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [s@sub-record-check:10] NoOp(“SIP/156-000034f5”, “Recordings initialized”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [s@sub-record-check:11] ExecIf(“SIP/156-000034f5”, “0?Set(ARG3=dontcare)”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [s@sub-record-check:12] Set(“SIP/156-000034f5”, “REC_POLICY_MODE_SAVE=”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [s@sub-record-check:13] ExecIf(“SIP/156-000034f5”, “0?Set(REC_STATUS=NO)”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [s@sub-record-check:14] GotoIf(“SIP/156-000034f5”, “3?checkaction”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Goto (sub-record-check,s,17)
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [s@sub-record-check:17] GotoIf(“SIP/156-000034f5”, “1?sub-record-check,out,1”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Goto (sub-record-check,out,1)
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [out@sub-record-check:1] NoOp(“SIP/156-000034f5”, “Outbound Recording Check from 156 to 18005551212”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [out@sub-record-check:2] Set(“SIP/156-000034f5”, “RECMODE=dontcare”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [out@sub-record-check:3] ExecIf(“SIP/156-000034f5”, “1?Goto(routewins)”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Goto (sub-record-check,out,7)
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [out@sub-record-check:7] Gosub(“SIP/156-000034f5”, “recordcheck,1(dontcare,out,18005551212)”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [recordcheck@sub-record-check:1] NoOp(“SIP/156-000034f5”, “Starting recording check against dontcare”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [recordcheck@sub-record-check:2] Goto(“SIP/156-000034f5”, “dontcare”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Goto (sub-record-check,recordcheck,3)
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [recordcheck@sub-record-check:3] Return(“SIP/156-000034f5”, “”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [out@sub-record-check:8] Return(“SIP/156-000034f5”, “”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [18005551212@from-internal:3] ExecIf(“SIP/156-000034f5”, “0 ?Set(CDR(accountcode)=)”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [18005551212@from-internal:4] Set(“SIP/156-000034f5”, “MOHCLASS=default”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [18005551212@from-internal:5] Set(“SIP/156-000034f5”, “_NODEST=”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [18005551212@from-internal:6] Macro(“SIP/156-000034f5”, “dialout-trunk,2,18005551212,off”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [s@macro-dialout-trunk:1] Set(“SIP/156-000034f5”, “DIAL_TRUNK=2”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [s@macro-dialout-trunk:2] GosubIf(“SIP/156-000034f5”, “0?sub-pincheck,s,1()”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [s@macro-dialout-trunk:3] GotoIf(“SIP/156-000034f5”, “0?disabletrunk,1”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [s@macro-dialout-trunk:4] Set(“SIP/156-000034f5”, “DIAL_NUMBER=18005551212”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [s@macro-dialout-trunk:5] Set(“SIP/156-000034f5”, “DIAL_TRUNK_OPTIONS=tr”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [s@macro-dialout-trunk:6] Set(“SIP/156-000034f5”, “OUTBOUND_GROUP=OUT_2”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [s@macro-dialout-trunk:7] GotoIf(“SIP/156-000034f5”, “1?nomax”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Goto (macro-dialout-trunk,s,9)
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [s@macro-dialout-trunk:9] GotoIf(“SIP/156-000034f5”, “0?skipoutcid”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [s@macro-dialout-trunk:10] Set(“SIP/156-000034f5”, “DIAL_TRUNK_OPTIONS=”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [s@macro-dialout-trunk:11] Macro(“SIP/156-000034f5”, “outbound-callerid,2”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [s@macro-outbound-callerid:1] ExecIf(“SIP/156-000034f5”, “0?Set(CALLERPRES()=)”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [s@macro-outbound-callerid:2] ExecIf(“SIP/156-000034f5”, “0?Set(REALCALLERIDNUM=156)”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [s@macro-outbound-callerid:3] GotoIf(“SIP/156-000034f5”, “1?normcid”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Goto (macro-outbound-callerid,s,6)
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [s@macro-outbound-callerid:6] Set(“SIP/156-000034f5”, “USEROUTCID=”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [s@macro-outbound-callerid:7] Set(“SIP/156-000034f5”, “EMERGENCYCID=”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [s@macro-outbound-callerid:8] Set(“SIP/156-000034f5”, “TRUNKOUTCID=Flowroute”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [s@macro-outbound-callerid:9] GotoIf(“SIP/156-000034f5”, “1?trunkcid”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Goto (macro-outbound-callerid,s,14)
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [s@macro-outbound-callerid:14] ExecIf(“SIP/156-000034f5”, “1?Set(CALLERID(all)=Flowroute)”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [s@macro-outbound-callerid:15] ExecIf(“SIP/156-000034f5”, “0?Set(CALLERID(all)=)”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [s@macro-outbound-callerid:16] ExecIf(“SIP/156-000034f5”, “0?Set(CALLERID(all)=)”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [s@macro-outbound-callerid:17] ExecIf(“SIP/156-000034f5”, “0?Set(CALLERPRES()=prohib_passed_screen)”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [s@macro-outbound-callerid:18] Set(“SIP/156-000034f5”, “CDR(outbound_cnum)=”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [s@macro-outbound-callerid:19] Set(“SIP/156-000034f5”, “CDR(outbound_cnam)=Flowroute”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [s@macro-dialout-trunk:12] GosubIf(“SIP/156-000034f5”, “0?sub-flp-2,s,1()”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [s@macro-dialout-trunk:13] Set(“SIP/156-000034f5”, “OUTNUM=18005551212”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [s@macro-dialout-trunk:14] Set(“SIP/156-000034f5”, “custom=SIP/Flowroute”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [s@macro-dialout-trunk:15] ExecIf(“SIP/156-000034f5”, “0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default))”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [s@macro-dialout-trunk:16] ExecIf(“SIP/156-000034f5”, “0?Set(DIAL_TRUNK_OPTIONS=M(confirm))”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [s@macro-dialout-trunk:17] Macro(“SIP/156-000034f5”, “dialout-trunk-predial-hook,”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit(“SIP/156-000034f5”, “”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [s@macro-dialout-trunk:18] GotoIf(“SIP/156-000034f5”, “0?bypass,1”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [s@macro-dialout-trunk:19] ExecIf(“SIP/156-000034f5”, “1?Set(CONNECTEDLINE(num,i)=18005551212)”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [s@macro-dialout-trunk:20] ExecIf(“SIP/156-000034f5”, “1?Set(CONNECTEDLINE(name,i)=CID:)”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [s@macro-dialout-trunk:21] GotoIf(“SIP/156-000034f5”, “0?customtrunk”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [s@macro-dialout-trunk:22] Dial(“SIP/156-000034f5”, “SIP/Flowroute/18005551212,300,”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] netsock2.c: == Using SIP RTP TOS bits 184
[2015-06-22 11:34:01] VERBOSE[16661] netsock2.c: == Using SIP RTP CoS mark 5
[2015-06-22 11:34:01] VERBOSE[16661] app_dial.c: – Called SIP/Flowroute/18005551212
[2015-06-22 11:34:01] WARNING[1698] chan_sip.c: Received response: “Forbidden” from ‘“Flowroute” sip:[email protected];tag=as27f44859’
[2015-06-22 11:34:01] VERBOSE[16661] app_dial.c: == Everyone is busy/congested at this time (1:0/0/1)
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [s@macro-dialout-trunk:23] NoOp(“SIP/156-000034f5”, “Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 21”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [s@macro-dialout-trunk:24] GotoIf(“SIP/156-000034f5”, “0?continue,1:s-CHANUNAVAIL,1”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] Set(“SIP/156-000034f5”, “RC=21”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [s-CHANUNAVAIL@macro-dialout-trunk:2] Goto(“SIP/156-000034f5”, “21,1”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Goto (macro-dialout-trunk,21,1)
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [21@macro-dialout-trunk:1] Goto(“SIP/156-000034f5”, “continue,1”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Goto (macro-dialout-trunk,continue,1)
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [continue@macro-dialout-trunk:1] NoOp(“SIP/156-000034f5”, “TRUNK Dial failed due to CHANUNAVAIL HANGUPCAUSE: 21 - failing through to other trunks”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [continue@macro-dialout-trunk:2] Set(“SIP/156-000034f5”, “CALLERID(number)=156”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [18005551212@from-internal:7] Macro(“SIP/156-000034f5”, “outisbusy,”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [s@macro-outisbusy:1] Progress(“SIP/156-000034f5”, “”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [s@macro-outisbusy:2] GotoIf(“SIP/156-000034f5”, “0?emergency,1”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [s@macro-outisbusy:3] GotoIf(“SIP/156-000034f5”, “0?intracompany,1”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] pbx.c: – Executing [s@macro-outisbusy:4] Playback(“SIP/156-000034f5”, “all-circuits-busy-now&pls-try-call-later, noanswer”) in new stack
[2015-06-22 11:34:01] VERBOSE[16661] file.c: – <SIP/156-000034f5> Playing ‘all-circuits-busy-now.ulaw’ (language ‘en’)
[2015-06-22 11:34:03] VERBOSE[16661] file.c: – <SIP/156-000034f5> Playing ‘pls-try-call-later.ulaw’ (language ‘en’)

You have

turn on sip debug,

sip set debug ip sip.flowroute.com

and see who is getting it wrong

Here is the log of the test.

Connected to Asterisk 1.8.31.0 currently running on localhost (pid = 1478)
Verbosity is at least 3
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Executing [18005551212@from-internal:1] Macro(“SIP/156-000035ff”, “user-callerid,LIMIT,EXTERNAL,”) in new stack
– Executing [s@macro-user-callerid:1] Set(“SIP/156-000035ff”, “TOUCH_MONITOR=1434998189.82969”) in new stack
– Executing [s@macro-user-callerid:2] Set(“SIP/156-000035ff”, “AMPUSER=156”) in new stack
– Executing [s@macro-user-callerid:3] GotoIf(“SIP/156-000035ff”, “0?report”) in new stack
– Executing [s@macro-user-callerid:4] ExecIf(“SIP/156-000035ff”, “1?Set(REALCALLERIDNUM=156)”) in new stack
– Executing [s@macro-user-callerid:5] Set(“SIP/156-000035ff”, “AMPUSER=156”) in new stack
– Executing [s@macro-user-callerid:6] GotoIf(“SIP/156-000035ff”, “0?limit”) in new stack
– Executing [s@macro-user-callerid:7] Set(“SIP/156-000035ff”, “AMPUSERCIDNAME=Colin Cell”) in new stack
– Executing [s@macro-user-callerid:8] GotoIf(“SIP/156-000035ff”, “0?report”) in new stack
– Executing [s@macro-user-callerid:9] Set(“SIP/156-000035ff”, “AMPUSERCID=156”) in new stack
– Executing [s@macro-user-callerid:10] Set(“SIP/156-000035ff”, “__DIAL_OPTIONS=tr”) in new stack
– Executing [s@macro-user-callerid:11] Set(“SIP/156-000035ff”, “CALLERID(all)=“Colin Cell” <156>”) in new stack
– Executing [s@macro-user-callerid:12] GotoIf(“SIP/156-000035ff”, “0?limit”) in new stack
– Executing [s@macro-user-callerid:13] ExecIf(“SIP/156-000035ff”, “1?Set(GROUP(concurrency_limit)=156)”) in new stack
– Executing [s@macro-user-callerid:14] GosubIf(“SIP/156-000035ff”, “7?sub-ccss,s,1(from-internal,18005551212)”) in new stack
– Executing [s@sub-ccss:1] ExecIf(“SIP/156-000035ff”, “0?Return()”) in new stack
– Executing [s@sub-ccss:2] Set(“SIP/156-000035ff”, “CCSS_SETUP=TRUE”) in new stack
– Executing [s@sub-ccss:3] GosubIf(“SIP/156-000035ff”, “0?monitor_config,1(from-internal,18005551212):monitor_default,1(from-internal,18005551212)”) in new stack
– Executing [monitor_default@sub-ccss:1] GotoIf(“SIP/156-000035ff”, “0?is_exten”) in new stack
– Executing [monitor_default@sub-ccss:2] StackPop(“SIP/156-000035ff”, “”) in new stack
– Executing [monitor_default@sub-ccss:3] Return(“SIP/156-000035ff”, “FALSE”) in new stack
– Executing [s@macro-user-callerid:15] ExecIf(“SIP/156-000035ff”, “0?Set(CHANNEL(language)=)”) in new stack
– Executing [s@macro-user-callerid:16] GotoIf(“SIP/156-000035ff”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,30)
– Executing [s@macro-user-callerid:30] Set(“SIP/156-000035ff”, “CALLERID(number)=156”) in new stack
– Executing [s@macro-user-callerid:31] Set(“SIP/156-000035ff”, “CALLERID(name)=Colin Cell”) in new stack
– Executing [s@macro-user-callerid:32] Set(“SIP/156-000035ff”, “CDR(cnum)=156”) in new stack
– Executing [s@macro-user-callerid:33] Set(“SIP/156-000035ff”, “CDR(cnam)=Colin Cell”) in new stack
– Executing [s@macro-user-callerid:34] Set(“SIP/156-000035ff”, “CHANNEL(language)=en”) in new stack
– Executing [18005551212@from-internal:2] Gosub(“SIP/156-000035ff”, “sub-record-check,s,1(out,18005551212,dontcare)”) in new stack
– Executing [s@sub-record-check:1] GotoIf(“SIP/156-000035ff”, “0?initialized”) in new stack
– Executing [s@sub-record-check:2] Set(“SIP/156-000035ff”, “__REC_STATUS=INITIALIZED”) in new stack
– Executing [s@sub-record-check:3] Set(“SIP/156-000035ff”, “NOW=1434998189”) in new stack
– Executing [s@sub-record-check:4] Set(“SIP/156-000035ff”, “__DAY=22”) in new stack
– Executing [s@sub-record-check:5] Set(“SIP/156-000035ff”, “__MONTH=06”) in new stack
– Executing [s@sub-record-check:6] Set(“SIP/156-000035ff”, “__YEAR=2015”) in new stack
– Executing [s@sub-record-check:7] Set(“SIP/156-000035ff”, “__TIMESTR=20150622-143629”) in new stack
– Executing [s@sub-record-check:8] Set(“SIP/156-000035ff”, “__FROMEXTEN=156”) in new stack
– Executing [s@sub-record-check:9] Set(“SIP/156-000035ff”, “__MON_FMT=wav”) in new stack
– Executing [s@sub-record-check:10] NoOp(“SIP/156-000035ff”, “Recordings initialized”) in new stack
– Executing [s@sub-record-check:11] ExecIf(“SIP/156-000035ff”, “0?Set(ARG3=dontcare)”) in new stack
– Executing [s@sub-record-check:12] Set(“SIP/156-000035ff”, “REC_POLICY_MODE_SAVE=”) in new stack
– Executing [s@sub-record-check:13] ExecIf(“SIP/156-000035ff”, “0?Set(REC_STATUS=NO)”) in new stack
– Executing [s@sub-record-check:14] GotoIf(“SIP/156-000035ff”, “3?checkaction”) in new stack
– Goto (sub-record-check,s,17)
– Executing [s@sub-record-check:17] GotoIf(“SIP/156-000035ff”, “1?sub-record-check,out,1”) in new stack
– Goto (sub-record-check,out,1)
– Executing [out@sub-record-check:1] NoOp(“SIP/156-000035ff”, “Outbound Recording Check from 156 to 18005551212”) in new stack
– Executing [out@sub-record-check:2] Set(“SIP/156-000035ff”, “RECMODE=dontcare”) in new stack
– Executing [out@sub-record-check:3] ExecIf(“SIP/156-000035ff”, “1?Goto(routewins)”) in new stack
– Goto (sub-record-check,out,7)
– Executing [out@sub-record-check:7] Gosub(“SIP/156-000035ff”, “recordcheck,1(dontcare,out,18005551212)”) in new stack
– Executing [recordcheck@sub-record-check:1] NoOp(“SIP/156-000035ff”, “Starting recording check against dontcare”) in new stack
– Executing [recordcheck@sub-record-check:2] Goto(“SIP/156-000035ff”, “dontcare”) in new stack
– Goto (sub-record-check,recordcheck,3)
– Executing [recordcheck@sub-record-check:3] Return(“SIP/156-000035ff”, “”) in new stack
– Executing [out@sub-record-check:8] Return(“SIP/156-000035ff”, “”) in new stack
– Executing [18005551212@from-internal:3] ExecIf(“SIP/156-000035ff”, “0 ?Set(CDR(accountcode)=)”) in new stack
– Executing [18005551212@from-internal:4] Set(“SIP/156-000035ff”, “MOHCLASS=default”) in new stack
– Executing [18005551212@from-internal:5] Set(“SIP/156-000035ff”, “_NODEST=”) in new stack
– Executing [18005551212@from-internal:6] Macro(“SIP/156-000035ff”, “dialout-trunk,2,18005551212,off”) in new stack
– Executing [s@macro-dialout-trunk:1] Set(“SIP/156-000035ff”, “DIAL_TRUNK=2”) in new stack
– Executing [s@macro-dialout-trunk:2] GosubIf(“SIP/156-000035ff”, “0?sub-pincheck,s,1()”) in new stack
– Executing [s@macro-dialout-trunk:3] GotoIf(“SIP/156-000035ff”, “0?disabletrunk,1”) in new stack
– Executing [s@macro-dialout-trunk:4] Set(“SIP/156-000035ff”, “DIAL_NUMBER=18005551212”) in new stack
– Executing [s@macro-dialout-trunk:5] Set(“SIP/156-000035ff”, “DIAL_TRUNK_OPTIONS=tr”) in new stack
– Executing [s@macro-dialout-trunk:6] Set(“SIP/156-000035ff”, “OUTBOUND_GROUP=OUT_2”) in new stack
– Executing [s@macro-dialout-trunk:7] GotoIf(“SIP/156-000035ff”, “1?nomax”) in new stack
– Goto (macro-dialout-trunk,s,9)
– Executing [s@macro-dialout-trunk:9] GotoIf(“SIP/156-000035ff”, “0?skipoutcid”) in new stack
– Executing [s@macro-dialout-trunk:10] Set(“SIP/156-000035ff”, “DIAL_TRUNK_OPTIONS=”) in new stack
– Executing [s@macro-dialout-trunk:11] Macro(“SIP/156-000035ff”, “outbound-callerid,2”) in new stack
– Executing [s@macro-outbound-callerid:1] ExecIf(“SIP/156-000035ff”, “0?Set(CALLERPRES()=)”) in new stack
– Executing [s@macro-outbound-callerid:2] ExecIf(“SIP/156-000035ff”, “0?Set(REALCALLERIDNUM=156)”) in new stack
– Executing [s@macro-outbound-callerid:3] GotoIf(“SIP/156-000035ff”, “1?normcid”) in new stack
– Goto (macro-outbound-callerid,s,6)
– Executing [s@macro-outbound-callerid:6] Set(“SIP/156-000035ff”, “USEROUTCID=”) in new stack
– Executing [s@macro-outbound-callerid:7] Set(“SIP/156-000035ff”, “EMERGENCYCID=”) in new stack
– Executing [s@macro-outbound-callerid:8] Set(“SIP/156-000035ff”, “TRUNKOUTCID=Flowroute”) in new stack
– Executing [s@macro-outbound-callerid:9] GotoIf(“SIP/156-000035ff”, “1?trunkcid”) in new stack
– Goto (macro-outbound-callerid,s,14)
– Executing [s@macro-outbound-callerid:14] ExecIf(“SIP/156-000035ff”, “1?Set(CALLERID(all)=Flowroute)”) in new stack
– Executing [s@macro-outbound-callerid:15] ExecIf(“SIP/156-000035ff”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [s@macro-outbound-callerid:16] ExecIf(“SIP/156-000035ff”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [s@macro-outbound-callerid:17] ExecIf(“SIP/156-000035ff”, “0?Set(CALLERPRES()=prohib_passed_screen)”) in new stack
– Executing [s@macro-outbound-callerid:18] Set(“SIP/156-000035ff”, “CDR(outbound_cnum)=”) in new stack
– Executing [s@macro-outbound-callerid:19] Set(“SIP/156-000035ff”, “CDR(outbound_cnam)=Flowroute”) in new stack
– Executing [s@macro-dialout-trunk:12] GosubIf(“SIP/156-000035ff”, “0?sub-flp-2,s,1()”) in new stack
– Executing [s@macro-dialout-trunk:13] Set(“SIP/156-000035ff”, “OUTNUM=18005551212”) in new stack
– Executing [s@macro-dialout-trunk:14] Set(“SIP/156-000035ff”, “custom=SIP/Flowroute”) in new stack
– Executing [s@macro-dialout-trunk:15] ExecIf(“SIP/156-000035ff”, “0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default))”) in new stack
– Executing [s@macro-dialout-trunk:16] ExecIf(“SIP/156-000035ff”, “0?Set(DIAL_TRUNK_OPTIONS=M(confirm))”) in new stack
– Executing [s@macro-dialout-trunk:17] Macro(“SIP/156-000035ff”, “dialout-trunk-predial-hook,”) in new stack
– Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit(“SIP/156-000035ff”, “”) in new stack
– Executing [s@macro-dialout-trunk:18] GotoIf(“SIP/156-000035ff”, “0?bypass,1”) in new stack
– Executing [s@macro-dialout-trunk:19] ExecIf(“SIP/156-000035ff”, “1?Set(CONNECTEDLINE(num,i)=18005551212)”) in new stack
– Executing [s@macro-dialout-trunk:20] ExecIf(“SIP/156-000035ff”, “1?Set(CONNECTEDLINE(name,i)=CID:)”) in new stack
– Executing [s@macro-dialout-trunk:21] GotoIf(“SIP/156-000035ff”, “0?customtrunk”) in new stack
– Executing [s@macro-dialout-trunk:22] Dial(“SIP/156-000035ff”, “SIP/Flowroute/18005551212,300,”) in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Called SIP/Flowroute/18005551212
[2015-06-22 14:36:29] WARNING[1698]: chan_sip.c:21061 handle_response_invite: Received response: “Forbidden” from ‘“Flowroute” sip:[email protected];tag=as0143e806’
[2015-06-22 14:36:29] WARNING[1698]: chan_sip.c:21061 handle_response_invite: Received response: “Forbidden” from ‘“Flowroute” sip:[email protected];tag=as0143e806’
== Everyone is busy/congested at this time (1:0/0/1)
– Executing [s@macro-dialout-trunk:23] NoOp(“SIP/156-000035ff”, “Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 21”) in new stack
– Executing [s@macro-dialout-trunk:24] GotoIf(“SIP/156-000035ff”, “0?continue,1:s-CHANUNAVAIL,1”) in new stack
– Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
– Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] Set(“SIP/156-000035ff”, “RC=21”) in new stack
– Executing [s-CHANUNAVAIL@macro-dialout-trunk:2] Goto(“SIP/156-000035ff”, “21,1”) in new stack
– Goto (macro-dialout-trunk,21,1)
– Executing [21@macro-dialout-trunk:1] Goto(“SIP/156-000035ff”, “continue,1”) in new stack
– Goto (macro-dialout-trunk,continue,1)
– Executing [continue@macro-dialout-trunk:1] NoOp(“SIP/156-000035ff”, “TRUNK Dial failed due to CHANUNAVAIL HANGUPCAUSE: 21 - failing through to other trunks”) in new stack
– Executing [continue@macro-dialout-trunk:2] Set(“SIP/156-000035ff”, “CALLERID(number)=156”) in new stack
– Executing [18005551212@from-internal:7] Macro(“SIP/156-000035ff”, “outisbusy,”) in new stack
– Executing [s@macro-outisbusy:1] Progress(“SIP/156-000035ff”, “”) in new stack
– Executing [s@macro-outisbusy:2] GotoIf(“SIP/156-000035ff”, “0?emergency,1”) in new stack
– Executing [s@macro-outisbusy:3] GotoIf(“SIP/156-000035ff”, “0?intracompany,1”) in new stack
– Executing [s@macro-outisbusy:4] Playback(“SIP/156-000035ff”, “all-circuits-busy-now&pls-try-call-later, noanswer”) in new stack
– <SIP/156-000035ff> Playing ‘all-circuits-busy-now.ulaw’ (language ‘en’)
– <SIP/156-000035ff> Playing ‘pls-try-call-later.ulaw’ (language ‘en’)
== Spawn extension (macro-outisbusy, s, 4) exited non-zero on ‘SIP/156-000035ff’ in macro ‘outisbusy’
== Spawn extension (from-internal, 18005551212, 7) exited non-zero on ‘SIP/156-000035ff’
– Executing [h@from-internal:1] Hangup(“SIP/156-000035ff”, “”) in new stack
== Spawn extension (from-internal, h, 1) exited non-zero on ‘SIP/156-000035ff’
localhost*CLI>

Well, you didn’t manage to get the SIP debug yet. but :-

Cause 21 means the carrier refuses that call becuse it is “forbidden”

Hi did you ever get a solution for this from the carrier side or from your configuration side / trunk settings?

I did get it working but unfortunately I have forgotten how I got away from this error. I believe it was a firewall issue on FreePBX. Sorry.

Did you definitely register with the sip?
I have been caught a few times with the wrong gateway set up in networks esp when moving the system to a new site. Gives that “all circuits are busy” message.

Paid your bill?

Check with Flowroute and see what they’re thinking about Forbidding your connection.

Some ISPs have special servers for Toll Free cals - you might need to add another trunk.