Merge "res_pjsip: Patch for res_pjsip_* module load/reload crash" into 16

This commit is contained in:
George Joseph
2018-12-18 10:43:11 -06:00
committed by Gerrit Code Review
4 changed files with 136 additions and 31 deletions

View File

@@ -580,9 +580,13 @@ void ast_sip_session_unregister_sdp_handler(struct ast_sip_session_sdp_handler *
* set channel data based on headers in an incoming message. Similarly,
* a module could reject an incoming request if desired.
*
* \param module Referenced module(NULL safe)
* \param supplement The supplement to register
*/
void ast_sip_session_register_supplement(struct ast_sip_session_supplement *supplement);
void ast_sip_session_register_supplement_with_module(struct ast_module *module, struct ast_sip_session_supplement *supplement);
#define ast_sip_session_register_supplement(supplement) \
ast_sip_session_register_supplement_with_module(AST_MODULE_SELF, supplement)
/*!
* \brief Unregister a an supplement to SIP session processing
@@ -598,6 +602,13 @@ void ast_sip_session_unregister_supplement(struct ast_sip_session_supplement *su
*/
int ast_sip_session_add_supplements(struct ast_sip_session *session);
/*!
* \brief Remove supplements from a SIP session
*
* \param session The session to remove
*/
void ast_sip_session_remove_supplements(struct ast_sip_session *session);
/*!
* \brief Alternative for ast_datastore_alloc()
*