[Kamailio-Users] DNS lookup inside cfg

Uriel Rozenbaum uriel.rozenbaum at gmail.com
Wed Mar 11 14:14:26 CET 2009


Genlemen,

I'll be quick: is there any way to perform a DNS lookup within the .cfg?

The example would be:

avp(s:server_name) = "kamailio.org";
avp(s:server_ip) = "192.168.1.100";

if (DNS_LOOKUP_FUNCTION(avp(s:server_name)) == avp(s:server_ip))
{
   ... do something ...
}
else
{
   ... do something else ...
}

Thanks in advance,
Uriel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kamailio.org/pipermail/users/attachments/20090311/fb12b213/attachment.htm 


More information about the Users mailing list