Hi Stefan,

2011/7/13 Stefan Opfermann <sip.rie...@yahoo.de>:
> we have an application based on Sofia SIP 1.12.11 which uses directly INVITE 
> methods between two SIP User Agents without a REGISTER server.
>
> In the case that the User is still busy or the caller not allowed to call ( 
> "404 Not found" etc. ), we have noticed a memory leak on the caller side if 
> the outgoing INVITE event (nua_r_invite) has an status unequal "200 OK". We 
> tried to generate the ACK Answer by our Event Handler, so NUTAG_AUTOACK( 0 
> ) and also the automatic answer with NUTAG_AUTOACK( 1 ) option. The ACK is 
> generated correctly , but  in booth modi we lost memory.

In case of an error response (status >= 300) the ACK response is part
of the transaction and transaction layer takes care of sending it.

> The ACK Response Event "nua_r_ack" is hidden them from application.

It is just used to send nua_ack() request to stack. Application is not
supposed to see it.

> So the question is, where is the best place to free the handle ?

When you get final error response in nua_r_invite or nua_i_state with
nua_callstate_terminated?


-- 
Pekka.Pessi mail at nokia.com

------------------------------------------------------------------------------
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to