<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">does anybody else find it amusing that my thread about Lua scripting was hijacked by people talking about hijacking threads?? ;)<div><br></div><div>/me waits patiently for discussion on the topic<br><div><br></div><div><br><div><div>On Aug 8, 2009, at 2:48 PM, Raffaele P. Guidi wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Uh, oh, ok. <span class="Apple-style-span" style="border-collapse: collapse; color: rgb(68, 68, 68); ">Message-Id and In-Reply-To headers don't mean too much in a gmail world (I think gmail does a better job than any other mail client). Well, at least I understood what Brian was talking about, thanks.</span><div> <font class="Apple-style-span" color="#444444"><span class="Apple-style-span" style="border-collapse: collapse;"><br></span></font></div><div><font class="Apple-style-span" color="#444444"><span class="Apple-style-span" style="border-collapse: collapse;">Regards,</span></font></div> <div><font class="Apple-style-span" color="#444444"><span class="Apple-style-span" style="border-collapse: collapse;"> Raffaele<br></span></font><br><div class="gmail_quote">On Sat, Aug 8, 2009 at 20:01, Stefan Knoblich <span dir="ltr"><<a href="mailto:stkn@freeswitch.org">stkn@freeswitch.org</a>></span> wrote:<br> <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">His message was a direct reply to Alan Chandler's mail and Brian's mail client is working perfectly fine<br> (as are both of my mail clients).<br> <br> Look at the Message-Id and In-Reply-To headers of the mails if you still think our clients are broken :)<br> <br> <br> stkn<br> <div class="im"><br> <br> Raffaele P. Guidi wrote:<br> > Brian, I've read 8-9 of your emails asking to not hijack threads in<br> > threads where this it didn't happen (like this). I see this as a new<br> > thread with a single message (plus yours, of course) inside with<br> > "[Freeswitch-users] how to catch DTMF in Lua while a phrase macro is<br> > playing" as the subject - and I think is quite relevant to the message.<br> > I suspect you have something wrong in your email client (mine is gmail)<br> > or server and suggest you to give it a check.<br> ><br> > Regards,<br> > Raffaele<br> ><br> > On Sat, Aug 8, 2009 at 17:59, Brian West <<a href="mailto:brian@freeswitch.org">brian@freeswitch.org</a><br> </div><div><div></div><div class="h5">> <mailto:<a href="mailto:brian@freeswitch.org">brian@freeswitch.org</a>>> wrote:<br> ><br> > Examples exist in the scripts/lua folder called callback.lua. Also<br> > please DO NOT hijack threads. You can't click reply, change the<br> > subject as it messes up the mailing list threading and most mail<br> > readers will thread it incorrectly.<br> ><br> > Thanks,<br> > Brian<br> ><br> > On Aug 8, 2009, at 10:15 AM, Chad Phillips -- Apartment Lines wrote:<br> ><br> > > in a lua script, i've tried using session:setInputCallback() to catch<br> > > DTMF tones while a phrase macro is playing, but it doesn't seem to<br> > > work. the same callback _does_ catch DTMF when i use<br> > > session:streamFile() to play something. is there some other way to do<br> > > it?<br> > ><br> > > below is an example of how i'm doing it now. when voicemail/vm-<br> > > mailbox_full.wav plays, i see key presses being printed to the<br> > > console, but when the phrase plays, no key presses are displayed.<br> > ><br> > > function key_press(session, input_type, data)<br> > > if input_type == "dtmf" then<br> > > freeswitch.consoleLog("info", "Key pressed: " ..<br> > data["digit"] ..<br> > > "\n")<br> > > end<br> > > end<br> > ><br> > > if session:ready() then<br> > > session:answer()<br> > > session:execute("sleep", "1000")<br> > > session:setInputCallback("key_press", "")<br> > > session:streamFile("voicemail/vm-mailbox_full.wav")<br> > > session:execute("phrase", "voicemail_menu,1:2:3:#")<br> > > end<br> > ><br> > > _______________________________________________<br> > > FreeSWITCH-users mailing list<br> > > <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br> </div></div>> <mailto:<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>><br> <div class="im">> > <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br> > ><br> > UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br> > > <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br> ><br> ><br> > _______________________________________________<br> > FreeSWITCH-users mailing list<br> > <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br> </div>> <mailto:<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>><br> <div><div></div><div class="h5">> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br> > UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br> > <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br> ><br> ><br> ><br> > ------------------------------------------------------------------------<br> ><br> > _______________________________________________<br> > FreeSWITCH-users mailing list<br> > <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br> > <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br> > UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br> > <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br> <br> <br> _______________________________________________<br> FreeSWITCH-users mailing list<br> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br> </div></div></blockquote></div><br></div> _______________________________________________<br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br>http://www.freeswitch.org<br></blockquote></div><br></div></div></body></html>