All circuits are busy now on outgoing

Hi, I have had FreePBX running for 18 months now, it has been a bit flaky with the system not excepting incoming calls and not allowing outbound calls, generally a reboot on the syst3em fixes this.

Its not getting very frustrating and I’m finally doing something about it.

A reboot this time did not fix the issue. on out bound calls I’m getting “All circuits are busy now”

Log file below

  • Executing [[email protected]:2] Set(“SIP/700-00000007”, “MOHCLASS=default”) in new stack
  • Executing [[email protected]:3] Set(“SIP/700-00000007”, “_NODEST=”) in new stack
  • Executing [[email protected]:4] Gosub(“SIP/700-00000007”, “sub-record-check,s,1(out,042961253,)”) in new stack
  • Executing [[email protected]:1] Set(“SIP/700-00000007”, “REC_POLICY_MODE_SAVE=”) in new stack
  • Executing [[email protected]:2] GotoIf(“SIP/700-00000007”, “1?check”) in new stack
  • Goto (sub-record-check,s,7)
  • Executing [[email protected]:7] Set(“SIP/700-00000007”, “__MON_FMT=wav”) in new stack
  • Executing [[email protected]:8] GotoIf(“SIP/700-00000007”, “1?next”) in new stack
  • Goto (sub-record-check,s,11)
  • Executing [[email protected]:11] ExecIf(“SIP/700-00000007”, “0?Return()”) in new stack
  • Executing [[email protected]:12] ExecIf(“SIP/700-00000007”, “0?Set(__REC_POLICY_MODE=)”) in new stack
  • Executing [[email protected]:13] GotoIf(“SIP/700-00000007”, “0?out,1”) in new stack
  • Executing [[email protected]:14] Set(“SIP/700-00000007”, “__REC_STATUS=INITIALIZED”) in new stack
  • Executing [[email protected]:15] Set(“SIP/700-00000007”, “NOW=1390605046”) in new stack
  • Executing [[email protected]:16] Set(“SIP/700-00000007”, “__DAY=25”) in new stack
  • Executing [[email protected]:17] Set(“SIP/700-00000007”, “__MONTH=01”) in new stack
  • Executing [[email protected]:18] Set(“SIP/700-00000007”, “__YEAR=2014”) in new stack
  • Executing [[email protected]:19] Set(“SIP/700-00000007”, “__TIMESTR=20140125-121046”) in new stack
  • Executing [[email protected]:20] Set(“SIP/700-00000007”, “__FROMEXTEN=700”) in new stack
  • Executing [[email protected]:21] Set(“SIP/700-00000007”, “__CALLFILENAME=out-042961253-700-20140125-121046-1390605046.7”) in new stack
  • Executing [[email protected]:22] Goto(“SIP/700-00000007”, “out,1”) in new stack
  • Goto (sub-record-check,out,1)
  • Executing [[email protected]:1] ExecIf(“SIP/700-00000007”, “1?Set(__REC_POLICY_MODE=dontcare)”) in new stack
  • Executing [[email protected]:2] GosubIf(“SIP/700-00000007”, “0?record,1(exten,042961253,700)”) in new stack
  • Executing [[email protected]:3] Return(“SIP/700-00000007”, “”) in new stack
  • Executing [[email protected]:5] Macro(“SIP/700-00000007”, “dialout-trunk,2,042961253,off”) in new stack
  • Executing [[email protected]:1] Set(“SIP/700-00000007”, “DIAL_TRUNK=2”) in new stack
  • Executing [[email protected]:2] GosubIf(“SIP/700-00000007”, “0?sub-pincheck,s,1()”) in new stack
  • Executing [[email protected]:3] GotoIf(“SIP/700-00000007”, “0?disabletrunk,1”) in new stack
  • Executing [[email protected]:4] Set(“SIP/700-00000007”, “DIAL_NUMBER=042961253”) in new stack
  • Executing [[email protected]:5] Set(“SIP/700-00000007”, “DIAL_TRUNK_OPTIONS=tr”) in new stack
  • Executing [[email protected]:6] Set(“SIP/700-00000007”, “OUTBOUND_GROUP=OUT_2”) in new stack
  • Executing [[email protected]:7] GotoIf(“SIP/700-00000007”, “0?nomax”) in new stack
  • Executing [[email protected]:8] GotoIf(“SIP/700-00000007”, “0?chanfull”) in new stack
  • Executing [[email protected]:9] GotoIf(“SIP/700-00000007”, “0?skipoutcid”) in new stack
  • Executing [[email protected]:10] Set(“SIP/700-00000007”, “DIAL_TRUNK_OPTIONS=”) in new stack
  • Executing [[email protected]:11] Macro(“SIP/700-00000007”, “outbound-callerid,2”) in new stack
  • Executing [[email protected]:1] ExecIf(“SIP/700-00000007”, “0?Set(CALLERPRES()=)”) in new stack
  • Executing [[email protected]:2] ExecIf(“SIP/700-00000007”, “0?Set(REALCALLERIDNUM=700)”) in new stack
  • Executing [[email protected]:3] GotoIf(“SIP/700-00000007”, “1?normcid”) in new stack
  • Goto (macro-outbound-callerid,s,6)
  • Executing [[email protected]:6] Set(“SIP/700-00000007”, “USEROUTCID=042398117”) in new stack
  • Executing [[email protected]:7] Set(“SIP/700-00000007”, “EMERGENCYCID=”) in new stack
  • Executing [[email protected]:8] Set(“SIP/700-00000007”, “TRUNKOUTCID=042398117”) in new stack
  • Executing [[email protected]:9] GotoIf(“SIP/700-00000007”, “1?trunkcid”) in new stack
  • Goto (macro-outbound-callerid,s,14)
  • Executing [[email protected]:14] ExecIf(“SIP/700-00000007”, “1?Set(CALLERID(all)=042398117)”) in new stack
  • Executing [[email protected]:15] ExecIf(“SIP/700-00000007”, “1?Set(CALLERID(all)=042398117)”) in new stack
  • Executing [[email protected]:16] ExecIf(“SIP/700-00000007”, “0?Set(CALLERID(all)=)”) in new stack
  • Executing [[email protected]:17] ExecIf(“SIP/700-00000007”, “0?Set(CALLERPRES()=prohib_passed_screen)”) in new stack
  • Executing [[email protected]:18] Set(“SIP/700-00000007”, “CDR(outbound_cnum)=042398117”) in new stack
  • Executing [[email protected]:19] Set(“SIP/700-00000007”, “CDR(outbound_cnam)=”) in new stack
  • Executing [[email protected]:12] GosubIf(“SIP/700-00000007”, “0?sub-flp-2,s,1()”) in new stack
  • Executing [[email protected]:13] Set(“SIP/700-00000007”, “OUTNUM=042961253”) in new stack
  • Executing [[email protected]:14] Set(“SIP/700-00000007”, “custom=SIP/iTalk”) in new stack
  • Executing [[email protected]:15] ExecIf(“SIP/700-00000007”, “0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default))”) in new stack
  • Executing [[email protected]:16] ExecIf(“SIP/700-00000007”, “0?Set(DIAL_TRUNK_OPTIONS=M(confirm))”) in new stack
  • Executing [[email protected]:17] Macro(“SIP/700-00000007”, “dialout-trunk-predial-hook,”) in new stack
  • Executing [[email protected]:1] MacroExit(“SIP/700-00000007”, “”) in new stack
  • Executing [[email protected]:18] GotoIf(“SIP/700-00000007”, “0?bypass,1”) in new stack
  • Executing [[email protected]:19] ExecIf(“SIP/700-00000007”, “1?Set(CONNECTEDLINE(num,i)=042961253)”) in new stack
  • Executing [[email protected]:20] ExecIf(“SIP/700-00000007”, “1?Set(CONNECTEDLINE(name,i)=CID:042398117)”) in new stack
  • Executing [[email protected]:21] GotoIf(“SIP/700-00000007”, “0?customtrunk”) in new stack
  • Executing [[email protected]:22] Dial(“SIP/700-00000007”, “SIP/iTalk/042961253,300,”) in new stack
    .c: == Using SIP RTP TOS bits 184
    .c: == Using SIP RTP CoS mark 5
    .c: – Called SIP/iTalk/042961253
    .c: == Everyone is busy/congested at this time (1:0/0/1)
  • Executing [[email protected]:23] NoOp(“SIP/700-00000007”, “Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 1”) in ne
  • Executing [[email protected]:24] GotoIf(“SIP/700-00000007”, “0?continue,1:s-CHANUNAVAIL,1”) in new stack
  • Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
  • Executing [[email protected]-trunk:1] Set(“SIP/700-00000007”, “RC=1”) in new stack
  • Executing [[email protected]:2] Goto(“SIP/700-00000007”, “1,1”) in new stack
  • Goto (macro-dialout-trunk,1,1)
  • Executing [[email protected]:1] Goto(“SIP/700-00000007”, “continue,1”) in new stack
  • Goto (macro-dialout-trunk,continue,1)
  • Executing [[email protected]:1] NoOp(“SIP/700-00000007”, "TRUNK Dial failed due to CHANUNAVAIL HANGUPCAUSE: 1 - failing through to other
  • Executing [[email protected]:2] Set(“SIP/700-00000007”, “CALLERID(number)=700”) in new stack
  • Executing [[email protected]:6] Macro(“SIP/700-00000007”, “outisbusy,”) in new stack
  • Executing [[email protected]:1] Progress(“SIP/700-00000007”, “”) in new stack
  • Executing [[email protected]:2] Playback(“SIP/700-00000007”, “all-circuits-busy-now,noanswer”) in new stack
    – <SIP/700-00000007> Playing ‘all-circuits-busy-now.ulaw’ (language ‘en’)
  • Executing [[email protected]:3] Playback(“SIP/700-00000007”, “pls-try-call-later,noanswer”) in new stack
    – <SIP/700-00000007> Playing ‘pls-try-call-later.ulaw’ (language ‘en’)
  • Executing [[email protected]:4] Macro(“SIP/700-00000007”, “hangupcall”) in new stack
  • Executing [[email protected]:1] GotoIf(“SIP/700-00000007”, “1?theend”) in new stack
  • Goto (macro-hangupcall,s,3)
  • Executing [[email protected]:3] ExecIf(“SIP/700-00000007”, “0?Set(CDR(recordingfile)=)”) in new stack
  • Executing [[email protected]:4] Hangup(“SIP/700-00000007”, “”) in new stack
    o.c: == Spawn extension (macro-hangupcall, s, 4) exited non-zero on ‘SIP/700-00000007’ in macro 'hangupcall’
    o.c: == Spawn extension (macro-outisbusy, s, 4) exited non-zero on ‘SIP/700-00000007’ in macro ‘outisbusy’
    = Spawn extension (from-internal, 042961253, 6) exited non-zero on ‘SIP/700-00000007’
  • Executing [[email protected]:1] Hangup(“SIP/700-00000007”, “”) in new stack
    = Spawn extension (from-internal, h, 1) exited non-zero on ‘SIP/700-00000007’

Sorry if some of this is not relevant I don’t know enough about it to start leaving lines out. Let me know and I’ll remove some.

Trunk config is
type=friend
username=6442398117
fromuser=6442398117
secret=password
host=203.184.16.2
context=from-trunk
dtmfmode=rfc2833
disallow=all
allow=alaw&ulaw
nat=yes
canreinvite=no
insecure=invite,port

Anyone able to provide some pointers.

Thanks
Grant

It is in your post, your call to 042961253 on your trunk iTalk failed with cause 1 which is kind-of generic and not really helpful, you should check with your provider why they are not accepting your call to that number with your announced CID of 042398117 it could be most anything here but almost certainly because you have not set up your routes and trunks correctly. . .