Configuring Digium cards with Asterisk , goautodial , vicidial , vicidialnow , freepbx
How to configure the Digium PRI cards in Asterisk or vicidial or Goautodial or vicidialnow or Freepbx
- If you are using the precompiled iso of asteirsk software like ( trixbox , elastix , pbxinaflash , goautodial , vicibox,) then the Dhadi driver will be by default installed , if not you need to install the dahdi driver manually.(installation of dahdi explained at last of this doc)
- First you need to check whether card is in E1 or T1 mode.
- Take card outside and check for the E1/T1 changeover jumper in the card, if your PRI line is E1 then you need close the jumper , if T1 then it should be open. then insert the card into the server.
- Access your asterisk server via ssh , putty will be good tool to connect the server remotely via ssh
- First you need to check whether the card is recognised by the your server
- type lspci this will output pci boards connected in the server , if digium card is recognised it shows output as below 0e:08.0 Ethernet controller: Digium, Inc. Wildcard TE121 single-span T1/E1/J1 card (PCI-Express) (rev 11)
- Once the card is recognised , follow the below steps
- type dahdi_genconf -vvvvvvv -this will auto install configure the digium card driver and conf files
- [root@localhost ~]# dahdi_genconf -vvvvvv
- Default parameters from /etc/dahdi/genconf_parameters
- Generating /etc/dahdi/system.conf
- Generating /etc/asterisk/dahdi-channels.conf
2. Type dahdi_cfg -vvvv – this outputs the channels if it configured properly
[root@mrlpriprimary ~]# dahdi_cfg -vvvv
DAHDI Tools Version – 2.4.1
DAHDI Version: 2.4.1.2
Echo Canceller(s): MG2
Configuration
======================
SPAN 1: CCS/HDB3 Build-out: 0 db (CSU)/0-133 feet (DSX-1)
31 channels to configure.
Channel 01: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 01)
Channel 02: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 02)
Channel 03: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 03)
……………………………………………………………………………………………..
Channel 30: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 30)
Channel 31: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 31)
3. Now configuration is done, some small changes to be done to enable the channels in the asterisk
- go to vi /etc/asterisk/chan_dahdi.conf
- go to last line of the file by pressing shift+g
- then add this line #include dahdi-channels.conf
- save and exit the file.
4. Now go to asterisk cli and type module reload chand_dahdi.so or restart the server.
“if goautodial/vicidial/vicibox use the below dialplan in carrier or custome dialplan”
exten => _9XXXXX.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _9XXXXX.,2,Dial(DAHDI/g0/${EXTEN:1},,TtoR)
exten => _9XXXXX.,3,Hangup
a. you need to install libpri if you use pri lines
b. go to http://www.asterisk.org/downloads and download the latest libpri
c. as of writing this blog 1.4.12 is latest
d. wget http://downloads.asterisk.org/pub/telephony/libpri/releases/libpri-1.4.12.tar.gz
c. tar -xvzf libpri-1.4.12.tar.gz
d. cd libpri-1.4.12
e. make
d. make install
e. now you need to install dahdi.
[…]Configuring Digium cards with Asterisk , goautodial , vicidial , vicidialnow , freepbx | Eduguru – Good Blogging|http://www.ez-on-web.com[…]
Dog Walking Business http://www.ez-on-web.com/dog-walking-business.html