<div dir="ltr">openzap does not have tone based hangup detection support coded into it.<br>That&#39;s why it only works when you use FreeSWITCH to do it in the general dialplan.<br><br>It&#39;s simply a feature we have not had demand for yet in OpenZAP. I&#39;m sure we could add it if we can find the time/resources.<br>
<br><br><br><div class="gmail_quote">On Mon, Sep 1, 2008 at 7:47 PM, Luis F Urrea <span dir="ltr">&lt;<a href="mailto:lfurrea@gmail.com">lfurrea@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div dir="ltr">Hi All,<br><br>I have been working for quite a while in trying to get Openzap to recognize my country specific busy tone in order to hang up an analog FXO channel.<br><br>Basically, I am having FXO disconnect supervision issues and I wanted to know if it&#39;s possible to hang up the FXO by monitoring call progress tones so that when there is a busy tone the FXO goes on hook.<br>

<br>I have been tweaking the /etc/openzap/tones.conf based on the ITU.T recommendation E.180 for my country, but so far it doesn&#39;t even seem that the changes I make to the tones.conf file are considered when dealing with disconnects from the PSTN side.<br>

<br>I restart FS after every change I make to /etc/openzap/tones.conf with no positive results.<br><br>The Openzap Wiki states that the &quot;loadzone&quot; parameter in /etc/zaptel.conf is not considered when dealing with tones, which makes sense since Openzap seems to use libteletone for tone detection and generation.<br>

<br>Here is what I use for busy tone on /etc/openzap/tones.conf:<br><br>[us]<br><br>generate-busy =&gt; v=-7;%(330,330,450)<br>detect-busy =&gt; 450<br><br>Therefore I set openzap.conf.xml as follows:<br><br>&nbsp;&lt;param name=&quot;tonegroup&quot; value=&quot;us&quot;/&gt;<br>

<br>I was able to check that the busy tone can be detected using the following dial plan rule:<br><br>&nbsp;&nbsp; 1.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;extension name=&quot;Inbound&quot;&gt;<br>&nbsp;&nbsp; 2.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field=&quot;destination_number&quot; expression=&quot;^1$&quot;&gt;<br>

&nbsp;&nbsp; 3.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application=&quot;answer&quot;/&gt;<br>&nbsp;&nbsp; 4.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application&quot;sleep&quot; data=&quot;1000&quot;/&gt;<br>&nbsp;&nbsp; 5.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application=&quot;tone_detect&quot; data=&quot;busy 450,0 r +100 hangup normal_clearing&quot;/&gt;<br>

&nbsp;&nbsp; 6.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<br>&nbsp;&nbsp; 7.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/extension&gt;<br><br>So that I answer the FXO and hang up when the busy tone is detected. It works fine and the FXO port does not get stuck.<br><br>Here&#39;s the output from the log for the rule above:<br>

<br><a href="http://pastebin.com/f43500bd3" target="_blank">http://pastebin.com/f43500bd3</a><br><br>I do not see a reason why settings on tones.conf may not be working?<br><br>Is disconnect on busy-detect the default for Openzap? Is it power denial or battery reversal?<br>

<br>Does it matter if I select fxsks in /etc/zaptel.conf instead of fxsls?<br><br>Your help will be greatly appreciated.<br><br>Regards,<br><br>Luis <br></div>
<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>
<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<br>
</div>