<div dir="ltr">Hi Alex,<div><br></div><div>Referring to this wiki:<br><div><br></div><div><a href="https://wiki.freeswitch.org/wiki/Mod_spandsp#Call_Progress">https://wiki.freeswitch.org/wiki/Mod_spandsp#Call_Progress</a><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div>You need to tune the detector (record the tone and make a freq analysis). Take note the series of &lt;element /&gt; in spandsp.conf.  That&#39;s the sequence of tones to be detected. The min/max is the duration of every tone.  </div></div><div><br></div><div>In the dialplan app start_tone_detect, the data=1 refers to the &lt;descriptor name=&quot;1&quot;&gt;. You can create your own set of progress tones.</div><div><br></div><div>Good luck.</div><div><br></div><div>/Nandy</div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On Mon, Jun 20, 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>Thanks for your reply Christopher!<br></div><div><br>Can you please specify how should I edit spandsp.conf (tones section) to add my tone? I was trying for hours but didn&#39;t get any result, I just can&#39;t get the logic and I&#39;m struggling.<br><br></div>Cheers,<br></div>Alex<br><div><div><div><div><div class="gmail_extra"><br><div class="gmail_quote"><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>From: Christopher Rienzo &lt;<a href="mailto:cmrienzo@gmail.com" target="_blank">cmrienzo@gmail.com</a>&gt;<br>To: FreeSWITCH Users Help &lt;<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a>&gt;<br>Cc: <br>Date: Mon, 20 Jun 2016 08:59:32 -0400<br>Subject: Re: [Freeswitch-users] Tone detection issue<br><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><font color="#888888"><br></font></span></div><span><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" target="_blank">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" target="_blank">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>
<br><br>-<span class="HOEnZb"><font color="#888888"><br></font></span></blockquote></div><span class="HOEnZb"><font color="#888888"><br clear="all"><br>-- <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>
</font></span></div></div></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></div>