Module: kamailio
Branch: master
Commit: fd0794bc87c15d04c78c5bf2f23a8afc550b24eb
URL:
https://github.com/kamailio/kamailio/commit/fd0794bc87c15d04c78c5bf2f23a8af…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-04-07T20:13:27+02:00
dispatcher: set default value for ds_dns_interval to 600
- use modparam value for ds_dns_mode
---
Modified: src/modules/dispatcher/dispatcher.c
---
Diff:
https://github.com/kamailio/kamailio/commit/fd0794bc87c15d04c78c5bf2f23a8af…
Patch:
https://github.com/kamailio/kamailio/commit/fd0794bc87c15d04c78c5bf2f23a8af…
---
diff --git a/src/modules/dispatcher/dispatcher.c b/src/modules/dispatcher/dispatcher.c
index 471070fe4e..e877e3bf6c 100644
--- a/src/modules/dispatcher/dispatcher.c
+++ b/src/modules/dispatcher/dispatcher.c
@@ -121,8 +121,7 @@ int ds_timer_mode = 0;
int ds_attrs_none = 0;
int ds_load_mode = 0;
uint32_t ds_dns_mode = DS_DNS_MODE_INIT;
-static int ds_dns_mode_param = 0;
-static int ds_dns_interval = 0;
+static int ds_dns_interval = 600;
str ds_outbound_proxy = STR_NULL;
@@ -299,7 +298,7 @@ static param_export_t params[]={
{"ds_db_extra_attrs", PARAM_STR, &ds_db_extra_attrs},
{"ds_load_mode", PARAM_INT, &ds_load_mode},
{"reload_delta", PARAM_INT, &ds_reload_delta },
- {"ds_dns_mode", PARAM_INT, &ds_dns_mode_param},
+ {"ds_dns_mode", PARAM_INT, &ds_dns_mode},
{"ds_dns_interval", PARAM_INT, &ds_dns_interval},
{0,0,0}
};
@@ -330,8 +329,6 @@ static int mod_init(void)
param_hooks_t phooks;
param_t *pit = NULL;
- ds_dns_mode = 1U<<(unsigned int)ds_dns_mode_param;
-
if(ds_dns_mode & DS_DNS_MODE_TIMER) {
if(ds_dns_interval<=0) {
LM_WARN("dns interval parameter not set - using 600\n");