[Asterisk-Users] asterisk@home isdn
Francesco Peeters
Francesco at FamPeeters.com
Wed Nov 30 04:11:17 MST 2005
On Wed, November 30, 2005 12:03, Alejandro Vargas said:
> 2005/11/29, Francesco Peeters <Francesco at fampeeters.com>:
>> > try ztcfg -vvv
>> > sleep 3
>> > ztcfg -vvv
>> Also helpful is
>> cat /proc/zaptel/*
>
> This is what I see:
>
> [root at asterisk1 ~]# lsmod |grep zaptel
> zaptel 206724 7
> ztdummy,wctdm,wcfxo,wcte11xp,wct1xxp,wct4xxp,tor2
> crc_ccitt 2113 1 zaptel
> [root at asterisk1 etc]# rmmod ztdummy
> [root at asterisk1 etc]# modprobe zaphfc modes=1
> [root at asterisk1 etc]# ztconfig -vvv
> [root at asterisk1 etc]# ztcfg -vvv
>
You are running the HFC-PCI in NT mode. This means you have an ISDN
telephone connected to it, rather than using it to connect to the PSTN?
> Zaptel Configuration
> ====================SPAN 1: 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)
>
> 3 channels configured.
>
> Changing signalling on channel 1 from Unused to Clear channel
> ZT_CHANCONFIG failed on channel 1: Invalid argument (22)
> Did you forget that FXS interfaces are configured with FXO signalling
> and that FXO interfaces use FXS signalling?
What is in your /etc/asterisk/zapata.conf? I do not recall seeing that
info before in this thread...
> [root at asterisk1 ~]# cat /proc/zaptel/*
> Span 1: ZTHFC1 "HFC-S PCI A ISDN card 1 [NT]" AMI/CCS
>
> 1
> 2
> 3
>
> ----------------
> My zaptel.conf has this:
>
> span=1,1,3,ccs,ami
> bchan=1-2
> dchan=3
That is fine...
However zaptel clearly doesn't have any active channels, so asterisk will
break on that. What brand HFC-PCI card do you have, and did you apply the
Florz patch?
>
> Then, I try to start asterisk:
>
> [root at asterisk1 ~]# asterisk -c
> Asterisk 1.2.0, Copyright (C) 1999 - 2005 Digium.
> Written by Mark Spencer <markster at digium.com>
> ========================================================================[
> Booting..............[root at asterisk1 ~]# Warning, flexibel rate not
> heavily tested!
> Ouch ... error while writing audio data: : Broken pipe
>
>
> [root at asterisk1 ~]# tail /var/log/asterisk/
> [...]
> 22] chan_zap.c: Unable to specify channel 1: No such device or address
> Nov 30 12:00:44 ERROR[3422] chan_zap.c: Unable to open channel 1: No
> such device or address
> here = 0, tmp->channel = 1, channel = 1
> Nov 30 12:00:44 ERROR[3422] chan_zap.c: Unable to register channel '1-2'
> Nov 30 12:00:44 WARNING[3422] loader.c: chan_zap.so: load_module
> failed, returning -1
> Nov 30 12:00:44 WARNING[3422] loader.c: Loading module chan_zap.so failed!
>
That is to be expected as no zap channels are available...
--
Francesco Peeters
----
GPG Key = AA69 E7C6 1D8A F148 160C D5C4 9943 6E38 D5E3 7704
If your program doesn't recognize my signature, please visit
http://www.CAcert.org/index.php?id=3 to retrieve the Root CA certificate.
More information about the asterisk-users
mailing list