Asterisk + Digium D410P + Telstra + Zaptel/mISDN Problems

Hello

We are trying to get this card working with asterisk with no luck. We have the following installed;

Fedora Core 5 + 2.6.15-1.2054_FC5
asterisk-1.2.12.1
zaptel-1.2.9.1 + b410p driver + misdn

our /etc/zaptel.conf

bchan=1,2
dchan=3
bchan=4,5
dchan=6

span=1,1,3,ccs,ami
span=2,1,3,ccs,ami
span=3,1,3,ccs,ami
span=4,1,3,ccs,ami

loadzone        = au
defaultzone     = au

our /etc/asterisk/zapata.conf [main stuff]

switchtype = euroisdn
signalling = bri_net_ptmp
pridialplan=local
echocancel=yes
immediate=yes
group = 1
context=pstn-call
channel => 1-2

dmesg

[code]
hw_random: RNG not detected
Modular ISDN Stack core $Revision: 1.35 $
mISDNd: kernel daemon started (current:c1631550)
mISDNd: test event done
mISDN: HFC-multi driver Rev. 1.43
HFC-MULTI: Card ‘HFC-4S Digium Card’ found, but not given by module’s options, ignoring…
0 devices registered
ACPI: PCI Interrupt 0000:01:0d.0[A] -> GSI 23 (level, low) -> IRQ 17
skge 1.3 addr 0xfbff8000 irq 17 chip Yukon-Lite rev 9
skge eth0: addr 00:17:31:7f:1a:3b
Non-volatile memory driver v1.2
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
lp: driver loaded but no devices found
ACPI: Power Button (FF) [PWRF]
ACPI: Power Button (CM) [PWRB]
ibm_acpi: ec object not found
md: Autodetecting RAID arrays.
md: autorun …
md: … autorun DONE.
device-mapper: 4.5.0-ioctl (2005-10-04) initialised: dm-devel@redhat.com
EXT3 FS on hda1, internal journal
SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
Adding 1020116k swap on /dev/hda2. Priority:-1 extents:1 across:1020116k
SELinux: initialized (dev binfmt_misc, type binfmt_misc), uses genfs_contexts
skge eth0: enabling interface
skge eth0: Link is up at 1000 Mbps, full duplex, flow control tx and rx
SELinux: initialized (dev rpc_pipefs, type rpc_pipefs), uses genfs_contexts
Bluetooth: Core ver 2.8
NET: Registered protocol family 31
Bluetooth: HCI device and connection manager initialized
Bluetooth: HCI socket layer initialized
Bluetooth: L2CAP ver 2.8
Bluetooth: L2CAP socket layer initialized
Bluetooth: RFCOMM socket layer initialized
Bluetooth: RFCOMM TTY layer initialized
Bluetooth: RFCOMM ver 1.7
Bluetooth: HIDP (Human Interface Emulation) ver 1.1
SELinux: initialized (dev autofs, type autofs), uses genfs_contexts
ppdev: user-space parallel port driver
ppdev0: claim the port first
ppdev1: claim the port first
ppdev2: claim the port first
ppdev3: claim the port first
NET: Registered protocol family 10
lo: Disabled Privacy Extensions
IPv6 over IPv4 tunneling driver
eth0: no IPv6 routers present
Zapata Telephony Interface Registered on major 196
Zaptel Version: 1.2.9.1 Echo Canceller: KB1
CAPI Subsystem Rev 1.1.2.8
SELinux: initialized (dev capifs, type capifs), uses genfs_contexts
capifs: Rev 1.1.2.3
capi20: Rev 1.1.2.7: started up with major 68 (middleware+capifs)
ISDN L1 driver version 1.16
ISDN L2 driver version 1.27
mISDN: DSS1 Rev. 1.38
mISDN Capi 2.0 driver file version 1.19
mISDN_dsp: Audio DSP Rev. 1.18 (debug=0x0) EchoCancellor MG2
mISDN_dsp: DSP clocks every 64 samples. This equals 2 jiffies.
HFC PCI card Unregistered from PCI
free_Application: no garbage
mISDNd: daemon exit now (current:c1631550)
mISDNcore unloaded
Modular ISDN Stack core $Revision: 1.35 $
mISDNd: kernel daemon started (current:d7a6baa0)
ISDN L1 driver version 1.16
ISDN L2 driver version 1.27
mISDN: DSS1 Rev. 1.38
mISDNd: test event done
mISDN Capi 2.0 driver file version 1.19
mISDN: HFC-multi driver Rev. 1.43
HFC-multi: card manufacturer: ‘Cologne Chip AG’ card name: ‘HFC-4S Digium Card’ clock: normal
ACPI: PCI Interrupt 0000:01:09.0[A] -> GSI 17 (level, low) -> IRQ 18
HFC-4S#1: defined at IOBASE 0xe800 IRQ 18 HZ 250 leds-type 2
HFC_multi: resetting HFC with chip ID=0xc revision=1
Setting GPIOs
calling vpm_init
VPM: Chip 0: ver 33
VPM: A-law mode
VPM reg 0x20 is 11
NLP Thresh is set to 2 (0x2)
VPM: A-law mode
VPM reg 0x20 is 11
NLP Thresh is set to 2 (0x2)
mode_hfcmulti: channel 2 protocol 1000100 slot -1 bank 0 (TX) slot -1 bank 0 (RX)
mode_hfcmulti: channel 0 protocol 0 slot -1 bank 0 (TX) slot -1 bank 0 (RX)
mode_hfcmulti: channel 1 protocol 0 slot -1 bank 0 (TX) slot -1 bank 0 (RX)
mode_hfcmulti: channel 6 protocol 1000100 slot -1 bank 0 (TX) slot -1 bank 0 (RX)
mode_hfcmulti: channel 4 protocol 0 slot -1 bank 0 (TX) slot -1 bank 0 (RX)
mode_hfcmulti: channel 5 protocol 0 slot -1 bank 0 (TX) slot -1 bank 0 (RX)
mode_hfcmulti: channel 10 protocol 1000100 slot -1 bank 0 (TX) slot -1 bank 0 (RX)
mode_hfcmulti: channel 8 protocol 0 slot -1 bank 0 (TX) slot -1 bank 0 (RX)
mode_hfcmulti: channel 9 protocol 0 slot -1 bank 0 (TX) slot -1 bank 0 (RX)
mode_hfcmulti: channel 14 protocol 1000100 slot -1 bank 0 (TX) slot -1 bank 0 (RX)
mode_hfcmulti: channel 12 protocol 0 slot -1 bank 0 (TX) slot -1 bank 0 (RX)
mode_hfcmulti: channel 13 protocol 0 slot -1 bank 0 (TX) slot -1 bank 0 (RX)
hfcpci_probe: DIPs(0x90) jumpers(0x0)
hfcpci_probe: protocol WARNING: port 0 is jumpered for TE mode!
hfcpci_probe: protocol WARNING: port 1 is jumpered for TE mode!
hfcpci_probe: protocol WARNING: port 2 is jumpered for TE mode!
hfcpci_probe: protocol WARNING: port 3 is jumpered for TE mode!
mISDNStackd started for id(00000100)
mISDNStackd started for id(10010100)
mISDNStackd started for id(10020100)
mISDNStackd started for id(00000200)
mISDNStackd started for id(10010200)
mISDNStackd started for id(10020200)
mISDNStackd started for id(00000300)
mISDNStackd started for id(10010300)
mISDNStackd started for id(10020300)
mISDNStackd started for id(00000400)
mISDNStackd started for id(10010400)
mISDNStackd started for id(10020400)
1 devices registered
mISDN_dsp: Audio DSP Rev. 1.18 (debug=0x0) EchoCancellor MG2
mISDN_dsp: DSP clocks every 64 samples. This equals 2 jiffies.
Zapata Telephony Interface Unloaded
Zapata Telephony Interface Registered on major 196
Zaptel Version: 1.2.9.1 Echo Canceller: KB1
Registered Tormenta2 PCI
Unregistered Tormenta2
Specify address with base=0xNNNNN
usbcore: registered new driver wcusb
Wildcard USB FXS Interface driver registered
usbcore: deregistering driver wcusb
INFO-xpp: xpp revision 1.2.9.1 MAX_XPDS=4
INFO-xpp: FEATURE: xpp (with ECHO_SUPPRESSION)
INFO-xpp: FEATURE: xpp (without XPP_EC_CHUNK)
INFO-xpp_usb: xpp_usb revision 1.2.9.1
usbcore: registered new driver xpp_usb
usbcore: deregistering driver xpp_usb
Registered tone zone 0 (United States / North America)

