<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've seen that in spandsp sources it is said that accuracy is ~3% so that should be enough,<br></div>However tones aren't detected even if I set:<br><br><action application="tone_detect" data="tone_1_0 1395 r 0 set tone_first=true 1"/><br><action application="tone_detect" data="tone_2_0 2295 r 0 set tone_second=true 1"/><br><action application="tone_detect" data="tone_1_1 1396 r 0 set tone_first=true 1"/><br><action application="tone_detect" data="tone_2_1 2296 r 0 set tone_second=true 1"/><br><action application="tone_detect" data="tone_1_2 1397 r 0 set tone_first=true 1"/><br><action application="tone_detect" data="tone_2_2 2297 r 0 set tone_second=true 1"/><br><action application="tone_detect" data="tone_1_3 1398 r 0 set tone_first=true 1"/><br><action application="tone_detect" data="tone_2_3 2298 r 0 set tone_second=true 1"/><br><action application="tone_detect" data="tone_1_4 1399 r 0 set tone_first=true 1"/><br><action application="tone_detect" data="tone_2_4 2299 r 0 set tone_second=true 1"/><br><action application="tone_detect" data="tone_1_5 1400 r 0 set tone_first=true 1"/><br><action application="tone_detect" data="tone_2_5 2300 r 0 set tone_second=true 1"/><br><action application="tone_detect" data="tone_1_6 1401 r 0 set tone_first=true 1"/><br><action application="tone_detect" data="tone_2_6 2301 r 0 set tone_second=true 1"/><br><action application="tone_detect" data="tone_1_7 1402 r 0 set tone_first=true 1"/><br><action application="tone_detect" data="tone_2_7 2302 r 0 set tone_second=true 1"/> <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!<br></div><div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">Alexandru Covalschi<br>ABRISS-Solutions<div>VoIP engineer and system administrator<br>tel: +37367398493<br>web: <a href="http://abs-telecom.com/" target="_blank">http://abriss.solutions/</a></div></div></div></div></div>
</div></div></div></div></div>