Add some function to fill an (AVP)/(AVP Group) with the IP of a domain name passed as argument.
Example:
dns_lookup_avp("$rd", "$avp(s:ruri_dom_ip)");
if ($avp(s:ruri_dom_ip) ~= "192.168.100")
{
xlog("Request from local network");
}
else
{
exit;
};
Any clarification needed, contact me:
uriel dot rozenbaum at gmail dot com