|
@@ -44,6 +44,7 @@
|
|
#include "../../core/resolve.h"
|
|
#include "../../core/resolve.h"
|
|
#include "../../core/locking.h"
|
|
#include "../../core/locking.h"
|
|
#include "../../core/script_cb.h"
|
|
#include "../../core/script_cb.h"
|
|
|
|
+#include "../../core/kemi.h"
|
|
#include "../../core/mem/shm_mem.h"
|
|
#include "../../core/mem/shm_mem.h"
|
|
#include "../../lib/srdb1/db.h"
|
|
#include "../../lib/srdb1/db.h"
|
|
|
|
|
|
@@ -322,6 +323,29 @@ int utils_forward(struct sip_msg *msg, int id, int proto)
|
|
return ret;
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+/**
|
|
|
|
+ *
|
|
|
|
+ */
|
|
|
|
+/* clang-format off */
|
|
|
|
+static sr_kemi_t sr_kemi_utils_exports[] = {
|
|
|
|
+ { str_init("utils"), str_init("xcap_auth_status"),
|
|
|
|
+ SR_KEMIP_INT, ki_xcap_auth_status,
|
|
|
|
+ { SR_KEMIP_STR, SR_KEMIP_STR, SR_KEMIP_NONE,
|
|
|
|
+ SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+ { {0, 0}, {0, 0}, 0, NULL, { 0, 0, 0, 0, 0, 0 } }
|
|
|
|
+};
|
|
|
|
+/* clang-format on */
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ *
|
|
|
|
+ */
|
|
|
|
+int mod_register(char *path, int *dlflags, void *p1, void *p2)
|
|
|
|
+{
|
|
|
|
+ sr_kemi_modules_add(sr_kemi_utils_exports);
|
|
|
|
+ return 0;
|
|
|
|
+}
|
|
|
|
|
|
#ifdef MI_REMOVED
|
|
#ifdef MI_REMOVED
|
|
/* FIFO functions */
|
|
/* FIFO functions */
|