x100p fxo card and zaptel

hello all,

I am trying to configure asterisk with wildcard x100p fxo card but I cannot get it work with zaptel.

CentOS 5.3
uname
Linux lab.link.com 2.6.18-128.el5 #1 SMP Wed Jan 21 10:44:23 EST 2009 i686 i686 i386 GNU/Linux

dmesg shows this
Zapata Telephony Interface Registered on major 196
Zaptel Version: 1.4.12.1
Zaptel Echo Canceller: MG2
ACPI: PCI Interrupt 0000:00:1f.3[B] -> GSI 17 (level, low) -> IRQ 177
parport: PnPBIOS parport detected.
parport0: PC-style at 0x378 (0x778), irq 7 [PCSPP,TRISTATE]
ACPI: PCI Interrupt 0000:01:08.0[A] -> GSI 17 (level, low) -> IRQ 177
NOTICE-wcfxo: WCFXO/0: Unknown DAA chip revision: REVB=0
Failed to initailize DAA, giving up…
wcfxo: probe of 0000:01:08.0 failed with error -5

lspci -v
01:08.0 Communication controller: Motorola Wildcard X100P
Subsystem: Efar Microsystems Unknown device 0001
Flags: bus master, medium devsel, latency 64, IRQ 177
I/O ports at de00 [size=256]
Memory at feadf000 (32-bit, non-prefetchable) [size=4K]
Capabilities: [40] Power Management version 2

lsmod
[root@lab zaptel-1.4.12.1]# lsmod
Module Size Used by
ipv6 261473 18
xfrm_nalgo 13381 1 ipv6
crypto_api 12609 1 xfrm_nalgo
autofs4 24261 2
hidp 23105 2
rfcomm 42457 0
l2cap 29505 10 hidp,rfcomm
bluetooth 53797 5 hidp,rfcomm,l2cap
sunrpc 144765 1
ztdummy 9256 0
xpp_usb 21064 0
xpp 135876 1 xpp_usb
wcusb 18176 0
wctdm 39628 0
wctdm24xxp 115556 0
wcte11xp 26912 0
wct1xxp 17440 0
wcte12xp 65764 0
wct4xxp 298752 0
tor2 91936 0
dm_multipath 24013 0
scsi_dh 11713 1 dm_multipath
video 21193 0
hwmon 7365 0
backlight 10049 1 video
sbs 18533 0
i2c_ec 9025 1 sbs
button 10705 0
battery 13637 0
asus_acpi 19289 0
ac 9157 0
lp 15849 0
e1000 115285 0
sg 36189 0
wcfxo 15904 0
i2c_i801 11725 0
parport_pc 29157 1
parport 37513 2 lp,parport_pc
zaptel 191108 13 ztdummy,xpp,wcusb,wctdm,wctdm24xxp,wcte11xp,wct1xxp,wcte12xp,wct4xxp,tor2,wcfxo
i2c_core 23745 2 i2c_ec,i2c_i801
crc_ccitt 6337 1 zaptel
pcspkr 7105 0
ide_cd 40161 0
cdrom 36577 1 ide_cd
serio_raw 10693 0
dm_raid45 66509 0
dm_message 6977 1 dm_raid45
dm_region_hash 15681 1 dm_raid45
dm_mem_cache 9537 1 dm_raid45
dm_snapshot 22245 0
dm_zero 6209 0
dm_mirror 22981 0
dm_log 14529 3 dm_raid45,dm_region_hash,dm_mirror
dm_mod 62201 11 dm_multipath,dm_raid45,dm_snapshot,dm_zero,dm_mirror,dm_log
ata_piix 23621 2
libata 156677 1 ata_piix
sd_mod 25153 3
scsi_mod 141589 4 scsi_dh,sg,libata,sd_mod
ext3 124233 2
jbd 56937 1 ext3
uhci_hcd 25421 0
ohci_hcd 24681 0
ehci_hcd 33357 0

zaptel_hardware
pci:0000:01:08.0 wcfxo- 1057:5608 Wildcard X100P

ztcfg
ZT_CHANCONFIG failed on channel 1: No such device or address (6)

/etc/zaptel.conf
fxsks=1
loadzone = us
defaultzone = us

I have also recompiled zaptel with #define TDM_REVH_MATCHALL enabled but no luck.

Please help me out or suggest me to solve this.

Thanks in advance

X10xP cards are very particular about the motherboard in which they’re used. You might find that the exact same card works fine in a different PC.

google.fr/search?q=%22Unknown+DAA+chip%22

Thanks for the suggestion…

Finally I got it working… This is what I did…

  1. add/edit this to zaptel/kernel/wcfxo.c
    /* 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);
    
  1. uncoment #define TDM_REVH_MATCHALL on kernel/zconfig.h
  2. recompile zaptel
  3. reboot
  4. rmmod wcfxo
  5. modprob wcfxo

Great news. It’d be helpful to others if you could provide more information:

  • manufacturer/model of the motherboard
  • manufacturer/provider + chipset model of the X10xP card
  • in which country is this card used (a lot of X10xP cards have a chipset that is only meant to be used on the US PSTN)
  • feedback of performance with this card, such as voice quality (echo is often an issue), capacity to detect a remote hang-up, etc.

OK… I tried this on DELL Optiplex GX270. Everything looks fine except I have few instances where this card does not detect hangups. Other that that my Asterisk box is working fine.