Ah! That you very much.<br><br>Not Session.Break() but:<br><br>Session.DtmfReceivedFunction = (d, t) =&gt;<br>{<br>      Log.WriteLine(LogLevel.Info, &quot;Received {0} for {1}.&quot;, d, t);<br>      CollectedDigits = d.ToString().Trim();<br>
      return &quot;break&quot;;<br>}<br><br><br>Thanks to you both for your help on this.<br><br><div class="gmail_quote">On Thu, Jul 23, 2009 at 4:17 PM, David Knell <span dir="ltr">&lt;<a href="mailto:dave@3c.co.uk">dave@3c.co.uk</a>&gt;</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 Phillip,<br>
<br>
You need to call FreeSWITCH&#39;s break function - I&#39;d guess<br>
Session.Break(); might do it for you, but no guarantees.<br>
<br>
--Dave<br>
<div><div></div><div class="h5"><br>
&gt; Hi there,<br>
&gt;<br>
&gt; Thanks for the reply. That information is extremely useful.<br>
&gt;<br>
&gt; Given the code below though - when if I press &#39;1&#39; when the phrase is<br>
&gt; playing - playing does not stop. It continues. I am looking for a<br>
&gt; method to barge in and collect &amp; react to digits immediately.<br>
&gt;<br>
&gt;<br>
&gt;             Session.DtmfReceivedFunction = (d, t) =&gt;<br>
&gt;                 {<br>
&gt;                     Log.WriteLine(LogLevel.Info, &quot;Received {0} for<br>
&gt; {1}.&quot;, d, t);<br>
&gt;                     Session.StreamFile(&quot;&quot;, 0);<br>
&gt;                     CollectedDigits = d.ToString().Trim();<br>
&gt;                     return &quot;&quot;;<br>
&gt;<br>
&gt;                 };<br>
&gt;<br>
&gt;             Session.SayPhrase(&quot;msgcount&quot;, &quot;187346&quot;, &quot;en&quot;);<br>
&gt;<br>
&gt;<br>
&gt; Any ideas? I am sure I must be missing something simple.<br>
&gt;<br>
&gt; Thanks a lot.<br>
&gt;<br>
&gt;<br>
&gt; Phillip Jones<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Thu, Jul 23, 2009 at 2:40 PM, Michael Collins &lt;<a href="mailto:msc@freeswitch.org">msc@freeswitch.org</a>&gt;<br>
&gt; wrote:<br>
&gt;         I think you might want to check out phrase macros...<br>
&gt;         <a href="http://wiki.freeswitch.org/wiki/Speech_Phrase_Management" target="_blank">http://wiki.freeswitch.org/wiki/Speech_Phrase_Management</a><br>
&gt;         -MC<br>
&gt;<br>
&gt;<br>
&gt;         On Thu, Jul 23, 2009 at 11:13 AM, Phillip Jones<br>
&gt;         &lt;<a href="mailto:pjintheusa@gmail.com">pjintheusa@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt;                 Hi there,<br>
&gt;<br>
&gt;                 Very simple scenario:<br>
&gt;<br>
&gt;                 Session.DtmfReceivedFunction = (d, t) =&gt;<br>
&gt;                 {<br>
&gt;                     Log.WriteLine(LogLevel.Info, &quot;Received {0} for<br>
&gt;                 {1}.&quot;, d, t);<br>
&gt;                     CollectedDigits = d.ToString().Trim();<br>
&gt;                     return &quot;&quot;;<br>
&gt;                 };<br>
&gt;<br>
&gt;<br>
&gt;                 Session.flushDigits();<br>
&gt;                 Session.StreamFile(VoicemailPromptsDirectory +<br>
&gt;                 &quot;abigfile.wav&quot;, 0);<br>
&gt;<br>
&gt;                 Question is, it there a way to kill the streaming when<br>
&gt;                 the a digit is pressed?<br>
&gt;<br>
&gt;                 I would use the Session.PlayAndGetDigits()<br>
&gt;<br>
&gt;                 but that does not help when want to string things<br>
&gt;                 together like:<br>
&gt;<br>
&gt;                 Session.StreamFile(VoicemailPromptsDirectory +<br>
&gt;                 &quot;vm-to_delete_the_message.wav&quot;, 0);<br>
&gt;                 Session.StreamFile(VoicemailPromptsDirectory +<br>
&gt;                 &quot;vm-press.wav&quot;, 0);<br>
&gt;                 Session.Say(&quot;7&quot;, &quot;en&quot;, &quot;number&quot;, &quot;pronounced&quot;);<br>
&gt;<br>
&gt;                 Any help would be appreciated.<br>
&gt;<br>
&gt;<br>
&gt;                 _______________________________________________<br>
&gt;                 FreeSWITCH-users mailing list<br>
&gt;                 <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt;                 <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt;                 UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt;                 <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;         _______________________________________________<br>
&gt;         FreeSWITCH-users mailing list<br>
&gt;         <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt;         <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt;         UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt;         <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; FreeSWITCH-users mailing list<br>
&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div><font color="#888888">--<br>
David Knell, Director, 3C Limited<br>
T: +44 20 3298 2000<br>
E: <a href="mailto:dave@3c.co.uk">dave@3c.co.uk</a><br>
W: <a href="http://www.3c.co.uk" target="_blank">http://www.3c.co.uk</a><br>
</font><div><div></div><div class="h5"><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>
</div></div></blockquote></div><br>