Sangoma Wanpipe Installation

cd /usr/src

#Create a virtual link to zaptel directory for Sangoma
ln -s zaptel-1.2.x zaptel

Check to see if this is the latest wanpipe driver.  Download the newest released or beta version for the A200D card.
tar zxvf wanpipe-2.3.4-13.tgz
cd /usr/src/wanpipe-2.3.4-13
./Setup install

Would you like to install WAN Router now? (y/n) y

Would you like update/upgrade wanpipe drivers? (y/n) y

Press [Enter] to continue...

Proceed to build WANPIPE kernel modules ? (y/n) y

Please Select Compilation Mode

1. WAN Protocol Support (Default)

        Protocols: Frame Relay, CHDLC, PPP, X25 and ADSL

2. TDM Voice (Asterisk) Support Only

        Protocols: TDMV (Asterisk) on AFT adatpers.

3. TDM Voice (Asterisk) + WAN Protocol Support

        Protocols: TDMV, Frame Relay, CHDLC, PPP, X25, ADSL

4. TDM Voice (Asterisk) + SS7 Support + WAN Protocol Support

        Protocols: TDMV, SS7, Frame Relay, CHDLC, PPP, X25, ADSL

5. Custom Compilation Mode

        Specify protocols to be added into the WANPIPE

        kernel drivers.

Please select (1,2,3,4 or 5) [Default: 1]: 2

Press Enter for Default
Press Enter for Default

Enable TDMV DCHAN Native HDLC Support & Patch Zaptel ? (y/n) y

Your Zaptel source was modified, recompile/reinstall zaptel ? (y/n) y

Everything else just continue to go with “y” or ENTER for defaults

To upgrade the Wanpipe driver proceed as follows:

check your current version

wanrouter version

Rename or delete original wanpipe source directory

Download new source from Sangoma

Stop Freepbx/Asterisk
amportal stop

And just to make sure asterisk stops
asterisk stop

Now stop the wanrouter software
wanrouter stop

HOTPLUG can conflict with startup of TDMV drivers.
 Insert wanpipe interface name into the hotplug interface list, and restart hotplug. 
   nano +45 /etc/hotplug/net.agent
Insert wanpipe interface name into the ignore list:
Look for:  
        case $INTERFACE in

And add w* to the list

         Where w* relates to all wanpipe interfaces starting with letter "w".
There is also a list of interfaces to be ignored when unregistering, and the w* interfaces must be added to this list also.

nano +99 /etc/hotplug/net.agent
Look for:   
        case $INTERFACE in

and add w*

restart hotplug agent to apply changes: 
 /sbin/hotplug restart
/usr/sbin/wancfg zaptel
If autoconfig does not work just go through menus
Create new wanpipe1.conf file
Detect card
Enable TDM Voice, Hardware Echo, SPAN 1

Install/compile new driver as per above fresh install procedure.  Zaptel drivers have already been compiled for you by Sangoma Wanpipe so you can skip the next section.