summaryrefslogtreecommitdiff
path: root/res/res_pjsip_t38.c
diff options
context:
space:
mode:
authorKinsey Moore <kmoore@digium.com>2014-10-16 14:35:00 +0000
committerKinsey Moore <kmoore@digium.com>2014-10-16 14:35:00 +0000
commit289830cdc60bfe9da197810ef71f5116f56c8020 (patch)
tree09d52379eb77033bd0924091a6d4a3a46d7cdf71 /res/res_pjsip_t38.c
parent50e802445cfcd17eb58a442524a736db3e7f88ed (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_t38.c')
-rw-r--r--res/res_pjsip_t38.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/res/res_pjsip_t38.c b/res/res_pjsip_t38.c
index a031716d9..d1ec07610 100644
--- a/res/res_pjsip_t38.c
+++ b/res/res_pjsip_t38.c
@@ -850,6 +850,8 @@ static int unload_module(void)
*/
static int load_module(void)
{
+ CHECK_PJSIP_SESSION_MODULE_LOADED();
+
ast_sockaddr_parse(&address_ipv4, "0.0.0.0", 0);
ast_sockaddr_parse(&address_ipv6, "::", 0);