List Info

Thread: nua_handle_destroy




nua_handle_destroy
user name
2008-02-29 05:28:42
Hi folks,

when do I have to cal nua_handle_destroy? After incoming
register and
the registration was successfull or failed? After incoming
INVITES? Is
there a common rule?

Regards,
Bernhard


------------------------------------------------------------
-------------
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
Sofia-sip-devellists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-s
ip-devel

Re: nua_handle_destroy
user name
2008-03-11 03:19:52
Hi again,

has nobody any suggestion? I would be very pleased if
someone has a
idea.

Thanks in advance!

Regarads,
Bernhard


Am Freitag, den 29.02.2008, 12:28 +0100 schrieb Bernhard
Suttner:
> Hi folks,
> 
> when do I have to cal nua_handle_destroy? After
incoming register and
> the registration was successfull or failed? After
incoming INVITES? Is
> there a common rule?
> 
> Regards,
> Bernhard
> 
> 
>
------------------------------------------------------------
-------------
> 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
> Sofia-sip-devellists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sofia-s
ip-devel


------------------------------------------------------------
-------------
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
Sofia-sip-devellists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-s
ip-devel

Re: nua_handle_destroy
user name
2008-03-11 06:56:58
2008/3/11, Bernhard Suttner <suttnercomdasys.com>:
>  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.

Perhaps there should be a table in the documentation listing
different
states associated with the handles...

--Pekka

>  Am Freitag, den 29.02.2008, 12:28 +0100 schrieb
Bernhard Suttner:
>
> > Hi folks,
>  >
>  > when do I have to cal nua_handle_destroy? After
incoming register and
>  > the registration was successfull or failed? After
incoming INVITES? Is
>  > there a common rule?
>  >
>  > Regards,
>  > Bernhard
>  >
>  >
>  >
------------------------------------------------------------
-------------
>  > 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
>  > Sofia-sip-devellists.sourceforge.net
>  > https://lists.sourceforge.net/lists/listinfo/sofia-s
ip-devel
>
>
> 
------------------------------------------------------------
-------------
>  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
>  Sofia-sip-devellists.sourceforge.net
>  https://lists.sourceforge.net/lists/listinfo/sofia-s
ip-devel
>


-- 
Pekka.Pessi mail at nokia.com

------------------------------------------------------------
-------------
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
Sofia-sip-devellists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-s
ip-devel

Re: nua_handle_destroy
user name
2008-03-11 07:12:05
Hi,

>-----Original Message-----
>From: sofia-sip-devel-bounceslists.sourceforge.net 
>[mailto:sofia-sip-devel-bounceslists.sourceforge.net] On 
>Behalf Of ext Pekka Pessi
>Sent: Tuesday, March 11, 2008 1:57 PM
>To: Bernhard Suttner
>Cc: sofia-sip-devellists.sourceforge.net
>Subject: Re: [Sofia-sip-devel] nua_handle_destroy
>
>2008/3/11, Bernhard Suttner <suttnercomdasys.com>:
>>  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
Sofia-sip-devellists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-s
ip-devel

[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )