OpenVox Document Center OpenVox Document Center
  • Home 
  • Products 
  • Solutions 
  • Resources 
    • Document Center 
    • Datasheets 
    • Firmwares 
    • Videos 
  • Partners 
  • Blog 
  • Company 
OpenVox Document Center OpenVox Document Center
OpenVox Document Center
  • Home 
  • Products 
  • Solutions 
  • Resources 
    • Document Center 
    • Datasheets 
    • Firmwares 
    • Videos 
  • Partners 
  • Blog 
  • Company 

VoIP Telephony Card

  • folder icon closed folder iconUser Manual
    • Analog Cards
      • A2410P/E AE2410P/E Hardware Manual
      • A400P/E Hardware Manual
      • A1610P/E AE1610P/E Hardware Manual
      • A810P/E AE810P/E Hardware Manual
      • Analog Card Software Installation Manual_Rockey
      • Analog Card Software Installation Manual_Debion
    • Digital Cards
      • D130P/E DE130P/E Hardware Manual
      • D230P/E DE230P/E Hardware Manual
      • D430P/E DE430P/E Hardware Manual
      • D830P/E DE830P/E Hardware Manual
      • D1630E DE1630E Hardware Manual
      • E1 Card Software Installation Manual_Rockey
      • E1 Card Software Installation Manual_Debion
    • X204 Hybrid Cards
      • X204P/E Hardware Manual
      • X204 Card Software Installation Manual_Debion
      • X204 Card Software Installation Manual_Rockey
    • BRI Cards
      • B400P/E BE400P/E Hardware Manual
      • B100P/E Hardware Manual
      • B800P Hardware Manual
      • B200P/E BE200P/E Hardware Manual
      • BRI Card Software Installation Manual_Debion
      • BRI Card Software Installation Manual_Rockey
    • Transcoding Cards
      • TAP100 User Manual
      • V100 User Manual
      • V100_PTMC user manual
      • V100_ETH and V100_BOX user manual
    • EOL
      • Analog Cards
        • A400E on DAHDI User Manual
        • A400M on DAHDI User Manual
        • A400P on DAHDI User Manual
        • A810E AE810E on DAHDI User Manual
        • A810P AE810P on DAHDI User Manual
        • A1610E AE1610E on DAHDI User Manual
        • A1610P AE1610P on DAHDI User Manual
        • A2410P AE2410P on DAHDI User Manual
      • Digital Cards
        • D130E/DE130E on DAHDI User Manual
        • D130P/DE130P on DAHDI User Manual
        • D230E/DE230E on DAHDI User Manual
        • D230P/DE230P on DAHDI User Manual
        • D430E/DE430E on DAHDI User Manual
        • D430P/DE430P on DAHDI User Manual
        • DE830E/D830E on DAHDI User Manual
        • DE830P/D830P on DAHDI User Manual
        • D210E/DE210E on DAHDI User Manual
        • D210P/DE210P on DAHDI User Manual
        • D410E/DE410E on DAHDI User Manual
        • D410P/DE410P on DAHDI User Manual
      • X204 Hybrid Cards
        • X204P/X204E Hybrid cards User Manual
      • BRI Cards
        • B100E on DAHDI User Manual
        • B100M on DAHDI User Manual
        • B100P on DAHDI User Manual
        • B200E /BE200E on DAHDI User Manual
        • B200M on DAHDI User Manual
        • B200P/BE200P on DAHDI User Manual
        • B400E/BE400E on DAHDI User Manual
        • B400M on DAHDI User Manual
        • B400P/BE400P on DAHDI User Manual
        • B800P on DAHDI User Manual
  • folder icon closed folder iconAPP Note
    • Enhanced CID Detection Feature in A810/1610/2410
    • Enhancing Busy Tone Detection Function in A810/1610/2410
    • How to Integrate Analog Gateway and GSM Gateway Modules in One VoxStack Box
    • Up to 32 E1 in an Asterisk Server By OpenVox D430E Telephony Cards
    • Up to 48 E1 in an Asterisk Server By OpenVox D430E Telephony Cards
  • folder icon closed folder iconFAQ
    • Analog Cards FAQ
      • Dahdi For Analog
      • Zaptel For Analog
    • BRI Cards FAQ
      • Dahdi For BRI
      • mISDN For BRI
      • Zaptel For BRI
    • E1/T1 Cards FAQ
      • Dahdi for pri
      • Zaptel for PRI
    • GSM Cards FAQ

