[Freeswitch-users] Interaction between event handler and streamfile (avmd specifically)
jmoran at secureachsystems.com
Mon Oct 3 18:40:18 MSD 2011
In short, I'm looking to stream a message twice unless a voicemail
beeps. If the voicemail beeps, then start over immediately and only play
the message once.
session.streamFile(playbackFileName); //1st play
session.streamFile(playbackFileName); //2nd play
function onDTMF(s, type, obj, arg)
if(type == "event" && session.getVariable("avmd_detect") == "TRUE")
My question is what the effect and timing is of returning false or true
from the onDTMF function? Does the original streamFile continue playing?
Pause? end immediately? Do I have to set a variable, return false to
stop the original from playing, then do my streamfile logic OUTSIDE of
the onDTMF for proper flow? What happens if I never return true or
false, what does it do then?
-------------- next part --------------
An HTML attachment was scrubbed...
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users