summaryrefslogtreecommitdiff
path: root/res/res_pjsip
diff options
context:
space:
mode:
authorJenkins2 <jenkins2@gerrit.asterisk.org>2017-10-10 12:28:13 -0500
committerGerrit Code Review <gerrit2@gerrit.digium.api>2017-10-10 12:28:13 -0500
commit6fc222a1d214dfc5d252b869f138a90092faf3de (patch)
treee99858b2beb994590a6bd866b7bdc849bd39cada /res/res_pjsip
parentf006310bd18bc3ffcc5855455f14ee3f9e72036d (diff)
parent65399a5edac34b4b2b9982fc0ad82489350b57d2 (diff)
Merge "res_pjsip: Add REF_DEBUG info to module references."
Diffstat (limited to 'res/res_pjsip')
-rw-r--r--res/res_pjsip/pjsip_session.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/res/res_pjsip/pjsip_session.c b/res/res_pjsip/pjsip_session.c
index cea72436a..4f3e3be55 100644
--- a/res/res_pjsip/pjsip_session.c
+++ b/res/res_pjsip/pjsip_session.c
@@ -56,10 +56,11 @@ void internal_sip_session_register_supplement(struct ast_sip_session_supplement
}
}
-int ast_sip_session_register_supplement(struct ast_sip_session_supplement *supplement)
+int __ast_sip_session_register_supplement(struct ast_sip_session_supplement *supplement,
+ const char *file, int line, const char *func)
{
internal_sip_session_register_supplement(supplement);
- ast_module_ref(AST_MODULE_SELF);
+ __ast_module_ref(AST_MODULE_SELF, file, line, func);
return 0;
}
@@ -82,10 +83,11 @@ int internal_sip_session_unregister_supplement(struct ast_sip_session_supplement
return res;
}
-void ast_sip_session_unregister_supplement(struct ast_sip_session_supplement *supplement)
+void __ast_sip_session_unregister_supplement(struct ast_sip_session_supplement *supplement,
+ const char *file, int line, const char *func)
{
if (!internal_sip_session_unregister_supplement(supplement)) {
- ast_module_unref(AST_MODULE_SELF);
+ __ast_module_unref(AST_MODULE_SELF, file, line, func);
}
}