On Fri, Nov 14, 2008 at 11:32 AM, Gonzalo Servat <span dir="ltr">&lt;<a href="mailto:gservat@gmail.com">gservat@gmail.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br><br>I&#39;ve got a single port FXO card which works really well with FS. I even got Zaptel patched with OSLEC which eliminted the little echo I had. The only trouble I&#39;m left with is that when I call my house and let it ring twice then hangup, FS would never detect that the remote side hanged up. I figured my telco doesn&#39;t vary the signal levels on hangup so my only choice is detecting hangup by tones. I decided to try the tone_detect app as follows:<br>

<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application=&quot;tone_detect&quot; data=&quot;busy 425 r +2000 hangup user_busy&quot;/&gt;<br><br>Here is the tones data from the ITU document:<br><br>Argentine Republic<br>Busy tone -&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 425&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0.3 on 0.2 off<br>

Congestion tone -&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 425&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0.3 on 0.4 off<br>Dial tone -&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 425&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; continuous<br>End of three party service tone -&nbsp;&nbsp; 950/1400/1800 1x(3x0.33 on)<br>Ringing tone -&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 425&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1.0 on 4.0 off<br>

Service activated tone -&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 425&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1.0 on 0.25 off<br>Warning tone - operator intervening 1400&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 5x0.1 on 1.9 off<br>Waiting tone -&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 425&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0.4 on 0.2 off 0.4 on 4.0 off<br>

Call waiting tone -&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 425&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0.3 on 10.0 off<br></blockquote><div><br>[..snip..]<br><br></div></div>I&#39;ve come up with the following data for tones.conf for Argentina. I thought it might help others:<br>
<br>[ar]<br>generate-busy =&gt; v=-7;%(300,200,425)<br>generate-dial =&gt; v=-7;%(1000,0,425)<br>generate-ring =&gt; v=-7;%(1000,4000,425)<br>generate-callwaiting-sas =&gt; v=0;%(300,10000,425)<br><br>detect-busy =&gt; 425<br>
detect-dial =&gt; 425<br>detect-ring =&gt; 425<br>detect-callwaiting-sas =&gt; 425<br><br>I&#39;m not sure how to test if this works or not (simply because, with the &quot;us&quot; tonegroup, I was able to dialout and receive calls just fine, as well as detect busy tones).<br>
<br>The problem remains that *sometimes* in the middle of phone calls, the call drops as FS &quot;detects&quot; a busy tone (which, of course, never happened)<br><br>- Gonzalo<br>