how to install and configure sangoma card on Asterisk , vicidial ,goautodial , Freepbx based pbx
- If you are using the precompiled iso’s of asterisks pbx then by default the wanpipe will be installed.
“wanpipe is the driver for the sangoma cards”
- if the wanpipe is not installed you need to install the latest wanpipe
- Installing the wanpipe in centos
installing the dependicies
yum -y install kernel-devel-$(uname -r) libtool* gcc make patch perl bison gcc-c++ ncurses-devel flex libtermcap-devel autoconf* automake*
- download the latest wanpipe from below link
http://wiki.sangoma.com/wanpipe-linux-drivers#latest
- Untar the wanpipe file
tar xvfz wanpipe-<version>.tgz
- cd wanpipe-<version>
- type ./Setup dahdi
- if it prompts yes just press y and enter
- Proceed with Defaults for the rest of the compilation
Once wanpipe installation done , now you need to configure your sangoma card
- type lspci command to check whether your server have recognizied the sangoma card
the above command will return sometink like below
“Sangoma Technologies Corp. A200/Remora FXO/FXS Analog AFT card”
- now type wancfg_dahdi
would you like to generate /etc/asterisk/chan_dahdi.conf
- YES
- NO
[1-2]:1
Configuring port 1 on A101 slot:4 bus:4.
Select media type for AFT-A101 on port 1 [slot:4 bus:4 span:1]
- T1
- E1
- Unused
- Exit
[1-4]:2 ——- if your connection is T1 then enter 1 mine is E1 (india)
Configuring port 1 on 101 as E1, line coding:HDB3, framing:CRC4
- YES – Keep these settings
- NO – Configure line coding and framing
[1-2, ENTER=’YES’]:1
note: for the above you need to ask your provider for the detaisl like crc4 is enable to disable based on that u need to enter
Select clock for AFT-A101 on port 1 [slot:4 bus:4 span:1]
- NORMAL
- MASTER
[1-2]:2
Select signalling type for AFT-A101 on port 1 [slot:4 bus:4 span:1]
- Zaptel/Dahdi – PRI CPE
- Zaptel/Dahdi – PRI NET
- Zaptel/Dahdi – E & M
- Zaptel/Dahdi – E & M Wink
- Zaptel/Dahdi – FXS – Loop Start
- Zaptel/Dahdi – FXS – Ground Start
- Zaptel/Dahdi – FXS – Kewl Start
- Zaptel/Dahdi – FX0 – Loop Start
- Zaptel/Dahdi – FX0 – Ground Start
- Zaptel/Dahdi – FX0 – Kewl Start
- Sangoma SMG/sangoma_prid- PRI CPE
- Sangoma SMG/sangoma_prid- PRI NET
[1-12]:1
note: if the line is from the provider select 1 , if you are connecting card to leagal epabx then give 2
Select switchtype for AFT-A101 on port 1
- National ISDN 2
- Nortel DMS100
- AT&T 4ESS
- Lucent 5ESS
- EuroISDN
- Old National ISDN 1
- Q.SIG
[1-7]:5
Configuring port 1 on AFT-A101 as a full E1
- YES – Use all channels
- NO – Configure for fractional
[1-2, ENTER=’YES’]:1
Select dialplan context for AFT-A101 on port 1
- from-pstn
- from-internal
- Custom
[1-3]:1 —— mine is freepbx so i selected from-pstn , if yours is different then select custom and enter your incomming context
Input the group for this port
:0 —- i have give zero , if you want the group name 1 then give 1
this is based on how you write your outgoing dialplan
Port 1 on AFT-A101 configuration complete…
Press any key to continue:
T1/E1 card configuration complete.
Press any key to continue:
Configuration Complete! Please select following:
- YES – Continue
- NO – Exit
[1-2]:1
Dahdi and Wanpipe configuration complete: choose action
- Save cfg: Restart Asterisk & Wanpipe now
- Save cfg: Restart Asterisk & Wanpipe when convenient
- Save cfg: Stop Asterisk & Wanpipe now
- Save cfg: Stop Asterisk & Wanpipe when convenient
- Save cfg: Save cfg only (Not Recommanded!!!)
- Do not save cfg: Exit
[1-6]:1
Would you like wanrouter to start on system boot?
- YES
- NO
[1-2]:1
Would you like to execute ‘dahdi_cfg’ each time wanrouter starts?
- YES
- NO
[1-2]:1
end of wanroute configuration
Now you need to check pri status ,
Wanrouter status ; it should show connected
type dahdi_cfg -vv this shows does the card configured properly or not , shows the channels configured
go to asterisk cli
asterisk -vvvvr
dahdi show status
dahdi show channels
pri show spans
once the pri is up , now check the incomming and outgoing