Igor,<div><br></div><div>I'm pretty sure that won't work at all. You would need to use the transformation ip.resolve. <div>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.</div>
<div>An example to try:<br><div>$var(fqdn) = <meta http-equiv="content-type" content="text/html; charset=utf-8">"<a href="http://some.server.com/" target="_blank">some.server.com</a>"; # Not sure if you can do a transformation directly on a string. Never tried.</div>
<div>$avp(s:ips) = $(var(fqdn){ip.resolve});</div><div>xlog("INFO", "$(avp(s:ips)[0])::$(avp(s:ips)[1])::$(avp(s:ips)[2])\n");</div><meta http-equiv="content-type" content="text/html; charset=utf-8"><meta http-equiv="content-type" content="text/html; charset=utf-8"><div>
if ( avp_check("$avp(s:ips)", "eq/$si/") ) { .... }</div><div><br></div><div>Let me know what you find.</div><div>Dave<br><br><div class="gmail_quote">On Wed, Mar 2, 2011 at 9:20 AM, Igor Solovyov <span dir="ltr"><<a href="mailto:igor@choochee.com">igor@choochee.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi,<br><br>If I use <br>if ($si=="<a href="http://some.server.com" target="_blank">some.server.com</a>")<br>
{<br>...<br>}<br>and <a href="http://some.server.com" target="_blank">some.server.com</a> has several A records,<br>are all of them used in upper comparison?<br>
How does TTL influence on saved IPs?<br><br>Regards,<br><font color="#888888">Igor.<br>
</font><br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div></div></div>