Lua playAndCollectDigits timeout problem. Possible bug
Hi, I am trying to invoke a timeout using the session:playAndCollectDigits lua function, this is the syntax I am using: call_number = session:playAndGetDigits(1, 20, 1, 10000, "#*", "some-file.wav", "", "[0-9]{1,}"); If the user doesn't hit * or # I need the function to return after 10 seconds. However this timeout seems to only kick in if I start entering DTMF *after* the initial prompt has played. If I start entering DTMF during the prompt, the function never returns due to timeout. Has anyone else seen/experienced this ? Pete
What version are you running? -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Lua-playAndCollectDigits-timeo... Sent from the freeswitch-users mailing list archive at Nabble.com.
there is a new final param of digit timeout once you type something. In older versions it was set to 0 by default meaning forever but on latest its equiv to the global timeout. add another ,10 to your arg list On Fri, Mar 18, 2011 at 10:57 AM, Pete Kelly <pkelly@gmail.com> wrote:
Hi, I am trying to invoke a timeout using the session:playAndCollectDigits lua function, this is the syntax I am using: call_number = session:playAndGetDigits(1, 20, 1, 10000, "#*", "some-file.wav", "", "[0-9]{1,}"); If the user doesn't hit * or # I need the function to return after 10 seconds. However this timeout seems to only kick in if I start entering DTMF *after* the initial prompt has played. If I start entering DTMF during the prompt, the function never returns due to timeout. Has anyone else seen/experienced this ? Pete _______________________________________________ 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
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
On 18 March 2011 16:52, Anthony Minessale <anthony.minessale@gmail.com>wrote:
there is a new final param of digit timeout once you type something. In older versions it was set to 0 by default meaning forever but on latest its equiv to the global timeout.
add another ,10 to your arg list
That worked, thank you again for your help. To clarify are all timeouts in this function in seconds? I was under the impression (no idea why) that they would be milliseconds
On Fri, Mar 18, 2011 at 10:57 AM, Pete Kelly <pkelly@gmail.com> wrote:
Hi, I am trying to invoke a timeout using the session:playAndCollectDigits lua function, this is the syntax I am using: call_number = session:playAndGetDigits(1, 20, 1, 10000, "#*", "some-file.wav", "", "[0-9]{1,}"); If the user doesn't hit * or # I need the function to return after 10 seconds. However this timeout seems to only kick in if I start entering DTMF *after* the initial prompt has played. If I start entering DTMF during the prompt, the function never returns due to timeout. Has anyone else seen/experienced this ? Pete _______________________________________________ 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
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_______________________________________________ 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
On 18 March 2011 16:52, Anthony Minessale <anthony.minessale@gmail.com>wrote:
there is a new final param of digit timeout once you type something. In older versions it was set to 0 by default meaning forever but on latest its equiv to the global timeout.
add another ,10 to your arg list
That worked, thank you again for your help. To clarify are all timeouts in this function in seconds? I was under the impression (no idea why) that they would be milliseconds
On Fri, Mar 18, 2011 at 10:57 AM, Pete Kelly <pkelly@gmail.com> wrote:
Hi, I am trying to invoke a timeout using the session:playAndCollectDigits lua function, this is the syntax I am using: call_number = session:playAndGetDigits(1, 20, 1, 10000, "#*", "some-file.wav", "", "[0-9]{1,}"); If the user doesn't hit * or # I need the function to return after 10 seconds. However this timeout seems to only kick in if I start entering DTMF *after* the initial prompt has played. If I start entering DTMF during the prompt, the function never returns due to timeout. Has anyone else seen/experienced this ? Pete _______________________________________________ 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
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_______________________________________________ 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)
-
Anthony Minessale
-
Jeff Lenk
-
Pete Kelly