ZT_CHANCONFIG failed on channel 1: (yes modules loaded)


#1

For some reason I keep getting ZT_CHANCONFIG failed even with the modules loaded. It’s even gotten to the point where asterisk won’t start anymore.

TDM04B: 4-port FXO bundle - Card I own

The problem is Asterisk is dying when it starts, and the card says ZT_CHANCONFIG faiiled, I went into the bios and turned on IRQ for that specific pci slot.

[code]tail /var/log/asterisk/messages
Feb 10 13:12:42 WARNING[5157]: Unable to open pseudo channel for timing… Sound may be choppy.
Feb 10 13:12:43 WARNING[5157]: Ignoring pickgroup
Feb 10 13:12:43 WARNING[5157]: Ignoring conext
Feb 10 13:12:43 WARNING[5157]: Unable to open ‘/dev/zap/channel’: Permission denied
Feb 10 13:12:43 ERROR[5157]: Unable to open channel 1: Permission denied
here = 0, tmp->channel = 1, channel = 1
Feb 10 13:12:43 ERROR[5157]: Unable to register channel '1’
Feb 10 13:12:43 WARNING[5157]: chan_zap.so: load_module failed, returning -1
Feb 10 13:12:43 WARNING[5157]: Loading module chan_zap.so failed!

[/code][code] ps awux | grep asterisk
asterisk 5256 0.0 0.5 3888 2548 ? S 13:12 0:00 mpg123 -q -s --mono -r 8000 -b 2048 -f 4096 fpm-calm-river.mp3 fpm-world-mix.mp3 fpm-sunshine.mp3
root 5493 0.0 0.0 1460 440 pts/0 S+ 13:25 0:00 grep asterisk

[/code]
Asterisk should be running! But init script can’t kill it, it just dies. I think it has something to do with the card.cat /proc/interrupts CPU0 0: 345835 IO-APIC-edge timer 1: 8 IO-APIC-edge i8042 7: 0 IO-APIC-edge parport0 9: 0 IO-APIC-level acpi 12: 93 IO-APIC-edge i8042 14: 1885 IO-APIC-edge ide0 15: 13 IO-APIC-edge ide1 16: 2500 IO-APIC-level eth0 17: 2 IO-APIC-level ohci1394, uhci_hcd:usb3 18: 0 IO-APIC-level uhci_hcd:usb4 19: 0 IO-APIC-level ehci_hcd:usb1 20: 0 IO-APIC-level uhci_hcd:usb2 21: 0 IO-APIC-level Intel 82801DB-ICH4 NMI: 0 LOC: 345801 ERR: 0 MIS: 0 I don’t know if it’s because asterisk isn’t running but I used to have wctdm in there, I no longer see it in interrupts.

[code]lsmod
Module Size Used by
wcfxs 30816 -
zaptel 179300 -
wcfxo 10624 - <-- Not exactly sure which one, so I loaded them both.

[/code][code]ztcfg -vv

Zaptel Configuration

Channel map:

Channel 01: FXS Kewlstart (Default) (Slaves: 01)
Channel 02: Clear channel (Default) (Slaves: 02)
Channel 03: Clear channel (Default) (Slaves: 03)
Channel 04: Clear channel (Default) (Slaves: 04)

4 channels configured.

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

[/code]
grepped lspci output

01:01.0 Communication controller: Tiger Jet Network Inc. Tiger3XX Modem/ISDN interface [code]
cat /etc/udev/rules.d/10-zaptel.rules

udev rules for zaptel

KERNEL=“zapctl”, NAME=“zap/ctl”, MODE=“0660”, GROUP="dialout"
KERNEL=“zaptimer”, NAME=“zap/timer”, MODE=“0660”, GROUP="dialout"
KERNEL=“zapchannel”, NAME=“zap/channel”, MODE=“0660”, GROUP="dialout"
KERNEL=“zappseudo”, NAME=“zap/pseudo”, MODE=“0660”, GROUP="dialout"
KERNEL=“zap[0-9]*”, NAME=“zap/%n”, MODE=“0660”, GROUP=“dialout”
[/code][code]
cat /etc/zaptel.conf
fxsks=1
clear=2
clear=3
clear=4
loadzone = us
defaultzone=us

