6 May 2012 10:52
Lifetime of NUTAG_REFER_EVENT returned pointer
Hi,
I have a question with regards to the handling of the nua_i_refer event.
As indicated in the documentation, the application must get the refer event (NUTAG_REFER_EVENT()) and the referred by (SIPTAG_REFERRED_BY()) pointers and pass these to the call to nua_invite to establish the session to the refer target.
What I am wondering is what is the lifetime of these pointers before they get released automatically by Sofia?
In particular:
1. Is it ok for the application to *not* call nua_invite in the nua_i_refer callback handler, but instead store these pointers and call nua_invite some time later from another entry point?
2. If the answer to 1 is yes, will the stack automatically free these pointers after some time (through a timer)?
3. If the answer to 2 is yes, does Sofia generates an event so that the application can tell if these pointers have been freed?
Many thanks for your assistance,
Olivier.
------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________ Sofia-sip-devel mailing list Sofia-sip-devel@... https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel
RSS Feed