Note: for Allo Cards to work with Asterisk you need to patch it for the Dahdi driver, it will be covered in the upcomming steps.
step 1:
If you are using Precompiled asterisk pbx/diallers , then you need to uninstall the dahdi and install the patched Dahdi driver .Allo Dahdi driver patches are available for the below mention dahdi versions
2.4.1.2 --- patch download link2.5.1.2 --- patch download link 2.6.1 --- patch download linkcomplete version of Dahdi driver download location linkIn this tutorial i am using dahdi 2.6.1 as it is the latest and stable version----------------------------------------------------------------------------------------------
If you are using Precompiled asterisk pbx/diallers , then you need to uninstall the dahdi and install the patched Dahdi driver .Allo Dahdi driver patches are available for the below mention dahdi versions
2.4.1.2 --- patch download link2.5.1.2 --- patch download link 2.6.1 --- patch download linkcomplete version of Dahdi driver download location linkIn this tutorial i am using dahdi 2.6.1 as it is the latest and stable version----------------------------------------------------------------------------------------------
- First we need to uninstall the Installed Dahdi driver
Step bstop asterisk and dahdi#asterisk -vvvvvr>stop now#/etc/init.d/dahdi stop
step cNow uninstall all the install dahdi modules which are seen in step 1#modprobe -r wctc4xxp wctdm24xxp wcte12xp xpp dahdi_transcode wcb4xxp wctdm wcfxo wctdm24xxp #modprobe -r wcte11xp wct1xxp wcte12xp dahdi_voicebus wct4xxp wctdm24xxp dahdi
-----------------------------------------------------------------------------------------------Now we are Uninstalled the Dahdi drivers-----------------------------------------------------------------------------------------------Moving back to installation of Dahdi driver with Allo dahdi patch-----------------------------------------------------------------------------------------------step 2. Download the latest Dahdi driver ie:2.6.1type the following command in the asterisk server#cd /usr/src/#wget http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/dahdi-linux-complete-2.6.1+2.6.1.tar.gz#tar -xvzf dahdi-linux-complete-2.6.1+2.6.1.tar.gz#cd dahdi-linux-complete-2.6.1+2.6.1
**** Now we need to download the Allo Dahdi Patch#wget http://www.allo.com/firmware/pri-card/allo-pri-E1-dahdi-2.6.1.zip#yum install zip#unzip allo-pri-E1-dahdi-2.6.1.zip#patch -p1 -i Allo-PRI-E1-Dahdi-2.6.1.patch
**** dahdi driver patched now#make all#make install#make config
-----------------------------------------------------------------------------------------------Dahdi driver sucessfully installed with patch-----------------------------------------------------------------------------------------------Now configure the Allow cards for E1/T1-----------------------------------------------------------------------------------------------Step 3#vi /etc/dahdi/modulesadd tor3e at the end of the line and save and exit
*** now run the dahdi autogenerated scripts to configure the cards **#dahdi_genconf -vvvvvv the above command will display the below outputs
- [root@localhost ~]# dahdi_genconf -vvvvvv
- Default parameters from /etc/dahdi/genconf_parameters
- Generating /etc/dahdi/system.conf
- Generating /etc/asterisk/dahdi-channels.conf
if the card is configured properly the above command will display the below outputs
DAHDI Tools Version - 2.6.1
DAHDI Version: 2.6.1
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)
# vi /etc/asterisk/chan_dahdi.conf
-- go to the last line of the file and add the below line
#include dahdi-channels.conf
-- save and exit
Step 4
Now go start the asterisk and go to asterisk cli to load the dahdi modules
#asterisk press enter
#asterisk -vvvvr
>module load chan_dahdi.so
-----------------------------------------------------------------------------------------------
Asterisk commands to check the status of pri line
-----------------------------------------------------------------------------------------------
> dahdi show status
Description Alarms IRQ bpviol CRC4
T2XXP (PCI) Card 0 Span 1 OK 0 0 0
> pri show spans
PRI span 1/0: Provisioned, Up, Active
>dahdi show channels
-----------------------------------------------------------------------------------------------# vi /etc/asterisk/chan_dahdi.conf
-- go to the last line of the file and add the below line
#include dahdi-channels.conf
-- save and exit
Step 4
Now go start the asterisk and go to asterisk cli to load the dahdi modules
#asterisk press enter
#asterisk -vvvvr
>module load chan_dahdi.so
-----------------------------------------------------------------------------------------------
Asterisk commands to check the status of pri line
-----------------------------------------------------------------------------------------------
> dahdi show status
Description Alarms IRQ bpviol CRC4
T2XXP (PCI) Card 0 Span 1 OK 0 0 0
> pri show spans
PRI span 1/0: Provisioned, Up, Active
>dahdi show channels
-----------------------------------------------------------------------------------------------Step 4
Now go start the asterisk and go to asterisk cli to load the dahdi modules
#asterisk press enter
#asterisk -vvvvr
>module load chan_dahdi.so
-----------------------------------------------------------------------------------------------
Asterisk commands to check the status of pri line
-----------------------------------------------------------------------------------------------
> dahdi show status
Description Alarms IRQ bpviol CRC4
T2XXP (PCI) Card 0 Span 1 OK 0 0 0
> pri show spans
PRI span 1/0: Provisioned, Up, Active
>dahdi show channels
-----------------------------------------------------------------------------------------------Description Alarms IRQ bpviol CRC4
T2XXP (PCI) Card 0 Span 1 OK 0 0 0
> pri show spans
PRI span 1/0: Provisioned, Up, Active
>dahdi show channels
-----------------------------------------------------------------------------------------------> pri show spans
PRI span 1/0: Provisioned, Up, Active
>dahdi show channels
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Allo card is now configured to make and receive calls
-----------------------------------------------------------------------------------------------
Notes:
-----------------------------------------------------------------------------------------------
sample dialplan to dialout via the card
exten => _X.,1,Dial(DAHDI/g0/${EXTEN},,tToR)
extne => _X.,2,Hangup
-----------------------------------------------------------------------------------------------
by default the incomming call will be landed in from-pstn context .
if you want to change this Go to vi /etc/asterisk/dahdi-channels.conf and change the from-pstn to you context
for vicidial/Goautodial users change this to trunkinbound
-----------------------------------------------------------------------------------------------
For Goautodial users the chan_dahdi.conf file will be missing follow the below steps to get it
#cp /usr/src/asterisk-1.4.39.1-vici/configs/chan_dahdi.conf.sample /etc/asterisk/chan_dahdi.conf
and add #include dahdi-channels.conf at the last line
then reload the asterisk and dahdi
-----------------------------------------------------------------------------------------------
reference :
http://www.allo.com/support/viewtopic.php?f=6&t=14
http://www.allo.com/pri-card.html
http://asterisk.org
****
if i miss any steps or anything wrong in the above steps , please free to mail me or comment on this post.
No comments:
Post a Comment