Module: kamailio
Branch: master
Commit: 07f15a300b49774e5017afa631e9ad34dd417bd8
URL:
https://github.com/kamailio/kamailio/commit/07f15a300b49774e5017afa631e9ad3…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2016-04-12T08:22:37+02:00
sl: export embedded api functions via mod_register()
---
Modified: modules/sl/sl.c
---
Diff:
https://github.com/kamailio/kamailio/commit/07f15a300b49774e5017afa631e9ad3…
Patch:
https://github.com/kamailio/kamailio/commit/07f15a300b49774e5017afa631e9ad3…
---
diff --git a/modules/sl/sl.c b/modules/sl/sl.c
index 12db27c..7028094 100644
--- a/modules/sl/sl.c
+++ b/modules/sl/sl.c
@@ -50,6 +50,7 @@
#include "../../mod_fix.h"
#include "../../script_cb.h"
#include "../../mem/mem.h"
+#include "../../kemi.h"
#include "../../modules/tm/tm_load.h"
@@ -499,3 +500,27 @@ static int bind_sl(sl_api_t* api)
return 0;
}
+
+/**
+ *
+ */
+static sr_kemi_t sl_kemi_exports[] = {
+ { str_init("sl"), str_init("sreply"),
+ SR_KEMIP_INT, sl_send_reply_str,
+ { SR_KEMIP_INT, SR_KEMIP_STR, SR_KEMIP_NONE,
+ SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
+ },
+ { str_init("sl"), str_init("freply"),
+ SR_KEMIP_INT, send_reply,
+ { SR_KEMIP_INT, 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 } }
+};
+
+int mod_register(char *path, int *dlflags, void *p1, void *p2)
+{
+ sr_kemi_modules_add(sl_kemi_exports);
+ return 0;
+}