Brian, I've read 8-9 of your emails asking to not hijack threads in threads
where this it didn't happen (like this). I see this as a new thread with a
single message (plus yours, of course) inside with "[Freeswitch-users] how
to catch DTMF in Lua while a phrase macro is playing" as the subject - and I
think is quite relevant to the message. I suspect you have something wrong
in your email client (mine is gmail) or server and suggest you to give it a
check.

Regards,
   Raffaele

On Sat, Aug 8, 2009 at 17:59, Brian West <[email protected]> wrote:

> Examples exist in the scripts/lua folder called callback.lua.  Also
> please DO NOT hijack threads.  You can't click reply, change the
> subject as it messes up the mailing list threading and most mail
> readers will thread it incorrectly.
>
> Thanks,
> Brian
>
> On Aug 8, 2009, at 10:15 AM, Chad Phillips -- Apartment Lines wrote:
>
> > in a lua script, i've tried using session:setInputCallback() to catch
> > DTMF tones while a phrase macro is playing, but it doesn't seem to
> > work.  the same callback _does_ catch DTMF when i use
> > session:streamFile() to play something.  is there some other way to do
> > it?
> >
> > below is an example of how i'm doing it now.  when voicemail/vm-
> > mailbox_full.wav plays, i see key presses being printed to the
> > console, but when the phrase plays, no key presses are displayed.
> >
> > function key_press(session, input_type, data)
> >       if input_type == "dtmf" then
> >               freeswitch.consoleLog("info", "Key pressed: " ..
> data["digit"] ..
> > "\n")
> >       end
> > end
> >
> > if session:ready() then
> >       session:answer()
> >       session:execute("sleep", "1000")
> >       session:setInputCallback("key_press", "")
> >       session:streamFile("voicemail/vm-mailbox_full.wav")
> >       session:execute("phrase", "voicemail_menu,1:2:3:#")
> > end
> >
> > _______________________________________________
> > FreeSWITCH-users mailing list
> > [email protected]
> > 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
> [email protected]
> 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
[email protected]
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

Reply via email to