VoIP Telephony Card

  • folder icon closed folder iconUser Manual
    • Analog Cards
      • A2410P/E AE2410P/E Hardware Manual
      • A400P/E Hardware Manual
      • A1610P/E AE1610P/E Hardware Manual
      • A810P/E AE810P/E Hardware Manual
      • Analog Card Software Installation Manual_Rockey
      • Analog Card Software Installation Manual_Debion
    • Digital Cards
      • D130P/E DE130P/E Hardware Manual
      • D230P/E DE230P/E Hardware Manual
      • D430P/E DE430P/E Hardware Manual
      • D830P/E DE830P/E Hardware Manual
      • D1630E DE1630E Hardware Manual
      • E1 Card Software Installation Manual_Rockey
      • E1 Card Software Installation Manual_Debion
    • X204 Hybrid Cards
      • X204P/E Hardware Manual
      • X204 Card Software Installation Manual_Debion
      • X204 Card Software Installation Manual_Rockey
    • BRI Cards
      • B400P/E BE400P/E Hardware Manual
      • B100P/E Hardware Manual
      • B800P Hardware Manual
      • B200P/E BE200P/E Hardware Manual
      • BRI Card Software Installation Manual_Debion
      • BRI Card Software Installation Manual_Rockey
    • Transcoding Cards
      • TAP100 User Manual
      • V100 User Manual
      • V100_PTMC user manual
      • V100_ETH and V100_BOX user manual
    • EOL
      • Analog Cards
        • A400E on DAHDI User Manual
        • A400M on DAHDI User Manual
        • A400P on DAHDI User Manual
        • A810E AE810E on DAHDI User Manual
        • A810P AE810P on DAHDI User Manual
        • A1610E AE1610E on DAHDI User Manual
        • A1610P AE1610P on DAHDI User Manual
        • A2410P AE2410P on DAHDI User Manual
      • Digital Cards
        • D130E/DE130E on DAHDI User Manual
        • D130P/DE130P on DAHDI User Manual
        • D230E/DE230E on DAHDI User Manual
        • D230P/DE230P on DAHDI User Manual
        • D430E/DE430E on DAHDI User Manual
        • D430P/DE430P on DAHDI User Manual
        • DE830E/D830E on DAHDI User Manual
        • DE830P/D830P on DAHDI User Manual
        • D210E/DE210E on DAHDI User Manual
        • D210P/DE210P on DAHDI User Manual
        • D410E/DE410E on DAHDI User Manual
        • D410P/DE410P on DAHDI User Manual
      • X204 Hybrid Cards
        • X204P/X204E Hybrid cards User Manual
      • BRI Cards
        • B100E on DAHDI User Manual
        • B100M on DAHDI User Manual
        • B100P on DAHDI User Manual
        • B200E /BE200E on DAHDI User Manual
        • B200M on DAHDI User Manual
        • B200P/BE200P on DAHDI User Manual
        • B400E/BE400E on DAHDI User Manual
        • B400M on DAHDI User Manual
        • B400P/BE400P on DAHDI User Manual
        • B800P on DAHDI User Manual
  • folder icon closed folder iconAPP Note
    • Enhanced CID Detection Feature in A810/1610/2410
    • Enhancing Busy Tone Detection Function in A810/1610/2410
    • How to Integrate Analog Gateway and GSM Gateway Modules in One VoxStack Box
    • Up to 32 E1 in an Asterisk Server By OpenVox D430E Telephony Cards
    • Up to 48 E1 in an Asterisk Server By OpenVox D430E Telephony Cards
  • folder icon closed folder iconFAQ
    • Analog Cards FAQ
      • Dahdi For Analog
      • Zaptel For Analog
    • BRI Cards FAQ
      • Dahdi For BRI
      • mISDN For BRI
      • Zaptel For BRI
    • E1/T1 Cards FAQ
      • Dahdi for pri
      • Zaptel for PRI
    • GSM Cards FAQ

