Trouble with the famous "All circuits are busy now&quot

Hi there,

Having strange trouble with my asterisk machine; it works 80% of the time, but on some occasions when i call, I get “all circuits are busy now”, resulting in me having to kill and restart asterisk. Any ideas?

This is the log:

[root@asterisk1 ~]# tail /var/log/asterisk/full
Aug 14 10:40:28 WARNING[4658] app_macro.c: Context ‘macro-dialout-trunk-predial-hook’ for macro ‘dialout-trunk-predial-hook’ lacks ‘s’ extension, priority 1
Aug 14 10:40:28 NOTICE[4658] app_dial.c: Unable to create channel of type ‘ZAP’ (cause 34 - Circuit/channel congestion)
Aug 14 10:40:28 WARNING[4658] app_macro.c: Context ‘macro-dialout-trunk-predial-hook’ for macro ‘dialout-trunk-predial-hook’ lacks ‘s’ extension, priority 1
Aug 14 10:41:32 NOTICE[4658] cdr.c: CDR on channel ‘SIP/5800-0a1d7ba8’ not posted
Aug 14 10:41:32 NOTICE[4658] cdr.c: CDR on channel ‘SIP/5800-0a1d7ba8’ lacks end
Aug 14 10:42:26 NOTICE[4069] chan_sip.c: – Registration for 'adnexus@sip.voipbuster.com’ timed out, trying again (Attempt #1)
Aug 14 10:42:51 WARNING[4680] app_macro.c: Context ‘macro-dialout-trunk-predial-hook’ for macro ‘dialout-trunk-predial-hook’ lacks ‘s’ extension, priority 1
Aug 14 10:42:51 NOTICE[4680] app_dial.c: Unable to create channel of type ‘SIP’ (cause 3 - No route to destination)
Aug 14 10:43:41 WARNING[4726] app_macro.c: Context ‘macro-dialout-trunk-predial-hook’ for macro ‘dialout-trunk-predial-hook’ lacks ‘s’ extension, priority 1
Aug 14 10:43:41 NOTICE[4726] app_dial.c: Unable to create channel of type ‘SIP’ (cause 3 - No route to destination)
[root@asterisk1 ~]#
[root@asterisk1 ~]# tail /var/log/asterisk/full
Aug 14 10:44:24 WARNING[5130] frame.c: Cannot disallow unknown format ''
Aug 14 10:44:24 WARNING[5130] frame.c: Cannot allow unknown format ''
Aug 14 10:44:24 WARNING[5130] frame.c: Cannot disallow unknown format ''
Aug 14 10:44:24 WARNING[5130] frame.c: Cannot allow unknown format ''
Aug 14 10:44:24 WARNING[5130] frame.c: Cannot disallow unknown format ''
Aug 14 10:44:24 WARNING[5130] frame.c: Cannot allow unknown format ''
Aug 14 10:44:24 VERBOSE[5151] logger.c: 4 Ri = 61685 TEI msg = 3 TEI = 7f
Aug 14 10:44:25 WARNING[5130] cdr_custom.c: Failed to load configuration file. Module not activated.
Aug 14 10:44:28 NOTICE[5145] chan_sip.c: Peer ‘main’ is now UNREACHABLE! Last qualify: 0
Aug 14 10:44:45 VERBOSE[5148] logger.c: 1 received TEI check request for TEI = 96

Registration for 'adnexus@sip.voipbuster.com’ timed out, trying again (Attempt #1)

Sounds like you probably have network quality issues causing asterisk to loose connections with your VOIP provider.

Verify your local wiring and network equipment are all in good shape as a first step.
If all is well there try contacting your ISP to see if they see any issues on there end that may cause packet loss (good luck getting them to admit it though!).
As a last resort try another VOIP provider or another ISP.