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