dahdi-source & Tiger Jet Network Inc. Tiger3XX Modem/ISDN interface

Folkert van Heusden folkert at vanheusden.com
Mon Sep 7 18:30:28 UTC 2009


Ok with this patch the module loads and finds my fxo card:

[  497.239306] FXO PCI Master abort
[  497.270088] NOTICE-wcfxo: WCFXO/0: Unknown DAA chip revision: REVB=0
[  497.290177] wcfxo: DAA mode is 'FCC'
[  497.290227] Found a Wildcard FXO: Generic Clone

mauer:/etc/asterisk# ls -l /dev/dahdi/  
total 0
crw-rw---- 1 asterisk dialout 196,   1 2009-09-07 19:55 1
crw-rw---- 1 asterisk dialout 196, 254 2009-09-07 19:47 channel
crw-rw---- 1 asterisk dialout 196,   0 2009-09-07 19:47 ctl
crw-rw---- 1 asterisk dialout 196, 255 2009-09-07 19:47 pseudo
crw-rw---- 1 asterisk dialout 196, 253 2009-09-07 19:47 timer

[ 2237.948593] dahdi: Dump of DAHDI Channel 1 (WCFXO/0/0,1,1):
[ 2237.948595] 
[ 2237.948691] dahdi: flags: 201 hex, writechunk: ffff8801289b4308, readchunk: ffff8801289b4318
[ 2237.948755] dahdi: rxgain: ffffffffa0244320, txgain: ffffffffa0244320, gainalloc: 0
[ 2237.948816] dahdi: span: ffff8801289b4010, sig: 2004 hex, sigcap: 6005 hex
[ 2237.948867] dahdi: inreadbuf: -1, outreadbuf: -1, inwritebuf: -1, outwritebuf: -1
[ 2237.948930] dahdi: blocksize: 0, numbufs: 2, txbufpolicy: 0, txbufpolicy: 0
[ 2237.948986] dahdi: txdisable: 0, rxdisable: 0, iomask: 0
[ 2237.949042] dahdi: curzone: (null), tonezone: 3, curtone: (null), tonep: 0
[ 2237.949097] dahdi: digitmode: 0, txdialbuf: , dialing: 0, aftdialtimer: 0, cadpos. 0
[ 2237.949159] dahdi: confna: 0, confn: 0, confmode: 0, confmute: 0
[ 2237.949210] dahdi: ec: (null), deflaw: 0, xlaw: ffffffffa0225d60
[ 2237.949261] dahdi: itimer: 0, otimer: 0, ringdebtimer: 0
[ 2237.949262] 

mauer:/etc/asterisk# dahdi_hardware 
pci:0000:07:02.0     wcfxo+       e159:0001 Wildcard X101P clone


Asterisk ignores it though.
It seems as if asterisk ignores the dahdi driver which is odd: why include it in Debian if Asterisk doesn't use it anyway?
ASterisk version 1:1.4.21.2~dfsg-3


On Mon, Sep 07, 2009 at 08:12:53PM +0200, Folkert van Heusden wrote:
> Hi,
> 
> For the Tiger Jet Network Inc. Tiger3XX Modem/ISDN interface to work
> with the dahdi driver (altough i still have an issue about
> libtonezone.so.1.0 not being found by asterisk), the following patch
> should be applied:
> 
> diff -uNrBbd dahdi-linux-complete-2.2.0.2+2.2.0/linux/drivers/dahdi/wcfxo.c dahdi-linux-complete-2.2.0.2+2.2.0.new/linux/drivers/dahdi/wcfxo.c
> --- dahdi-linux-complete-2.2.0.2+2.2.0/linux/drivers/dahdi/wcfxo.c      2009-06-18 20:03:26.000000000 +0200
> +++ dahdi-linux-complete-2.2.0.2+2.2.0.new/linux/drivers/dahdi/wcfxo.c  2009-09-07 18:54:52.000000000 +0200
> @@ -673,6 +673,11 @@
>         /* Hardware stuff */
>         /* Reset PCI Interface chip and registers */
>         outb(0x0e, wc->ioaddr + WC_CNTL);
> +/* Reset the DAA */
> +outb(0x00, wc->ioaddr + WC_AUXD);
> +set_current_state(TASK_INTERRUPTIBLE);
> +schedule_timeout(1 + HZ / 800);
> +/* un-reset the DAA */
>         if (wc->flags & FLAG_RESET_ON_AUX5) {
>                 /* Set hook state to on hook for when we switch.
>                    Make sure reset is high */
> @@ -681,8 +686,6 @@
>                 /* Set hook state to on hook for when we switch */
>                 outb(0x24, wc->ioaddr + WC_AUXD);
>         }
> -       /* Set all to outputs except AUX 4, which is an input */
> -       outb(0xef, wc->ioaddr + WC_AUXC);
> 
>         /* Back to normal, with automatic DMA wrap around */
>         outb(0x01, wc->ioaddr + WC_CNTL);
> 
> This patch was not originally written by me but someone on the internet. If I remember correctly I found it in asterisk-dev.
> 
> 
> Folkert van Heusden
> 
> -- 
> 
> Multitail - gibkaja utilita po sledovaniju log-fajlov i vyvoda
> kommand. Fil'trovanie, raskra?ivanie, slijanie, vizual'noe sravnenie,
> i t.d.  http://www.vanheusden.com/multitail/
> ----------------------------------------------------------------------
> Phone: +31-6-41278122, PGP-key: 1F28D8AE, www.vanheusden.com


Folkert van Heusden

-- 
MultiTail è uno flexible tool per seguire di logfiles e effettuazione
di commissioni. Feltrare, provedere da colore, merge, 'diff-view',
etc. http://www.vanheusden.com/multitail/
----------------------------------------------------------------------
Phone: +31-6-41278122, PGP-key: 1F28D8AE, www.vanheusden.com



More information about the Pkg-voip-maintainers mailing list