diff options
author | Kinsey Moore <kmoore@digium.com> | 2014-10-16 14:35:00 +0000 |
---|---|---|
committer | Kinsey Moore <kmoore@digium.com> | 2014-10-16 14:35:00 +0000 |
commit | 289830cdc60bfe9da197810ef71f5116f56c8020 (patch) | |
tree | 09d52379eb77033bd0924091a6d4a3a46d7cdf71 /res/res_pjsip_publish_asterisk.c | |
parent | 50e802445cfcd17eb58a442524a736db3e7f88ed (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
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@425691 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_pjsip_publish_asterisk.c')
-rw-r--r-- | res/res_pjsip_publish_asterisk.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/res/res_pjsip_publish_asterisk.c b/res/res_pjsip_publish_asterisk.c index 8d4d8510d..e1b095e7c 100644 --- a/res/res_pjsip_publish_asterisk.c +++ b/res/res_pjsip_publish_asterisk.c @@ -856,6 +856,8 @@ static int regex_filter_handler(const struct aco_option *opt, struct ast_variabl static int load_module(void) { + CHECK_PJSIP_PUBSUB_MODULE_LOADED(); + ast_sorcery_apply_default(ast_sip_get_sorcery(), "asterisk-publication", "config", "pjsip.conf,criteria=type=asterisk-publication"); if (ast_sorcery_object_register(ast_sip_get_sorcery(), "asterisk-publication", asterisk_publication_config_alloc, NULL, NULL)) { |