Except for fields in a dial plan extension, I can't get tone_detect (or stop_tone_detect),

http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_tone_detect

http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_stop_tone_detect

to work in JavaScript.

If there is one, what's the correct syntax for scripting these?

Mark.