[Kamailio-Users] DNS lookup inside cfg

Uriel Rozenbaum uriel.rozenbaum at gmail.com
Wed Mar 11 15:10:27 CET 2009


[?]
I just didn't want to make some magic moves with perl or exec...

On Wed, Mar 11, 2009 at 12:08 PM, Iñaki Baz Castillo <ibc at aliax.net> wrote:

> 2009/3/11 Uriel Rozenbaum <uriel.rozenbaum at gmail.com>:
> > 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 ...
> > }
>
> No, you can't. No idea of ho to achieve it?
>
>
> --
> Iñaki Baz Castillo
> <ibc at aliax.net>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20090311/c3982332/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 100 bytes
Desc: not available
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20090311/c3982332/attachment.gif>


More information about the sr-users mailing list