[Zapata Telephony Interface Unloaded
Zapata Telephony Interface Registered on major 196
Zaptel Version: 1.2.9.1 Echo Canceller: KB1
Registered Tormenta2 PCI
Unregistered Tormenta2
Specify address with base=0xNNNNN
usbcore: registered new driver wcusb
Wildcard USB FXS Interface driver registered
usbcore: deregistering driver wcusb
INFO-xpp: xpp revision 1.2.9.1 MAX_XPDS=4
INFO-xpp: FEATURE: xpp (with ECHO_SUPPRESSION)
INFO-xpp: FEATURE: xpp (without XPP_EC_CHUNK)
INFO-xpp_usb: xpp_usb revision 1.2.9.1
usbcore: registered new driver xpp_usb
usbcore: deregistering driver xpp_usb
Zapata Telephony Interface Unloaded
Zapata Telephony Interface Registered on major 196
Zaptel Version: 1.2.9.1 Echo Canceller: KB1
Registered Tormenta2 PCI
Unregistered Tormenta2
Specify address with base=0xNNNNN
usbcore: registered new driver wcusb
Wildcard USB FXS Interface driver registered
usbcore: deregistering driver wcusb
INFO-xpp: xpp revision 1.2.9.1 MAX_XPDS=4
INFO-xpp: FEATURE: xpp (with ECHO_SUPPRESSION)
INFO-xpp: FEATURE: xpp (without XPP_EC_CHUNK)
INFO-xpp_usb: xpp_usb revision 1.2.9.1
usbcore: registered new driver xpp_usb
usbcore: deregistering driver xpp_usb
Registered tone zone 0 (United States / North America)
/code]

