Page 1 of 1

Zaptel error! any one to reply

Posted: Thu Aug 02, 2007 4:06 pm
by numan82
AOA,
I am getting below message after running

# /sbin/ztcfg -vv

Zaptel Configuration
======================
Channel map:
Channel 01: FXO Kewlstart (Default) (Slaves: 01)
Channel 02: FXS Kewlstart (Default) (Slaves: 02)
2 channels configured.

Changing signalling on channel 1 from Unused to FXO Kewlstart
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?

I am sure this is main cause not running my Asterisk server.
any help or suggestion in this regard is highly appreciated.
Thanks
Numan Khan

Posted: Thu Aug 02, 2007 5:53 pm
by raheelahmad
you have not set the signalling in tour zapata.cong file set it and you will get it working fine its not a big issue

Posted: Thu Aug 02, 2007 5:59 pm
by numan82
Hi rahsi thanks for the response,
Here are my zapata.conf file

context=internal ;user the context in extensions.conf
signalling=fxo_ks ;use FXO signalling for FXx challnel
channel=>1 ;Telephone attached to port 1

context=incoming ;Incoming calls go to [incoming] in extensions.conf
signalling=fxs_ks ;use this to signal for fxo channel
channel=>2 ; PSTN attached to port 2


Please have a look and do let me know your recommandation.
Thanks!
Numan
Anitwindow Too

Re:

Posted: Fri Aug 03, 2007 8:49 am
by LinuxFreaK
Dear numan82,
Salam,

Edit your /etc/zaptel.conf

Code: Select all

loadzone=us
defaultzone=us
fxoks=1
channels=1


Edit your /etc/asterisk/zapata.conf

Code: Select all

[channels]
busydetect=1
busycount=1
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
pickupgroup=1
immediate=no
context=default
signalling=fxo_ks
callerid=Asterisk
channel=1


FYI, http://www.automated.it/guidetoasterisk.htm

Best Regards.

Posted: Fri Aug 03, 2007 10:48 am
by numan82
Dear Farruak Ahmed
Salaam,
After editing the specified files with your provided code, I am getting this following error for
tone, please advise on this
[root@192 ~]# /sbin/ztcfg -vv
Notice: Configuration file is /etc/zaptel.conf
line 9: Cannot get number of tones for channel 1
line 9: Cannot init tones for channel 1

2 error(s) detected

Re:

Posted: Sat Aug 04, 2007 8:15 am
by LinuxFreaK
Dear numan82,
Salam,

Zaptel.conf Should look like this.

Code: Select all

loadzone=us
defaultzone=us
fxsks=1


Zapata.conf should look like this.

Code: Select all

[channels]
busydetect=1
busycount=1
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
pickupgroup=1
immediate=no
context=default
signalling=fxo_ks
callerid=Asterisk
channel=1


Issue following command after replacing your files.

# ztcfg -vvv

Best Regards.