SANGOMA

U100 - USBfxo

  1. Download Drivers
  2. Firmware Installation
  3. Hardware Installation 
  4. Driver Installation 
  5. USBfxo Configuration/Operation

[ FreeSwitch Users Click Here ]

 


Download Drivers

Driver version 3.6.0.12 is a required update.  

Download:
-> LINUX: Wanpipe-3.6.0.12.tgz


Firmware Installation

Firmware version 21 is a required update  (NOTE: Wanpipe 3.6.0.12 or greater is needed to update firmware)

Firmware can be found at http://wiki.sangoma.com/sangoma-hardware#aft_firmware

Update Instructions can be found at http://wiki.sangoma.com/wanpipe-linux-aft-firmware-update


Hardware Installation

You will just simply have to plug the USB cable into the U100 and then into the server.
 
NOTE: The current driver does not support hot-plug functionality, so after our drivers are started you can not safely add/remove the device. To check if the drivers are running run "wanrouter status", if they are running run "wanrouter stop all" after insuring Asterisk is stopped. Please see USBfxo Configuration/Operation for further details. 
 

Driver Installation 

 

  1. Untar wanpipe release in arbitrary directory (/usr/src/ is recommended).
    #>tar xvfz wanpipe-<version>.tgz
    #>cd wanpipe-<version>
    After untarring WANPIPE®, the wanpipe<version>/ directory will be created.  
  2. Run ./Setup install from the newly created wanpipe-<version> directory
       
             #>./Setup install
        or

             #>./Setup install --64bit_4GB 
                 (in case X86_64bit & 4GB memory or more)
     
    Proceed with installation Select "Y" for each option.
    Under compilation mode:  Select "TDM Only drivers" (Option #2).

    Setup will ask you for location of zaptel sources?
    [By default Setup will look in /usr/src/zaptel]
     
    Zaptel 1.4 -> wanpipe drivers use zaptel supported hwdchan so no patching is needed.
                                Zaptel does not need to be recompiled
     
    Zpatel 1.2-> Setup will ask you if you would like to add support for Sangoma HW HDLC DCHAN PRI to Zaptel.
                                 "Enable TDMV DCHAN Native HDLC Support & Patch Zaptel ? (y/n)"
                                  Select "Y" to Enable HW HDLC on DCHAN PRI in Zaptel.
                          Setup will ask you if you would like to recompile/reinstall Zaptel.
                                 "Recompile/reinstall zaptel (recommended) ? (y/n) "
                                  Select "Y" to recompile/reinstall Zaptel  
  3. Proceed with Defaults for the rest of the compilation.  
  4. Last step in installation will ask you to configure wanpipe cards for Zaptel
    -> Proceed with YES this is your initial installation
    -> Note wancfg_zaptel  will overwrite your zaptel.conf and zapata.conf files and save the originals as zaptel.conf.bak and zapata.conf.bak
    -> The configuration process continues on Configuration Section

    If any errors are encountered during the compilation of the utilities, click here for assistance.

 
Confirm Successful Wanpipe/Zaptel Installation

  1. Confirm successful Wanpipe/Zaptel installation run:
    #>wanrouter hwprobe
    -------------------------------
    | Wanpipe Hardware Probe Info |
    -------------------------------
    1. U100       : BUS=2 : V=00

    Card Cnt: U100=1

    This command will load the wanpipe and zaptel modules and will print out list of all Sangoma hardware installed on the system. 

 

 


USBfxo Configuration/Operation

 

 

1) To configure the device just simply run "wancfg_zaptel" from the command line.

2) To start the device with Asterisk follow the three steps below.

# wanrouter start (to start our drivers)

# ztcfg -vvv (to start Zaptel)

# asterisk (to start Asterisk)

# asterisk -r (to login to the Asterisk CLI)

# zap show channels (to see all the zap channels)

3) To stop the device with Asterisk follow the two steps below.

# asterisk -r (to login to the Asterisk CLI)

# stop now (to stop Asterisk)

# wanrouter stop (to stop our drivers)

 

 

 

Comments

From zmousm - 9/11/09 6:06 PM

On Debian lenny 5.0.3, when built against linux 2.6.26 and zaptel 1.4.11, i.e. the currently available stable packages, the wanpipe module is built with unresolved symbols and thus will not load:

WARNING: "zt_alarm_notify" [/tmp/wanpipe-3.5.6/kdrvtmp/wanpipe.ko] undefined!

