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 ?
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@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 ?
Hi. When I use this method and do GetDigits after - the first digit (that caused the prompt to stop playing) is not collected by GetDigits So the user starts entering 6095554444, 6 stops the prompt - GetDigits collects 095554444 DId you have the same experience? On Thu, Sep 16, 2010 at 7:34 AM, Tihomir Culjaga <tculjaga@gmail.com> wrote:
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@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 ?
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Yes. The terminator key is not part of what is captured. -MC On Wed, Sep 22, 2010 at 11:47 AM, Phillip Jones <pjintheusa@gmail.com>wrote:
Hi.
When I use this method and do GetDigits after - the first digit (that caused the prompt to stop playing) is not collected by GetDigits
So the user starts entering 6095554444, 6 stops the prompt - GetDigits collects 095554444
DId you have the same experience?
On Thu, Sep 16, 2010 at 7:34 AM, Tihomir Culjaga <tculjaga@gmail.com>wrote:
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@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 ?
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
ya, you just remember what you have pressed and prepend it to the result ... T. On Sat, Sep 25, 2010 at 12:05 AM, Michael Collins <msc@freeswitch.org>wrote:
Yes. The terminator key is not part of what is captured. -MC
On Wed, Sep 22, 2010 at 11:47 AM, Phillip Jones <pjintheusa@gmail.com>wrote:
Hi.
When I use this method and do GetDigits after - the first digit (that caused the prompt to stop playing) is not collected by GetDigits
So the user starts entering 6095554444, 6 stops the prompt - GetDigits collects 095554444
DId you have the same experience?
On Thu, Sep 16, 2010 at 7:34 AM, Tihomir Culjaga <tculjaga@gmail.com>wrote:
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@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 ?
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (3)
-
Michael Collins
-
Phillip Jones
-
Tihomir Culjaga