Module: kamailio
Branch: master
Commit: f89bab70ef9cc842f37799c7c414f40d8ac581ab
URL:
https://github.com/kamailio/kamailio/commit/f89bab70ef9cc842f37799c7c414f40…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-09-15T08:30:26+02:00
dialplan: rename exports to kemi
- function names have to be unique
---
Modified: src/modules/dialplan/dialplan.c
---
Diff:
https://github.com/kamailio/kamailio/commit/f89bab70ef9cc842f37799c7c414f40…
Patch:
https://github.com/kamailio/kamailio/commit/f89bab70ef9cc842f37799c7c414f40…
---
diff --git a/src/modules/dialplan/dialplan.c b/src/modules/dialplan/dialplan.c
index c260d3f315..55a247ae05 100644
--- a/src/modules/dialplan/dialplan.c
+++ b/src/modules/dialplan/dialplan.c
@@ -76,8 +76,8 @@ static int w_dp_replace(sip_msg_t* msg, char* pid, char* psrc, char*
pdst);
static int w_dp_match(sip_msg_t* msg, char* pid, char* psrc);
static int ki_dp_translate(sip_msg_t* msg, int id, str *input, str *output);
-static int ki_dp_translate_1_args(sip_msg_t* msg, int id);
-static int ki_dp_translate_3_args(sip_msg_t* msg, int id, str *input, str *output);
+static int ki_dp_translate_id(sip_msg_t* msg, int id);
+static int ki_dp_translate_vars(sip_msg_t* msg, int id, str *input, str *output);
int dp_replace_fixup(void** param, int param_no);
int dp_replace_fixup_free(void** param, int param_no);
@@ -851,12 +851,12 @@ static sr_kemi_t sr_kemi_dialplan_exports[] = {
SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
},
{ str_init("dialplan"), str_init("dp_translate"),
- SR_KEMIP_INT, ki_dp_translate_1_args,
+ SR_KEMIP_INT, ki_dp_translate_id,
{ SR_KEMIP_INT, SR_KEMIP_NONE, SR_KEMIP_NONE,
SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
},
- { str_init("dialplan"), str_init("dp_translate"),
- SR_KEMIP_INT, ki_dp_translate_3_args,
+ { str_init("dialplan"), str_init("dp_translate_vars"),
+ SR_KEMIP_INT, ki_dp_translate_vars,
{ SR_KEMIP_INT, SR_KEMIP_STR, SR_KEMIP_STR,
SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
},
@@ -933,11 +933,11 @@ static int ki_dp_translate(sip_msg_t* msg, int id, str *input_spv,
str *output_s
}
-static int ki_dp_translate_1_args(sip_msg_t* msg, int id) {
+static int ki_dp_translate_id(sip_msg_t* msg, int id) {
return ki_dp_translate(msg, id, NULL, NULL);
}
-static int ki_dp_translate_3_args(sip_msg_t* msg, int id, str *input, str *output) {
+static int ki_dp_translate_vars(sip_msg_t* msg, int id, str *input, str *output) {
return ki_dp_translate(msg, id, input, output);
}