Module: kamailio
Branch: master
Commit: 42b7878ef9975413249d746be00ccda191e523ba
URL:
https://github.com/kamailio/kamailio/commit/42b7878ef9975413249d746be00ccda…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2016-04-22T13:49:03+02:00
maxfwd: exported process_maxfwd() to kemi api
---
Modified: modules/maxfwd/maxfwd.c
---
Diff:
https://github.com/kamailio/kamailio/commit/42b7878ef9975413249d746be00ccda…
Patch:
https://github.com/kamailio/kamailio/commit/42b7878ef9975413249d746be00ccda…
---
diff --git a/modules/maxfwd/maxfwd.c b/modules/maxfwd/maxfwd.c
index eb7764c..3d61636 100644
--- a/modules/maxfwd/maxfwd.c
+++ b/modules/maxfwd/maxfwd.c
@@ -30,6 +30,7 @@
#include "../../dprint.h"
#include "../../error.h"
#include "../../ut.h"
+#include "../../kemi.h"
#include "../../mem/mem.h"
#include "../../cfg/cfg.h"
#include "mf_funcs.h"
@@ -218,3 +219,25 @@ int bind_maxfwd(maxfwd_api_t *api)
return 0;
}
+
+/**
+ *
+ */
+static sr_kemi_t sr_kemi_maxfwd_exports[] = {
+ { str_init("maxfwd"), str_init("process_maxfwd"),
+ SR_KEMIP_INT, process_maxfwd_header,
+ { SR_KEMIP_INT, 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 } }
+};
+
+/**
+ *
+ */
+int mod_register(char *path, int *dlflags, void *p1, void *p2)
+{
+ sr_kemi_modules_add(sr_kemi_maxfwd_exports);
+ return 0;
+}