How do I determine or set the (ISDN?) Protocol for my D-Channel? (SOLVED!)

mholmes
Joined: Sun 09 of Aug, 2009

Problem Solved!!

Posted:Mon 10 of Aug, 2009 (19:22 UTC)
I made 2 small changes that fixed the D-Channel Down problem:

1) On the Asterisk server, in /etc/asterisk/dahdi-channels.conf, I changed the signalling from "pri_cpe" to "pri_net". (Even though the file says "do not hand edit".)

2) On the Dialer server, I changed the ISDN Protocol for the pertinent T1 spans in Dialogic Configuration Manager from "5ESS" to "NI2".

That's it! I rebooted both systems, and everything came up perfectly! :-)

- Matt Holmes
mholmes
Joined: Sun 09 of Aug, 2009

How do I determine or set the (ISDN?) Protocol for my D-Channel? (SOLVED!)

Posted:Sun 09 of Aug, 2009 (18:18 UTC)
My Asterisk implementation is, I think, set up "backwards" from most implementations. Rather than the Digium T1 card in my Asterisk server being plugged into an external T1 circuit from Verizon or some other carrier, my Asterisk server's T1 is plugged into a Dialogic card in our own predictive Dialer system (from TouchStar). I have green lights on both ends of the cable: the Digium T1 card in my Asterisk server, and the Dialogic card in my Dialer. However, my D-Channel is down. Running "isdiag 1 1 t s" on my Dialer shows the following:

[code]
LOS  OOF  RAI  AIS  CRC  R/E  DCH
 0    0    0    0    0    0    1
[/code]

The "1" under DCH indicates that the D-Channel has a problem.  However, I'm having [i]much[/i] trouble figuring out what the problem is; what I'm missing.  Bear in mind that this is a brand new setup that we've never used before, so this isn't a case of something breaking that was once working.

Running "asterisk -r" and then "pri show spans" on my Asterisk server shows the following:

[code]
PRI span 1/0: Provisioned, In Alarm, Down, Active
PRI span 2/0: Provisioned, In Alarm, Down, Active
PRI span 3/0: Provisioned, In Alarm, Down, Active
PRI span 4/0: Provisioned, Down, Active
[/code]

I should note that I currently only have 1 of the 4 T1 ports on my Asterisk server's Digium card plugged into a Dialogic card in my Dialer: [b]Span 4[/b] on the Asterisk side is plugged into [b]Span 1[/b] on the Dialer side.

In my searching I've seen statements that the D-Channel's ISDN Protocol on the Dialogic side must match the protocol from the provider (in this case, my Asterisk server).  I see a long list of protocol choices for the card in the Dialogic Configuration Manager on the Dialer side.  However, on the Asterisk side [b]I can't figure out how to determine or configure the D-Channel Protocol in Asterisk/FreePBX.[/b]  I've scoured all the .conf files I can find; I've pored over every inch of the FreePBX interface.  I see no place where the actual D-Channel Protocol is defined!  Am I missing something?  Barking up the wrong tree, or approaching the problem from the wrong direction perhaps?

Any guidance or insight would be much appreciated!

 - Matt Holmes
   919-757-6669

[b]Environment (VoIP server):[/b]
Dell PowerEdge 2850
Digium TE420 card
AsteriskNOW v1.5.0
CentOS Linux v5 final
FreePBX v2.5.1.0

[b]Environment (Dialer):[/b]
TouchStar Dialer System
Dialogic D/480SC-2T1 card

I copied [b]chan_dahdi.conf[/b] from [b]chan_dahdi.conf.template[/b], since it didn't exist by default.  I commented out the "XTDM20B" section and added the "#include dahdi-channels.conf".  The system's behavior was exactly the same [i]before[/i] and [i]after[/i] I created [b]chan_dahdi.conf[/b]; it didn't seem to make any difference.

[b]chan_dahdi.conf:[/b]
[code]
;# Flash Operator Panel will parse this file for dahdi trunk buttons
;# AMPLABEL will be used for the display labels on the buttons

;# %c Dahdi Channel number
;# %n Line number
;# %N Line number, but restart counter
;# Example:
;# ;AMPLABEL:Channel %c - Button %n

;# For Dahdi/* buttons use the following
;# (where x=number of buttons to dislpay)
;# ;AMPWILDCARDLABEL(x):MyLabel


[channels]
language=en

; include dahdi extensions defined in FreePBX
#include chan_dahdi_additional.conf
#include dahdi-channels.conf

;#; XTDM20B Port #1,2 plugged into PSTN
;#;AMPLABEL:Channel %c - Button %n
;#context=from-pstn
;#signalling=fxs_ks
;#faxdetect=incoming
;#usecallerid=yes
;#echocancel=yes
;#echocancelwhenbridged=no
;#echotraining=800
;#group=0
;#channel=1-2
[/code]

[b]dahdi-channels.conf:[/b]
[code]
; Autogenerated by /usr/sbin/dahdi_genconf on Thu Aug  6 10:06:29 2009 -- do not hand edit
; 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/asterisk/chan_dahdi.conf that will include the global settings
;

; Span 1: TE4/0/1 "T4XXP (PCI) Card 0 Span 1" (MASTER) B8ZS/ESF RED
group=0,11
context=from-pstn
switchtype = national
signalling = pri_cpe
channel => 1-23
context = default
group = 63

; Span 2: TE4/0/2 "T4XXP (PCI) Card 0 Span 2" B8ZS/ESF RED
group=0,12
context=from-pstn
switchtype = national
signalling = pri_cpe
channel => 25-47
context = default
group = 63

; Span 3: TE4/0/3 "T4XXP (PCI) Card 0 Span 3" B8ZS/ESF RED
group=0,13
context=from-pstn
switchtype = national
signalling = pri_cpe
channel => 49-71
context = default
group = 63

; Span 4: TE4/0/4 "T4XXP (PCI) Card 0 Span 4" B8ZS/ESF RED
group=0,14
context=from-pstn
switchtype = national
signalling = pri_cpe
channel => 73-95
context = default
group = 63
[/code]

[b]chan_dahdi_additional.conf:[/b]
[code]
[root@voip asterisk]# cat chan_dahdi_additional.conf
;--------------------------------------------------------------------------------;
; Do NOT edit this file as it is auto-generated by FreePBX. All modifications to ;
; this file must be done via the web gui. There are alternative files to make    ;
; custom modifications, details at: http://freepbx.org/configuration_files       ;
;--------------------------------------------------------------------------------;
;
[/code]