2009/3/11 Uriel Rozenbaum <uriel.rozenbaum@gmail.com>:
No, you can't. No idea of ho to achieve it?> 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 ...
> }
--
Iņaki Baz Castillo
<ibc@aliax.net>