B410p, DAHDI, AsteriskNOW 1.7

ledpepper

Member
Joined
Jul 13, 2010
Messages
11
Reaction score
0
Hi All,

Hope there are some Asterisk gurus out there. I'm fairly proficient in Centos and I can setup and configure a working system up until editing the necessary DAHDI configs.

I have a B410p Digium card and 2 BRI ISDN2a NT (not TE) lines which will be configured into a hunting group on Telkom's side.

There will be no DDI. All calls will be caught at the switchboard extension and then forwarded from there.

The new module as of FreePBX 2.8 is a DAHDI module. Which does most of the work for you apparently. I don't mind using that or editing the DAHDI files manually.

I'm a bit lost when it comes to the actual telephony side of things but have read enough tutorials for my eyes to bleed and I still can't get calls working. I just don't have the necessary South African telephony details to use in accordance with international tutorials.

I have tried to follow Jaco Kroon's tutorial (http://jkroon.blogs.uls.co.za/it/voip/south-africa-and-isdn) and lol get stuck on the very first step. I get loadzone errors from DAHDI when I change from us to za.

Would posting your dahdi.conf, chan_dahdi.confg etc be a simple solution? I then use that as a template and adapt the non-Telkom specific things to my setup? Then possibly post any problems I have after that?

I can't unfortunately provide any .conf files now as the production system is plugged in and the new asteriskNOW box is sitting unplugged offsite.

I will however be travelling there tonight and doing the install so any info before then will be great. I will be online tonight while I have my new box running and hopefully I can continue to post then!

Thanks guys
 
Jaco's guide has all the info you need to make it work. If however you are using his ISDN configs verbatim you will have a problem because it does not represent a single card. You need to adjust the span numbering and bchans to match your configuration. Post your configs here when you get them.
 
Busy with a fresh install. I will post with config files once I've fully updated new system
 
Ok lets begin. I've posted my results below. All alarms are Red.

The first ISDN 2a box is connected as follows:
ISDN B410p
Port 1 Port 1
Port 2 Port 2

The second ISDN 2a box is connected as follows:
ISDN B410p
Port 1 Port 3
Port 2 Port 4

----------------------------------------------------------------------------

chan_dahdi.conf:

vi /etc/asterisk/chan_dahdi.conf
; Copied from DAHDI Module of FreePBX

[general]

#include chan_dahdi_general.conf

[channels]

; include dahdi groups defined by DAHDI module of FreePBX
#include chan_dahdi_groups.conf

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

----------------------------------------------------------------------------

vi /etc/dahdi/modules
# Digium B410P: 4 NT/TE BRI ports
wcb4xxp

All other drivers commented out

----------------------------------------------------------------------------

vi /etc/dahdi/system.conf

# Autogenerated by /usr/sbin/dahdi_genconf on Tue Jul 13 16:49:42 2010
# If you edit this file and execute /usr/sbin/dahdi_genconf again,
# your manual changes will be LOST.
# Dahdi Configuration File
#
# This file is parsed by the Dahdi Configurator, dahdi_cfg
#
# Span 1: B4/0/1 "B4XXP (PCI) Card 0 Span 1" (MASTER) RED
span=1,1,0,ccs,ami
# termtype: te
bchan=1-2
hardhdlc=3
echocanceller=mg2,1-2

# Span 2: B4/0/2 "B4XXP (PCI) Card 0 Span 2" RED
span=2,2,0,ccs,ami
# termtype: te
bchan=4-5
hardhdlc=6
echocanceller=mg2,4-5

# Span 3: B4/0/3 "B4XXP (PCI) Card 0 Span 3" RED
span=3,3,0,ccs,ami
# termtype: te
bchan=7-8
hardhdlc=9
echocanceller=mg2,7-8

# Span 4: B4/0/4 "B4XXP (PCI) Card 0 Span 4" RED
span=4,4,0,ccs,ami
# termtype: te
bchan=10-11
hardhdlc=12
echocanceller=mg2,10-11

# Global data

loadzone = us
defaultzone = us
----------------------------------------------------------------------------

I haven't changed anything apart from usual Centos config. FreePBX full updates.
 
system.conf looks ok, where are the rest of your chan_dahdi conf files?
 
I was waiting for your response before I changed anything. As per Jaco's tutorial I should add:

; seems some premi cells and pabx units needs this
overlapdial=yes

; ISDN switch types
; (it seems unknown just works best overall, with euroisdn):
pridialplan=unknown
prilocaldialplan=unknown
switchtype=euroisdn
internationalprefix=00
nationalprefix=0


dahdi_scan:

dahdi_scan
[1]
active=yes
alarms=RED
description=B4XXP (PCI) Card 0 Span 1
name=B4/0/1
manufacturer=Digium
devicetype=Wildcard B410P
location=PCI Bus 02 Slot 03
basechan=1
totchans=3
irq=201
type=digital-NT
syncsrc=0
lbo=0 db (CSU)/0-133 feet (DSX-1)
coding_opts=B8ZS,AMI,HDB3
framing_opts=ESF,D4,CCS,CRC4
coding=AMI
framing=CCS
[2]
active=yes
alarms=RED
description=B4XXP (PCI) Card 0 Span 2
name=B4/0/2
manufacturer=Digium
devicetype=Wildcard B410P
location=PCI Bus 02 Slot 03
basechan=4
totchans=3
irq=201
type=digital-NT
syncsrc=0
lbo=0 db (CSU)/0-133 feet (DSX-1)
coding_opts=B8ZS,AMI,HDB3
framing_opts=ESF,D4,CCS,CRC4
coding=AMI
framing=CCS
[3]
active=yes
alarms=RED
description=B4XXP (PCI) Card 0 Span 3
name=B4/0/3
manufacturer=Digium
devicetype=Wildcard B410P
location=PCI Bus 02 Slot 03
basechan=7
totchans=3
irq=201
type=digital-NT
syncsrc=0
lbo=0 db (CSU)/0-133 feet (DSX-1)
coding_opts=B8ZS,AMI,HDB3
framing_opts=ESF,D4,CCS,CRC4
coding=AMI
framing=CCS
[4]
active=yes
alarms=RED
description=B4XXP (PCI) Card 0 Span 4
name=B4/0/4
manufacturer=Digium
devicetype=Wildcard B410P
location=PCI Bus 02 Slot 03
basechan=10
totchans=3
irq=201
type=digital-NT
syncsrc=0
lbo=0 db (CSU)/0-133 feet (DSX-1)
coding_opts=B8ZS,AMI,HDB3
framing_opts=ESF,D4,CCS,CRC4
coding=AMI
framing=CCS
 
Last edited:
where is the contents of your includes?:

include chan_dahdi_general.conf
include chan_dahdi_groups.conf
include chan_dahdi_additional.conf

what is dahdi_cfg -vvv saying?
 
vi chan_dahdi_general.conf AND chan_dahdi_additional (both empty with the following header)
;--------------------------------------------------------------------------------;
; 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 ;
;--------------------------------------------------------------------------------;
;


-----------------

vi chan_dahdi_groups.conf

pridialplan=unknown
prilocaldialplan=unknown
group=1
context=from-pstn
channel=4-5

; [span_3]
signalling=pri_net
switchtype=euroisdn
pridialplan=unknown
prilocaldialplan=unknown
group=2
context=from-pstn
channel=7-8

; [span_4]
signalling=pri_net
switchtype=euroisdn
pridialplan=unknown
prilocaldialplan=unknown
group=3
context=from-pstn
channel=10-11


-------------------------------
dahdi_cfg -vvv


DAHDI Tools Version - 2.3.0

DAHDI Version: 2.3.0.1
Echo Canceller(s): MG2
Configuration
======================

SPAN 1: CCS/ AMI Build-out: 0 db (CSU)/0-133 feet (DSX-1)
SPAN 2: CCS/ AMI Build-out: 0 db (CSU)/0-133 feet (DSX-1)
SPAN 3: CCS/ AMI Build-out: 0 db (CSU)/0-133 feet (DSX-1)
SPAN 4: CCS/ AMI Build-out: 0 db (CSU)/0-133 feet (DSX-1)

Channel map:

Channel 01: Clear channel (Default) (Echo Canceler: none) (Slaves: 01)
Channel 02: Clear channel (Default) (Echo Canceler: none) (Slaves: 02)
Channel 03: D-channel (Default) (Echo Canceler: none) (Slaves: 03)
Channel 04: Clear channel (Default) (Echo Canceler: none) (Slaves: 04)
Channel 05: Clear channel (Default) (Echo Canceler: none) (Slaves: 05)
Channel 06: D-channel (Default) (Echo Canceler: none) (Slaves: 06)
Channel 07: Clear channel (Default) (Echo Canceler: none) (Slaves: 07)
Channel 08: Clear channel (Default) (Echo Canceler: none) (Slaves: 08)
Channel 09: D-channel (Default) (Echo Canceler: none) (Slaves: 09)
Channel 10: Clear channel (Default) (Echo Canceler: none) (Slaves: 10)
Channel 11: Clear channel (Default) (Echo Canceler: none) (Slaves: 11)
Channel 12: D-channel (Default) (Echo Canceler: none) (Slaves: 12)

12 channels to configure.

Setting echocan for channel 1 to none
Setting echocan for channel 2 to none
Setting echocan for channel 3 to none
Setting echocan for channel 4 to none
Setting echocan for channel 5 to none
Setting echocan for channel 6 to none
Setting echocan for channel 7 to none
Setting echocan for channel 8 to none
Setting echocan for channel 9 to none
Setting echocan for channel 10 to none
Setting echocan for channel 11 to none
Setting echocan for channel 12 to none
 
According to Jaco's tutorial:

Code:
In users.conf I then add something similar to this:

[dahdi-TE-158](groupname)
signalling=bri_cpe_ptmp
rxgain=0.0
txgain=0.0
dahdichan=158-159

This will set us up to use bri signalling in cpe mode with point-to-multi-point (cpe is basically the client side, the other option to be used with NT ports is bri_net_ptmp). In both cases you can drop the _pmtp to get simple point-to-point connectivity. The above seems to be working for me so far.

He puts this info in users.conf which i'm assuming is created once you add a user. I have found this:

Code:
 vi /etc/asterisk/dahdi-channels.conf
; Autogenerated by /usr/sbin/dahdi_genconf on Tue Jul 13 16:49:42 2010
; 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: B4/0/1 "B4XXP (PCI) Card 0 Span 1" (MASTER) RED
group=0,11
context=from-pstn
switchtype = euroisdn
signalling = bri_cpe_ptmp
channel => 1-2
context = default
group = 63

; Span 2: B4/0/2 "B4XXP (PCI) Card 0 Span 2" RED
group=0,12
context=from-pstn
switchtype = euroisdn
signalling = bri_cpe_ptmp
channel => 4-5
context = default
group = 63

; Span 3: B4/0/3 "B4XXP (PCI) Card 0 Span 3" RED
group=0,13
context=from-pstn
switchtype = euroisdn
signalling = bri_cpe_ptmp
channel => 7-8
context = default
group = 63

; Span 4: B4/0/4 "B4XXP (PCI) Card 0 Span 4" RED
group=0,14
context=from-pstn
switchtype = euroisdn
signalling = bri_cpe_ptmp
channel => 10-11
context = default
group = 63

Bears a striking resemblance to what Jaco is reffering to. Should I change the signalling in this file?
 
dahdi_cfg output looks good. dahdi-channels.conf looks ok as well. Do inbound calls work?

I have to go, have fun!
 
No I can't. When I call my line from my Cell it doesn't ring, goes silent Cell says call connected but it's blank. Another sleepless night!

Thanks I'll give it my best
 
what does a pri show spans on the Asterisk CLI say? What cables are you using to connect the ISDN units to the B410P card? Straight network cables should do the trick.
 
pri show spans
PRI span 1/0: Provisioned, Up, Active

Just plugged in 2 cables into NT2 one in each ISDN channel.

I've changed it to TE and lights are green. Trying to change it to Slave but it reverts to Master. Span 1: B4/0/1 "B4XXP (PCI) Card 0 Span 1" (MASTER) AMI/CCS

My signalling also keeps being changed back from bri_cpe_ptmp to pri_cpe

Why? :P
 
Provisioned, Up, Active is good!
Span 1 will generally be the master. You need a master for timing.
You only need to plug in 1 cable per NT, 1 cable will carry 2 channels. So you should have 4 NT boxes?

in dahdi-channels.conf
you have conflicting contexts. remove the "context = default" lines.
If your config file keeps changing then you are either running /usr/sbin/dahdi_genconf or something else is running it.
 
Oh a lots of thanks to your posts...finally i could resolve my problem..i followed all your requirements and it works well now........
 
Top
Sign up to the MyBroadband newsletter
X