Dahdi d130 Asterisk Single Port Instructions

d130 Asterisk Single Port

Product Information

Specifications:

  • Dahdi version: 3.2.0
  • Asterisk version: 20
  • Libpri version: 1.6.0

Product Usage Instructions

Dependency Package Installation:

Before installing the product, ensure the following dependencies
are installed:

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

Installation:

Follow these steps to install the product components:

    Install Dahdi:
    # cd /usr/src/dahdi-linux-complete-XX
    # make
    # make install
    # make config

    Install Libpri:
    # cd libpri-XX
    # make
    # make install

    Install Asterisk:
    # cd asterisk-20.xx
    # contrib/scripts/install_prereq install
    # . /configure
    # make
    # make install
    # make samples
  

Configuration:

Configure the product for optimal performance:

    Add board drivers to /etc/dahdi/modules for automatic loading:
    # cp /etc/dahdi/modules.sample /etc/dahdi/modules
    # chmod 0777 /etc/dahdi/modules
    # vi /etc/dahdi/modules

    Configure D130 board:
    Modify settings in /etc/dahdi/systemconf as needed.

    Start Asterisk:
    # asterisk -vvvvvgc
  

Write a Dialing Plan:

Create a dial plan in the extensions.conf file for inbound and
outbound calls:

    [from-pstn]
    exten => _X.,1,Answer()
    exten => _X.,n,Playback(cc_welcome)
    exten => _X.,n,Hangup()

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

After setting up the dial plan, reload the dial plan by running
‘asterisk-r’ and executing ‘dialplan reload’ in the CLI
interface.

Frequently Asked Questions (FAQ)

Q: How can I check if DAHDI has been successfully loaded into
Asterisk?

A: Run ‘asterisk -vvvvvgc’ and if all channels display
correctly, it indicates successful loading of DAHDI into
Asterisk.

testing environment
Dahdi-3.2.0 Asterisk-20 Libpri-1.6.0
download
Download the DAHDI source code package from the OpenVox official website https://www.openvoxtech.com/pub/drivers/dahdi-linux-complete/openvox_dahdi-linuxcomplete-current.tar.gz Get Libpri from Digium website: https://downloads.asterisk.org/pub/telephony/libpri/libpri-current.tar.gz Get Asterisk from Digium website: https://downloads.asterisk.org/pub/telephony/asterisk/asterisk-20-current.tar.gz Usually run the following command in the directory/etc/src/to download and decompress DAHDI, Asterisk, and Libpri: #wget https://www.openvoxtech.com/pub/drivers/dahdi-linux-complete/openvox_dahdilinux-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
Install Dahdi Convert the path to the directory of the dahdi linux-comple-XX source code package (XX represents the 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 code package is located, and run

the following command to install Libpri: # cd libpri-XX # make # make install Compilation encountered issues
Solution: Annotate the – all line in the libss7-1.6.0/Makefile file file

Install Asterisk Convert the path to the Asterisk source code package directory (XX represents 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
configuration
Load Driver After compilation, please run the following instructions to load the driver according to the corresponding board model: The corresponding driver for the d130 board is opvxd115, d230, d430, d830, and d1630, and the corresponding driver for d1630 is wct4xxp # modprobe dahdi # modprobe opvxd115D130 # modprobe wct4xxp (D230,D430,D830,D1630) # dahdi_genconf -vvv Under normal circumstances, after executing the command “dahdi_gengconf”, the system will automatically generate two files:/etc/dahdi/system.exe and/etc/asterisk/dahdi-channels.exe. Check if the generated configuration file meets your requirements, or you can manually modify the relevant parameters. It is worth noting that it is confirmed that dahdichannels.conf is included in chan_dahdi.conf. If not, please run the command: # echo “#include dahdi-channels.conf” >>/etc/asterisk/chan_dahdi.conf
Add corresponding board drivers to/etc/dahdi/modules to achieve automatic loading of board drivers upon startup #cp /etc/dahdi/modules.sample /etc/dahdi/modules #chmod 0777 /etc/dahdi/modules #vi /etc/dahdi/modules

Using D130 board as an example to configure The following shows a portion of the basic channel configuration file/etc/dahdi/systemconf:
Annotate the echocanceler line Determine whether crc4 verification needs to be enabled If the E1 operator has not enabled crc4 verification, crc4 needs to be removed and modified to span=1,1,0,ccs,hdb3 In China, operators generally do not enable crc4 A part of the file/etc/asterisk/dahdi-channels.exe is shown in the figure:

After confirming the system. conf and dahdi channels. conf files, execute the following command: # dahdi_cfg ­vvvvvv

This command will read and load parameters from the file system.exe into the hardware. Part of the output result of the instruction execution is displayed as shown below.
Start Asterisk # asterisk -vvvvvgc If Asterisk is already running, run ‘asterisk-r’ instead. In the CLI interface, please run:

If all channels display correctly, it means that DAHDI has been successfully loaded into Asterisk. Next, please set the dialing plan.
Write a dialing plan

Please write a dial plan in the extensions.onf file. The following diagram illustrates a simple inbound and outbound plan: # vi /etc/asterisk/extensions.conf
When a call comes in from the E1 card, cc welcome voice will be played [from-pstn] exten => _X.,1,Answer() ; answer the inbound call exten => _X.,n,Playback(cc_welcome) exten => _X.,n,Hangup()
When the extension is set to ‘from internet’, outgoing calls will be sent from the E1 card dahdi/g0, with ${INTERN} being the called number [from-internal] exten => _X.,1,Dial(dahdi/g0/${EXTEN}) exten => _X.,n,Hangup()
After setting up the dial plan, please run “asterisk-r” and execute the command “dialplan reload” in the CLI interface, and then you can dial

Documents / Resources

Dahdi d130 Asterisk Single Port [pdf] Instructions
d130, d230, d430, d830, d1630, d130 Asterisk Single Port, d130, Asterisk Single Port, Single Port

References

Leave a comment

Your email address will not be published. Required fields are marked *