##Google Analz## ##Microsoft## ##Googel## Swanand: Configuring Allo cards with Asterisk , ViciDial , Goautodial , vicibox , Elastix , PIAF , Asterisk Now

Saturday 12 October 2013

Configuring Allo cards with Asterisk , ViciDial , Goautodial , vicibox , Elastix , PIAF , Asterisk Now

Configuring Allo cards with Asterisk , ViciDial , Goautodial , vicibox , Elastix , PIAF , Asterisk Now

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 link
2.5.1.2    --- patch download link 
2.6.1       --- patch download link
complete version of Dahdi driver download location link
In 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
Procedure to uninstall the Dahdi
-----------------------------------------------------------------------------------------------
Type the below command in linux shell
step a
lsmod | grep dahdi
this will ouput the loaded dahdi driver & modules as show below
dahdi_transcode        12036  1 wctc4xxp
dahdi_voicebus         46272  2 wctdm24xxp,wcte12xp
dahdi                        196680  17 xpp,dahdi_transcode,wcb4xxp,wctdm,wcfxo,wctdm24xxp
                                                   ,wcte11xp,wct1xxp,wcte12xp,dahdi_voicebus,wct4xxp
crc_ccitt                     6337  2    wctdm24xxp,dahdi

Step b
stop asterisk and dahdi
#asterisk  -vvvvvr
>stop now
#/etc/init.d/dahdi stop

step c
Now 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.1
type 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/modules
add 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

#dahdi_cfg -vvvv
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

-----------------------------------------------------------------------------------------------
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://asterisk.org

No comments:

Post a Comment

Featured post

Vicidial With WebRTC

Vicidial With WebRTC VICIDial is well known open source call center software. It has been in use by many small to large scaled con...