BRI Card Software Installation Manual_Debion

Estimated reading: 7 minutes 402 views

Installation Environment

Debian 11.6.0

Dahdi-3.2.0

Asterisk-20

Libpri-1.6.0

1.Hardware Detection

lspci -vvvvvv

Check whether the system recognizes the corresponding board by the output of the above command.

If the B100 card is detected, the output will show “Network controller”, as shown in the figure:

04:00.0 Network controller: Cologne Chip Designs GmbH ISDN network controller [HFC-PCI] (rev 02)

Subsystem: Cologne Chip Designs GmbH ISDN Board

Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-

Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-

Latency: 16 (4000ns max)

Interrupt: pin A routed to IRQ 17

Region 0: I/O ports at d000 [disabled] [size=8]

Region 1: Memory at f7d00000 (32-bit, non-prefetchable) [size=256]

Capabilities: [40] Power Management version 1

Flags: PMEClk- DSI+ D1+ D2+ AuxCurrent=0mA PME(D0+,D1+,D2+,D3hot+,D3cold-)

Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-

Kernel driver in use: vzaphfc

Kernel modules: zaphfc

If one of theB200, B400 or B800 cards is detected, the output result will show “ISDN controller”, take B400 as an example:

04:02.0 ISDN controller: Cologne Chip Designs GmbH ISDN network Controller [HFC-4S] (rev 01)

Subsystem: Cologne Chip Designs GmbH HFC-4S [OpenVox B200P / B400P]

Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-

Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-

Interrupt: pin A routed to IRQ 16

Region 0: I/O ports at d000 [size=8]

Region 1: Memory at f7d00000 (32-bit, non-prefetchable) [size=4K]

Capabilities: [40] Power Management version 2

Flags: PMEClk- DSI+ D1+ D2+ AuxCurrent=0mA PME(D0+,D1+,D2+,D3hot+,D3cold-)

Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME+

Kernel driver in use: wcb4xxp

Kernel modules: wcb4xxp

Take B800 as an example as shown in the figure.

04:01.0 ISDN controller: Cologne Chip Designs GmbH ISDN network Controller [HFC-8S] (rev 01)

Subsystem: Cologne Chip Designs GmbH HFC-8S [OpenVox B800P]

Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-

Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-

Interrupt: pin A routed to IRQ 19

Region 0: I/O ports at d000 [size=8]

Region 1: Memory at f7d00000 (32-bit, non-prefetchable) [size=4K]

Capabilities: [40] Power Management version 2

Flags: PMEClk- DSI+ D1+ D2+ AuxCurrent=0mA PME(D0+,D1+,D2+,D3hot+,D3cold-)

Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME+

Kernel driver in use: wcb4xxp

Kernel modules: wcb4xxp

If the system does not detect the card, please turn off the power, clear the slot or insert the card into another slot of the same type and detect it again.

Download and unzip

Download the DAHDI source package from the official OpenVox website

https://www.openvox.cn/pub/drivers/dahdi-linux-complete/openvox_dahdi-linux-complete-current.tar.gz

Get Libpri from the Digium website:

https://downloads.asterisk.org/pub/telephony/libpri/libpri-current.tar.gz

Get Asterisk from the Digium website:

https://downloads.asterisk.org/pub/telephony/asterisk/asterisk-20-current.tar.gz

The DAHDI, Asterisk and Libpri are usually downloaded and extracted by running the following command in the directory /usr/src/.

wget https://www.openvox.cn/pub/drivers/dahdi-linux-complete/openvox_dahdi-linux-complete-current.tar.gz
wget https://downloads.asterisk.org/pub/telephony/asterisk/asterisk-20-current.tar.gz
wget https://downloads.asterisk.org/pub/telephony/libpri/libpri-current.tar.gz
tar -xvzf openvox_dahdi-linux-complete-current.tar.gz
tar -xvzf asterisk-20-current.tar.gz
tar -xvzf libpri-current.tar.gz

Dependency package installation.

apt-get update
apt-get install build-essential
apt-get install git
apt-get install linux-headers-`uname -r`

Install dahdi

Convert the path to the dahdi-linux-complete-XX source package directory (XX stands for DAHDI version) and run the following command to install DAHDI.