[/code][code] cat /etc/asterisk/sip.conf
[general]
context=wow ; Default context for incoming calls
recordhistory=yes ; Record SIP history by default
port=5060 ; UDP Port to bind to (SIP standard port is 5060)
bindaddr=0.0.0.0 ; IP address to bind to (0.0.0.0 binds to all)
srvlookup=yes ; Enable DNS SRV lookups on outbound calls
language=en ; Default language setting for all users/peers
nat=no ; NAT settings

[user1]
type=friend
context=wow
fromuser=user1
callerid= user1 <01>
host=dynamic
nat=no
canreinvite=yes
dtmfmode=info
incominglimit=1
secret=user1
mailbox=01

[user2]
type=friend
context=wow
fromuser=user2
callerid= user2 <02>
host=dynamic
nat=no
canreinvite=yes
dtmfmode=info
incominglimit=1
secret=user2
mailbox=02

[user3]
type=friend
secret=user3
context=wow
host=dynamic
mailbox=03
callerid=user3 <03>

[floor1]
type=friend
secret=floor1
context=wow
host=dynamic
mailbox=04
callerid=Floor1 <04>

[/code][code]cat /etc/asterisk/zapata.conf
[trunkgroups]

[channels]
language=en
busydetect=1
busycount=7
relaxdtmf=yes
callwaiting=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
cancallforward=yes
usecallerid=yes
echocancel=yes
echocancelwhenbridged=yes
rxgain=0.0
txgain=0.0
group=1
pickgroup=1-4
immediate=no
conext=bell
signalling=fxs_ks
callerid=asrecieved
channel=1
context=wow
group=2
signalling=fxs_ks
mailbox=01
callerid=“user1” <01>
channel=2[/code]

Please someone help, as far as I know this is all correct for a simple setup. I have no clue where to turn next >_>


#2

OK I decided that the version in portage was a bit outdated so I compiled my own zaptel and asterisk, the latest versions.

I now do not get the ZT_CHANCONFIG error, I get:

ztcfg -vv

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


Channel map:

Channel 01: FXS Kewlstart (Default) (Slaves: 01)
Channel 02: Clear channel (Default) (Slaves: 02)
Channel 03: Clear channel (Default) (Slaves: 03)
Channel 04: Clear channel (Default) (Slaves: 04)

4 channels configured.

Changing signalling on channel 1 from Unused to FXS Kewlstart
Changing signalling on channel 2 from Unused to Clear channel
Changing signalling on channel 3 from Unused to Clear channel
Changing signalling on channel 4 from Unused to Clear channel

But asterisk still isn’t starting, and if it is it’s dying soon after. Here is the output of /var/log/asterisk/messages

Feb 10 21:06:01 ERROR[6009] chan_zap.c: Unable to register channel '2'
Feb 10 21:06:01 WARNING[6009] loader.c: chan_zap.so: load_module failed, returning -1
Feb 10 21:06:01 WARNING[6009] loader.c: Loading module chan_zap.so failed!
Feb 10 21:06:52 NOTICE[6028] cdr.c: CDR simple logging enabled.
Feb 10 21:06:52 ERROR[6028] chan_zap.c: Signalling requested on channel 2 is FXS Kewlstart but line is in PRI Signalling signalling
Feb 10 21:06:52 ERROR[6028] chan_zap.c: Unable to register channel '2'
Feb 10 21:06:52 WARNING[6028] loader.c: chan_zap.so: load_module failed, returning -1
Feb 10 21:06:52 WARNING[6028] loader.c: Loading module chan_zap.so failed!
Feb 10 21:09:47 NOTICE[5644] cdr.c: CDR simple logging enabled.
Feb 10 21:09:48 WARNING[5644] chan_zap.c: Unable to specify channel 1: No such device or address
Feb 10 21:09:48 ERROR[5644] chan_zap.c: Unable to open channel 1: No such device or address
here = 0, tmp->channel = 1, channel = 1
Feb 10 21:09:48 ERROR[5644] chan_zap.c: Unable to register channel '1'
Feb 10 21:09:48 WARNING[5644] loader.c: chan_zap.so: load_module failed, returning -1
Feb 10 21:09:48 WARNING[5644] loader.c: Loading module chan_zap.so failed!

Any help that can be offered would be gladly appreciated.