Dave,<br><br>Thanks for idea.<br>I've done the test:<br>route[test]<br>{<br> $var(fqdn) = "<a href="http://google.com">google.com</a>"; <br> $avp(s:ips) = $(var(fqdn){ip.resolve});<br> xlog("L_ERR", "--TEST--: $(avp(s:ips)[0])::$(avp(s:ips)[1])::$(avp(s:ips)[2])");<br>
return(-11);<br>}<br><br>The results:<br>Mar 2 22:20:12 os1 opensips: --TEST--: 74.125.87.99::<null>::<null><br>Mar 2 22:20:16 os1 opensips: --TEST--: 74.125.87.104::<null>::<null><br>As you can see we have just a Round Robbin.<br>
<br>Regards,<br>Igor.<br><br><div class="gmail_quote">On Wed, Mar 2, 2011 at 7:49 PM, Dave Singer <span dir="ltr"><<a href="mailto:dave.singer@wideideas.com">dave.singer@wideideas.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
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) = "<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><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"><div><div></div><div class="h5">On Wed, Mar 2, 2011 at 9:20 AM, Igor Solovyov <span dir="ltr"><<a href="mailto:igor@choochee.com" target="_blank">igor@choochee.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div></div><div class="h5">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></div></div>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">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>
</blockquote></div><br>