res_ari: Add "module loaded" check to ari stubs
[asterisk/asterisk.git] / res / res_ari_sounds.c
index fded7fb..8d5928a 100644 (file)
@@ -219,6 +219,10 @@ static int unload_module(void)
 static int load_module(void)
 {
        int res = 0;
+
+       CHECK_ARI_MODULE_LOADED();
+
+
        stasis_app_ref();
        res |= ast_ari_add_handler(&sounds);
        if (res) {