summaryrefslogtreecommitdiff
path: root/res/res_pjsip_endpoint_identifier_anonymous.c
diff options
context:
space:
mode:
authorKinsey Moore <kmoore@digium.com>2014-10-16 16:32:25 +0000
committerKinsey Moore <kmoore@digium.com>2014-10-16 16:32:25 +0000
commit86a4ce495783434f6d4fef5484b44147e4b3a7b7 (patch)
treed2841fad45e99da1ede5aaad23646a3462c62692 /res/res_pjsip_endpoint_identifier_anonymous.c
parenta770ca168df5052c873a2ca298aafe8bb88277a2 (diff)
PJSIP: Enforce module load dependencies
This enforces that res_pjsip, res_pjsip_session, and res_pjsip_pubsub have loaded properly before attempting to load any modules that depend on them since the module loader system is not currently capable of resolving module dependencies on its own. ASTERISK-24312 #close Reported by: Dafi Ni Review: https://reviewboard.asterisk.org/r/4062/ ........ Merged revisions 425690 from http://svn.asterisk.org/svn/asterisk/branches/12 ........ Merged revisions 425691 from http://svn.asterisk.org/svn/asterisk/branches/13 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@425700 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_pjsip_endpoint_identifier_anonymous.c')
-rw-r--r--res/res_pjsip_endpoint_identifier_anonymous.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/res/res_pjsip_endpoint_identifier_anonymous.c b/res/res_pjsip_endpoint_identifier_anonymous.c
index f0ea6dd50..a7956b589 100644
--- a/res/res_pjsip_endpoint_identifier_anonymous.c
+++ b/res/res_pjsip_endpoint_identifier_anonymous.c
@@ -108,6 +108,8 @@ static struct ast_sip_endpoint_identifier anonymous_identifier = {
static int load_module(void)
{
+ CHECK_PJSIP_MODULE_LOADED();
+
ast_sip_register_endpoint_identifier(&anonymous_identifier);
return AST_MODULE_LOAD_SUCCESS;
}