it's a race between getting the event or getting the disconnect from the socket where if you need to get the channel hangup event instead of just getting the socket disconnect you can send linger which makes the socket connection wait for the hangup event to disconnect.


On Thu, Sep 17, 2009 at 2:08 PM, Shameem Shiek <gshfreesw@gmail.com> wrote:
What does "linger" do? I do not see it documented anywhere.

Why would I get a SERVER_DISCONNECTED instead of CHANNEL_HANGUP ? By the way the BUG does not happen every time and normally I *DO* see the CHANNEL_HANGUP come through in most cases.

Thanks for the help.


On Thu, Sep 17, 2009 at 2:56 PM, Anthony Minessale <anthony.minessale@gmail.com> wrote:
try sending the linger command

linger\n\n




On Thu, Sep 17, 2009 at 1:40 PM, Shameem Shiek <gshfreesw@gmail.com> wrote:
When a call is hangup, I get SERVER_DISCONNECTED Event over and over again instead of CHANNEL_HANGUP event. Has anyone else experienced this? I am using freeswitch 1.04.



_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org




--
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire

AIM: anthm
MSN:anthony_minessale@hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org
pstn:213-799-1400

_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org



_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org




--
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire

AIM: anthm
MSN:anthony_minessale@hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org
pstn:213-799-1400