# cd /usr/src/dahdi-linux-complete-XX

make
make install
make config

Install libpri
Convert the path to the directory where the libpri source package is located and run the following command to install Libpri.

cd libpri-XX
make
make install

Compile problems

word image 239

Solution, comment out the -wall line in the libss7-1.6.0/Makefile file

word image 240

Install asterisk

Convert the path to the asterisk source package directory (XX stands for asterisk version) and run the following command to install asterisk.

# cd asterisk-20.xx

Dependency package installation

 contrib/scripts/install_prereq install
. /configure
 make
 make install
make samples

2.Configure

Load the driver

After compiling, please run the following command to load the driver according to the corresponding board model: # modprobe dahdi
# modprobe dahdi

If it is a B100 board, please run the following command
# modprobe zaphfc (B100 in TE mode) //if it is NT mode, then modprobe zaphfc modes=1 force_11_up=0

If it is B200/B400/B800 board please execute the following command

# modprobe wcb4xxp (B200,B400,B800) // B800 If there is NT port, then refer to the following explanation to set te_nt_override value according to the corresponding NT port and then execute modprobe wcb4xxp te_nt_override=required value

Then continue to execute the following command to generate the corresponding channel configuration file
# dahdi_genconf -vvv

# dahdi_cfg -vvvvvv

For B100 and B800, if you have NT port, edit /etc/modprobe.d/dahdi.conf according to the following diagram to load the parameters automatically when booting.

vi /etc/modprobe.d/dahdi.conf

word image 241

Under normal circumstances, after executing the command “dahdi_genconf”, the system will automatically generate the files /etc/dahdi/system.conf and etc/asterisk/dahdi-channels.conf. Check whether the generated configuration files meet your requirements, or you can modify the relevant parameters manually. It is important to make sure that dahdi-channels.conf is included in chan_dahdi.conf, if not, please run the command:
# echo “#include dahdi-channels.conf” >> /etc/asterisk/chan_dahdi.conf

Add the corresponding board driver to /etc/dahdi/modules to automatically load the board driver when booting

cp /etc/dahdi/modules.sample /etc/dahdi/modules

chmod 0777 /etc/dahdi/modules

vi /etc/dahdi/modules

word image 242

The following is an example of a B100 board to configure

The following shows part of the basic channel configuration file /etc/dahdi/system.conf.

# Span 1: ZTHFC1 "HFC-S PCI A ISDN card 0 [TE] " (MASTER)

span=1,1,0,ccs,ami

# termtype: te

bchan=1-2

hardhdlc=3

echocanceller=mg2,1-2

# Global data

loadzone = us

defaultzone = us

A portion of the file /etc/asterisk/dahdi-channels.conf is shown below:

; Span 1: ZTHFC1 "HFC-S PCI A ISDN card 0 [TE] " (MASTER)

group=0,11

context=from-isdn

overlapdial=yes # must add this line

switchtype = euroisdn

signalling = bri_cpe_ptmp

channel => 1-2

context = default

group = 63

Start Asterisk
# asterisk -vvvvvvgc
If Asterisk is already running, run “asterisk -r” instead. In the CLI interface, run

“dahdi show channels” and “pri show spans”:
word image 243

3.Writing a dial plan
Please write the dial plan in the extensions.conf file. The following figure describes a simple inbound and outbound plan.

#vi /etc/asterisk/extensions.conf

When a call comes in from the BRI board, the sip/100 extension will ring. If the extension created is xxxx, then change it to sip/xxxx

[from-isdn]
exten => _X.,1,Dial(SIP/100,,r)
exten => _X.,n,Hangup()

When the extension sets the context to from-internel, the call will go out from the board dahdi/1 (1 for channel 1), ${EXTEN} is the called number.

[from-internal]
exten => _X.,1,Dial(dahdi/1/${EXTEN},,r)
exten => _X.,n,Hangup()

After setting up the dialplan, please run “asterisk -r”, and execute the command “dialplan reload” in the CLI interface, then you can dial up the number.

Still stuck? How can we help?

Was this page helpful? Yes No

How can we help?

Leave a Comment Cancel reply

CONTENTS

Copyright © 2002-2024 OpenVox all rights reserved.