What exactly kind of tone are you trying to detect?<span></span><br><br>On Tuesday, June 9, 2015, Naveen Tamanam &lt;<a href="mailto:naveen32india@gmail.com">naveen32india@gmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-size:small;color:rgb(11,83,148)">Hi nandy, <br><br>can we get  tone detection done, with out defining frequencies in conf/autoload_configs/spandsp.<div>conf.xml. In my case I used event socket command(from external script), <br><br>tone_detect  8582g3b8-f7db-10e4-2ac4-c01885c1ffd3  tone_name 437,478,679,918,1357,1399,1593,1838<br><br></div>above frequencies are the peak frequencies that I took from logarithmic spectrum(in audacity). </div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jun 7, 2015 at 3:40 AM, Nandy Dagondon <span dir="ltr">&lt;<a href="javascript:_e(%7B%7D,&#39;cvml&#39;,&#39;nandy1925@gmail.com&#39;);" target="_blank">nandy1925@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Ah ... you&#39;d like to have a call progress detection. <div><br></div><div>I used spandsp.  First, you have to analyze the tones to get the freqs. Define and configure the frequencies in conf/autoload_configs/spandsp.conf.xml. In my case, I define &lt;descriptor name=&quot;63&quot;&gt;</div><div><br></div><div>In your dialplan (ex. outbound), include the ff lines before the bridge app:</div><div><br></div><div>&lt;action application=&quot;set&quot; data=&quot;bridge_pre_execute_bleg_app=tone_detect&quot;/&gt;<br></div><div><div class="gmail_extra"><div><div><div dir="ltr"><div dir="ltr"><div>&lt;action application=&quot;set&quot; data=&quot;bridge_pre_execute_bleg_data=63&quot;/&gt;  &lt;!-- the descriptor name --&gt;<br></div><div><br></div><div>For an inbound call, do the same but change bleg to aleg.</div><div><br></div><div>I hope it works with your setup. Cheers!</div><span><font color="#888888"><div><br></div><div>/Nandy</div><div><div class="gmail_extra"><div><div dir="ltr"><div></div></div></div></div></div></font></span></div></div></div></div><div><div>
<br><div class="gmail_quote">On Sat, Jun 6, 2015 at 3:51 AM, Naveen Tamanam <span dir="ltr">&lt;<a href="javascript:_e(%7B%7D,&#39;cvml&#39;,&#39;naveen32india@gmail.com&#39;);" target="_blank">naveen32india@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div style="font-size:small;color:rgb(11,83,148);display:inline">​<br></div><div style="font-size:small;color:rgb(11,83,148);display:inline">Hi Nandy, <br><br></div><div style="font-size:small;color:rgb(11,83,148);display:inline">I am glad to see your reply. I am trying to detect the tone which sounds like a simple ring. <br></div><div style="font-size:small;color:rgb(11,83,148);display:inline">and I can&#39;t guess when that could occur, so I listen for the tone through out the call. I am attaching the tone. <br></div><div><div><div style="font-size:small;color:rgb(11,83,148);display:inline"><br></div><div style="font-size:small;color:rgb(11,83,148);display:inline"><h3><span name="Nandy Dagondon"><br></span></h3></div><div><div style="font-size:small;color:rgb(11,83,148)"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 4, 2015 at 10:39 AM, Nandy Dagondon <span dir="ltr">&lt;<a href="javascript:_e(%7B%7D,&#39;cvml&#39;,&#39;nandy1925@gmail.com&#39;);" target="_blank">nandy1925@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><div><div><div dir="ltr"><div><div>Hi,</div></div><div><br></div><div>What are you trying to do with tone_detect? Is it call progress? Fax detect?</div><div><br></div><div>/Nandy</div></div></div></div>
<br><div class="gmail_quote"><div><div>On Tue, May 19, 2015 at 4:55 AM, Naveen Tamanam <span dir="ltr">&lt;<a href="javascript:_e(%7B%7D,&#39;cvml&#39;,&#39;naveen32india@gmail.com&#39;);" target="_blank">naveen32india@gmail.com</a>&gt;</span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div><div><div dir="ltr"><div style="font-size:small;color:rgb(11,83,148)">Hi, <br><br></div><div style="font-size:small;color:rgb(11,83,148)">I am using following command for tone detection, <br><br><span style="color:rgb(0,0,0);font-family:sans-serif;font-size:12.8px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:19.2px;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important;background-color:rgb(255,255,255)">tone_detect &lt;uuid&gt; &lt;key&gt; &lt;tone_spec&gt; [&lt;flags&gt; &lt;timeout&gt; &lt;app&gt; &lt;args&gt;] &lt;hits&gt;</span><br><br></div><div style="font-size:small;color:rgb(11,83,148)">Many times I end with the false detection. In my case  I haven&#39;t given all optional args. <br></div><div style="font-size:small;color:rgb(11,83,148)">I just gave   tone_detect uuid  key tone_specs. It would be something like, <br><br></div><div style="font-size:small;color:rgb(11,83,148)">tone_detect  8582g3b8-f7db-10e4-2ac4-c01885c1ffd3  tone_name frp1,frp2,frp3 <br></div><div style="font-size:small;color:rgb(11,83,148)"> <br></div><div style="font-size:small;color:rgb(11,83,148)">Where frp1, frp2 and frp3 are the frequencies of  few peak amplitudes of the tone. <br></div><div style="font-size:small;color:rgb(11,83,148)">Those frequencies are detected through audacity by plotting spectrum,  <br></div><div style="font-size:small;color:rgb(11,83,148)">Spectrum specs are, <br></div><div style="font-size:small;color:rgb(11,83,148)">    Alogorithm: Spectrum, <br></div><div style="font-size:small;color:rgb(11,83,148)">    Fuction: Hanning window  or Bartlett window<br></div><div style="font-size:small;color:rgb(11,83,148)">    Size: 512<br></div><div style="font-size:small;color:rgb(11,83,148)">    Axis: Log Frequencies <br><br></div><div style="font-size:small;color:rgb(11,83,148)">Is there anything I am missing. Any suggestions are highly appreciated, Thanks.<span><font color="#888888"><br></font></span></div><span><font color="#888888"><div style="font-size:small;color:rgb(11,83,148)"><br><br></div><div style="font-size:small;color:rgb(11,83,148)">    <br clear="all"></div><br>-- <br><div>Thanks &amp; Regards,<br>Naveen Tamanam<br></div>
</font></span></div>
<br></div></div>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="javascript:_e(%7B%7D,&#39;cvml&#39;,&#39;consulting@freeswitch.org&#39;);" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="javascript:_e(%7B%7D,&#39;cvml&#39;,&#39;FreeSWITCH-users@lists.freeswitch.org&#39;);" target="_blank">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></div></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="javascript:_e(%7B%7D,&#39;cvml&#39;,&#39;consulting@freeswitch.org&#39;);" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="javascript:_e(%7B%7D,&#39;cvml&#39;,&#39;FreeSWITCH-users@lists.freeswitch.org&#39;);" target="_blank">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><div>Thanks &amp; Regards,<br>Naveen Tamanam<br></div>
</div></div></div></div></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="javascript:_e(%7B%7D,&#39;cvml&#39;,&#39;consulting@freeswitch.org&#39;);" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="javascript:_e(%7B%7D,&#39;cvml&#39;,&#39;FreeSWITCH-users@lists.freeswitch.org&#39;);" target="_blank">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></div></div></div></div></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="javascript:_e(%7B%7D,&#39;cvml&#39;,&#39;consulting@freeswitch.org&#39;);" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="javascript:_e(%7B%7D,&#39;cvml&#39;,&#39;FreeSWITCH-users@lists.freeswitch.org&#39;);" target="_blank">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><div>Thanks &amp; Regards,<br>Naveen Tamanam<br></div>
</div>
</blockquote>