Thanks for the reply.<br><br>It&#39;s &quot;while true do&quot; loop, I thought the hangup signal will break it.<br><br>1. session:ready will return true between call answered and hangup only, right ?<br><br>2. how does it compare to session:getState, &quot;CS_HANGUP&quot; or &quot;CS_DESTROY&quot; means call hung up ?<br>
<br>Regards,<br>Tony<br><h4><span class="mw-headline"><br></span></h4><br><div class="gmail_quote">On Wed, Jul 7, 2010 at 8:15 PM, 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: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Post your code for your while loop... sounds like you&#39;re not checking session:ready to see if its still true.<br>

<br>
/b<br>
<div><div></div><div class="h5"><br>
On Jul 7, 2010, at 3:48 AM, Tony Tin wrote:<br>
<br>
&gt; Hi,<br>
&gt;<br>
&gt; I&#39;m writing dialplan with Lua script. There is a while loop in the dialplan, I found that the loop is not broke out even the call has been hung up. I&#39;m wondering whether this is a normal behavior. Thanks.<br>

&gt;<br>
&gt; Regards,<br>
&gt; Tony<br>
<br>
<br>
</div></div>_______________________________________________<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>
</blockquote></div><br>