Resolved - specific outgoing calls fail with "all circuits are busy"

I just wanted to throw this up somewhere in the hopes that it may help someone, someday. I couldn’t find anything posted on any forums that addressed my specific problem.

Outgoing calls to specific numbers would always fail with congestion messages and the “all circuits are busy” message. It turns out that our SIP trunk provider, by default, rejects any outgoing calls with a NANPA rate higher than .040 cents/minute and we were calling a rural area with a rate of .063. We got the cap raised and everything is fine now. I’ll attach some lines from the log.

[2012-05-09 11:58:32] NOTICE[31867] chan_sip.c: Failed to authenticate on INVITE to ‘“caller” sip:[email protected];tag=as7d9f447f’
[2012-05-09 11:58:32] VERBOSE[25031] app_dial.c: – SIP/VP-SIPJFKB-0000004c is circuit-busy
[2012-05-09 11:58:32] VERBOSE[25031] app_dial.c: == Everyone is busy/congested at this time (1:0/1/0)
[2012-05-09 11:58:32] VERBOSE[25031] pbx.c: – Executing [[email protected]:23] NoOp(“SIP/01-0000004a”, “Dial failed for some reason with DIALSTATUS = CONGESTION and HANGUPCAUSE = 21”) in new stack
[2012-05-09 11:58:32] VERBOSE[25031] pbx.c: – Executing [[email protected]:24] Goto(“SIP/01-0000004a”, “s-CONGESTION,1”) in new stack
[2012-05-09 11:58:32] VERBOSE[25031] pbx.c: – Goto (macro-dialout-trunk,s-CONGESTION,1)
[2012-05-09 11:58:32] VERBOSE[25031] pbx.c: – Executing [[email protected]:1] Set(“SIP/01-0000004a”, “RC=21”) in new stack
[2012-05-09 11:58:32] VERBOSE[25031] pbx.c: – Executing [[email protected]:2] Goto(“SIP/01-0000004a”, “21,1”) in new stack
[2012-05-09 11:58:32] VERBOSE[25031] pbx.c: – Goto (macro-dialout-trunk,21,1)
[2012-05-09 11:58:32] VERBOSE[25031] pbx.c: – Executing [[email protected]:1] Goto(“SIP/01-0000004a”, “continue,1”) in new stack
[2012-05-09 11:58:32] VERBOSE[25031] pbx.c: – Goto (macro-dialout-trunk,continue,1)
[2012-05-09 11:58:32] VERBOSE[25031] pbx.c: – Executing [[email protected]:1] GotoIf(“SIP/01-0000004a”, “1?noreport”) in new stack
[2012-05-09 11:58:32] VERBOSE[25031] pbx.c: – Goto (macro-dialout-trunk,continue,3)
[2012-05-09 11:58:32] VERBOSE[25031] pbx.c: – Executing [[email protected]:3] NoOp(“SIP/01-0000004a”, “TRUNK Dial failed due to CONGESTION HANGUPCAUSE: 21 - failing through to other trunks”) in new stack
[2012-05-09 11:58:32] VERBOSE[25031] pbx.c: – Executing [[email protected]:4] Set(“SIP/01-0000004a”, “CALLERID(number)=01”) in new stack
[2012-05-09 11:58:32] VERBOSE[25031] pbx.c: – Executing [[email protected]:7] Macro(“SIP/01-0000004a”, “outisbusy,”) in new stack
[2012-05-09 11:58:32] VERBOSE[25031] pbx.c: – Executing [[email protected]:1] Progress(“SIP/01-0000004a”, “”) in new stack
[2012-05-09 11:58:32] VERBOSE[25031] pbx.c: – Executing [[email protected]:2] GotoIf(“SIP/01-0000004a”, “0?emergency,1”) in new stack
[2012-05-09 11:58:32] VERBOSE[25031] pbx.c: – Executing [[email protected]:3] GotoIf(“SIP/01-0000004a”, “0?intracompany,1”) in new stack
[2012-05-09 11:58:32] VERBOSE[25031] pbx.c: – Executing [[email protected]:4] Playback(“SIP/01-0000004a”, “all-circuits-busy-now&pls-try-call-later, noanswer”) in new stack
[2012-05-09 11:58:32] VERBOSE[25031] file.c: – <SIP/01-0000004a> Playing ‘all-circuits-busy-now.ulaw’ (language ‘en’)
[2012-05-09 11:58:34] VERBOSE[25031] file.c: – <SIP/01-0000004a> Playing ‘pls-try-call-later.ulaw’ (language ‘en’)
[2012-05-09 11:58:34] VERBOSE[25031] app_macro.c: == Spawn extension (macro-outisbusy, s, 4) exited non-zero on ‘SIP/01-0000004a’ in macro ‘outisbusy’
[2012-05-09 11:58:34] VERBOSE[25031] pbx.c: == Spawn extension (from-internal, 0000000000, 7) exited non-zero on ‘SIP/01-0000004a’
[2012-05-09 11:58:34] VERBOSE[25031] pbx.c: – Executing [[email protected]:1] Hangup(“SIP/01-0000004a”, “”) in new stack
[2012-05-09 11:58:34] VERBOSE[25031] pbx.c: == Spawn extension (from-internal, h, 1) exited non-zero on ‘SIP/01-0000004a’

Care to share the name of your provider. I too am experiencing a sporadic all circuits busy when making outbound calls to various numbers.