Perfect!<div><div>Yes, I know that I have to control the disconnect and it'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"><<a href="mailto:anthony.minessale@gmail.com">anthony.minessale@gmail.com</a>></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's me.<br>
<br>
commit 0444626b721fdd3a5400a86883d5668fa8678cd8<br>
Author: Anthony Minessale <<a href="mailto:anthm@freeswitch.org">anthm@freeswitch.org</a>><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 <<a href="mailto:wstephen80@gmail.com">wstephen80@gmail.com</a>> wrote:<br>
> I have problem to clean close an outbound session.<br>
> I'm using the "esl_oop.h/esl_oop.cpp" files and my application is developed<br>
> in c++ and at startup I do a "linger" command.<br>
> My event consuming loop is:<br>
> while (run)<br>
> {<br>
> ESLevent * event = connection.recvEventTimed(sleeptime);<br>
><br>
> ... event processing ...<br>
> }<br>
> This application handle an inbound call (legA), originate an outbound call<br>
> (legB) and bridge the two calls.<br>
> The problem is present when the legA hangup the call: sometimes is received<br>
> the content-type="text/disconnect-notice" (without receiving<br>
> "CHANNEL_HANGUP") and the "recvEventTimed" exits with event=NULL.<br>
> In this case it's not possible to receive any event or send any other<br>
> message to Freeswitch because the "connection.execute" fails.<br>
> In this situation, if I have originated (with '& park') an outbound call,<br>
> this call remain in parked state and the application cannot hangup it.<br>
> What I'm doing wrong?<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>
><br>
><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>