|
|
|
@ -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)"); |
|
|
|
} |
|
|
|
} |
|
|
|
|