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!<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">tculjaga@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;">
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>