Done, it (of course, thanks) worked smoothly. I've published the example on the wiki.<div><br></div><div><a href="http://wiki.freeswitch.org/wiki/Fakecall_responder">http://wiki.freeswitch.org/wiki/Fakecall_responder</a> (and linked in mod_lua samples)</div>
<div><br></div><div>Regards,</div><div> Raffaele<br><br><div class="gmail_quote">On Thu, Aug 6, 2009 at 04:03, Michael Collins <span dir="ltr"><<a href="mailto:msc@freeswitch.org">msc@freeswitch.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br><br><div class="gmail_quote"><div class="im">On Wed, Aug 5, 2009 at 6:44 PM, Raffaele P. Guidi <span dir="ltr"><<a href="mailto:raffaele.p.guidi@gmail.com" target="_blank">raffaele.p.guidi@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex">
Well, I would randomly insert all of those cases to make it more realistic... only thing I cannot manage to issue USER_BUSY from lua (and neither from the dialplan, actually). <div><br></div><blockquote style="border:medium none;margin:0pt 0pt 0pt 40px;padding:0px">
<anti-action application="respond" data="407" /> (407 or 486 or whatever...)</blockquote><div><br></div><div>doesn't behave as I expected and neither</div><div><br></div><blockquote style="border:medium none;margin:0pt 0pt 0pt 40px;padding:0px">
<action application="hangup" data="407" /> (407 or 486 or USER_BUSY or whatever...)</blockquote><div><div><br></div><div>and I cannot find a a session:reject(<hangupcause>) method in lua.</div>
<div><br></div>Can you give me a hint? </div><div><div></div><div><div></div></div></div></blockquote></div><div><br>You can execute pretty much any dialplan app with the session:execute command:<br><a href="http://wiki.freeswitch.org/wiki/Lua#session:execute" target="_blank">http://wiki.freeswitch.org/wiki/Lua#session:execute</a><br>
<br>Try something like:<br>session:execute("hangup","USER_BUSY");<br><br>-MC<br></div></div>
<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></blockquote></div><br></div>