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

Brian Snipes bsnipes at snipes.org
Thu Jul 24 06:35:57 PDT 2008


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 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 before entering digits.
>
> Any suggestions? Here's the script snippet..
>
> ession:streamFile("/usr/local/freeswitch/sounds/dk/gsm/vm-enter-num-to-
> call.gsm");
> session:streamFile("/usr/local/freeswitch/sounds/dk/gsm/vm-then-
> pound.gsm");
>
>
> digits = session:getDigits(20, "#", 3000);
>
>
> Thanks,
> Alex
>
> _______________________________________________
> Freeswitch-users mailing list
> Freeswitch-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org






More information about the FreeSWITCH-users mailing list