Module: kamailio
Branch: master
Commit: 4f839fbf3793cd605dc9d185e18467a708092c02
URL:
https://github.com/kamailio/kamailio/commit/4f839fbf3793cd605dc9d185e18467a…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-04-28T11:20:17+02:00
utils: exported functions to kemi framework
---
Modified: src/modules/utils/utils.c
---
Diff:
https://github.com/kamailio/kamailio/commit/4f839fbf3793cd605dc9d185e18467a…
Patch:
https://github.com/kamailio/kamailio/commit/4f839fbf3793cd605dc9d185e18467a…
---
diff --git a/src/modules/utils/utils.c b/src/modules/utils/utils.c
index d5aed32..026eb23 100644
--- a/src/modules/utils/utils.c
+++ b/src/modules/utils/utils.c
@@ -44,6 +44,7 @@
#include "../../core/resolve.h"
#include "../../core/locking.h"
#include "../../core/script_cb.h"
+#include "../../core/kemi.h"
#include "../../core/mem/shm_mem.h"
#include "../../lib/srdb1/db.h"
@@ -322,6 +323,29 @@ int utils_forward(struct sip_msg *msg, int id, int proto)
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
/* FIFO functions */