All Circuits are busy nightmare

Hi,
Fingers crossed someone can point me in the right direct on this issue, I’ve been trying to figure it out for almost a week now.

I’ve installed a digium TDM800P card on a clean install on FreePBX. The card currently has 4 FXO ports

After some browsing of this forum I can receive incoming calls and make internals calls but when I try to make externals calls I just get the ‘all circuits are busy’ message.

I’ve had a good look round the forums but none of the other posts relating to this error seem to have helped.

I suspect it’s something blindingly obvious but none the less I’m completely bamboozled.

Here’s my log file from an attempted call:

[2012-04-23 17:41:29] VERBOSE[3354] netsock2.c: == Using SIP RTP TOS bits 184 [2012-04-23 17:41:29] VERBOSE[3354] netsock2.c: == Using SIP RTP CoS mark 5 [2012-04-23 17:41:29] VERBOSE[3684] pbx.c: -- Executing [[email protected]internal:1] Macro("SIP/6029-00000000", "user-callerid,LIMIT,") in new stack [2012-04-23 17:41:29] VERBOSE[3684] pbx.c: -- Executing [[email protected]:1] Set("SIP/6029-00000000", "AMPUSER=6029") in new stack [2012-04-23 17:41:29] VERBOSE[3684] pbx.c: -- Executing [[email protected]:2] GotoIf("SIP/6029-00000000", "0?report") in new stack [2012-04-23 17:41:29] VERBOSE[3684] pbx.c: -- Executing [[email protected]:3] ExecIf("SIP/6029-00000000", "1?Set(REALCALLERIDNUM=6029)") in new stack [2012-04-23 17:41:29] VERBOSE[3684] pbx.c: -- Executing [[email protected]:4] Set("SIP/6029-00000000", "AMPUSER=6029") in new stack [2012-04-23 17:41:29] VERBOSE[3684] pbx.c: -- Executing [[email protected]:5] Set("SIP/6029-00000000", "AMPUSERCIDNAME=Jamie Computer") in new stack [2012-04-23 17:41:29] VERBOSE[3684] pbx.c: -- Executing [[email protected]:6] GotoIf("SIP/6029-00000000", "0?report") in new stack [2012-04-23 17:41:29] VERBOSE[3684] pbx.c: -- Executing [[email protected]:7] Set("SIP/6029-00000000", "AMPUSERCID=6029") in new stack [2012-04-23 17:41:29] VERBOSE[3684] pbx.c: -- Executing [[email protected]:8] Set("SIP/6029-00000000", "CALLERID(all)="Jamie Computer" <6029>") in new stack [2012-04-23 17:41:29] VERBOSE[3684] pbx.c: -- Executing [[email protected]:9] GotoIf("SIP/6029-00000000", "0?limit") in new stack [2012-04-23 17:41:29] VERBOSE[3684] pbx.c: -- Executing [[email protected]:10] ExecIf("SIP/6029-00000000", "1?Set(GROUP(concurrency_limit)=6029)") in new stack [2012-04-23 17:41:29] VERBOSE[3684] pbx.c: -- Executing [[email protected]:11] ExecIf("SIP/6029-00000000", "0?Set(CHANNEL(language)=)") in new stack [2012-04-23 17:41:29] VERBOSE[3684] pbx.c: -- Executing [[email protected]:12] GosubIf("SIP/6029-00000000", "0?sub-ccss,s,1(from-internal,901909561900)") in new stack [2012-04-23 17:41:29] VERBOSE[3684] pbx.c: -- Executing [[email protected]:13] GotoIf("SIP/6029-00000000", "1?continue") in new stack [2012-04-23 17:41:29] VERBOSE[3684] pbx.c: -- Goto (macro-user-callerid,s,26) [2012-04-23 17:41:29] VERBOSE[3684] pbx.c: -- Executing [[email protected]:26] Set("SIP/6029-00000000", "CALLERID(number)=6029") in new stack [2012-04-23 17:41:29] VERBOSE[3684] pbx.c: -- Executing [[email protected]:27] Set("SIP/6029-00000000", "CALLERID(name)=Jamie Computer") in new stack [2012-04-23 17:41:29] VERBOSE[3684] pbx.c: -- Executing [[email protected]:28] Set("SIP/6029-00000000", "CHANNEL(language)=en") in new stack [2012-04-23 17:41:29] VERBOSE[3684] pbx.c: -- Executing [[email protected]:2] Set("SIP/6029-00000000", "MOHCLASS=default") in new stack [2012-04-23 17:41:29] VERBOSE[3684] pbx.c: -- Executing [[email protected]:3] ExecIf("SIP/6029-00000000", "1?Set(TRUNKCIDOVERRIDE=01909561888)") in new stack [2012-04-23 17:41:29] VERBOSE[3684] pbx.c: -- Executing [[email protected]:4] Set("SIP/6029-00000000", "_NODEST=") in new stack [2012-04-23 17:41:29] VERBOSE[3684] pbx.c: -- Executing [[email protected]:5] Gosub("SIP/6029-00000000", "sub-record-check,s,1(out,901909561900,)") in new stack [2012-04-23 17:41:29] VERBOSE[3684] pbx.c: -- Executing [[email protected]:1] GotoIf("SIP/6029-00000000", "1?check") in new stack [2012-04-23 17:41:29] VERBOSE[3684] pbx.c: -- Goto (sub-record-check,s,3) [2012-04-23 17:41:29] VERBOSE[3684] pbx.c: -- Executing [[email protected]:3] Set("SIP/6029-00000000", "MON_FMT=wav") in new stack [2012-04-23 17:41:29] VERBOSE[3684] pbx.c: -- Executing [[email protected]:4] GotoIf("SIP/6029-00000000", "1?next") in new stack [2012-04-23 17:41:29] VERBOSE[3684] pbx.c: -- Goto (sub-record-check,s,7) [2012-04-23 17:41:29] VERBOSE[3684] pbx.c: -- Executing [[email protected]:7] ExecIf("SIP/6029-00000000", "0?Return()") in new stack [2012-04-23 17:41:29] VERBOSE[3684] pbx.c: -- Executing [[email protected]:8] GotoIf("SIP/6029-00000000", "0?out,1") in new stack [2012-04-23 17:41:29] VERBOSE[3684] pbx.c: -- Executing [[email protected]:9] Set("SIP/6029-00000000", "__REC_STATUS=INITIALIZED") in new stack [2012-04-23 17:41:29] VERBOSE[3684] pbx.c: -- Executing [[email protected]:10] ExecIf("SIP/6029-00000000", "0?Set(__REC_POLICY_MODE=)") in new stack [2012-04-23 17:41:29] VERBOSE[3684] pbx.c: -- Executing [[email protected]:11] Set("SIP/6029-00000000", "NOW=1335199289") in new stack [2012-04-23 17:41:29] VERBOSE[3684] pbx.c: -- Executing [[email protected]:12] Set("SIP/6029-00000000", "__DAY=23") in new stack [2012-04-23 17:41:29] VERBOSE[3684] pbx.c: -- Executing [[email protected]:13] Set("SIP/6029-00000000", "__MONTH=04") in new stack [2012-04-23 17:41:29] VERBOSE[3684] pbx.c: -- Executing [[email protected]:14] Set("SIP/6029-00000000", "__YEAR=2012") in new stack [2012-04-23 17:41:29] VERBOSE[3684] pbx.c: -- Executing [[email protected]:15] Set("SIP/6029-00000000", "__TIMESTR=20120423-174129") in new stack [2012-04-23 17:41:29] VERBOSE[3684] pbx.c: -- Executing [[email protected]:16] Set("SIP/6029-00000000", "__FROMEXTEN=6029") in new stack [2012-04-23 17:41:29] VERBOSE[3684] pbx.c: -- Executing [[email protected]:17] Set("SIP/6029-00000000", "__CALLFILENAME=out-901909561900-6029-20120423-174129-1335199289.0") in new stack [2012-04-23 17:41:29] VERBOSE[3684] pbx.c: -- Executing [[email protected]:18] Goto("SIP/6029-00000000", "out,1") in new stack [2012-04-23 17:41:29] VERBOSE[3684] pbx.c: -- Goto (sub-record-check,out,1) [2012-04-23 17:41:29] VERBOSE[3684] pbx.c: -- Executing [[email protected]:1] ExecIf("SIP/6029-00000000", "1?Set(__REC_POLICY_MODE=never)") in new stack [2012-04-23 17:41:29] VERBOSE[3684] pbx.c: -- Executing [[email protected]:2] GosubIf("SIP/6029-00000000", "0?record,1(exten,901909561900,6029)") in new stack [2012-04-23 17:41:29] VERBOSE[3684] pbx.c: -- Executing [[email protected]:3] Return("SIP/6029-00000000", "") in new stack [2012-04-23 17:41:29] VERBOSE[3684] pbx.c: -- Executing [[email protected]:6] Macro("SIP/6029-00000000", "dialout-trunk,1,01909561900,") in new stack [2012-04-23 17:41:29] VERBOSE[3684] pbx.c: -- Executing [[email protected]:1] Set("SIP/6029-00000000", "DIAL_TRUNK=1") in new stack [2012-04-23 17:41:29] VERBOSE[3684] pbx.c: -- Executing [[email protected]:2] GosubIf("SIP/6029-00000000", "0?sub-pincheck,s,1()") in new stack [2012-04-23 17:41:29] VERBOSE[3684] pbx.c: -- Executing [[email protected]:3] GotoIf("SIP/6029-00000000", "0?disabletrunk,1") in new stack [2012-04-23 17:41:29] VERBOSE[3684] pbx.c: -- Executing [[email protected]:4] Set("SIP/6029-00000000", "DIAL_NUMBER=01909561900") in new stack [2012-04-23 17:41:29] VERBOSE[3684] pbx.c: -- Executing [[email protected]:5] Set("SIP/6029-00000000", "DIAL_TRUNK_OPTIONS=tr") in new stack [2012-04-23 17:41:29] VERBOSE[3684] pbx.c: -- Executing [[email protected]:6] Set("SIP/6029-00000000", "OUTBOUND_GROUP=OUT_1") in new stack [2012-04-23 17:41:29] VERBOSE[3684] pbx.c: -- Executing [[email protected]:7] GotoIf("SIP/6029-00000000", "0?nomax") in new stack [2012-04-23 17:41:29] VERBOSE[3684] pbx.c: -- Executing [[email protected]:8] GotoIf("SIP/6029-00000000", "0?chanfull") in new stack [2012-04-23 17:41:29] VERBOSE[3684] pbx.c: -- Executing [[email protected]:9] GotoIf("SIP/6029-00000000", "0?skipoutcid") in new stack [2012-04-23 17:41:29] VERBOSE[3684] pbx.c: -- Executing [[email protected]:10] Set("SIP/6029-00000000", "DIAL_TRUNK_OPTIONS=") in new stack [2012-04-23 17:41:29] VERBOSE[3684] pbx.c: -- Executing [[email protected]:11] Macro("SIP/6029-00000000", "outbound-callerid,1") in new stack [2012-04-23 17:41:29] VERBOSE[3684] pbx.c: -- Executing [[email protected]:1] ExecIf("SIP/6029-00000000", "0?Set(CALLERPRES()=)") in new stack [2012-04-23 17:41:29] VERBOSE[3684] pbx.c: -- Executing [[email protected]:2] ExecIf("SIP/6029-00000000", "0?Set(REALCALLERIDNUM=6029)") in new stack [2012-04-23 17:41:29] VERBOSE[3684] pbx.c: -- Executing [[email protected]:3] GotoIf("SIP/6029-00000000", "1?normcid") in new stack [2012-04-23 17:41:29] VERBOSE[3684] pbx.c: -- Goto (macro-outbound-callerid,s,6) [2012-04-23 17:41:29] VERBOSE[3684] pbx.c: -- Executing [[email protected]:6] Set("SIP/6029-00000000", "USEROUTCID=") in new stack [2012-04-23 17:41:29] VERBOSE[3684] pbx.c: -- Executing [[email protected]:7] Set("SIP/6029-00000000", "EMERGENCYCID=") in new stack [2012-04-23 17:41:29] VERBOSE[3684] pbx.c: -- Executing [[email protected]:8] Set("SIP/6029-00000000", "TRUNKOUTCID=01909561888") in new stack [2012-04-23 17:41:29] VERBOSE[3684] pbx.c: -- Executing [[email protected]:9] GotoIf("SIP/6029-00000000", "1?trunkcid") in new stack [2012-04-23 17:41:29] VERBOSE[3684] pbx.c: -- Goto (macro-outbound-callerid,s,12) [2012-04-23 17:41:29] VERBOSE[3684] pbx.c: -- Executing [[email protected]:12] ExecIf("SIP/6029-00000000", "1?Set(CALLERID(all)=01909561888)") in new stack [2012-04-23 17:41:29] VERBOSE[3684] pbx.c: -- Executing [[email protected]:13] ExecIf("SIP/6029-00000000", "0?Set(CALLERID(all)=)") in new stack [2012-04-23 17:41:29] VERBOSE[3684] pbx.c: -- Executing [[email protected]:14] ExecIf("SIP/6029-00000000", "1?Set(CALLERID(all)=01909561888)") in new stack [2012-04-23 17:41:29] VERBOSE[3684] pbx.c: -- Executing [[email protected]:15] ExecIf("SIP/6029-00000000", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack [2012-04-23 17:41:29] VERBOSE[3684] pbx.c: -- Executing [[email protected]:12] GosubIf("SIP/6029-00000000", "0?sub-flp-1,s,1()") in new stack [2012-04-23 17:41:29] VERBOSE[3684] pbx.c: -- Executing [[email protected]:13] Set("SIP/6029-00000000", "OUTNUM=01909561900") in new stack [2012-04-23 17:41:29] VERBOSE[3684] pbx.c: -- Executing [[email protected]:14] Set("SIP/6029-00000000", "custom=DAHDI/g1") in new stack [2012-04-23 17:41:29] VERBOSE[3684] pbx.c: -- Executing [[email protected]:15] ExecIf("SIP/6029-00000000", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default))") in new stack [2012-04-23 17:41:29] VERBOSE[3684] pbx.c: -- Executing [[email protected]:16] ExecIf("SIP/6029-00000000", "0?Set(DIAL_TRUNK_OPTIONS=M(confirm))") in new stack [2012-04-23 17:41:29] VERBOSE[3684] pbx.c: -- Executing [[email protected]:17] Macro("SIP/6029-00000000", "dialout-trunk-predial-hook,") in new stack [2012-04-23 17:41:29] VERBOSE[3684] pbx.c: -- Executing [[email protected]:1] MacroExit("SIP/6029-00000000", "") in new stack [2012-04-23 17:41:29] VERBOSE[3684] pbx.c: -- Executing [[email protected]:18] GotoIf("SIP/6029-00000000", "0?bypass,1") in new stack [2012-04-23 17:41:29] VERBOSE[3684] pbx.c: -- Executing [[email protected]:19] ExecIf("SIP/6029-00000000", "1?Set(CONNECTEDLINE(num,i)=01909561900)") in new stack [2012-04-23 17:41:29] VERBOSE[3684] pbx.c: -- Executing [[email protected]:20] ExecIf("SIP/6029-00000000", "1?Set(CONNECTEDLINE(name,i)=CID:01909561888)") in new stack [2012-04-23 17:41:29] VERBOSE[3684] pbx.c: -- Executing [[email protected]:21] GotoIf("SIP/6029-00000000", "0?customtrunk") in new stack [2012-04-23 17:41:29] VERBOSE[3684] pbx.c: -- Executing [[email protected]:22] Dial("SIP/6029-00000000", "DAHDI/g1/01909561900,300,") in new stack [2012-04-23 17:41:29] VERBOSE[3684] app_dial.c: -- Called DAHDI/g1/01909561900 [2012-04-23 17:41:30] VERBOSE[3684] sig_analog.c: -- Hanging up on 'DAHDI/1-1' [2012-04-23 17:41:30] VERBOSE[3684] chan_dahdi.c: -- Hungup 'DAHDI/1-1' [2012-04-23 17:41:30] VERBOSE[3684] app_dial.c: == Everyone is busy/congested at this time (1:0/0/1) [2012-04-23 17:41:30] VERBOSE[3684] pbx.c: -- Executing [[email protected]:23] NoOp("SIP/6029-00000000", "Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 0") in new stack [2012-04-23 17:41:30] VERBOSE[3684] pbx.c: -- Executing [[email protected]:24] Goto("SIP/6029-00000000", "s-CHANUNAVAIL,1") in new stack [2012-04-23 17:41:30] VERBOSE[3684] pbx.c: -- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1) [2012-04-23 17:41:30] VERBOSE[3684] pbx.c: -- Executing [[email protected]:1] Set("SIP/6029-00000000", "RC=0") in new stack [2012-04-23 17:41:30] VERBOSE[3684] pbx.c: -- Executing [[email protected]:2] Goto("SIP/6029-00000000", "0,1") in new stack [2012-04-23 17:41:30] VERBOSE[3684] pbx.c: -- Goto (macro-dialout-trunk,0,1) [2012-04-23 17:41:30] VERBOSE[3684] pbx.c: -- Executing [[email protected]:1] Goto("SIP/6029-00000000", "continue,1") in new stack [2012-04-23 17:41:30] VERBOSE[3684] pbx.c: -- Goto (macro-dialout-trunk,continue,1) [2012-04-23 17:41:30] VERBOSE[3684] pbx.c: -- Executing [[email protected]:1] GotoIf("SIP/6029-00000000", "1?noreport") in new stack [2012-04-23 17:41:30] VERBOSE[3684] pbx.c: -- Goto (macro-dialout-trunk,continue,3) [2012-04-23 17:41:30] VERBOSE[3684] pbx.c: -- Executing [[email protected]:3] NoOp("SIP/6029-00000000", "TRUNK Dial failed due to CHANUNAVAIL HANGUPCAUSE: 0 - failing through to other trunks") in new stack [2012-04-23 17:41:30] VERBOSE[3684] pbx.c: -- Executing [[email protected]:4] Set("SIP/6029-00000000", "CALLERID(number)=6029") in new stack [2012-04-23 17:41:30] VERBOSE[3684] pbx.c: -- Executing [[email protected]:7] Macro("SIP/6029-00000000", "outisbusy,") in new stack [2012-04-23 17:41:30] VERBOSE[3684] pbx.c: -- Executing [[email protected]:1] Progress("SIP/6029-00000000", "") in new stack [2012-04-23 17:41:30] VERBOSE[3684] pbx.c: -- Executing [[email protected]:2] GotoIf("SIP/6029-00000000", "0?emergency,1") in new stack [2012-04-23 17:41:30] VERBOSE[3684] pbx.c: -- Executing [[email protected]:3] GotoIf("SIP/6029-00000000", "0?intracompany,1") in new stack [2012-04-23 17:41:30] VERBOSE[3684] pbx.c: -- Executing [[email protected]:4] Playback("SIP/6029-00000000", "all-circuits-busy-now&pls-try-call-later, noanswer") in new stack [2012-04-23 17:41:30] VERBOSE[3684] file.c: -- Playing 'all-circuits-busy-now.ulaw' (language 'en') [2012-04-23 17:41:32] VERBOSE[3684] file.c: -- Playing 'pls-try-call-later.ulaw' (language 'en') [2012-04-23 17:41:34] VERBOSE[3684] pbx.c: -- Executing [[email protected]:5] Congestion("SIP/6029-00000000", "20") in new stack [2012-04-23 17:41:34] WARNING[3684] channel.c: Prodding channel 'SIP/6029-00000000' failed [2012-04-23 17:41:34] VERBOSE[3684] app_macro.c: == Spawn extension (macro-outisbusy, s, 5) exited non-zero on 'SIP/6029-00000000' in macro 'outisbusy' [2012-04-23 17:41:34] VERBOSE[3684] pbx.c: == Spawn extension (from-internal, 901909561900, 7) exited non-zero on 'SIP/6029-00000000' [2012-04-23 17:41:34] VERBOSE[3684] pbx.c: -- Executing [[email protected]:1] Hangup("SIP/6029-00000000", "") in new stack [2012-04-23 17:41:34] VERBOSE[3684] pbx.c: == Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/6029-00000000'

