Can you try upgrading to the latest svn build of FS.<br>There are several fixes to openzap in there that I know will fix your issue.<br><br>BTW<br>Let me know how it's going, we have not actually seen anyone try openzap on BSD before.<br>
<br><br><div class="gmail_quote">On Mon, Jun 30, 2008 at 7:29 PM, John Wehle <<a href="mailto:john@feith.com">john@feith.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I have a A204 with hardware echo cancelling and two FXO modules<br>
on FreeBSD 6.2 connected to tip-ring lines from a PBX. ztcfg reports:<br>
<br>
Channel 01: FXS 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)<br>
<br>
Hooking a plain old telephone to the tip-ring lines from the PBX<br>
works fine. On startup freeswitch reports:<br>
<br>
[DEBUG] zap_io.c:1951 load_config() found config for span<br>
[DEBUG] zap_io.c:1978 load_config() created span 1 of type zt<br>
[DEBUG] zap_io.c:1991 load_config() span 1 [name]=[OpenZAP]<br>
[DEBUG] zap_io.c:1991 load_config() span 1 [number]=[551]<br>
[DEBUG] zap_io.c:1991 load_config() span 1 [fxo-channel]=[1]<br>
[DEBUG] zap_io.c:2020 load_config() setting trunk type to 'FXO' start(KEWL)<br>
[WARNING] zap_zt.c:135 zt_open_range() this ioctl fails on older zaptel but is harmless if you used ztcfg<br>
[device /dev/zap/channel chan 1 fd 26 (Inappropriate ioctl for device)]<br>
[INFO] zap_zt.c:170 zt_open_range() configuring device /dev/zap/channel channel 1 as OpenZAP device 1:1 fd:25<br>
<br>
Ultimately I want freeswitch to run a script when any of the FXO lines<br>
receive a call. Playing around produced some questions:<br>
<br>
1) I have a dialplan of:<br>
<br>
<extension name="outgoing-fxo"><br>
<condition field="destination_number" expression="^55[1-4]$"><br>
<action application="set" data="dialed_ext=482"/><br>
<action application="bridge" data="openzap/1/1/${dialed_ext}"/><br>
</condition><br>
</extension><br>
<br>
which I'm assuming will cause freeswitch to use the fxo to dial 482<br>
on the PBX when routing a call to 551. When I dial 551 from a VoIP<br>
phone I see:<br>
<br>
[NOTICE] switch_channel.c:533 switch_channel_set_name() New Channel OpenZAP/1:1/482 [edf17e96-0247-dd11-9800-001fc6ab49e2]<br>
[WARNING] zap_analog.c:52 analog_fxo_outgoing_call() VETO Changing state on 1:1 from DOWN to DIALING<br>
[WARNING] zap_zt.c:356 zt_open() Echo training not available for 1:1<br>
<br>
however I don't hear anything on the VoIP phone (i.e. no ringing) and<br>
extension 482 which is right next to the VoIP doesn't ring.<br>
<br>
2) What would my dialplan look like so that dialing 551 bridges the call<br>
to the FXO with the FXO just going off hook ... not dialing?<br>
I.e. dialing 551 just gets me a PBX line with dialtone.<br>
<br>
3) What condition would I use in my dialplan to match an FXO line ringing?<br>
I.e. when the FXO line rings I want to invoke javascript.<br>
<br>
-- John<br>
-------------------------------------------------------------------------<br>
| Feith Systems | Voice: 1-215-646-8000 | Email: <a href="mailto:john@feith.com">john@feith.com</a> |<br>
| John Wehle | Fax: 1-215-540-5495 | |<br>
-------------------------------------------------------------------------<br>
<br>
<br>
_______________________________________________<br>
Freeswitch-users mailing list<br>
<a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
<br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br><a href="http://iax:guest@conference.freeswitch.org/888">iax:guest@conference.freeswitch.org/888</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>pstn:213-799-1400