res_ari: Add "module loaded" check to ari stubs
[asterisk/asterisk.git] / res / res_ari_device_states.c
index d6de5df..f393935 100644 (file)
@@ -331,6 +331,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(&deviceStates);
        if (res) {