<br><br><div class="gmail_quote">On Wed, Aug 5, 2009 at 6:44 PM, Raffaele P. Guidi <span dir="ltr">&lt;<a href="mailto:raffaele.p.guidi@gmail.com">raffaele.p.guidi@gmail.com</a>&gt;</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;">

&lt;anti-action application=&quot;respond&quot; data=&quot;407&quot; /&gt; (407 or 486 or whatever...)</blockquote><div><br></div><div>doesn&#39;t behave as I expected and neither</div><div><br></div><blockquote style="border: medium none ; margin: 0pt 0pt 0pt 40px; padding: 0px;">

&lt;action application=&quot;hangup&quot; data=&quot;407&quot; /&gt; (407 or 486 or USER_BUSY or whatever...)</blockquote><div><div><br></div><div>and I cannot find a a session:reject(&lt;hangupcause&gt;) method in lua.</div>

<div><br></div>Can you give me a hint? </div><div><div></div><div class="h5"><div></div></div></div></blockquote><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">http://wiki.freeswitch.org/wiki/Lua#session:execute</a><br>
<br>Try something like:<br>session:execute(&quot;hangup&quot;,&quot;USER_BUSY&quot;);<br><br>-MC<br></div></div>