hits is what controls how "long" the tone needs to be present for the detection to be considered positive. The higher the number of hits, the longer the duration of the tone needs to be to form a positive detect. I would experiment with the hits value and see what you can learn.

-MC

On Sat, Mar 17, 2012 at 11:58 AM, Bing LI <enst.bupt@gmail.com> wrote:
Hi,

I just found that tone_detect worked sometimes and sometimes it didn't work. For a short length of tone like 100ms, it worked well. But for a much longer one (700ms or 1sec without pause), it didn't work. This one has not been detected but in the recording file, it was obvious. 

by this wiki http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_tone_detect
I don't know how exactly the hits works. 

And later I found these 2 variables called tone_detect_sleep and tone_detect_expires. But I didn't find any explanations about them.
Can anybody bring more details?
  

Thanks.



_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com

FreeSWITCH-dev mailing list
FreeSWITCH-dev@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
http://www.freeswitch.org