<HTML>
<HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="OPENWEBMAIL" name=GENERATOR>
</HEAD>
<BODY bgColor=#ffffff>
<font size="2">
<p><font size="2">I have TDM card with FXS on port 1, and the other ports are FXO's
<br />After isntalling the driver I execute the following commands:
<br />- modprobe wctdm
<br />- ztcfg -vvvvv
<br />
<br />ztcfg relpy:</font></p>
<p><font size="2">Zaptel Configuration
<br />======================</font>
<br /><font size="2">Channel map:</font></p>
<p><font size="2">Channel 01: FXO Kewlstart (Default) (Slaves: 01)
<br />Channel 02: FXS Kewlstart (Default) (Slaves: 02)
<br />Channel 03: FXS Kewlstart (Default) (Slaves: 03)
<br />Channel 04: FXS Kewlstart (Default) (Slaves: 04)</font></p>
<p><font size="2">4 channels configured. </font></p>
<p>lsmod includes:
<br />wctdm 34592 0
<br />zaptel 187012 1 wctdm
<br />
<br /><font size="2"><strong>zaptel.conf</strong>:
<br />fxoks=1 ;<==1 FXS (phone device)
<br />fxsks=2-4 ;<== 3 FXO's (phone lines)
<br />loadzone=nl
<br />defaultzone=nl
<br /></font><font size="2"><strong></strong></font>
<p><font size="2"><strong>Zapata.conf</strong>:</font></p>
<p><font size="2">[trunkgroups]
<br />; define any trunk groups</font></p>
<p><font size="2">[channels]
<br />; hardware channels
<br />; default
<br />usecallerid=yes
<br />hidecallerid=no
<br />callwaiting=no
<br />threewaycalling=yes
<br />transfer=yes
<br />echocancel=yes
<br />echotraining=yes</font></p>
<p><font size="2">; define channels
<br />context=from-pstn ; Incoming calls go to [from-pstn] in extensions.conf
<br />signalling=fxs_ks ; Use FXS signalling for an FXO channel
<br />channel => 2-4 ; PSTN attached to port 2 3 4</font></p>
<p><font size="2">context=to-pstn
<br />signalling=fxo_ks
<br />channel => 1</font></p>
<p />
<p><font size="2"><strong>extensions.conf</strong>:</font></p>
<p><font size="2">[from-pstn]
<br />; incoming calls from the FXO port are directed to this context from zapata.conf
<br />exten => s,1,Dial(SIP/200)
<br />exten => s,2,Hangup()</font></p>
<p><font size="2">Hope it helps</font></p>
<p><font size="2">
<br />Regards,
<br />
<br />Moutaz
<br />
<br />
<br />---------- Original Message -----------
<br />From: Pieter Claassen <pieter@claassen.co.uk>
<br />To: asterisk-users@lists.digium.com
<br />Sent: Tue, 16 May 2006 21:23:49 +0200
<br />Subject: Re: [Asterisk-Users] Netherlands zaptel.conf
<br />
<br />> On Tuesday 16 May 2006 20:39, M.Masri wrote:
<br />> > AFAIK UPC cable phone is a voip phone, and not PSTN
<br />> >
<br />> Well, I tried to plug my KPN phone line into it as well with the
<br />> same result. The PC refuses to answer using the fxsks protocol. I
<br />> don't think these phone lines are IP carriers and suspect that UPC
<br />> might turn the voice stream into something else in their modem. The
<br />> phone however is a standard analogue device and I suspect you can
<br />> stick anything you buy over the counter in there.
<br />>
<br />> I also swapped the FXO module into the first slot with no different
<br />results.
<br />>
<br />> Config included below. The question is how to start figuring out
<br />> what is going on since I don't see any messages in
<br />> /var/log/asterisk/* or syslog that indicates there is a problem?
<br />>
<br />> lsmod includes
<br />>
<br />> zaptel 225284 1 wcfxs
<br />>
<br />> /etc/zaptel.conf
<br />>
<br />> defaultzone=nl
<br />> fxsks=1
<br />> loadzone=nl
<br />>
<br />> /etc/asterisk/zapata.conf
<br />>
<br />> [channels]
<br />> usecallerid=yes
<br />> hidecallerid=no
<br />> callwaiting=no
<br />> threewaycalling=yes
<br />> transfer=yes
<br />> echocancel=yes
<br />> echotraining=yes
<br />> immediate=no
<br />>
<br />> context=incoming
<br />> signalling=fxs_ks
<br />> channel => 1
<br />>
<br />> I am running ubuntu breezy and build the modules without much hastel
<br />> from source. The only issue was it wanted gcc3.3 rather than gcc4 as
<br />> a compiler and I had to remove the zaptel-source packages since it
<br />> wrote a file that the zaptel-modules-2.6.10-5-386 wanted to overwrite.
<br />>
<br />> BTW. I also tried fxsls and fxsgs but nothing worked. I also
<br />> received this error with fxsgs.
<br />>
<br />> Zaptel Configuration
<br />> ======================
<br />>
<br />> Channel map:
<br />>
<br />> Channel 01: FXS Groundstart (Default) (Slaves: 01)
<br />>
<br />> 1 channels configured.
<br />>
<br />> ZT_CHANCONFIG failed on channel 1: Invalid argument (22)
<br />> Did you forget that FXS interfaces are configured with FXO signalling
<br />> and that FXO interfaces use FXS signalling?
<br />>
<br />> Any help appreciated.
<br />>
<br />> Pieter
<br />> _______________________________________________
<br />> --Bandwidth and Colocation provided by Easynews.com --
<br />>
<br />> Asterisk-Users mailing list
<br />> To UNSUBSCRIBE or update options visit:
<br />> </font><a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank"><font size="2">http://lists.digium.com/mailman/listinfo/asterisk-users</font></a><font size="2">
<br />------- End of Original Message -------
<br /></font></p>
</p>
</font>
</BODY>
</HTML>