<div dir="ltr">Use spandsp_start_tone_detect instead.  It&#39;s better suited for detecting tones + cadence.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jun 19, 2016 at 10:58 PM, Alexandru Covalschi <span dir="ltr">&lt;<a href="mailto:568691@gmail.com" target="_blank">568691@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"><div><div><div>Hi list,<br><br></div>I have an issue using tone_detect. The thing is I must detect two very short tones - 1400 Hz and 2300 Hz 100ms coming one after another (with 100 ms pause I suppose) after ~2 seconds the call is answered. I have pretty accurate wav file, in audacity I see pikes are 1400 and 2296.<br></div>I&#39;ve seen that in spandsp sources it is said that accuracy is ~3% so that should be enough,<br></div>However tones aren&#39;t detected even if I set:<br><br>&lt;action application=&quot;tone_detect&quot; data=&quot;tone_1_0 1395 r 0 set tone_first=true 1&quot;/&gt;<br>&lt;action application=&quot;tone_detect&quot; data=&quot;tone_2_0 2295 r 0 set tone_second=true 1&quot;/&gt;<br>&lt;action application=&quot;tone_detect&quot; data=&quot;tone_1_1 1396 r 0 set tone_first=true 1&quot;/&gt;<br>&lt;action application=&quot;tone_detect&quot; data=&quot;tone_2_1 2296 r 0 set tone_second=true 1&quot;/&gt;<br>&lt;action application=&quot;tone_detect&quot; data=&quot;tone_1_2 1397 r 0 set tone_first=true 1&quot;/&gt;<br>&lt;action application=&quot;tone_detect&quot; data=&quot;tone_2_2 2297 r 0 set tone_second=true 1&quot;/&gt;<br>&lt;action application=&quot;tone_detect&quot; data=&quot;tone_1_3 1398 r 0 set tone_first=true 1&quot;/&gt;<br>&lt;action application=&quot;tone_detect&quot; data=&quot;tone_2_3 2298 r 0 set tone_second=true 1&quot;/&gt;<br>&lt;action application=&quot;tone_detect&quot; data=&quot;tone_1_4 1399 r 0 set tone_first=true 1&quot;/&gt;<br>&lt;action application=&quot;tone_detect&quot; data=&quot;tone_2_4 2299 r 0 set tone_second=true 1&quot;/&gt;<br>&lt;action application=&quot;tone_detect&quot; data=&quot;tone_1_5 1400 r 0 set tone_first=true 1&quot;/&gt;<br>&lt;action application=&quot;tone_detect&quot; data=&quot;tone_2_5 2300 r 0 set tone_second=true 1&quot;/&gt;<br>&lt;action application=&quot;tone_detect&quot; data=&quot;tone_1_6 1401 r 0 set tone_first=true 1&quot;/&gt;<br>&lt;action application=&quot;tone_detect&quot; data=&quot;tone_2_6 2301 r 0 set tone_second=true 1&quot;/&gt;<br>&lt;action application=&quot;tone_detect&quot; data=&quot;tone_1_7 1402 r 0 set tone_first=true 1&quot;/&gt;<br>&lt;action application=&quot;tone_detect&quot; data=&quot;tone_2_7 2302 r 0 set tone_second=true 1&quot;/&gt; <br clear="all"><div><div><div><div><br></div><div>Tried to do same using spandsp_start_tone_detect(), but I have no idea how to edit spandsp.conf to add a tone matching my needs.<br><br></div><div>Can someone give me any clue? Any parameter I need to change in sources to obtain what I need?<br><br>Debian Jessie<br>FreeSWITCH version: 1.6.6-13-d2d0b32~64bit (-13-d2d0b32 64bit)<br><br><br></div><div>Thanks in advance!<span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888"><div>-- <br><div data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">Alexandru Covalschi<br>ABRISS-Solutions<div>VoIP engineer and system administrator<br>tel: <a href="tel:%2B37367398493" value="+37367398493" target="_blank">+37367398493</a><br>web: <a href="http://abs-telecom.com/" target="_blank">http://abriss.solutions/</a></div></div></div></div></div>
</div></font></span></div></div></div></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><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" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>