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@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@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@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@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@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@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@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@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@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@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@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@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