Yes. The terminator key is not part of what is captured.<br>-MC<br><br><div class="gmail_quote">On Wed, Sep 22, 2010 at 11:47 AM, Phillip Jones <span dir="ltr"><<a href="mailto:pjintheusa@gmail.com">pjintheusa@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div>Hi.</div>
<div> </div>
<div>When I use this method and do GetDigits after - the first digit (that caused the prompt to stop playing) is not collected by GetDigits</div>
<div> </div>
<div>So the user starts entering 6095554444, 6 stops the prompt - GetDigits collects 095554444</div>
<div> </div>
<div>DId you have the same experience?<br><br></div>
<div class="gmail_quote">On Thu, Sep 16, 2010 at 7:34 AM, Tihomir Culjaga <span dir="ltr"><<a href="mailto:tculjaga@gmail.com" target="_blank">tculjaga@gmail.com</a>></span> wrote:<br>
<blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;" class="gmail_quote">forget about this, solved by a script:<br><br><br>local macro = argv[1];<br>local data = argv[2];<br>
local langue = argv[3];<br>
<br><br>function on_key(session, input_type, data, args)<br> if input_type == "dtmf" then<br> freeswitch.consoleLog("info", "stop playback by DTMF digit: " .. data["digit"])<br>
return "break"<br> end<br>end<br>if session:ready() then<br> session:setInputCallback("on_key", "")<br> session:sayPhrase(macro, data, langue)<br>end<br><br><br><action application="lua" data="phrase.lua saymoney 9.40 ${language}"/><br>
<br><br><br><br><br>lua rocks!
<div>
<div></div>
<div><br><br><br><br><br>
<div class="gmail_quote">On Thu, Sep 16, 2010 at 10:28 AM, Tihomir Culjaga <span dir="ltr"><<a href="mailto:tculjaga@gmail.com" target="_blank">tculjaga@gmail.com</a>></span> wrote:<br>
<blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">is there any playback terminator for phrase macros?<br><br><br>e.g. when you do:<br><br><action application="phrase" data="saymoney , 2.31"/><br>
or <br><action application="phrase" data="timeleft , 33"/><br><br><br>I'd like to make FS stop playing on any pressed digits...<br><br><br><br>something like: <br><action application="set" data="playback_terminators=#*0123456789"/> <br>
<br>but seems not to be working ...<br><br><br>any ideas ?<br></blockquote></div><br></div></div><br>_______________________________________________<br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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>
<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>