Module: kamailio
Branch: master
Commit: 183ff04e00e592cc2c7db54732c6a3bb8fb75bb8
URL:
https://github.com/kamailio/kamailio/commit/183ff04e00e592cc2c7db54732c6a3b…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-07-15T16:41:22+02:00
siputils: exported options_reply() to kemi framework
---
Modified: src/modules/siputils/options.c
Modified: src/modules/siputils/options.h
Modified: src/modules/siputils/siputils.c
---
Diff:
https://github.com/kamailio/kamailio/commit/183ff04e00e592cc2c7db54732c6a3b…
Patch:
https://github.com/kamailio/kamailio/commit/183ff04e00e592cc2c7db54732c6a3b…
---
diff --git a/src/modules/siputils/options.c b/src/modules/siputils/options.c
index 484c65f75f..674dbfec70 100644
--- a/src/modules/siputils/options.c
+++ b/src/modules/siputils/options.c
@@ -41,7 +41,7 @@ static str opt_200_rpl = str_init("OK");
static str opt_500_rpl = str_init("Server internal error");
-int opt_reply(struct sip_msg* _msg, char* _foo, char* _bar) {
+int ki_opt_reply(struct sip_msg* _msg) {
str rpl_hf;
int offset = 0;
@@ -127,3 +127,6 @@ int opt_reply(struct sip_msg* _msg, char* _foo, char* _bar) {
return 1;
}
+int opt_reply(struct sip_msg* _msg, char* _foo, char* _bar) {
+ return ki_opt_reply(_msg);
+}
diff --git a/src/modules/siputils/options.h b/src/modules/siputils/options.h
index 36f7bd97dc..a045754bf8 100644
--- a/src/modules/siputils/options.h
+++ b/src/modules/siputils/options.h
@@ -63,6 +63,7 @@ extern str opt_accept_enc;
extern str opt_accept_lang;
extern str opt_supported;
+int ki_opt_reply(struct sip_msg* _msg);
int opt_reply(struct sip_msg* _msg, char* _foo, char* _bar);
#endif
diff --git a/src/modules/siputils/siputils.c b/src/modules/siputils/siputils.c
index f4376cd67b..dcd3a6a6b3 100644
--- a/src/modules/siputils/siputils.c
+++ b/src/modules/siputils/siputils.c
@@ -540,6 +540,11 @@ static sr_kemi_t sr_kemi_siputils_exports[] = {
{ SR_KEMIP_STR, SR_KEMIP_STR, SR_KEMIP_NONE,
SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
},
+ { str_init("siputils"), str_init("options_reply"),
+ SR_KEMIP_INT, ki_opt_reply,
+ { 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 } }
};