diff options
author | Jenkins2 <jenkins2@gerrit.asterisk.org> | 2017-04-27 17:14:48 -0500 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2017-04-27 17:14:48 -0500 |
commit | 066659a38327f988cba181c0ff23ec9073a7ddb8 (patch) | |
tree | a77acb6b6d6ce54471f390b7ab9bfad90a807578 /include | |
parent | 175297fe3456adf648382001c1b2ded3ff83462a (diff) | |
parent | d6b2a58736a6c831f11a8d28a2a1d74d83bd74cb (diff) |
Merge "res_pjsip_session: Add cleanup to ast_sip_session_terminate"
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/res_pjsip_session.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/asterisk/res_pjsip_session.h b/include/asterisk/res_pjsip_session.h index d4d3f705a..10e55f133 100644 --- a/include/asterisk/res_pjsip_session.h +++ b/include/asterisk/res_pjsip_session.h @@ -459,6 +459,10 @@ struct ast_sip_session *ast_sip_session_create_outgoing(struct ast_sip_endpoint * * \param session The session to terminate * \param response The response code to use for termination if possible + * + * \warning Calling this function MAY cause the last session reference to be + * released and the session destructor to be called. If you need to do something + * with session after this call, be sure to bump the ref count before calling terminate. */ void ast_sip_session_terminate(struct ast_sip_session *session, int response); |