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
--
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