Hi list,

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.
I've seen that in spandsp sources it is said that accuracy is ~3% so that should be enough,
However tones aren't detected even if I set:

<action application="tone_detect" data="tone_1_0 1395 r 0 set tone_first=true 1"/>
<action application="tone_detect" data="tone_2_0 2295 r 0 set tone_second=true 1"/>
<action application="tone_detect" data="tone_1_1 1396 r 0 set tone_first=true 1"/>
<action application="tone_detect" data="tone_2_1 2296 r 0 set tone_second=true 1"/>
<action application="tone_detect" data="tone_1_2 1397 r 0 set tone_first=true 1"/>
<action application="tone_detect" data="tone_2_2 2297 r 0 set tone_second=true 1"/>
<action application="tone_detect" data="tone_1_3 1398 r 0 set tone_first=true 1"/>
<action application="tone_detect" data="tone_2_3 2298 r 0 set tone_second=true 1"/>
<action application="tone_detect" data="tone_1_4 1399 r 0 set tone_first=true 1"/>
<action application="tone_detect" data="tone_2_4 2299 r 0 set tone_second=true 1"/>
<action application="tone_detect" data="tone_1_5 1400 r 0 set tone_first=true 1"/>
<action application="tone_detect" data="tone_2_5 2300 r 0 set tone_second=true 1"/>
<action application="tone_detect" data="tone_1_6 1401 r 0 set tone_first=true 1"/>
<action application="tone_detect" data="tone_2_6 2301 r 0 set tone_second=true 1"/>
<action application="tone_detect" data="tone_1_7 1402 r 0 set tone_first=true 1"/>
<action application="tone_detect" data="tone_2_7 2302 r 0 set tone_second=true 1"/>

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.

Can someone give me any clue? Any parameter I need to change in sources to obtain what I need?

Debian Jessie
FreeSWITCH version: 1.6.6-13-d2d0b32~64bit (-13-d2d0b32 64bit)


Thanks in advance!
--
Alexandru Covalschi
ABRISS-Solutions
VoIP engineer and system administrator
tel: +37367398493
web: http://abriss.solutions/