Zaptel error! any one to reply

Discussion regarding the installation and configuration of Linux distributions.
Post Reply
numan82
Lance Naik
Posts: 19
Joined: Wed Aug 01, 2007 10:29 am
Location: San Jose CA United States
Contact:

Zaptel error! any one to reply

Post 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
raheelahmad
Naik
Posts: 87
Joined: Tue Mar 06, 2007 4:58 am
Location: Karachi
Contact:

Post 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
-
Raheel Ahmad
numan82
Lance Naik
Posts: 19
Joined: Wed Aug 01, 2007 10:29 am
Location: San Jose CA United States
Contact:

Post 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
LinuxFreaK
Site Admin
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
Location: Karachi
Contact:

Re:

Post 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.
Farrukh Ahmed
numan82
Lance Naik
Posts: 19
Joined: Wed Aug 01, 2007 10:29 am
Location: San Jose CA United States
Contact:

Post 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
LinuxFreaK
Site Admin
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
Location: Karachi
Contact:

Re:

Post 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.
Farrukh Ahmed
Post Reply