diff options
Diffstat (limited to 'res/res_hep_rtcp.c')
-rw-r--r-- | res/res_hep_rtcp.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/res/res_hep_rtcp.c b/res/res_hep_rtcp.c index 49a92539f..d77b19c92 100644 --- a/res/res_hep_rtcp.c +++ b/res/res_hep_rtcp.c @@ -149,6 +149,10 @@ static void rtp_topic_handler(void *data, struct stasis_subscription *sub, struc static int load_module(void) { + if (!ast_module_check("res_hep.so") || !hepv3_is_loaded()) { + ast_log(AST_LOG_WARNING, "res_hep is not loaded or running; declining module load\n"); + return AST_MODULE_LOAD_DECLINE; + } stasis_rtp_subscription = stasis_subscribe(ast_rtp_topic(), rtp_topic_handler, NULL); |