res_pjsip: Fix issues that prevented shutdown of modules.

res_pjsip and res_pjsip_session had circular references, preventing both
modules from shutting down.
* Move session supplement registration to res_pjsip.
* Use create internal functions for use by pjsip_message_filter.c.

ASTERISK-27306

Change-Id: Ifbd5c19ec848010111afeab2436f9699da06ba6b
This commit is contained in:
Corey Farrell
2017-10-04 11:46:44 -04:00
parent 39b68a41f7
commit 82592c3673
6 changed files with 205 additions and 88 deletions

View File

@@ -541,6 +541,13 @@ int ast_sip_session_register_supplement(struct ast_sip_session_supplement *suppl
*/
void ast_sip_session_unregister_supplement(struct ast_sip_session_supplement *supplement);
/*!
* \brief Add supplements to a SIP session
*
* \param session The session to initialize
*/
int ast_sip_session_add_supplements(struct ast_sip_session *session);
/*!
* \brief Alternative for ast_datastore_alloc()
*