diff options
author | Kinsey Moore <kmoore@digium.com> | 2014-10-16 16:32:25 +0000 |
---|---|---|
committer | Kinsey Moore <kmoore@digium.com> | 2014-10-16 16:32:25 +0000 |
commit | 86a4ce495783434f6d4fef5484b44147e4b3a7b7 (patch) | |
tree | d2841fad45e99da1ede5aaad23646a3462c62692 /res/res_pjsip_endpoint_identifier_user.c | |
parent | a770ca168df5052c873a2ca298aafe8bb88277a2 (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_user.c')
-rw-r--r-- | res/res_pjsip_endpoint_identifier_user.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/res/res_pjsip_endpoint_identifier_user.c b/res/res_pjsip_endpoint_identifier_user.c index dba3541ca..beae1cdd4 100644 --- a/res/res_pjsip_endpoint_identifier_user.c +++ b/res/res_pjsip_endpoint_identifier_user.c @@ -114,6 +114,8 @@ static struct ast_sip_endpoint_identifier username_identifier = { static int load_module(void) { + CHECK_PJSIP_MODULE_LOADED(); + ast_sip_register_endpoint_identifier(&username_identifier); return AST_MODULE_LOAD_SUCCESS; } |