Hi there,

Very simple scenario:

Session.DtmfReceivedFunction = (d, t) =>
{
    Log.WriteLine(LogLevel.Info, "Received {0} for {1}.", d, t);
    CollectedDigits = d.ToString().Trim();
    return "";
};


Session.flushDigits();
Session.StreamFile(VoicemailPromptsDirectory + "abigfile.wav", 0);

Question is, it there a way to kill the streaming when the a digit is
pressed?

I would use the Session.PlayAndGetDigits()

but that does not help when want to string things together like:

Session.StreamFile(VoicemailPromptsDirectory +
"vm-to_delete_the_message.wav", 0);
Session.StreamFile(VoicemailPromptsDirectory + "vm-press.wav", 0);
Session.Say("7", "en", "number", "pronounced");

Any help would be appreciated.
_______________________________________________
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

Reply via email to