Hi, i’m skilled with Linux, but newbie with Asterisk. I want to set(for testing/learning) an isdn pbx.
I bought an isdn phone and a digium b410p card. I have configured it in Slackware-Current with the kernel 5.14.14 and latest git dahdi drivers, asterisk version is 16.15.0
First I create the file /etc/dahdi/genconf_parameters
# toni italiani
lc_country it
# context delle chiamate entranti dalla scheda dahdi
context_lines from-dahdi
# gruppo di default nel quale inserire le linee dahdi
group_lines 0
# signalling delle linee (bri o bri_ptmp)
bri_sig_style bri_ptmp
then I run dahdi_genconf
dahdi_genconf -vvv
Default parameters from /etc/dahdi/genconf_parameters
Generating /etc/dahdi/assigned-spans.conf
cut: '/sys/bus/dahdi_devices/devices/pci:0000:05:05.0/spantype': No such file or directory
Generating /etc/dahdi/system.conf
Generating /etc/asterisk/dahdi-channels.conf
the card is configured with two NT ports and two TE ports, I put the telephone in TE port.
This is the /etc/dahdi/system.conf
# Autogenerated by /usr/sbin/dahdi_genconf on Fri Oct 22 22:07:16 2021
# 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) AMI/CCS YELLOW
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" AMI/CCS YELLOW
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" AMI/CCS YELLOW
span=3,0,0,ccs,ami
# termtype: nt
bchan=7-8
hardhdlc=9
echocanceller=mg2,7-8
# Span 4: B4/0/4 "B4XXP (PCI) Card 0 Span 4" AMI/CCS RED
span=4,0,0,ccs,ami
# termtype: nt
bchan=10-11
hardhdlc=12
echocanceller=mg2,10-11
# Global data
loadzone = it
defaultzone = it
this is the chan_dahdi.conf
[trunkgroups]
[channels]
language=it
context=public
switchtype=euroisdn
signalling=bri_cpe
usecallerid=yes
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes
context= incoming
echocancel=yes
channel => 1,2,4,5,7,8,10,11
echocancelwhenbridged=yes
group=1
callgroup=1
pickupgroup=1
I don’t know if is all fine, dahdi tool report this
DAHDI Telephony Interfaces ├─────────────────────┐
│ │
│ Alarms Span │
│ YEL B4XXP (PCI) Card 0 Span 1 ↑ │
│ YEL B4XXP (PCI) Card 0 Span 2 ▒ │
│ YEL B4XXP (PCI) Card 0 Span 3 ▮ │
│ RED B4XXP (PCI) Card 0 Span 4
and the console report this
virtuale-2CLI> dahdi show status
Description Alarms IRQ bpviol CRC Fra Codi Options LBO
B4XXP (PCI) Card 0 Span 1 YEL 0 0 0 CCS AMI 0 db (CSU)/0-133 feet (DSX-1)
B4XXP (PCI) Card 0 Span 2 YEL 0 0 0 CCS AMI 0 db (CSU)/0-133 feet (DSX-1)
B4XXP (PCI) Card 0 Span 3 YEL 0 0 0 CCS AMI 0 db (CSU)/0-133 feet (DSX-1)
B4XXP (PCI) Card 0 Span 4 RED 0 0 0 CCS AMI 0 db (CSU)/0-133 feet (DSX-1)
virtuale-2CLI> dahdi show ch
channel channels
virtuale-2*CLI> dahdi show channels
Chan Extension Context Language MOH Interpret Blocked In Service Description
pseudo default default Yes
1 from-dahdi it default Yes
2 from-dahdi it default Yes
4 from-dahdi it default Yes
5 from-dahdi it default Yes
7 from-dahdi it default Yes
8 from-dahdi it default Yes
10 from-dahdi it default Yes
11 from-dahdi it default Yes
Is all ok or there is something wrong?
I have few questions.
What is the difference between NT and TE mode? If I want to connect phones or TA to ports is better NT or TE?
How to assign a telephone number to port?
Thanks