<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">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>