Perfect!<div><div>Yes, I know that I have to control the disconnect and it&#39;s what I expect to do using linger. </div><div>Thank you Anthony!</div><div><br></div><div>Stephen</div><div><br></div><div><br></div><div><div class="gmail_quote">
On Fri, Feb 25, 2011 at 11:20 PM, Anthony Minessale <span dir="ltr">&lt;<a href="mailto:anthony.minessale@gmail.com">anthony.minessale@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Its not you it&#39;s me.<br>
<br>
commit 0444626b721fdd3a5400a86883d5668fa8678cd8<br>
Author: Anthony Minessale &lt;<a href="mailto:anthm@freeswitch.org">anthm@freeswitch.org</a>&gt;<br>
Date:   Fri Feb 25 16:13:16 2011 -0600<br>
<br>
There was a bug in the client code introduce when we tried doing clean<br>
shutdown by detecting the disconnect message.<br>
It was necessary to check for the linger content disposition and not<br>
auto-disconnect.<br>
<br>
Note, when you update and use this feature, it will be up to you to<br>
disconnect the client when you send the linger command.<br>
<div><div></div><div class="h5"><br>
<br>
On Fri, Feb 25, 2011 at 12:16 PM, Stephen Wilde &lt;<a href="mailto:wstephen80@gmail.com">wstephen80@gmail.com</a>&gt; wrote:<br>
&gt; I have problem to clean close an outbound session.<br>
&gt; I&#39;m using the &quot;esl_oop.h/esl_oop.cpp&quot; files and my application is developed<br>
&gt; in c++ and at startup I do a &quot;linger&quot; command.<br>
&gt; My event consuming loop is:<br>
&gt; while (run)<br>
&gt; {<br>
&gt;     ESLevent * event = connection.recvEventTimed(sleeptime);<br>
&gt;<br>
&gt;    ... event processing ...<br>
&gt; }<br>
&gt; This application handle an inbound call (legA), originate an outbound call<br>
&gt; (legB) and bridge the two calls.<br>
&gt; The problem is present when the legA hangup the call: sometimes is received<br>
&gt; the content-type=&quot;text/disconnect-notice&quot; (without receiving<br>
&gt; &quot;CHANNEL_HANGUP&quot;) and the &quot;recvEventTimed&quot; exits with event=NULL.<br>
&gt; In this case it&#39;s not possible to receive any event or send any other<br>
&gt; message to Freeswitch because the &quot;connection.execute&quot; fails.<br>
&gt; In this situation, if I have originated (with &#39;&amp; park&#39;) an outbound call,<br>
&gt; this call remain in parked state and the application cannot hangup it.<br>
&gt; What I&#39;m doing wrong?<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; FreeSWITCH-users mailing list<br>
&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
&gt;<br>
<br>
<br>
<br>
--<br>
Anthony Minessale II<br>
<br>
FreeSWITCH <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org/</a><br>
ClueCon <a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com/</a><br>
Twitter: <a href="http://twitter.com/FreeSWITCH_wire" target="_blank">http://twitter.com/FreeSWITCH_wire</a><br>
<br>
AIM: anthm<br>
<a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>
GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> #freeswitch<br>
<br>
FreeSWITCH Developer Conference<br>
<a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>
pstn:+19193869900<br>
<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>
</blockquote></div><br></div></div>