[Freeswitch-users] Tone detection How To

Michael Jerris mike at jerris.com
Tue Jun 9 23:06:47 MSD 2015


What exactly kind of tone are you trying to detect?

On Tuesday, June 9, 2015, Naveen Tamanam <naveen32india at gmail.com> wrote:

> Hi nandy,
>
> can we get  tone detection done, with out defining frequencies in
> conf/autoload_configs/spandsp.
> conf.xml. In my case I used event socket command(from external script),
>
> tone_detect  8582g3b8-f7db-10e4-2ac4-c01885c1ffd3  tone_name
> 437,478,679,918,1357,1399,1593,1838
>
> above frequencies are the peak frequencies that I took from logarithmic
> spectrum(in audacity).
>
> On Sun, Jun 7, 2015 at 3:40 AM, Nandy Dagondon <nandy1925 at gmail.com
> <javascript:_e(%7B%7D,'cvml','nandy1925 at gmail.com');>> wrote:
>
>> Ah ... you'd like to have a call progress detection.
>>
>> 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 <descriptor
>> name="63">
>>
>> In your dialplan (ex. outbound), include the ff lines before the bridge
>> app:
>>
>> <action application="set" data="bridge_pre_execute_bleg_app=tone_detect"/>
>> <action application="set" data="bridge_pre_execute_bleg_data=63"/>  <!--
>> the descriptor name -->
>>
>> For an inbound call, do the same but change bleg to aleg.
>>
>> I hope it works with your setup. Cheers!
>>
>> /Nandy
>>
>> On Sat, Jun 6, 2015 at 3:51 AM, Naveen Tamanam <naveen32india at gmail.com
>> <javascript:_e(%7B%7D,'cvml','naveen32india at gmail.com');>> wrote:
>>
>>>>>> Hi Nandy,
>>>
>>> I am glad to see your reply. I am trying to detect the tone which sounds
>>> like a simple ring.
>>> and I can't guess when that could occur, so I listen for the tone
>>> through out the call. I am attaching the tone.
>>>
>>>
>>>
>>>
>>> On Thu, Jun 4, 2015 at 10:39 AM, Nandy Dagondon <nandy1925 at gmail.com
>>> <javascript:_e(%7B%7D,'cvml','nandy1925 at gmail.com');>> wrote:
>>>
>>>>
>>>> Hi,
>>>>
>>>> What are you trying to do with tone_detect? Is it call progress? Fax
>>>> detect?
>>>>
>>>> /Nandy
>>>>
>>>> On Tue, May 19, 2015 at 4:55 AM, Naveen Tamanam <
>>>> naveen32india at gmail.com
>>>> <javascript:_e(%7B%7D,'cvml','naveen32india at gmail.com');>> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> I am using following command for tone detection,
>>>>>
>>>>> tone_detect <uuid> <key> <tone_spec> [<flags> <timeout> <app> <args>]
>>>>> <hits>
>>>>>
>>>>> Many times I end with the false detection. In my case  I haven't given
>>>>> all optional args.
>>>>> I just gave   tone_detect uuid  key tone_specs. It would be something
>>>>> like,
>>>>>
>>>>> tone_detect  8582g3b8-f7db-10e4-2ac4-c01885c1ffd3  tone_name
>>>>> frp1,frp2,frp3
>>>>>
>>>>> Where frp1, frp2 and frp3 are the frequencies of  few peak amplitudes
>>>>> of the tone.
>>>>> Those frequencies are detected through audacity by plotting spectrum,
>>>>> Spectrum specs are,
>>>>>     Alogorithm: Spectrum,
>>>>>     Fuction: Hanning window  or Bartlett window
>>>>>     Size: 512
>>>>>     Axis: Log Frequencies
>>>>>
>>>>> Is there anything I am missing. Any suggestions are highly
>>>>> appreciated, Thanks.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Thanks & Regards,
>>>>> Naveen Tamanam
>>>>>
>>>>>
>>>>> _________________________________________________________________________
>>>>> Professional FreeSWITCH Consulting Services:
>>>>> consulting at freeswitch.org
>>>>> <javascript:_e(%7B%7D,'cvml','consulting at freeswitch.org');>
>>>>> http://www.freeswitchsolutions.com
>>>>>
>>>>> Official FreeSWITCH Sites
>>>>> http://www.freeswitch.org
>>>>> http://confluence.freeswitch.org
>>>>> http://www.cluecon.com
>>>>>
>>>>> FreeSWITCH-users mailing list
>>>>> FreeSWITCH-users at lists.freeswitch.org
>>>>> <javascript:_e(%7B%7D,'cvml','FreeSWITCH-users at lists.freeswitch.org');>
>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>>>> UNSUBSCRIBE:
>>>>> http://lists.freeswitch.org/mailman/options/freeswitch-users
>>>>> http://www.freeswitch.org
>>>>>
>>>>
>>>>
>>>>
>>>> _________________________________________________________________________
>>>> Professional FreeSWITCH Consulting Services:
>>>> consulting at freeswitch.org
>>>> <javascript:_e(%7B%7D,'cvml','consulting at freeswitch.org');>
>>>> http://www.freeswitchsolutions.com
>>>>
>>>> Official FreeSWITCH Sites
>>>> http://www.freeswitch.org
>>>> http://confluence.freeswitch.org
>>>> http://www.cluecon.com
>>>>
>>>> FreeSWITCH-users mailing list
>>>> FreeSWITCH-users at lists.freeswitch.org
>>>> <javascript:_e(%7B%7D,'cvml','FreeSWITCH-users at lists.freeswitch.org');>
>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>>> UNSUBSCRIBE:
>>>> http://lists.freeswitch.org/mailman/options/freeswitch-users
>>>> http://www.freeswitch.org
>>>>
>>>
>>>
>>>
>>> --
>>> Thanks & Regards,
>>> Naveen Tamanam
>>>
>>> _________________________________________________________________________
>>> Professional FreeSWITCH Consulting Services:
>>> consulting at freeswitch.org
>>> <javascript:_e(%7B%7D,'cvml','consulting at freeswitch.org');>
>>> http://www.freeswitchsolutions.com
>>>
>>> Official FreeSWITCH Sites
>>> http://www.freeswitch.org
>>> http://confluence.freeswitch.org
>>> http://www.cluecon.com
>>>
>>> FreeSWITCH-users mailing list
>>> FreeSWITCH-users at lists.freeswitch.org
>>> <javascript:_e(%7B%7D,'cvml','FreeSWITCH-users at lists.freeswitch.org');>
>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>>> http://www.freeswitch.org
>>>
>>
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> <javascript:_e(%7B%7D,'cvml','consulting at freeswitch.org');>
>> http://www.freeswitchsolutions.com
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://confluence.freeswitch.org
>> http://www.cluecon.com
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> <javascript:_e(%7B%7D,'cvml','FreeSWITCH-users at lists.freeswitch.org');>
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>
>
>
> --
> Thanks & Regards,
> Naveen Tamanam
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150609/3db9f938/attachment-0001.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list