Browse Source

revert dns enablement

update-rsyslog-config
lazedo 7 years ago
parent
commit
7a8b6a3f03
2 changed files with 6 additions and 7 deletions
  1. +2
    -2
      kamailio/default.cfg
  2. +4
    -5
      kamailio/fast-pickup-role.cfg

+ 2
- 2
kamailio/default.cfg View File

@ -71,14 +71,14 @@ udp4_raw = 0
# #udp_mtu_try_proto = TCP
####### DNS Parameters #########
dns = yes
dns = no
rev_dns = no
dns_try_ipv6 = no
use_dns_cache = on
dns_cache_del_nonexp = yes
dns_cache_flags = 1
dns_cache_gc_interval = 120
dns_cache_init = 1
dns_cache_init = 0
dns_cache_mem = 1000
dns_cache_negative_ttl = 60
dns_try_naptr = no


+ 4
- 5
kamailio/fast-pickup-role.cfg View File

@ -21,12 +21,11 @@ route[FAST_PICKUP_LOAD]
$var(destination) = $xavp(ra=>destination);
$var(i) = 0;
if(!is_ip("$var(host)")) {
if(dns_query("$var(host)", "xyz")) {
$var(destination) = $_s(sip:$dns(xyz=>addr[$var(i)]):$var(port));
}
xlog("L_INFO", "$ci|log|fast|ignoring $var(host) since its not a ip address\n");
} else {
xlog("L_INFO", "$ci|log|fast|adding key $(var(destination){s.md5}) for $var(destination)\n");
$sht(fp=>$(var(destination){s.md5})) = $var(destination);
}
xlog("L_INFO", "$ci|log|fast|adding key $(var(destination){s.md5}) for $var(destination)\n");
$sht(fp=>$(var(destination){s.md5})) = $var(destination);
pv_unset("$xavp(ra)");
}
}


Loading…
Cancel
Save