<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix"><tt>Hi Nick,<br>
<br>
What will help you is a kind of route_to_gw() but instead of
taking as param a single GW, to take a list of GWs ? and to iterate
through using use_next_gw() ?<br>
<br>
Also, what Nick Altman says is very very true - you can simply
populate the AVPs he mentioned (do it from script, loading from
a DB, replacing the functionality of do_routing() ) and do the
use_next_gw() ......it simply works....and it simply scale :)<br>
<br>
Regards,<br>
</tt>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
On 11.02.2014 21:37, Nick Cameo wrote:<br>
</div>
<blockquote
cite="mid:CAGWRaZYT-o=yXdtGh3Gy+Amo7a2DpxaS7fG6db3_czpm_LDSHA@mail.gmail.com"
type="cite">
<div dir="ltr"><br>
<div class="gmail_extra">
<div class="gmail_quote">On Thu, Feb 6, 2014 at 1:54 PM, Nick
Altmann <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:nick.altmann@gmail.com" target="_blank">nick.altmann@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">Carrier
is just a gateways list. You may also set weight for each
gw<br>
and drouting will choose gw's due its weight.<br>
Route_to_carrier() gets carrier parameters (gateways list)
into avps<br>
and set $ru to first gw address.<br>
Use_next_gw() extract next gw parameters from avps and set
$ru to the<br>
new gateway.<br>
So, you may try to work with these avps to change routing
behaviour.<br>
<div class="im HOEnZb"><br>
</div>
</blockquote>
<div><br>
</div>
<div style="">Hello Nick, </div>
<div style=""><br>
</div>
<div style="">Thank you for your response. After looking
into it further I realized that this approach is not very
scalable. The reason why</div>
<div style="">is because we have over 30 interconnects (30
gateways), and would have to maintain all of them to the
carrier table.</div>
<div style=""><br>
</div>
<div style="">Is there not way to pass a gwlist list to a
function dynamically (at run time) that will route to that
call with failover? do_routing</div>
<div style="">would be perfect! If it adheres to the order
of the gateway list.</div>
<div style=""><br>
</div>
<div style="">PS I really don't want to change the ruri in
perl either if this functionality can be made available in
the script.</div>
<div style=""><br>
</div>
<div style="">Kind Regards,</div>
<div style=""><br>
</div>
<div style="">Nick.</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>