Module: kamailio
Branch: master
Commit: 196537b0a226ed8da690d40a0f9526b6fb2a443e
URL:
https://github.com/kamailio/kamailio/commit/196537b0a226ed8da690d40a0f9526b…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-04-06T21:57:17+02:00
dialog: exported dlg_manage() to kemi
---
Modified: src/modules/dialog/dialog.c
---
Diff:
https://github.com/kamailio/kamailio/commit/196537b0a226ed8da690d40a0f9526b…
Patch:
https://github.com/kamailio/kamailio/commit/196537b0a226ed8da690d40a0f9526b…
---
diff --git a/src/modules/dialog/dialog.c b/src/modules/dialog/dialog.c
index e784db1..2dc30d8 100644
--- a/src/modules/dialog/dialog.c
+++ b/src/modules/dialog/dialog.c
@@ -56,6 +56,7 @@
#include "../../core/pvar.h"
#include "../../core/mod_fix.h"
#include "../../core/script_cb.h"
+#include "../../core/kemi.h"
#include "../../core/fmsg.h"
#include "../../core/hashes.h"
#include "../../core/counters.h"
@@ -1428,6 +1429,30 @@ static int fixup_dlg_remote_profile(void** param, int param_no)
return 0;
}
+/**
+ *
+ */
+/* clang-format off */
+static sr_kemi_t sr_kemi_dialog_exports[] = {
+ { str_init("dialog"), str_init("dlg_manage"),
+ SR_KEMIP_INT, dlg_manage,
+ { SR_KEMIP_NONE, SR_KEMIP_NONE, 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_dialog_exports);
+ return 0;
+}
+
/**************************** RPC functions ******************************/
/*!
* \brief Helper method that outputs a dialog via the RPC interface