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)
steps to configure the Digium cards
- 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
2. Type dahdi_cfg -vvvv - this outputs the channels if it configured properly
- [root@localhost ~]# dahdi_genconf -vvvvvv
- Default parameters from /etc/dahdi/genconf_parameters
- Generating /etc/dahdi/system.conf
- Generating /etc/asterisk/dahdi-channels.conf
[root@mrlpriprimary ~]# dahdi_cfg -vvvv3. Now configuration is done, some small changes to be done to enable the channels in the asterisk
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)
- 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.
5. if the PRI line is up you can see green lights on the card.
6. if it shows RED light then either your pri is down or the pri cable not connected properly.
7. by default the digium cards configured with group 0 or 11 , so in your dialplan you need to mention g0
8. so you need write dialplan as
exten => _X.,Dial(DAHDI/g0/${EXTEN},,)
"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
"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
8a. if your using freepbx based pbx then no need to above line , just you need to add g0 in the DAHDI identifier under trunk (add new dahdi trunk)
9. And the default incomming context will the from-pstn
Installing the DAHDI driver
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.
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.
1.go to http://www.asterisk.org/downloads and download the latest dahdi
as of writting this blog its 2.6.1 so
2. wget http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/releases/dahdi-linux-complete-2.6.1+2.6.1.tar.gz
3. tar -xvzf dahdi-linux-complete-2.6.1+2.6.1.tar.gz
4. cd dahdi-linux-complete-2.6.1+2.6.1.
5. make all
6. make install
7. make config.
once done follow the above steps to configure your card.
A very awesome blog post. We are really grateful for your blog post. You will find a lot of approaches after visiting your post. asterisk pbx download
ReplyDelete