Hi, >-----Original Message----- >From: [EMAIL PROTECTED] >[mailto:[EMAIL PROTECTED] On >Behalf Of ext Pekka Pessi >Sent: Tuesday, March 11, 2008 1:57 PM >To: Bernhard Suttner >Cc: [email protected] >Subject: Re: [Sofia-sip-devel] nua_handle_destroy > >2008/3/11, Bernhard Suttner <[EMAIL PROTECTED]>: >> has nobody any suggestion? I would be very pleased if someone has a >> idea. > >You keep handle if you have use for it in the future, you destroy it >if you don't. If you serve PUBLISH or REGISTER or MESSAGE, there is no >state associated with the handle and you should destroy it. With >incoming INVITE, if you accept it by responding with 200, Sofia >creates session state, and you should keep the handle until the >session is terminated.
I code to the idea that it's better to unref handles and let the stack decide what to do with them. NB: Handles left to linger until the stack shutdown are a common occurrence in some unusual cases; to make matters worse, they delay a proper shutdown until after a shutdown timeout is expired. Best regards, Mikhail ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Sofia-sip-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel
