B410P card - outgoing calls not working

Hi All,
First post here so please be gentle…

I have installed the new FreePBX distro on a clean box - the distribution is 3.211.63 and I have tried both versions 10 and 11 of asterisk and both give me the same problems.

Firstly I have 2 digium cards in the box - a B410P ISDN card and an AEX800P analogue with 2 FXO modules.

the first problem (in case anyone else has this grief) I had is installing the distro with both these cards in the box - it simply crashed while doing its post install routine and after much hunting and digium help I installed the system without the ISDN card in the box, added a line to the /etc/modprobe.d/blacklist.conf file to stop the hfcmulti driver loading and then installed the ISDN card again and all is well with both cards picked up fine.

the other small niggle with the distro is all logging is doubled up in /var/log/asterisk/full - simply commenting out the line in /etc/asterisk/logger_logfiles_custom.conf fixed that so no biggie.

The real problem I have is that I can’t make outgoing calls on the ISDN card - incoming is fine and the analogue card is fine both ways. all I get is an “All Circuits are busy now” message. Admittedly I am fairly new to the asterisk scene and am at a loss of how to diagnose this problem.
I have tried different versions of asterisk as mentioned 10 and 11 - I have also tried upgrading to the latest version of dahdi 2.6.2 with no change.

/etc/dahdi/system.conf

span=1,0,0,CCS,AMI
span=2,0,0,CCS,AMI
span=3,0,0,CCS,AMI
span=4,0,0,CCS,AMI
bchan=1-2,4-5,7-8,10-11
hardhdlc=3,6,9,12
fxsks=13-20
loadzone=us
defaultzone=us

/etc/asterisk/dahdi-channels.conf (only including the first channel here, rest are similar and analogue channels are working fine)

; Span 1: B4/0/1 “B4XXP (PCI) Card 0 Span 1” OK
group=0
context=from-pstn
switchtype = euroisdn
signalling = bri_cpe
channel => 1-2

this comes in the full log.

[2013-05-06 17:25:12] VERBOSE[2439] pbx.c: – Executing [s@macro-dialout-trunk:22] Dial(“SIP/203-00000000”, “DAHDI/g0/0785440412,300,Tt”) in new stack
[2013-05-06 17:25:12] WARNING[2439] app_dial.c: Unable to create channel of type ‘DAHDI’ (cause 34 - Circuit/channel congestion)
[2013-05-06 17:25:12] VERBOSE[2439] app_dial.c: == Everyone is busy/congested at this time (1:0/1/0)
[2013-05-06 17:25:12] VERBOSE[2439] pbx.c: – Executing [s@macro-dialout-trunk:23] NoOp(“SIP/203-00000000”, “Dial failed for some reason with DIALSTATUS = CONGESTION and HANGUPCAUSE = 34”) in new stack
[2013-05-06 17:25:12] VERBOSE[2439] pbx.c: – Executing [s@macro-dialout-trunk:24] GotoIf(“SIP/203-00000000”, “0?continue,1:s-CONGESTION,1”) in new stack
[2013-05-06 17:25:12] VERBOSE[2439] pbx.c: – Goto (macro-dialout-trunk,s-CONGESTION,1)
[2013-05-06 17:25:12] VERBOSE[2439] pbx.c: – Executing [s-CONGESTION@macro-dialout-trunk:1] Set(“SIP/203-00000000”, “RC=34”) in new stack
[2013-05-06 17:25:12] VERBOSE[2439] pbx.c: – Executing [s-CONGESTION@macro-dialout-trunk:2] Goto(“SIP/203-00000000”, “34,1”) in new stack
[2013-05-06 17:25:12] VERBOSE[2439] pbx.c: – Goto (macro-dialout-trunk,34,1)
[2013-05-06 17:25:12] VERBOSE[2439] pbx.c: – Executing [34@macro-dialout-trunk:1] Goto(“SIP/203-00000000”, “continue,1”) in new stack
[2013-05-06 17:25:12] VERBOSE[2439] pbx.c: – Goto (macro-dialout-trunk,continue,1)
[2013-05-06 17:25:12] VERBOSE[2439] pbx.c: – Executing [continue@macro-dialout-trunk:1] NoOp(“SIP/203-00000000”, “TRUNK Dial failed due to CONGESTION HANGUPCAUSE: 34 - failing through to other trunks”) in new stack
[2013-05-06 17:25:12] VERBOSE[2439] pbx.c: – Executing [continue@macro-dialout-trunk:2] Set(“SIP/203-00000000”, “CALLERID(number)=203”) in new stack
[2013-05-06 17:25:12] VERBOSE[2439] pbx.c: – Executing [0785440412@from-internal:6] Macro(“SIP/203-00000000”, “outisbusy,”) in new stack
[2013-05-06 17:25:12] VERBOSE[2439] pbx.c: – Executing [s@macro-outisbusy:1] Progress(“SIP/203-00000000”, “”) in new stack
[2013-05-06 17:25:12] VERBOSE[2439] pbx.c: – Executing [s@macro-outisbusy:2] GotoIf(“SIP/203-00000000”, “0?emergency,1”) in new stack
[2013-05-06 17:25:12] VERBOSE[2439] pbx.c: – Executing [s@macro-outisbusy:3] GotoIf(“SIP/203-00000000”, “0?intracompany,1”) in new stack
[2013-05-06 17:25:12] VERBOSE[2439] pbx.c: – Executing [s@macro-outisbusy:4] Playback(“SIP/203-00000000”, “all-circuits-busy-now&pls-try-call-later, noanswer”) in new stack
[2013-05-06 17:25:12] VERBOSE[2439] file.c: – <SIP/203-00000000> Playing ‘all-circuits-busy-now.ulaw’ (language ‘en’)
[2013-05-06 17:25:14] VERBOSE[2439] file.c: – <SIP/203-00000000> Playing ‘pls-try-call-later.ulaw’ (language ‘en’)
[2013-05-06 17:25:16] VERBOSE[2439] pbx.c: – Executing [s@macro-outisbusy:5] Congestion(“SIP/203-00000000”, “20”) in new stack
[2013-05-06 17:25:16] WARNING[2439] channel.c: Prodding channel ‘SIP/203-00000000’ failed
[2013-05-06 17:25:16] VERBOSE[2439] app_macro.c: == Spawn extension (macro-outisbusy, s, 5) exited non-zero on ‘SIP/203-00000000’ in macro ‘outisbusy’
[2013-05-06 17:25:16] VERBOSE[2439] pbx.c: == Spawn extension (from-internal, 0785440412, 6) exited non-zero on ‘SIP/203-00000000’
[2013-05-06 17:25:16] VERBOSE[2439] pbx.c: – Executing [h@from-internal:1] Hangup(“SIP/203-00000000”, “”) in new stack
[2013-05-06 17:25:16] VERBOSE[2439] pbx.c: == Spawn extension (from-internal, h, 1) exited non-zero on ‘SIP/203-00000000’
[2013-05-06 17:25:16] VERBOSE[2440] app_mixmonitor.c: == MixMonitor close filestream (mixed)
[2013-05-06 17:25:16] VERBOSE[2440] app_mixmonitor.c: == End MixMonitor Recording SIP/203-00000000

not sure what else to include here, any help much appreciated.

in case anyone else experiences this - there are 2 more settings which I can’t remember ever setting on a box before which are Pridialplan: and prilocaldialplan: - once I set these 2 to unknown instead of the default national then it all started working.

one last footnote here - I found that after reboot the dahdi channels were seen as down - simply restarting dahdi within asterisk sorts it out and then it operates fine. Can’t find the cause, but I added the following to the end of /etc/rc.d/rc.local and it works fine.

sleep 30s
/usr/sbin/asterisk -rx “dahdi restart”