[Freeswitch-users] playback terminator
Tihomir Culjaga
tculjaga at gmail.com
Thu Sep 16 04:34:02 PDT 2010
forget about this, solved by a script:
local macro = argv[1];
local data = argv[2];
local langue = argv[3];
function on_key(session, input_type, data, args)
if input_type == "dtmf" then
freeswitch.consoleLog("info", "stop playback by DTMF digit: " ..
data["digit"])
return "break"
end
end
if session:ready() then
session:setInputCallback("on_key", "")
session:sayPhrase(macro, data, langue)
end
<action application="lua" data="phrase.lua saymoney 9.40 ${language}"/>
lua rocks!
On Thu, Sep 16, 2010 at 10:28 AM, Tihomir Culjaga <tculjaga at gmail.com>wrote:
> is there any playback terminator for phrase macros?
>
>
> e.g. when you do:
>
> <action application="phrase" data="saymoney , 2.31"/>
> or
> <action application="phrase" data="timeleft , 33"/>
>
>
> I'd like to make FS stop playing on any pressed digits...
>
>
>
> something like:
> <action application="set" data="playback_terminators=#*0123456789"/>
>
> but seems not to be working ...
>
>
> any ideas ?
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100916/24f2b7c0/attachment.html
More information about the FreeSWITCH-users
mailing list