<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?? &nbsp;;)<div><br></div><div>/me waits patiently&nbsp;for&nbsp;discussion&nbsp;on&nbsp;the&nbsp;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.&nbsp;<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;">&nbsp;&nbsp; Raffaele<br></span></font><br><div class="gmail_quote">On Sat, Aug 8, 2009 at 20:01, Stefan Knoblich <span dir="ltr">&lt;<a href="mailto:stkn@freeswitch.org">stkn@freeswitch.org</a>&gt;</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> &gt; Brian, I've read 8-9 of your emails asking to not hijack threads in<br> &gt; threads where this it didn't happen (like this). I see this as a new<br> &gt; thread with a single message (plus yours, of course) inside with<br> &gt; "[Freeswitch-users] how to catch DTMF in Lua while a phrase macro is<br> &gt; playing" as the subject - and I think is quite relevant to the message.<br> &gt; I suspect you have something wrong in your email client (mine is gmail)<br> &gt; or server and suggest you to give it a check.<br> &gt;<br> &gt; Regards,<br> &gt; &nbsp; &nbsp;Raffaele<br> &gt;<br> &gt; On Sat, Aug 8, 2009 at 17:59, Brian West &lt;<a href="mailto:brian@freeswitch.org">brian@freeswitch.org</a><br> </div><div><div></div><div class="h5">&gt; &lt;mailto:<a href="mailto:brian@freeswitch.org">brian@freeswitch.org</a>&gt;&gt; wrote:<br> &gt;<br> &gt; &nbsp; &nbsp; Examples exist in the scripts/lua folder called callback.lua. &nbsp;Also<br> &gt; &nbsp; &nbsp; please DO NOT hijack threads. &nbsp;You can't click reply, change the<br> &gt; &nbsp; &nbsp; subject as it messes up the mailing list threading and most mail<br> &gt; &nbsp; &nbsp; readers will thread it incorrectly.<br> &gt;<br> &gt; &nbsp; &nbsp; Thanks,<br> &gt; &nbsp; &nbsp; Brian<br> &gt;<br> &gt; &nbsp; &nbsp; On Aug 8, 2009, at 10:15 AM, Chad Phillips -- Apartment Lines wrote:<br> &gt;<br> &gt; &nbsp; &nbsp; &gt; in a lua script, i've tried using session:setInputCallback() to catch<br> &gt; &nbsp; &nbsp; &gt; DTMF tones while a phrase macro is playing, but it doesn't seem to<br> &gt; &nbsp; &nbsp; &gt; work. &nbsp;the same callback _does_ catch DTMF when i use<br> &gt; &nbsp; &nbsp; &gt; session:streamFile() to play something. &nbsp;is there some other way to do<br> &gt; &nbsp; &nbsp; &gt; it?<br> &gt; &nbsp; &nbsp; &gt;<br> &gt; &nbsp; &nbsp; &gt; below is an example of how i'm doing it now. &nbsp;when voicemail/vm-<br> &gt; &nbsp; &nbsp; &gt; mailbox_full.wav plays, i see key presses being printed to the<br> &gt; &nbsp; &nbsp; &gt; console, but when the phrase plays, no key presses are displayed.<br> &gt; &nbsp; &nbsp; &gt;<br> &gt; &nbsp; &nbsp; &gt; function key_press(session, input_type, data)<br> &gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; if input_type == "dtmf" then<br> &gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; freeswitch.consoleLog("info", "Key pressed: " ..<br> &gt; &nbsp; &nbsp; data["digit"] ..<br> &gt; &nbsp; &nbsp; &gt; "\n")<br> &gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; end<br> &gt; &nbsp; &nbsp; &gt; end<br> &gt; &nbsp; &nbsp; &gt;<br> &gt; &nbsp; &nbsp; &gt; if session:ready() then<br> &gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; session:answer()<br> &gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; session:execute("sleep", "1000")<br> &gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; session:setInputCallback("key_press", "")<br> &gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; session:streamFile("voicemail/vm-mailbox_full.wav")<br> &gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; session:execute("phrase", "voicemail_menu,1:2:3:#")<br> &gt; &nbsp; &nbsp; &gt; end<br> &gt; &nbsp; &nbsp; &gt;<br> &gt; &nbsp; &nbsp; &gt; _______________________________________________<br> &gt; &nbsp; &nbsp; &gt; FreeSWITCH-users mailing list<br> &gt; &nbsp; &nbsp; &gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br> </div></div>&gt; &nbsp; &nbsp; &lt;mailto:<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>&gt;<br> <div class="im">&gt; &nbsp; &nbsp; &gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br> &gt; &nbsp; &nbsp; &gt;<br> &gt; &nbsp; &nbsp; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br> &gt; &nbsp; &nbsp; &gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br> &gt;<br> &gt;<br> &gt; &nbsp; &nbsp; _______________________________________________<br> &gt; &nbsp; &nbsp; FreeSWITCH-users mailing list<br> &gt; &nbsp; &nbsp; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br> </div>&gt; &nbsp; &nbsp; &lt;mailto:<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>&gt;<br> <div><div></div><div class="h5">&gt; &nbsp; &nbsp; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br> &gt; &nbsp; &nbsp; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br> &gt; &nbsp; &nbsp; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br> &gt;<br> &gt;<br> &gt;<br> &gt; ------------------------------------------------------------------------<br> &gt;<br> &gt; _______________________________________________<br> &gt; FreeSWITCH-users mailing list<br> &gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br> &gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br> &gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br> &gt; <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>