WARNING: "zt_register" [/tmp/wanpipe-3.5.6/kdrvtmp/wanpipe.ko] undefined!

WARNING: "zt_hooksig" [/tmp/wanpipe-3.5.6/kdrvtmp/wanpipe.ko] undefined!

WARNING: "zt_unregister" [/tmp/wanpipe-3.5.6/kdrvtmp/wanpipe.ko] undefined!

WARNING: "zt_rbsbits" [/tmp/wanpipe-3.5.6/kdrvtmp/wanpipe.ko] undefined!

WARNING: "zt_transmit" [/tmp/wanpipe-3.5.6/kdrvtmp/wanpipe.ko] undefined!

WARNING: "zt_ec_chunk" [/tmp/wanpipe-3.5.6/kdrvtmp/wanpipe.ko] undefined!

WARNING: "zt_qevent_lock" [/tmp/wanpipe-3.5.6/kdrvtmp/wanpipe.ko] undefined!

WARNING: "zt_receive" [/tmp/wanpipe-3.5.6/kdrvtmp/wanpipe.ko] undefined!

WARNING: "zt_hdlc_getbuf" [/tmp/wanpipe-3.5.6/kdrvtmp/wanpipe.ko] undefined!

WARNING: "zt_ec_span" [/tmp/wanpipe-3.5.6/kdrvtmp/wanpipe.ko] undefined!

 

This is true for all recent wanpipe packages I could find and tried: 3.5.6, 3.5.6.4, 3.6.0.5 and 3.7.0.6.

 Any ideas how to fix this? 

From rpalma - 7/3/09 12:52 PM

What distribution of GNU/Linux recommends? in they debian lenny the command wancfg_dahdi does not detect the U100 device

From mykroft - 6/14/09 9:07 PM

What does the Red/Green LEDs mean for status? Mine are already solid red when drivers loaded, when machine boots they flash between green/red.

From sashi - 5/22/09 5:30 AM

When will the Windows driver for USBfxo be available?

From mogami - 3/9/09 1:04 AM

Please tell me instruction for asterisk1.6 & DAHDI.

From cunnie - 3/16/09 6:46 PM

Instructions for USBFXO + DAHDI + Asterisk 1.6

 # first, let's build dahdi-linux
cd /tmp
tar xzvf dahdi-linux-2.1.0.4.tar.gz
cd dahdi-linux-2.1.0.4
make
sudo make install
cd ..
tar xzvf dahdi-tools-2.1.0.2.tar.gz
cd dahdi-tools-2.1.0.2
./configure
# make menuselect has no interesting options
make
sudo make install
sudo make config
# okay, now let's rebuild wanpipe for the umpteenth time
cd /tmp
tar xzvf wanpipe-3.5.0.27.tgz
# now create /etc/asterisk so that wanpipe works properly
sudo mkdir /etc/asterisk
cd /tmp/wanpipe-3.5.0.27
sudo ./Setup dahdi
    y   # install WANPIPE now
    m   # Enter zaptel path manually
    /tmp/dahdi-linux-2.1.0.4
    y   # configure wanpipe devices for DAHDI
    1   # yes
    1   # generate /etc/asterisk/chan_dahdi.conf
    1   # configure USB U100 on bus:3-2
    1   # MULAW - North America
    1   # FCC
        # Press any key to continue
        # Press any key to continue
    1   # Continue
    1   # Save cfg: Restart Asterisk & Wanpipe now

# Error: Zaptel device failed to come up
# Possible Cause: UDEV not installed!
# Starting Asterisk...
# Error executing command:
# asterisk

    2   # Continue
    2   # continue "dahdi show channels" failed
    1   # wanrouter to start on system boot

cp /etc/asterisk/chan_dahdi.conf /tmp/  # backup
cd /tmp
tar xzvf asterisk-1.6.0.6.tar.gz
cd asterisk-1.6.0.6
./configure
# make menuselect - looks okay
make
sudo make install
sudo make samples
# copy our chan_dahdi.conf back
sudo cp /tmp/chan_dahdi.conf /etc/asterisk/
sudo chkconfig dahdi on
# remember, Asterisk doesn't start automatically because we built from
# source, so you'll need to add something to /etc/rc.local to start asterisk.

Site

Changes
Index
Search

 

User

 

Log In
Register

 
 

Last Modified 11/9/09 2:25 PM