ztcfg -vvvv returns;

Zaptel Configuration
======================

SPAN 1: CCS/ AMI Build-out: 399-533 feet (DSX-1)
SPAN 2: CCS/ AMI Build-out: 399-533 feet (DSX-1)
SPAN 3: CCS/ AMI Build-out: 399-533 feet (DSX-1)
SPAN 4: CCS/ AMI Build-out: 399-533 feet (DSX-1)

Channel map:

Channel 01: Clear channel (Default) (Slaves: 01)
Channel 02: Clear channel (Default) (Slaves: 02)
Channel 03: D-channel (Default) (Slaves: 03)
Channel 04: Clear channel (Default) (Slaves: 04)
Channel 05: Clear channel (Default) (Slaves: 05)
Channel 06: D-channel (Default) (Slaves: 06)

6 channels configured.

ZT_SPANCONFIG failed on span 1: No such device or address (6)

Tried the above configuration similar with Trixbox 1.1 and 1.2 but ending up breaking the web interface when ever I modify misdn/zaptel stuff.

What hardware?
Motherboard / CPU

Why FC?
Centos is what you should use

Celeron D 2.8GHz/ASUS P5PE-VM motherboard/512MB ram/Seagate 80gb IDE.

FC5 DVD iso is what I had on hand at that time :smile:

I’ve recently setup an asterisk server (well upgrade from 1.0.9 to 1.2.14); as part of this I migrated from bristuff to mISDN plus install a TDM400 card. This wasn’t always pretty but I did manage to get it working.

If you are using mISDN kernel modules then you should be using the chan_misdn channel driver for asterisk. This channel driver has it’s own configuration file normally misdn.conf.

The zaptel configuration that you show is for zaphfc a.k.a bristuff. I don’t think that this would work unless the zaphfc kernel module is load. Furthermore I foresee problems if zaphfc and misdn kernel modules are loaded (I haven’t tried this so I guessing - but it does seem reasonable that there would be problems with two drivers trying to control the same hardware).

The kernel module for mISDN is configured via misdn-init.conf in the etc directory (look at the README.misdn-init in the mISDN src directory). The kernel message below tells me that the card is not configured!

[quote]HFC-MULTI: Card ‘HFC-4S Digium Card’ found, but not given by module’s options, ignoring…
0 devices registered [/quote]

Instead of me sitting here sprouting my wisedoms (or lack of) I would suggest that you take a look at the asteriskguru tutorial for chan_misdn
http://www.asteriskguru.com/tutorials/chan_misdn.html