[OpenSIPS-Users] How much A records are retained in IP comparison

2011-03-02 Thread Igor Solovyov
Hi, If I use if ($si==some.server.com) { ... } and some.server.com has several A records, are all of them used in upper comparison? How does TTL influence on saved IPs? Regards, Igor. ___ Users mailing list Users@lists.opensips.org

Re: [OpenSIPS-Users] How much A records are retained in IP comparison

2011-03-02 Thread Dave Singer
Igor, I'm pretty sure that won't work at all. You would need to use the transformation ip.resolve. I don't know if it returns multiple IPs but if it does you would want to assign it to an avp that can handle multiple. An example to try: $var(fqdn) = some.server.com; # Not sure if you can do a

Re: [OpenSIPS-Users] How much A records are retained in IP comparison

2011-03-02 Thread Igor Solovyov
Dave, Thanks for idea. I've done the test: route[test] { $var(fqdn) = google.com; $avp(s:ips) = $(var(fqdn){ip.resolve}); xlog(L_ERR, --TEST--: $(avp(s:ips)[0])::$(avp(s:ips)[1])::$(avp(s:ips)[2])); return(-11); } The results: Mar 2 22:20:12 os1 opensips: --TEST--: