Problems getting ISDN BRI working

Hello All,

Very much hoping that someone can help with the following configuration problem…

Current setup:
Freepbx version 15.0.16.44 fully updated.
1 x Digium B410 quad-BRI card
1 x Digium TDM410 4-port analog card
2 x BT ISDN 2e

Internal extensions are working fine, external calls via SIP trunk are working fine, but I cannot work out how to get the ISDN trunks to work. When dialling out from an internal extension I get “All circuits are busy now. Please try again later”. When dialling in the call simply hangs up.
The ISDN lines currently feed a Panasonic TDA30, from which I have deduced some of the ISDN settings. When the ISDN line is transferred to the B410 the LED on the card goes green instantly (as does the LED on the BT ISDN 2e unit)

Would anyone have any suggestions as to getting this working?

Many thanks

John

The Asterisk log should show a cause code for the failing call. What, if anything, gets logged on an incoming call attempt?

I know nothing about the B410, other than that it has many debug options; see
https://www.asteriskguru.com/tutorials/digium_b410p_installation_guide.html
If needed, turn them on, paste the log at https://pastebin.freepbx.org and post the link here.

Thanks Stewart1,

This is part of the Asterisk log for a failed outgoing call:

– Executing [s@macro-dialout-trunk:28] ExecIf(“PJSIP/3500-00000000”, “1?Set(CONNECTEDLINE(num,i)=07469031630)”) in new stack
– Executing [s@macro-dialout-trunk:29] ExecIf(“PJSIP/3500-00000000”, “1?Set(CONNECTEDLINE(name,i)=CID:01428708030)”) in new stack
– Executing [s@macro-dialout-trunk:30] ExecIf(“PJSIP/3500-00000000”, “0?Set(CONNECTEDLINE(name,i)=CID:(Hidden)01428708030)”) in new stack
– Executing [s@macro-dialout-trunk:31] GotoIf(“PJSIP/3500-00000000”, “0?customtrunk”) in new stack
– Executing [s@macro-dialout-trunk:32] ExecIf(“PJSIP/3500-00000000”, “0?Set(DIAL_TRUNK_OPTIONS=)”) in new stack
– Executing [s@macro-dialout-trunk:33] Dial(“PJSIP/3500-00000000”, “DAHDI/g0/07469031630,300,Tb(func-apply-sipheaders^s^1,(1))”) in new stack
[2020-02-26 11:04:04] WARNING[28999][C-00000001]: app_dial.c:2578 dial_exec_full: Unable to create channel of type ‘DAHDI’ (cause 0 - Unknown)
== Everyone is busy/congested at this time (1:0/0/1)
– Executing [s@macro-dialout-trunk:34] NoOp(“PJSIP/3500-00000000”, “Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 0”) in new stack
– Executing [s@macro-dialout-trunk:35] GotoIf(“PJSIP/3500-00000000”, “0?continue,1:s-CHANUNAVAIL,1”) in new stack
– Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
– Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] Set(“PJSIP/3500-00000000”, “RC=0”) in new stack
– Executing [s-CHANUNAVAIL@macro-dialout-trunk:2] Goto(“PJSIP/3500-00000000”, “0,1”) in new stack
– Goto (macro-dialout-trunk,0,1)
– Executing [0@macro-dialout-trunk:1] Goto(“PJSIP/3500-00000000”, “continue,1”) in new stack
– Goto (macro-dialout-trunk,continue,1)
– Executing [continue@macro-dialout-trunk:1] NoOp(“PJSIP/3500-00000000”, “TRUNK Dial failed due to CHANUNAVAIL HANGUPCAUSE: 0 - failing through to other trunks”) in new stack
– Executing [continue@macro-dialout-trunk:2] ExecIf(“PJSIP/3500-00000000”, “1?Set(CALLERID(number)=3500)”) in new stack
– Executing [07469031630@from-internal:8] Macro(“PJSIP/3500-00000000”, “outisbusy,”) in new stack
– Executing [s@macro-outisbusy:1] Progress(“PJSIP/3500-00000000”, “”) in new stack
– Executing [s@macro-outisbusy:2] GotoIf(“PJSIP/3500-00000000”, “0?emergency,1”) in new stack
– Executing [s@macro-outisbusy:3] GotoIf(“PJSIP/3500-00000000”, “0?intracompany,1”) in new stack
– Executing [s@macro-outisbusy:4] Playback(“PJSIP/3500-00000000”, “all-circuits-busy-now&please-try-call-later, noanswer”) in new stack
> 0x7fc350031890 – Strict RTP learning after remote address set to: 192.168.2.135:40048
– <PJSIP/3500-00000000> Playing ‘all-circuits-busy-now.ulaw’ (language ‘en’)
– <PJSIP/3500-00000000> Playing ‘please-try-call-later.ulaw’ (language ‘en’)
– Executing [h@from-internal:1] Macro(“PJSIP/3500-00000000”, “hangupcall”) in new stack
– Executing [s@macro-hangupcall:1] GotoIf(“PJSIP/3500-00000000”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,3)
– Executing [s@macro-hangupcall:3] ExecIf(“PJSIP/3500-00000000”, “0?Set(CDR(recordingfile)=)”) in new stack
– Executing [s@macro-hangupcall:4] NoOp(“PJSIP/3500-00000000”, " montior file= ") in new stack
– Executing [s@macro-hangupcall:5] GotoIf(“PJSIP/3500-00000000”, “1?skipagi”) in new stack
– Goto (macro-hangupcall,s,7)

I am guessing that this is the failure code
“TRUNK Dial failed due to CHANUNAVAIL HANGUPCAUSE: 0”

I will have to wait until I can swap the ISDN Lines over to Freepbx again before I can get a log of the incoming call.

Thanks for the link to B410P install guide, I had missed that one…will have a read through and see if i can get the debugging working.

Regards

John

You will need to get the BRI parameters from your provider. If only one of them is incorrect in DAHDI, your calls will fail. Also check what dialing pattern and caller ID they expect you to send.

I have swapped the ISDN lines over to Freepbx early this morning to see if anything is recorded in the Asterisk Log for an incoming call. Nothing is recorded at all, so it looks as though the call is failing at the ISDN point (before it even gets to Asterisk)…

This is my current DAHDI configuration


Alarms are Red as they cables are unplugged, these go Green immediately the cables are plugged in.
This is my current Span settings.

If anyone has any insight into the settings above it would be hugely appreciated. Some of these settings were gleaned from the Panasonic TDA30 settings, so are hopefully correct. The dialplan settings are the ones that I couldn’t find in the Panasonic setup…

Arielgrin…I spoke to our provider yesterday afternoon. They were not very helpful at all, I get the feeling that they would rather sell us something than provide the details to connect to their existing ISDN provision (which I can understand, but doesn’t actually do them any favours when we start looking for a permenant SIP trunk solution!)

Many thanks

John

Can you get into the Panasonic software configurator? It should be possible to get all the parameters from there. You need to know the correct value of all the parameters for DAHDI to work correctly, otherwise you won’t be able to use the BRI.

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.