IAX Trunk "All Circuits Are Busy"

Hello all,

We are asking for little help regarding our trunk setup. First some background, we recently implemented FreePBX server on version 15.0.16.78 using a backup and restore method from the old server. All seems well minus our internal trunk dialing. When dialing an extension on a different phone server we get the “All Circuits Are Busy” message. We’ve quadruple checked the Tunk setup as well as the Outbound setup and cross referenced other working servers and even scoured the oracle google. Below is capture of me dialing through the trunk from extension 2051 to 7048- Any thoughts or suggestions would be greatly appreciated.

Goto (macro-outbound-callerid,s,20)
– Executing [[email protected]:20] Set(“SIP/2051-00000700”, “USEROUTCID=“2051”<#########>”) in new stack
– Executing [[email protected]:21] Set(“SIP/2051-00000700”, “EMERGENCYCID=”) in new stack
– Executing [[email protected]:22] ExecIf(“SIP/2051-00000700”, “0?Set(EMERGENCYCID=)”) in new stack
– Executing [[email protected]:23] Set(“SIP/2051-00000700”, “TRUNKOUTCID=”) in new stack
– Executing [[email protected]:24] GotoIf(“SIP/2051-00000700”, “1?trunkcid”) in new stack
– Goto (macro-outbound-callerid,s,30)
– Executing [[email protected]:30] ExecIf(“SIP/2051-00000700”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [[email protected]:31] ExecIf(“SIP/2051-00000700”, “1?Set(CALLERID(all)=“Me”<##########>)”) in new stack
– Executing [[email protected]:32] ExecIf(“SIP/2051-00000700”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [[email protected]:33] ExecIf(“SIP/2051-00000700”, “0?Set(CALLERID(all)=2051)”) in new stack
– Executing [[email protected]:34] Set(“SIP/2051-00000700”, “TIOHIDE=no”) in new stack
– Executing [[email protected]:35] ExecIf(“SIP/2051-00000700”, “0?Set(CALLERPRES(name-pres)=prohib_passed_screen)”) in new stack
– Executing [[email protected]:36] ExecIf(“SIP/2051-00000700”, “0?Set(CALLERPRES(num-pres)=prohib_passed_screen)”) in new stack
– Executing [[email protected]:37] ExecIf(“SIP/2051-00000700”, “0?Set(CALLERPRES(name-pres)=prohib_passed_screen)”) in new stack
– Executing [[email protected]:38] ExecIf(“SIP/2051-00000700”, “0?Set(CALLERPRES(num-pres)=prohib_passed_screen)”) in new stack
– Executing [[email protected]:39] Set(“SIP/2051-00000700”, “CDR(outbound_cnum)=##########”) in new stack
– Executing [[email protected]:40] Set(“SIP/2051-00000700”, “CDR(outbound_cnam)=ME”) in new stack
– Executing [[email protected]:14] GosubIf(“SIP/2051-00000700”, “0?sub-flp-3,s,1()”) in new stack
– Executing [[email protected]:15] Set(“SIP/2051-00000700”, “OUTNUM=7048”) in new stack
– Executing [[email protected]:16] Set(“SIP/2051-00000700”, “custom=IAX2/YREKA”) in new stack
– Executing [[email protected]:17] ExecIf(“SIP/2051-00000700”, “0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)T)”) in new stack
– Executing [[email protected]:18] ExecIf(“SIP/2051-00000700”, “0?Set(DIAL_TRUNK_OPTIONS=TM(confirm))”) in new stack
– Executing [[email protected]:19] Macro(“SIP/2051-00000700”, “dialout-trunk-predial-hook,”) in new stack
– Executing [[email protected]:1] MacroExit(“SIP/2051-00000700”, “”) in new stack
– Executing [[email protected]:20] GotoIf(“SIP/2051-00000700”, “0?skipcrm”) in new stack
– Executing [[email protected]:21] Set(“SIP/2051-00000700”, “__CRM_DIRECTION=OUTBOUND”) in new stack
– Executing [[email protected]:22] Set(“SIP/2051-00000700”, “__CRM_DESTINATION=7048”) in new stack
– Executing [[email protected]:23] Set(“SIP/2051-00000700”, “__CRM_SOURCE=2051”) in new stack
– Executing [[email protected]:24] AGI(“SIP/2051-00000700”, “sangomacrm.agi”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/sangomacrm.agi
– <SIP/2051-00000700>AGI Script sangomacrm.agi completed, returning 0
– Executing [[email protected]:25] Set(“SIP/2051-00000700”, “CHANNEL(hangup_handler_push)=crm-hangup,s,1”) in new stack
– Executing [[email protected]:26] NoOp(“SIP/2051-00000700”, “CRM Finished”) in new stack
– Executing [[email protected]:27] GotoIf(“SIP/2051-00000700”, “0?bypass,1”) in new stack
– Executing [[email protected]:28] ExecIf(“SIP/2051-00000700”, “1?Set(CONNECTEDLINE(num,i)=7048)”) in new stack
– Executing [[email protected]:29] ExecIf(“SIP/2051-00000700”, “1?Set(CONNECTEDLINE(name,i)=CID:##########)”) in new stack
– Executing [[email protected]:30] ExecIf(“SIP/2051-00000700”, “0?Set(CONNECTEDLINE(name,i)=CID:(Hidden)##########)”) in new stack
– Executing [[email protected]:31] GotoIf(“SIP/2051-00000700”, “0?customtrunk”) in new stack
– Executing [[email protected]:32] ExecIf(“SIP/2051-00000700”, “0?Set(DIAL_TRUNK_OPTIONS=)”) in new stack
– Executing [[email protected]:33] Set(“SIP/2051-00000700”, “HASH(__SIPHEADERS,Alert-Info)=unset”) in new stack
– Executing [[email protected]:34] Dial(“SIP/2051-00000700”, “IAX2/YREKA/7048,300,Tb(func-apply-sipheaders^s^1,(3))”) in new stack
[2020-11-20 13:53:10] WARNING[31087][C-000005c6]: chan_iax2.c:5839 ast_iax2_new: No formats specified for call to: IAX2/YREKA-6675
[2020-11-20 13:53:10] WARNING[31087][C-000005c6]: app_dial.c:2576 dial_exec_full: Unable to create channel of type ‘IAX2’ (cause 0 - Unknown)
– No devices or endpoints to dial (technology/resource)
– Executing [[email protected]:35] NoOp(“SIP/2051-00000700”, “Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 0”) in new stack
– Executing [[email protected]:36] GotoIf(“SIP/2051-00000700”, “0?continue,1:s-CHANUNAVAIL,1”) in new stack
– Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
– Executing [[email protected]:1] Set(“SIP/2051-00000700”, “RC=0”) in new stack
– Executing [[email protected]:2] Goto(“SIP/2051-00000700”, “0,1”) in new stack
– Goto (macro-dialout-trunk,0,1)
– Executing [[email protected]:1] Goto(“SIP/2051-00000700”, “continue,1”) in new stack
– Goto (macro-dialout-trunk,continue,1)
– Executing [[email protected]:1] NoOp(“SIP/2051-00000700”, “TRUNK Dial failed due to CHANUNAVAIL HANGUPCAUSE: 0 - failing through to other trunks”) in new stack
– Executing [[email protected]:2] ExecIf(“SIP/2051-00000700”, “1?Set(CALLERID(number)=2051)”) in new stack
– Executing [[email protected]:12] Macro(“SIP/2051-00000700”, “outisbusy,”) in new stack
– Executing [[email protected]:1] Progress(“SIP/2051-00000700”, “”) in new stack
– Executing [[email protected]:2] GotoIf(“SIP/2051-00000700”, “0?emergency,1”) in new stack
– Executing [[email protected]:3] GotoIf(“SIP/2051-00000700”, “0?intracompany,1”) in new stack
– Executing [[email protected]:4] Playback(“SIP/2051-00000700”, “all-circuits-busy-now&please-try-call-later, noanswer”) in new stack
– <SIP/2051-00000700> Playing ‘all-circuits-busy-now.ulaw’ (language ‘en’)
– <SIP/2051-00000700> Playing ‘please-try-call-later.ulaw’ (language ‘en’)
– Executing [[email protected]:1] Macro(“SIP/2051-00000700”, “hangupcall”) in new stack
– Executing [[email protected]:1] GotoIf(“SIP/2051-00000700”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,3)

Google Foo says that you have an unmatched Codec, probably one of the new ones like Silk. Make sure you are using supported codecs like ulaw or alaw (depending on your local preferences).

Thank you for the quick response!

Both servers have only ulaw, alaw, and gsm checked which is also something we checked. All other codecs are unchecked.

You’re not going to believe this or maybe you will, without making any changes I simply hit the ‘Submit’ and ‘Apply’ button on the IAX Settings tab and it’s now working. Thanks Dave for leading me back to those settings!

No victory lap yet. If it works for (say) 24 hours and stops working, there are other (usually routing) errors in play that can make this unreliable.

Let us know if the problem that went away by itself comes back by itself. :wink:

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.