Here’s my Chan_dahdi.conf:

[trunkgroups]

[channels]
;loadzone=uk
;defaultzone=uk
group=1;
usecallerid=yes
ukcallerid=yes
cidsignalling=v23 ; Added for UK CLI detection
cidstart=polarity ; Added for UK CLI detection
sendcalleridafter=1
callerid=asreceived ; propagate the CID received from BT.

context=from-pstn
signalling=fxs_ks
rxwink=300 ; Atlas seems to use long (250ms) winks
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=no
faxdetect=incoming
echotraining=800
rxgain=13.0
txgain=0.0
callgroup=0
pickupgroup=0

;Uncomment these lines if you have problems with the disconection of your analog lines
busydetect=yes
busycount=4

immediate=yes

#include dahdi-channels.conf
#include chan_dahdi_additional.conf

My dahdi-channels.conf

; Autogenerated by /usr/sbin/dahdi_genconf on Fri Apr 20 16:17:49 2012
; If you edit this file and execute /usr/sbin/dahdi_genconf again,
; your manual changes will be LOST.
; Dahdi Channels Configurations (chan_dahdi.conf)
;
; This is not intended to be a complete chan_dahdi.conf. Rather, it is intended
; to be #include-d by /etc/chan_dahdi.conf that will include the global settings
;

