diff options
author | Corey Farrell <git@cfware.com> | 2017-10-04 11:46:44 -0400 |
---|---|---|
committer | Corey Farrell <git@cfware.com> | 2017-10-09 12:49:39 -0400 |
commit | 82592c3673ba6b9eaf449407d371cf77549c1e9b (patch) | |
tree | e8bcf84ccb8c54aa1803f60721fc2efbbf1fc073 /include | |
parent | 39b68a41f7238049f8df0b930f8e03a4df0f79c2 (diff) |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/res_pjsip_session.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/asterisk/res_pjsip_session.h b/include/asterisk/res_pjsip_session.h index 7992fd996..073cd2e7a 100644 --- a/include/asterisk/res_pjsip_session.h +++ b/include/asterisk/res_pjsip_session.h @@ -542,6 +542,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() * * There are two major differences between this and ast_datastore_alloc() |