Wednesday 10 February 2016

Install Asterisk with Sangoma card

How to Install and configure asterisk with Sangoma card and testing with PRI Line ?


1) Operating system Centos 6.5 (64 bit)
2) Disable iptables {service iptables stop} and {chkconfig iptables off}
3) Disable selinux {setenforce 0} and edit in /etc/selinux/config
 
 



Now  Turn for library and kernel installation  in centos


# yum -y kernel*

reboot machine by typing # reboot

cd /usr/src/


  1. Dowload dahdi linux complete by 
     4. Downlaod Asterisk by “wget


Now Install software as given below :-


Install libpri by following steps:

          tar zxvf libpri-1.4.12.tar.gz
          cd libpri-1.4.12
           make clean
           make
           make install
            
Install dahdi complete by following steps:



           tar zxvf  dahdi-linux-complete-2.6.0+2.6.0.tar.gz
           cd dahd-linux-complete-2.6.0+2.6.0
           make clean
           make
           make install
           make config



  Install Asterisk by following steps:
           
          tar zxvf asterisk-1.8.21.0.tar.gz
           cd asterisk-1.8.21.0
           make clean
           ./configure
           make
           make install
           make samples( for only fresh installation)
  
 Now Its time to Installation of sangoma driver and configuration

Download package by typing in /usr/src directory

# wget ftp://ftp.sangoma.com/linux/current_wanpipe/wanpipe-7.0.3.tgz

Install following library for before proceeding for sangoma driver installation

# yum -y install kernel-devel-$(uname -r) libtool* gcc make patch perl bison gcc-c++ ncurses-devel flex libtermcap-devel autoconf* automake*


  1. Place the card properly and power on the system.
  2. Check whether system detects the card “lspci | grep Sangoma”.
  3. Check whether dahdi detects the card “dahdi_tool”.
  4. Go to the directory “cd /usr/src”
  5. Install wanpipe by (tar zxvf wanpipe-7.0.3.tgz, cd /wanpipe-7.0.3/, make clean.
  6. The run the command “./Setup install “,if it prompts yes press “y” and proceed to the next level.








After Configuring sangoma then know how to check whether PRI is up and make a call

to open asterisk
a) asterisk -rvvvvvvv

to check pri line is up

b) pri show spans

 To make a conference call

c) originate dahdi/g0/Your-Mobile-number    application dial dahdi/g0/reciever-mobile-number

Please also find link for video and asterisk pri line