I think you might want to check out phrase macros...<br><a href="http://wiki.freeswitch.org/wiki/Speech_Phrase_Management">http://wiki.freeswitch.org/wiki/Speech_Phrase_Management</a><br>-MC<br><br><div class="gmail_quote">
On Thu, Jul 23, 2009 at 11:13 AM, Phillip Jones <span dir="ltr"><<a href="mailto:pjintheusa@gmail.com">pjintheusa@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi there,<br><br>Very simple scenario:<br><br>Session.DtmfReceivedFunction = (d, t) =><br>{<br> Log.WriteLine(LogLevel.Info, "Received {0} for {1}.", d, t);<br> CollectedDigits = d.ToString().Trim();<br>
return "";<br>};<br><br><br>Session.flushDigits();<br>Session.StreamFile(VoicemailPromptsDirectory + "abigfile.wav", 0);<br><br>Question is, it there a way to kill the streaming when the a digit is pressed?<br>
<br>I would use the Session.PlayAndGetDigits()<br><br>but that does not help when want to string things together like:<br><br>Session.StreamFile(VoicemailPromptsDirectory + "vm-to_delete_the_message.wav", 0);<br>
Session.StreamFile(VoicemailPromptsDirectory + "vm-press.wav", 0);<br>Session.Say("7", "en", "number", "pronounced");<br><br>Any help would be appreciated.<br>
<br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br>