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 class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; 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 class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; 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><br><div class="gmail_quote">On Thu, Aug 6, 2009 at 01:23, Brian West <span dir="ltr">&lt;<a href="mailto:brian@freeswitch.org">brian@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;"><div style="word-wrap:break-word">The bigger problem is some end points won&#39;t hang up the call in a consistent manner... some phones say user_rejected or user_busy when you reject the call with the reject button.<div>
<br></div><div>/b</div><div><br><div><div><div></div><div class="h5"><div>On Aug 5, 2009, at 5:16 PM, Michael Collins wrote:</div><br></div></div><blockquote type="cite"><div><div></div><div class="h5"><br><br><div class="gmail_quote">
On Wed, Aug 5, 2009 at 3:54 PM, Raffaele P. Guidi <span dir="ltr">&lt;<a href="mailto:raffaele.p.guidi@gmail.com" target="_blank">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">
 interesting! what values can contain &quot;variable_originate_disposition&quot;? And can I set them manually in a script to reject a call simulating user busy or call rejected? A lua example?<div><br></div><div>Thanks,</div>
 <div>   Raffaele</div></blockquote><div><br>Start here:<br><a href="http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_hangup" target="_blank">http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_hangup</a><br><br>And note the link to the hangup causes. As far as Lua, I&#39;m not sure there&#39;s a good reason to do it there. Could you give us pseudo code example of what you&#39;re thinking of doing?<br>
 -MC<br><br></div></div></div></div><div class="im"> _______________________________________________<br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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></blockquote></div><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>