Browse code

dialplan: rename exports to kemi

- function names have to be unique

(cherry picked from commit f89bab70ef9cc842f37799c7c414f40d8ac581ab)

Daniel-Constantin Mierla authored on 15/09/2022 06:30:26
Showing 1 changed files
... ...
@@ -76,8 +76,8 @@ static int w_dp_replace(sip_msg_t* msg, char* pid, char* psrc, char* pdst);
76 76
 static int w_dp_match(sip_msg_t* msg, char* pid, char* psrc);
77 77
 
78 78
 static int ki_dp_translate(sip_msg_t* msg, int id, str *input, str *output);
79
-static int ki_dp_translate_1_args(sip_msg_t* msg, int id);
80
-static int ki_dp_translate_3_args(sip_msg_t* msg, int id, str *input, str *output);
79
+static int ki_dp_translate_id(sip_msg_t* msg, int id);
80
+static int ki_dp_translate_vars(sip_msg_t* msg, int id, str *input, str *output);
81 81
 
82 82
 int dp_replace_fixup(void** param, int param_no);
83 83
 int dp_replace_fixup_free(void** param, int param_no);
... ...
@@ -851,12 +851,12 @@ static sr_kemi_t sr_kemi_dialplan_exports[] = {
851 851
 			SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
852 852
 	},
853 853
 	{ str_init("dialplan"), str_init("dp_translate"),
854
-		SR_KEMIP_INT, ki_dp_translate_1_args,
854
+		SR_KEMIP_INT, ki_dp_translate_id,
855 855
 		{ SR_KEMIP_INT, SR_KEMIP_NONE, SR_KEMIP_NONE,
856 856
 			SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
857 857
 	},
858
-	{ str_init("dialplan"), str_init("dp_translate"),
859
-		SR_KEMIP_INT, ki_dp_translate_3_args,
858
+	{ str_init("dialplan"), str_init("dp_translate_vars"),
859
+		SR_KEMIP_INT, ki_dp_translate_vars,
860 860
 		{ SR_KEMIP_INT, SR_KEMIP_STR, SR_KEMIP_STR,
861 861
 			SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
862 862
 	},
... ...
@@ -933,11 +933,11 @@ static int ki_dp_translate(sip_msg_t* msg, int id, str *input_spv, str *output_s
933 933
 
934 934
 }
935 935
 
936
-static int ki_dp_translate_1_args(sip_msg_t* msg, int id) {
936
+static int ki_dp_translate_id(sip_msg_t* msg, int id) {
937 937
 	return ki_dp_translate(msg, id, NULL, NULL);
938 938
 }
939 939
 
940
-static int ki_dp_translate_3_args(sip_msg_t* msg, int id, str *input, str *output) {
940
+static int ki_dp_translate_vars(sip_msg_t* msg, int id, str *input, str *output) {
941 941
 	return ki_dp_translate(msg, id, input, output);
942 942
 }
943 943