; Span 1: WCTDM/0 “Wildcard TDM800P” (MASTER)
;;; line="1 WCTDM/0/0 FXSKS (In use) (EC: MG2 - INACTIVE)"
signalling=fxs_ks
callerid=asreceived
group=1
context=from-pstn
channel => 1

;;; line="2 WCTDM/0/1 FXSKS (In use) (EC: MG2 - INACTIVE)"
signalling=fxs_ks
callerid=asreceived
group=1
context=from-pstn
channel => 2

;;; line="5 WCTDM/0/4 FXSKS (In use) (EC: MG2 - INACTIVE)"
signalling=fxs_ks
callerid=asreceived
group=1
context=from-pstn
channel => 5

;;; line="6 WCTDM/0/5 FXSKS (In use) (EC: MG2 - INACTIVE)"
signalling=fxs_ks
callerid=asreceived
group=1
context=from-pstn
channel => 6

and finally the output from the dahdi_cfg -vv

DAHDI Tools Version - 2.6.0

DAHDI Version: 2.6.0
Echo Canceller(s): HWEC, MG2
Configuration

Channel map:

Channel 01: FXS Kewlstart (Default) (Echo Canceler: mg2) (Slaves: 01)
Channel 02: FXS Kewlstart (Default) (Echo Canceler: mg2) (Slaves: 02)
Channel 05: FXS Kewlstart (Default) (Echo Canceler: mg2) (Slaves: 05)
Channel 06: FXS Kewlstart (Default) (Echo Canceler: mg2) (Slaves: 06)

4 channels to configure.

Setting echocan for channel 1 to mg2
Setting echocan for channel 2 to mg2
Setting echocan for channel 5 to mg2
Setting echocan for channel 6 to mg2

Thanks in advance