[asterisk-users] Ubuntu 8.04 + Astribank

Loic DIDELOT ldidelot at mixvoip.com
Fri May 9 02:38:04 CDT 2008


Hello,
I am sorry to drop in with maybe a dump question. I got my Xorcomm bank
(8 fxs) and I try to get it working on ubuntu without success. I was
looking for a step by step instruction which I could not find. I found
the "insert the CD and now it works manual" but thats not what I am
looking for.

So here is what I did:
- downloaded zaptel 1.4.10, comile and install
- plug the usb device

Here is the point where I am lost. So I tried a few things:
 - zaptel_hardware 
usb:008/007          xpp_usb-     e4e4:1131 Astribank-8/16 USB-firmware

- /usr/share/zaptel/xpp_fxloader load
--------- FIRMWARE LOADING: (load) [1 devices]
Got all 1 devices
/usr/sbin/fpga_load: ERROR (487): Wrong number of endpoints: 2
/usr/sbin/fpga_load: ERROR (749): Failed to initialize USB device
'/dev/bus/usb/008/007'
'xpp_fxloader'[14506]: FPGA Firmware into /dev/bus/usb/008/007
/usr/sbin/fpga_load: ERROR (487): Wrong number of endpoints: 2
/usr/sbin/fpga_load: ERROR (749): Failed to initialize USB device
'/dev/bus/usb/008/007'
'xpp_fxloader'[14513]: /usr/share/zaptel/FPGA_FXS.hex: Version=5480
Checksum=40245
[: 259: 0: unexpected operator
.......................................

- /usr/share/zaptel/xpp_fxloader usb
--------- FIRMWARE LOADING: (usb) [1 devices]
Got all 1 devices
--------- FIRMWARE IS LOADED

- /etc/init.d/zaptel start
Loading zaptel framework: done.
Waiting for zap to come online...OK
Loading zaptel hardware modules: tor2.
 wct4xxp.
 wcte12xp.
 wct1xxp.
 wcte11xp.
 wctdm24xxp.
 wcfxo.
 wctdm.
 wcusb.
 xpp_usb.
No functioning zap hardware found in /proc/zaptel, loading ztdummy
Running ztcfg: done.



So why cant I see my device in /proc/xpp  or /proc/zaptel. What did I
miss?
 

Best regards,
Loic Didelot.



On Thu, 2008-05-08 at 20:31 -0300, Guilherme Loch Waltrick Góes wrote:
> Runnig the xpp_fxloader before the Zaptel and Asterisk scripts solves
> the problem.
> 
> 
> thank you Tzafir.
> 
> On Thu, May 8, 2008 at 11:07 AM, Tzafrir Cohen
> <tzafrir.cohen at xorcom.com> wrote:
>         
>         On Thu, May 08, 2008 at 08:33:08AM -0300, Guilherme Loch
>         Waltrick Góes wrote:
>         > Tzafir,
>         > It's not working it, here's what the utilities told me:
>         >
>         > root at asterisk:~# invoke-rc.d asterisk stop
>         >  * Stopping Asterisk PBX: asterisk
>         >    ...done.
>         > root at asterisk:~# invoke-rc.d zaptel stop
>         > Unloading zaptel hardware drivers:.
>         > root at asterisk:~# /usr/share/zaptel/xpp_fxloader usb
>         > --------- FIRMWARE LOADING: (usb) [1 devices]
>         > 'xpp_fxloader'[6583]: USB
>         Firmware /usr/share/zaptel/USB_FW.hex into
>         > /dev/bus/usb/005/003
>         > ..Got all 1 devices
>         > --------- FIRMWARE IS LOADED
>         > root at asterisk:~# mount procbususb /proc/bus/usb -t usbfs
>         > root at asterisk:~# grep usb /proc/filesystems
>         > nodev usbfs
>         > root at asterisk:~# zaptel_hardware
>         > usb:005/004          xpp_usb-     e4e4:1151 Astribank-multi
>         USB-firmware
>         > root at asterisk:~# lsusb
>         > Bus 005 Device 004: ID e4e4:1151
>         > Bus 005 Device 002: ID 058f:6362 Alcor Micro Corp. Hi-Speed
>         21-in-1 Flash
>         > Card Reader/Writer (Internal/External)
>         > Bus 005 Device 001: ID 0000:0000
>         > Bus 004 Device 001: ID 0000:0000
>         > Bus 003 Device 001: ID 0000:0000
>         > Bus 002 Device 001: ID 0000:0000
>         > Bus 001 Device 001: ID 0000:0000
>         
>         
>         It means firmware has failed to load automatically.  This
>         still needs
>         some debugging. To manually load the firmware:
>         
>          /usr/share/zaptel/xpp_fxloader load
>         
>         Then look is lsusb. After you see there "52", re-run
>         
>          /etc/init.d/zaptel start
>         
>         
>         > root at asterisk:~# invoke-rc.d zaptel restart
>         > Unloading zaptel hardware drivers:.
>         > Loading zaptel framework: done.
>         > Waiting for zap to come online...OK
>         > Loading zaptel hardware modules: tor2.
>         >  wct4xxp.
>         >  wcte12xp.
>         >  wct1xxp.
>         >  wcte11xp.
>         >  wctdm24xxp.
>         >  wcfxo.
>         >  wctdm.
>         >  wcusb.
>         >  xpp_usb.
>         > No functioning zap hardware found in /proc/zaptel, loading
>         ztdummy
>         > Running ztcfg: done.
>         > root at asterisk:~# genzaptelconf
>         > root at asterisk:~# cat /etc/zaptel.conf
>         > # Autogenerated by /usr/sbin/genzaptelconf -- do not hand
>         edit
>         > # Zaptel Configuration File
>         > #
>         > # This file is parsed by the Zaptel Configurator, ztcfg
>         > #
>         >
>         > # It must be in the module loading order
>         >
>         >
>         > # Span 1: ZTDUMMY/1 "ZTDUMMY/1 (source: HRtimer) 1" (MASTER)
>         >
>         > # Global data
>         >
>         > loadzone = us
>         > defaultzone = us
>         >
>         > Any hints ? What else can I do ?
>         >
>         > Best Regards,
>         >
>         > On Wed, May 7, 2008 at 4:23 PM, Tzafrir Cohen
>         <tzafrir.cohen at xorcom.com>
>         > wrote:
>         >
>         > > On Wed, May 07, 2008 at 01:03:53PM -0300, Guilherme Loch
>         Waltrick Góes
>         > > wrote:
>         > > > I'm using Zaptel 1.4.10 compiled from source, it's an
>         Astribank with
>         > > > 6FXS+2FXO here's the output of some commands:
>         > > > root at asterisk:~# invoke-rc.d asterisk stop
>         > > >  * Stopping Asterisk PBX: asterisk
>         > > >    ...done.
>         > > > root at asterisk:~# invoke-rc.d zaptel restart
>         > > > Unloading zaptel hardware drivers:.
>         > > > Loading zaptel framework: done.
>         > > > Waiting for zap to come online...OK
>         > > > Loading zaptel hardware modules: tor2.
>         > > >  wct4xxp.
>         > > >  wcte12xp.
>         > > >  wct1xxp.
>         > > >  wcte11xp.
>         > > >  wctdm24xxp.
>         > > >  wcfxo.
>         > > >  wctdm.
>         > > >  wcusb.
>         > > >  xpp_usb.
>         > > > No functioning zap hardware found in /proc/zaptel,
>         loading ztdummy
>         > > > Running ztcfg: done.
>         > > > root at asterisk:~# lsusb
>         > > > Bus 005 Device 003: ID e4e4:1150
>         > > > Bus 005 Device 002: ID 058f:6362 Alcor Micro Corp.
>         Hi-Speed 21-in-1 Flash
>         > > > Card Reader/Writer (Internal/External)
>         > > > Bus 005 Device 001: ID 0000:0000
>         > > > Bus 004 Device 001: ID 0000:0000
>         > > > Bus 003 Device 001: ID 0000:0000
>         > > > Bus 002 Device 001: ID 0000:0000
>         > > > Bus 001 Device 001: ID 0000:0000
>         > > > root at asterisk:~# zaptel_hardware
>         > > > root at asterisk:~#
>         > >
>         > > I think that this is because they no longer mount usbfs by
>         default and
>         > > we rely on it for some details of the perl utilities.
>         > >
>         > > fxload and fpgaload, OTOH, do not rely on it. Make sure
>         you have the
>         > > package "fxload" installed and disconnect / reconnect the
>         Astribank
>         > > (or run '/usr/share/zaptel/xpp_fxloader usb').
>         > >
>         > > To mount usbfs:
>         > >
>         > >  mount procbususb /proc/bus/usb -t usbfs
>         > >
>         > > (to see if it is available: 'grep usb /proc/filesystems')
>         > >
>         > > But I think that apart from zaptel_hardware, our other
>         utilities do not
>         > > rely on /proc/bus/usb and should work well.
>         > >
>         > > --
>         > >                Tzafrir Cohen
>         
>         > > icq#16849755
>          jabber:tzafrir.cohen at xorcom.com<jabber%
>         3Atzafrir.cohen at xorcom.com>
>         
>         > > +972-50-7952406           mailto:tzafrir.cohen at xorcom.com
>         > > http://www.xorcom.com  iax:guest at local.xorcom.com/tzafrir
>         > >
>         > > _______________________________________________
>         > > -- Bandwidth and Colocation Provided by
>         http://www.api-digital.com --
>         > >
>         > > asterisk-users mailing list
>         > > To UNSUBSCRIBE or update options visit:
>         > >   http://lists.digium.com/mailman/listinfo/asterisk-users
>         > >
>         >
>         >
>         >
>         > --
>         > Guilherme Loch Góes
>         >
>         > Visite nossa loja virtual: http://www.shopvoip.com.br
>         >
>         > Notícias e Fórum sobre VoIP com software livre:
>         > http://www.asteriskexperts.com.br
>         
>         > _______________________________________________
>         > -- Bandwidth and Colocation Provided by
>         http://www.api-digital.com --
>         >
>         > asterisk-users mailing list
>         > To UNSUBSCRIBE or update options visit:
>         >    http://lists.digium.com/mailman/listinfo/asterisk-users
>         
>         --
>                       Tzafrir Cohen
>         icq#16849755              jabber:tzafrir.cohen at xorcom.com
>         +972-50-7952406           mailto:tzafrir.cohen at xorcom.com
>         http://www.xorcom.com  iax:guest at local.xorcom.com/tzafrir
>         
>         _______________________________________________
>         -- Bandwidth and Colocation Provided by
>         http://www.api-digital.com --
>         
>         asterisk-users mailing list
>         To UNSUBSCRIBE or update options visit:
>           http://lists.digium.com/mailman/listinfo/asterisk-users
>         
> 
> 
> 
> -- 
> Guilherme Loch Góes
> 
> Visite nossa loja virtual: http://www.shopvoip.com.br 
> 
> Notícias e Fórum sobre VoIP com software livre:
> http://www.asteriskexperts.com.br
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> 
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
-- 
Loïc DIDELOT
MIXvoip S.a.
ldidelot at mixvoip.com
http://www.mixvoip.com




More information about the asterisk-users mailing list