Re: [Freeswitch-users] lua, sound playback and interruption on DTMF entry

2008-07-24 Thread Brian Snipes
I believe that is exactly what playAndGetDigits does: http://wiki.freeswitch.org/wiki/Mod_lua#session:playAndGetDigits http://wiki.freeswitch.org/wiki/IVR#Play_Menu_and_get_digits Brian On Thursday 24 July 2008 5:32:02 am Alex Kinch wrote: > Hi all, > > I've got a lua script that plays a sound f

Re: [Freeswitch-users] lua, sound playback and interruption on DTMF entry

2008-07-24 Thread Alex Kinch
Thanks guys. I was using playAndGetDigits but I wanted to play two pieces of audio then capture the digits. I could be less lazy and glue the two files together, but, well.. you know. Is there any way to play two audio files in Read? Alex On 24 Jul 2008, at 14:43, Brian West wrote: Read i

Re: [Freeswitch-users] lua, sound playback and interruption on DTMF entry

2008-07-24 Thread Brian West
Read is much easier to use vs playAndGetDigits. :) /b On Jul 24, 2008, at 8:35 AM, Brian Snipes wrote: I believe that is exactly what playAndGetDigits does: http://wiki.freeswitch.org/wiki/Mod_lua#session:playAndGetDigits http://wiki.freeswitch.org/wiki/IVR#Play_Menu_and_get_digits Brian

Re: [Freeswitch-users] lua, sound playback and interruption on DTMF entry

2008-07-24 Thread Brian West
session:read() is what you're looking for. /b On Jul 24, 2008, at 5:32 AM, Alex Kinch wrote: > Hi all, > > I've got a lua script that plays a sound file then listens for DTMF. > What I'd like to do is interrupt the sound file playback and process > the DTMF if the user starts entering digits whi

[Freeswitch-users] lua, sound playback and interruption on DTMF entry

2008-07-24 Thread Alex Kinch
Hi all, I've got a lua script that plays a sound file then listens for DTMF. What I'd like to do is interrupt the sound file playback and process the DTMF if the user starts entering digits whilst the sound file is playing. At the moment they have to wait til the sound file has finished be