[Asterisk-Users] FC2 & ztcfg - cannot find channel 2

Howard Lowndes lannet at lannet.com.au
Sun Jan 2 15:37:51 MST 2005


More on this problem.

Sometimes I get the following error message instead of the original one
that I quoted:

# ztcfg -vvv

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


Channel map:

Channel 01: FXS Kewlstart (Default) (Slaves: 01)
Channel 02: FXO Kewlstart (Default) (Slaves: 02)

2 channels configured.

ZT_CHANCONFIG failed on channel 2: Invalid argument (22)
Did you forget that FXS interfaces are configured with FXO signalling
and that FXO interfaces use FXS signalling?


...and before you ask...the signalling is as per the doco, and I have
tried switching it around.

It strikes me that * just doesn't like the S100U device any longer.



On Sat, 2005-01-01 at 13:49, Howard Lowndes wrote:
> When I try to start up zaptel, whilst running ztcfg, I get the following
> error:
> 
> Jan  1 10:48:18 bu ztcfg: ZT_CHANCONFIG failed on channel 2: No such device or address (6)
> 
> My /etc/zaptel.conf is:
> 
> fxsks=1
> fxoks=2
> loadzone = au
> defaultzone=au
> 
> Channel 1 is a X101P card connected to the PSTN and channel 2 is a S100U
> box driving an analogue phone.
> 
> The zaptel kernel module gets loaded OK as does the wcfxs module for the
> X101P card and the wcusb module for the USB device but then I get the
> error message.
> 
> In context the error message is in the following string when i run
> /etc/init.d/zaptel restart:
> 
> Jan  1 10:48:16 bu kernel: usbcore: deregistering driver wcusb
> Jan  1 10:48:16 bu kernel: Freed a Wildcard
> Jan  1 10:48:16 bu kernel: Zapata Telephony Interface Unloaded
> Jan  1 10:48:16 bu udev[27206]: removing device node '/udev/zap1'
> Jan  1 10:48:17 bu udev[27207]: removing device node '/udev/zaptimer'
> Jan  1 10:48:17 bu udev[27222]: removing device node '/udev/zapchannel'
> Jan  1 10:48:17 bu udev[27233]: removing device node '/udev/zappseudo'
> Jan  1 10:48:17 bu udev[27244]: removing device node '/udev/zapctl'
> Jan  1 10:48:17 bu zaptel: Removing zaptel module:  succeeded
> Jan  1 10:48:18 bu kernel: Zapata Telephony Interface Registered on major 196
> Jan  1 10:48:18 bu zaptel: Loading zaptel framework:  succeeded
> Jan  1 10:48:18 bu kernel: PCI: Found IRQ 11 for device 0000:00:0b.0
> Jan  1 10:48:18 bu udev[27287]: creating device node '/udev/zapctl'
> Jan  1 10:48:18 bu kernel: wcfxo: DAA mode is 'FCC'
> Jan  1 10:48:18 bu kernel: Found a Wildcard FXO: Wildcard X101P
> Jan  1 10:48:18 bu kernel: usbcore: registered new driver wcusb
> Jan  1 10:48:18 bu kernel: Wildcard USB FXS Interface driver registered
> Jan  1 10:48:18 bu ztcfg: ZT_CHANCONFIG failed on channel 2: No such device or address (6)
> Jan  1 10:48:18 bu zaptel: Running ztcfg:  failed
> Jan  1 10:48:18 bu udev[27266]: creating device node '/udev/zaptimer'
> Jan  1 10:48:19 bu udev[27273]: creating device node '/udev/zapchannel'
> Jan  1 10:48:19 bu udev[27280]: creating device node '/udev/zappseudo'
> Jan  1 10:48:19 bu udev[27300]: creating device node '/udev/zap1'
> 
> I know that the logs refer to /udev but I have opted to create the
> /dev/zap nodes instead and have the following nodes:
> 
> # ll /dev/zap/
> total 0
> crw-------  1 root root 196,   1 Jan  1 10:34 1
> crw-------  1 root root 196,   2 Jan  1 10:37 2
> crw-------  1 root root 196, 254 Jan  1 10:34 channel
> crw-------  1 root root 196,   0 Jan  1 10:34 ctl
> crw-------  1 root root 196, 255 Jan  1 10:34 pseudo
> crw-------  1 root root 196, 253 Jan  1 10:34 timer
> 
> 
> I am assuming here that /dev/zap/1 refers to channel 1 and /dev/zap/2
> refers to channel 2 but that could be a wrong assumption.
> 
> Any/all help would be appreciated.
-- 
Howard.
LANNet Computing Associates;
Your Linux people <http://www.lannetlinux.com>
------------------------------------------
"When you just want a system that works, you choose Linux;
when you want a system that just works, you choose Microsoft."
------------------------------------------
"Flatter government, not fatter government;
Get rid of the Australian states."





More information about the asterisk-users mailing list