<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'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'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 "loadzone" 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 => v=-7;%(330,330,450)<br>detect-busy => 450<br><br>Therefore I set openzap.conf.xml as follows:<br><br> <param name="tonegroup" value="us"/><br>
<br>I was able to check that the busy tone can be detected using the following dial plan rule:<br><br> 1. <extension name="Inbound"><br> 2. <condition field="destination_number" expression="^1$"><br>
3. <action application="answer"/><br> 4. <action application"sleep" data="1000"/><br> 5. <action application="tone_detect" data="busy 450,0 r +100 hangup normal_clearing"/><br>
6. </condition><br> 7. </extension><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'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>