All circuits are busy message during outgoing calls

Hi,
I installed Asterisk 1.8 and Distro 2.10. I’m using Audiocodes MP-118 ( 8 FXO) VoIP - analogy adapter in order to communicate with the external public exchange.
No any problem with incoming calls but some days I hear message that All circuits are busy when I’m trying to call outside via SIP trunk.
In first of all I see that adapter receipts invites from FreePBX, but calls rejected every time. Please help me
Outgoing Routing includes only one rule: 05. - dial via SIP trunk - that’s all. Actually adapter configured do not require authentication.

== Parsing ‘/etc/asterisk/asterisk.conf’: == Found
e[0;37me[0mConnected to Asterisk 1.8.11-cert1 currently running on its-dt031 (pid = 2829)
its-dt031*CLI>
e[0KVerbosity is at least 5

e[Kits-dt031*CLI>
e[0K == Using SIP RTP TOS bits 184

e[Kits-dt031*CLI>
e[0K == Using SIP RTP CoS mark 5

e[Kits-dt031*CLI>
e[0K – Executing [0545677046@from-internal:1] e[1;36mMacroe[0m(“e[1;35mSIP/201-0000000ae[0m”, “e[1;35muser-callerid,LIMIT,e[0m”) in new stack

e[Kits-dt031*CLI>
e[0K – Executing [s@macro-user-callerid:1] e[1;36mSete[0m(“e[1;35mSIP/201-0000000ae[0m”, “e[1;35mAMPUSER=201e[0m”) in new stack

e[Kits-dt031*CLI>
e[0K – Executing [s@macro-user-callerid:2] e[1;36mGotoIfe[0m(“e[1;35mSIP/201-0000000ae[0m”, “e[1;35m0?reporte[0m”) in new stack

e[Kits-dt031*CLI>
e[0K – Executing [s@macro-user-callerid:3] e[1;36mExecIfe[0m(“e[1;35mSIP/201-0000000ae[0m”, “e[1;35m1?Set(REALCALLERIDNUM=201)e[0m”) in new stack

e[Kits-dt031*CLI>
e[0K – Executing [s@macro-user-callerid:4] e[1;36mSete[0m(“e[1;35mSIP/201-0000000ae[0m”, “e[1;35mAMPUSER=201e[0m”) in new stack

e[Kits-dt031*CLI>
e[0K – Executing [s@macro-user-callerid:5] e[1;36mSete[0m(“e[1;35mSIP/201-0000000ae[0m”, “e[1;35mAMPUSERCIDNAME=3CX Softphonee[0m”) in new stack

e[Kits-dt031*CLI>
e[0K – Executing [s@macro-user-callerid:6] e[1;36mGotoIfe[0m(“e[1;35mSIP/201-0000000ae[0m”, “e[1;35m0?reporte[0m”) in new stack

e[Kits-dt031*CLI>
e[0K – Executing [s@macro-user-callerid:7] e[1;36mSete[0m(“e[1;35mSIP/201-0000000ae[0m”, “e[1;35mAMPUSERCID=201e[0m”) in new stack

e[Kits-dt031*CLI>
e[0K – Executing [s@macro-user-callerid:8] e[1;36mSete[0m(“e[1;35mSIP/201-0000000ae[0m”, “e[1;35mCALLERID(all)=“3CX Softphone” <201>e[0m”) in new stack

e[Kits-dt031*CLI>
e[0K – Executing [s@macro-user-callerid:9] e[1;36mGotoIfe[0m(“e[1;35mSIP/201-0000000ae[0m”, “e[1;35m0?limite[0m”) in new stack

e[Kits-dt031*CLI>
e[0K – Executing [s@macro-user-callerid:10] e[1;36mExecIfe[0m(“e[1;35mSIP/201-0000000ae[0m”, “e[1;35m1?Set(GROUP(concurrency_limit)=201)e[0m”) in new stack

e[Kits-dt031*CLI>
e[0K – Executing [s@macro-user-callerid:11] e[1;36mGotoIfe[0m(“e[1;35mSIP/201-0000000ae[0m”, “e[1;35m1?continuee[0m”) in new stack

e[Kits-dt031*CLI>
e[0K – Goto (macro-user-callerid,s,24)

e[Kits-dt031*CLI>
e[0K – Executing [s@macro-user-callerid:24] e[1;36mSete[0m(“e[1;35mSIP/201-0000000ae[0m”, “e[1;35mCALLERID(number)=201e[0m”) in new stack

e[Kits-dt031*CLI>
e[0K – Executing [s@macro-user-callerid:25] e[1;36mSete[0m(“e[1;35mSIP/201-0000000ae[0m”, “e[1;35mCALLERID(name)=3CX Softphonee[0m”) in new stack

e[Kits-dt031*CLI>
e[0K – Executing [s@macro-user-callerid:26] e[1;36mSete[0m(“e[1;35mSIP/201-0000000ae[0m”, “e[1;35mCHANNEL(language)=ene[0m”) in new stack

e[Kits-dt031*CLI>
e[0K – Executing [0545677046@from-internal:2] e[1;36mSete[0m(“e[1;35mSIP/201-0000000ae[0m”, “e[1;35mMOHCLASS=defaulte[0m”) in new stack

e[Kits-dt031*CLI>
e[0K – Executing [0545677046@from-internal:3] e[1;36mSete[0m(“e[1;35mSIP/201-0000000ae[0m”, “e[1;35m_NODEST=e[0m”) in new stack

e[Kits-dt031*CLI>
e[0K – Executing [0545677046@from-internal:4] e[1;36mGosube[0m(“e[1;35mSIP/201-0000000ae[0m”, “e[1;35msub-record-check,s,1(out,0545677046,)e[0m”) in new stack

e[Kits-dt031*CLI>
e[0K – Executing [s@sub-record-check:1] e[1;36mGotoIfe[0m(“e[1;35mSIP/201-0000000ae[0m”, “e[1;35m1?checke[0m”) in new stack

e[Kits-dt031*CLI>
e[0K – Goto (sub-record-check,s,3)

e[Kits-dt031*CLI>
e[0K – Executing [s@sub-record-check:3] e[1;36mSete[0m(“e[1;35mSIP/201-0000000ae[0m”, “e[1;35mMON_FMT=wave[0m”) in new stack

e[Kits-dt031*CLI>
e[0K – Executing [s@sub-record-check:4] e[1;36mGotoIfe[0m(“e[1;35mSIP/201-0000000ae[0m”, “e[1;35m1?nexte[0m”) in new stack

e[Kits-dt031*CLI>
e[0K – Goto (sub-record-check,s,7)

e[Kits-dt031*CLI>
e[0K – Executing [s@sub-record-check:7] e[1;36mExecIfe[0m(“e[1;35mSIP/201-0000000ae[0m”, “e[1;35m0?Return()e[0m”) in new stack

e[Kits-dt031*CLI>
e[0K – Executing [s@sub-record-check:8] e[1;36mGotoIfe[0m(“e[1;35mSIP/201-0000000ae[0m”, “e[1;35m0?out,1e[0m”) in new stack

e[Kits-dt031*CLI>
e[0K – Executing [s@sub-record-check:9] e[1;36mSete[0m(“e[1;35mSIP/201-0000000ae[0m”, “e[1;35m__REC_STATUS=INITIALIZEDe[0m”) in new stack

e[Kits-dt031*CLI>
e[0K – Executing [s@sub-record-check:10] e[1;36mExecIfe[0m(“e[1;35mSIP/201-0000000ae[0m”, “e[1;35m0?Set(__REC_POLICY_MODE=)e[0m”) in new stack
– Executing [s@sub-record-check:11] e[1;36mSete[0m(“e[1;35mSIP/201-0000000ae[0m”, “e[1;35mNOW=1347464004e[0m”) in new stack
– Executing [s@sub-record-check:12] e[1;36mSete[0m(“e[1;35mSIP/201-0000000ae[0m”, “e[1;35m__DAY=12e[0m”) in new stack
– Executing [s@sub-record-check:13] e[1;36mSete[0m(“e[1;35mSIP/201-0000000ae[0m”, “e[1;35m__MONTH=09e[0m”) in new stack
– Executing [s@sub-record-check:14] e[1;36mSete[0m(“e[1;35mSIP/201-0000000ae[0m”, “e[1;35m__YEAR=2012e[0m”) in new stack
– Executing [s@sub-record-check:15] e[1;36mSete[0m(“e[1;35mSIP/201-0000000ae[0m”, “e[1;35m__TIMESTR=20120912-183324e[0m”) in new stack
– Executing [s@sub-record-check:16] e[1;36mSete[0m(“e[1;35mSIP/201-0000000ae[0m”, “e[1;35m__FROMEXTEN=201e[0m”) in new stack
– Executing [s@sub-record-check:17] e[1;36mSete[0m(“e[1;35mSIP/201-0000000ae[0m”, “e[1;35m__CALLFILENAME=out-0545677046-201-20120912-183324-1347464004.10e[0m”) in new stack
– Executing [s@sub-record-check:18] e[1;36mGotoe[0m(“e[1;35mSIP/201-0000000ae[0m”, “e[1;35mout,1e[0m”) in new stack
– Goto (sub-record-check,out,1)
– Executing [out@sub-record-check:1] e[1;36mExecIfe[0m(“e[1;35mSIP/201-0000000ae[0m”, “e[1;35m1?Set(__REC_POLICY_MODE=dontcare)e[0m”) in new stack
– Executing [out@sub-record-check:2] e[1;36mGosubIfe[0m(“e[1;35mSIP/201-0000000ae[0m”, “e[1;35m0?record,1(exten,0545677046,201)e[0m”) in new stack
– Executing [out@sub-record-check:3] e[1;36mReturne[0m(“e[1;35mSIP/201-0000000ae[0m”, “e[1;35me[0m”) in new stack
– Executing [0545677046@from-internal:5] e[1;36mMacroe[0m(“e[1;35mSIP/201-0000000ae[0m”, “e[1;35mdialout-trunk,2,0545677046,e[0m”) in new stack
– Executing [s@macro-dialout-trunk:1] e[1;36mSete[0m(“e[1;35mSIP/201-0000000ae[0m”, “e[1;35mDIAL_TRUNK=2e[0m”) in new stack
– Executing [s@macro-dialout-trunk:2] e[1;36mGosubIfe[0m(“e[1;35mSIP/201-0000000ae[0m”, “e[1;35m0?sub-pincheck,s,1()e[0m”) in new stack
– Executing [s@macro-dialout-trunk:3] e[1;36mGotoIfe[0m(“e[1;35mSIP/201-0000000ae[0m”, “e[1;35m0?disabletrunk,1e[0m”) in new stack
– Executing [s@macro-dialout-trunk:4] e[1;36mSete[0m(“e[1;35mSIP/201-0000000ae[0m”, “e[1;35mDIAL_NUMBER=0545677046e[0m”) in new stack
– Executing [s@macro-dialout-trunk:5] e[1;36mSete[0m(“e[1;35mSIP/201-0000000ae[0m”, “e[1;35mDIAL_TRUNK_OPTIONS=tre[0m”) in new stack
– Executing [s@macro-dialout-trunk:6] e[1;36mSete[0m(“e[1;35mSIP/201-0000000ae[0m”, “e[1;35mOUTBOUND_GROUP=OUT_2e[0m”) in new stack
– Executing [s@macro-dialout-trunk:7] e[1;36mGotoIfe[0m(“e[1;35mSIP/201-0000000ae[0m”, “e[1;35m1?nomaxe[0m”) in new stack
– Goto (macro-dialout-trunk,s,9)
– Executing [s@macro-dialout-trunk:9] e[1;36mGotoIfe[0m(“e[1;35mSIP/201-0000000ae[0m”, “e[1;35m0?skipoutcide[0m”) in new stack
– Executing [s@macro-dialout-trunk:10] e[1;36mSete[0m(“e[1;35mSIP/201-0000000ae[0m”, “e[1;35mDIAL_TRUNK_OPTIONS=e[0m”) in new stack
– Executing [s@macro-dialout-trunk:11] e[1;36mMacroe[0m(“e[1;35mSIP/201-0000000ae[0m”, “e[1;35moutbound-callerid,2e[0m”) in new stack
– Executing [s@macro-outbound-callerid:1] e[1;36mExecIfe[0m(“e[1;35mSIP/201-0000000ae[0m”, “e[1;35m0?Set(CALLERPRES()=)e[0m”) in new stack
– Executing [s@macro-outbound-callerid:2] e[1;36mExecIfe[0m(“e[1;35mSIP/201-0000000ae[0m”, “e[1;35m0?Set(REALCALLERIDNUM=201)e[0m”) in new stack
– Executing [s@macro-outbound-callerid:3] e[1;36mGotoIfe[0m(“e[1;35mSIP/201-0000000ae[0m”, “e[1;35m1?normcide[0m”) in new stack
– Goto (macro-outbound-callerid,s,6)
– Executing [s@macro-outbound-callerid:6] e[1;36mSete[0m(“e[1;35mSIP/201-0000000ae[0m”, “e[1;35mUSEROUTCID=e[0m”) in new stack
– Executing [s@macro-outbound-callerid:7] e[1;36mSete[0m(“e[1;35mSIP/201-0000000ae[0m”, “e[1;35mEMERGENCYCID=e[0m”) in new stack
– Executing [s@macro-outbound-callerid:8] e[1;36mSete[0m(“e[1;35mSIP/201-0000000ae[0m”, “e[1;35mTRUNKOUTCID=e[0m”) in new stack
– Executing [s@macro-outbound-callerid:9] e[1;36mGotoIfe[0m(“e[1;35mSIP/201-0000000ae[0m”, “e[1;35m1?trunkcide[0m”) in new stack
– Goto (macro-outbound-callerid,s,12)
– Executing [s@macro-outbound-callerid:12] e[1;36mExecIfe[0m(“e[1;35mSIP/201-0000000ae[0m”, “e[1;35m0?Set(CALLERID(all)=)e[0m”) in new stack
– Executing [s@macro-outbound-callerid:13] e[1;36mExecIfe[0m(“e[1;35mSIP/201-0000000ae[0m”, “e[1;35m0?Set(CALLERID(all)=)e[0m”) in new stack
– Executing [s@macro-outbound-callerid:14] e[1;36mExecIfe[0m(“e[1;35mSIP/201-0000000ae[0m”, “e[1;35m0?Set(CALLERID(all)=)e[0m”) in new stack
– Executing [s@macro-outbound-callerid:15] e[1;36mExecIfe[0m(“e[1;35mSIP/201-0000000ae[0m”, “e[1;35m0?Set(CALLERPRES()=prohib_passed_screen)e[0m”) in new stack
– Executing [s@macro-dialout-trunk:12] e[1;36mGosubIfe[0m(“e[1;35mSIP/201-0000000ae[0m”, “e[1;35m0?sub-flp-2,s,1()e[0m”) in new stack
– Executing [s@macro-dialout-trunk:13] e[1;36mSete[0m(“e[1;35mSIP/201-0000000ae[0m”, “e[1;35mOUTNUM=0545677046e[0m”) in new stack
– Executing [s@macro-dialout-trunk:14] e[1;36mSete[0m(“e[1;35mSIP/201-0000000ae[0m”, “e[1;35mcustom=SIP/AudioFXOe[0m”) in new stack
– Executing [s@macro-dialout-trunk:15] e[1;36mExecIfe[0m(“e[1;35mSIP/201-0000000ae[0m”, “e[1;35m0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default))e[0m”) in new stack
– Executing [s@macro-dialout-trunk:16] e[1;36mExecIfe[0m(“e[1;35mSIP/201-0000000ae[0m”, “e[1;35m0?Set(DIAL_TRUNK_OPTIONS=M(confirm))e[0m”) in new stack
– Executing [s@macro-dialout-trunk:17] e[1;36mMacroe[0m(“e[1;35mSIP/201-0000000ae[0m”, “e[1;35mdialout-trunk-predial-hook,e[0m”) in new stack
– Executing [s@macro-dialout-trunk-predial-hook:1] e[1;36mMacroExite[0m(“e[1;35mSIP/201-0000000ae[0m”, “e[1;35me[0m”) in new stack
– Executing [s@macro-dialout-trunk:18] e[1;36mGotoIfe[0m(“e[1;35mSIP/201-0000000ae[0m”, “e[1;35m0?bypass,1e[0m”) in new stack
– Executing [s@macro-dialout-trunk:19] e[1;36mExecIfe[0m(“e[1;35mSIP/201-0000000ae[0m”, “e[1;35m1?Set(CONNECTEDLINE(num,i)=0545677046)e[0m”) in new stack
– Executing [s@macro-dialout-trunk:20] e[1;36mExecIfe[0m(“e[1;35mSIP/201-0000000ae[0m”, “e[1;35m1?Set(CONNECTEDLINE(name,i)=CID:201)e[0m”) in new stack
– Executing [s@macro-dialout-trunk:21] e[1;36mGotoIfe[0m(“e[1;35mSIP/201-0000000ae[0m”, “e[1;35m0?customtrunke[0m”) in new stack
– Executing [s@macro-dialout-trunk:22] e[1;36mDiale[0m(“e[1;35mSIP/201-0000000ae[0m”, “e[1;35mSIP/AudioFXO/0545677046,300,e[0m”) in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Called SIP/AudioFXO/0545677046

e[Kits-dt031*CLI>
e[0K == Everyone is busy/congested at this time (1:0/1/0)

e[Kits-dt031*CLI>
e[0K – Executing [s@macro-dialout-trunk:23] e[1;36mNoOpe[0m(“e[1;35mSIP/201-0000000ae[0m”, “e[1;35mDial failed for some reason with DIALSTATUS = CONGESTION and HANGUPCAUSE = 34e[0m”) in new stack

e[Kits-dt031*CLI>
e[0K – Executing [s@macro-dialout-trunk:24] e[1;36mGotoe[0m(“e[1;35mSIP/201-0000000ae[0m”, “e[1;35ms-CONGESTION,1e[0m”) in new stack

e[Kits-dt031*CLI>
e[0K – Goto (macro-dialout-trunk,s-CONGESTION,1)

e[Kits-dt031*CLI>
e[0K – Executing [s-CONGESTION@macro-dialout-trunk:1] e[1;36mSete[0m(“e[1;35mSIP/201-0000000ae[0m”, “e[1;35mRC=34e[0m”) in new stack

e[Kits-dt031*CLI>
e[0K – Executing [s-CONGESTION@macro-dialout-trunk:2] e[1;36mGotoe[0m(“e[1;35mSIP/201-0000000ae[0m”, “e[1;35m34,1e[0m”) in new stack

e[Kits-dt031*CLI>
e[0K – Goto (macro-dialout-trunk,34,1)

e[Kits-dt031*CLI>
e[0K – Executing [34@macro-dialout-trunk:1] e[1;36mGotoe[0m(“e[1;35mSIP/201-0000000ae[0m”, “e[1;35mcontinue,1e[0m”) in new stack

e[Kits-dt031*CLI>
e[0K – Goto (macro-dialout-trunk,continue,1)

e[Kits-dt031*CLI>
e[0K – Executing [continue@macro-dialout-trunk:1] e[1;36mGotoIfe[0m(“e[1;35mSIP/201-0000000ae[0m”, “e[1;35m1?noreporte[0m”) in new stack

e[Kits-dt031*CLI>
e[0K – Goto (macro-dialout-trunk,continue,3)

e[Kits-dt031*CLI>
e[0K – Executing [continue@macro-dialout-trunk:3] e[1;36mNoOpe[0m(“e[1;35mSIP/201-0000000ae[0m”, “e[1;35mTRUNK Dial failed due to CONGESTION HANGUPCAUSE: 34 - failing through to other trunkse[0m”) in new stack

e[Kits-dt031*CLI>
e[0K – Executing [continue@macro-dialout-trunk:4] e[1;36mSete[0m(“e[1;35mSIP/201-0000000ae[0m”, “e[1;35mCALLERID(number)=201e[0m”) in new stack

e[Kits-dt031*CLI>
e[0K – Executing [0545677046@from-internal:6] e[1;36mMacroe[0m(“e[1;35mSIP/201-0000000ae[0m”, “e[1;35moutisbusy,e[0m”) in new stack

e[Kits-dt031*CLI>
e[0K – Executing [s@macro-outisbusy:1] e[1;36mProgresse[0m(“e[1;35mSIP/201-0000000ae[0m”, “e[1;35me[0m”) in new stack

e[Kits-dt031*CLI>
e[0K – Executing [s@macro-outisbusy:2] e[1;36mPlaybacke[0m(“e[1;35mSIP/201-0000000ae[0m”, “e[1;35mall-circuits-busy-now,noanswere[0m”) in new stack

e[Kits-dt031*CLI>
e[0K – <SIP/201-0000000a> Playing ‘all-circuits-busy-now.gsm’ (language ‘en’)

e[Kits-dt031*CLI>
e[0K – Executing [s@macro-outisbusy:3] e[1;36mPlaybacke[0m(“e[1;35mSIP/201-0000000ae[0m”, “e[1;35mpls-try-call-later,noanswere[0m”) in new stack

e[Kits-dt031*CLI>
e[0K – <SIP/201-0000000a> Playing ‘pls-try-call-later.gsm’ (language ‘en’)

e[Kits-dt031*CLI>

Problem was in Audiocodes FXO gateway configuration. I forgot to specify a hunt group for outgoing calls.
Thanks for all of you !!!

I had the same problem with an Epygi FXO gateway and found i had to setup an outbound route in there as well so it could handle the call coming out from FreePBX.
Makes sense and you will have to ask someone with knowledge of the gateway you are using on how to do this.
I have used Patton SN4114 and Epygi Quadro6 as gateways and both were completely different.
Good luck and when you find the answer, post for others to refernce.

– Called SIP/AudioFXO/0545677046

[Kits-dt031*CLI> [0K == Everyone is busy/congested at this time (1:0/1/0)

This line proves your gateway is accepting the digits and rejecting the calls.

I will bet you dollars to donuts that you do not have your FXO’s configured for your particular Telco’s “disconnect supervision” you can check it by sticking a “good old single line telephone” (SLT) onto the incoming line, eithere a “battery reversal” or a “wink” where the battery is removed momentarily, if neither is available then you need to “busydetect”. If you hear a loud “beep, beep, beep, . . . .” then you need to fix that in your Audicodes configuration.

(Hmm, actually around here donuts cost more than a dollar, make that “politician’s promises”)

Can you post more details in how you fixed it? I think I have the same issue. I can make one call, but the second it tries to fire up a second outgoing call I get “All cirtcuits busy”. I’ve got an Audiocodes as well.