Sfoglia il codice sorgente

topoh: new mod param mask_ip

- allow to set the value of IP address used in masked URIs
- reported by Klaus Darilion
(cherry picked from commit ff748db23dfdbf022d37071181628ddf5591b58b)
Daniel-Constantin Mierla 15 anni fa
parent
commit
45f49d7df5
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      modules/topoh/topoh_mod.c

+ 2 - 1
modules/topoh/topoh_mod.c

@@ -41,7 +41,7 @@ MODULE_VERSION
 str _th_key = { "aL9.n8~Hm]Z", 0 };
 str _th_key = { "aL9.n8~Hm]Z", 0 };
 str th_cookie_name = {"TH", 0};
 str th_cookie_name = {"TH", 0};
 str th_cookie_value = {0, 0};
 str th_cookie_value = {0, 0};
-str th_ip = {"10.1.1.2", 0};
+str th_ip = {"10.1.1.10", 0};
 str th_uparam_name = {"line", 0};
 str th_uparam_name = {"line", 0};
 str th_uparam_prefix = {"sr-", 0};
 str th_uparam_prefix = {"sr-", 0};
 str th_vparam_name = {"branch", 0};
 str th_vparam_name = {"branch", 0};
@@ -61,6 +61,7 @@ static int mod_init(void);
 
 
 static param_export_t params[]={
 static param_export_t params[]={
 	{"mask_key",		STR_PARAM, &_th_key.s},
 	{"mask_key",		STR_PARAM, &_th_key.s},
+	{"mask_ip",			STR_PARAM, &th_ip.s},
 	{"mask_callid",		INT_PARAM, &th_param_mask_callid},
 	{"mask_callid",		INT_PARAM, &th_param_mask_callid},
 	{"uparam_name",		STR_PARAM, &th_uparam_name.s},
 	{"uparam_name",		STR_PARAM, &th_uparam_name.s},
 	{"uparam_prefix",	STR_PARAM, &th_uparam_prefix.s},
 	{"uparam_prefix",	STR_PARAM, &th_uparam_prefix.s},