Zaptel error! any one to reply

Discussion regarding the installation and configuration of Linux distributions.

Zaptel error! any one to reply

Postby numan82 » Thu Aug 02, 2007 4:06 pm

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
numan82
Lance Naik
 
Posts: 19
Joined: Wed Aug 01, 2007 10:29 am
Website: http://www.yzcorppk.com/~numan
Location: San Jose CA United States

Postby raheelahmad » Thu Aug 02, 2007 5:53 pm

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
raheelahmad
Naik
 
Posts: 87
Joined: Tue Mar 06, 2007 4:58 am
WLM: ahmad.raheel@hotmail.com
Yahoo Messenger: ahmad.raheel@yahoo.com
Location: Karachi

Postby numan82 » Thu Aug 02, 2007 5:59 pm

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
numan82
Lance Naik
 
Posts: 19
Joined: Wed Aug 01, 2007 10:29 am
Website: http://www.yzcorppk.com/~numan
Location: San Jose CA United States

Re:

Postby LinuxFreaK » Fri Aug 03, 2007 8:49 am

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
LinuxFreaK
Site Admin
 
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
ICQ: 82075802
Website: http://www.linuxpakistan.net/wiki/index.php?pagename=LinuxFreak
WLM: f4fahmed@hotmail.com
Yahoo Messenger: f4fahmed@yahoo.com
AOL: linuxpakistan@aol.com
Location: Karachi

Postby numan82 » Fri Aug 03, 2007 10:48 am

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
numan82
Lance Naik
 
Posts: 19
Joined: Wed Aug 01, 2007 10:29 am
Website: http://www.yzcorppk.com/~numan
Location: San Jose CA United States

Re:

Postby LinuxFreaK » Sat Aug 04, 2007 8:15 am

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
LinuxFreaK
Site Admin
 
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
ICQ: 82075802
Website: http://www.linuxpakistan.net/wiki/index.php?pagename=LinuxFreak
WLM: f4fahmed@hotmail.com
Yahoo Messenger: f4fahmed@yahoo.com
AOL: linuxpakistan@aol.com
Location: Karachi


Return to “%s” Installation

Who is online

Users browsing this forum: No registered users and 2 guests

cron