Menu

#141 Add dns_lookup_avp to cfgutils module

ver devel
open
nobody
modules (93)
5
2009-03-15
2009-03-15
Anonymous
No

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

Discussion


Log in to post a comment.