Thank you so much! I understand now. <br><br><br><br><div class="gmail_quote">On Fri, Jun 24, 2011 at 9:33 AM, Bogdan-Andrei Iancu <span dir="ltr"><<a href="mailto:bogdan@opensips.org">bogdan@opensips.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><u></u>
<div bgcolor="#ffffff" text="#000000">
Hi Kent,<br>
<br>
The DR module operates with GW/destinations, not directly with
carries (how you define, understand and use the term of carrier is
your own business).<br>
<br>
so, if you have the case you described (A with 7 Gw[1,2,3,4,5,6,7],
B with one [8] and C with one [9]) and you want for A to have all
GWs tried before moving to B, you can define all GW (from A, B ,C)
do:<br>
<br>
sort_order=0 (none) and gw_list=1,2,3,4,5,6,7,8,9 (try all GWs in
the same order)<br>
<br>
sort_order=1 (radomize) and gw_list=1,2,3,4,5,6,7;8;9 (GWs from the
first set - for A - will be try all the time in different order).<br>
<br>
Regards,<br>
Bogdan<div><div></div><div class="h5"><br>
<br>
<br>
On 06/24/2011 04:23 PM, Kent Pirlo wrote:
<blockquote type="cite">My understanding of the "sort_order" parameter is that
it will apply to sort to the entire group_id. <br>
<br>
So if my LCR should be CarrierA, CarrierB, CarrierC... and i
create gateway_ids (3 thru 9 for CarrierA), 10 for CarrierB, and
1 for CarrierC.. <br>
I can have gw_list as : 3;9,10,1 but it will always try 3
then 4 then 5, then 6.. <br>
<br>
If i apply a sort_order... it will apply to all gw's in the list,
not just 3 thru 9, right? <br>
<br>
The over all order needs to say the same, as they are ordered by
cost.. but 3 thru 9 are the same Carrier and need to be
round-robin or load-balanced.. <br>
<br>
Does that make sense? <br>
<br>
<br>
<br>
<br>
<div class="gmail_quote">On Mon, Jun 13, 2011 at 9:42 AM, Andrew
Pogrebennyk <span dir="ltr"><<a href="mailto:andrew.pogrebennyk@portaone.com" target="_blank">andrew.pogrebennyk@portaone.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">
<div>On 13.06.2011 16:40, Kent Pirlo wrote:<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
212555, gwlist = 3,5,1<br>
<br>
now.. lets say gw "3" actually needs to try multiple ips
for that carrier before going on to gw "5", is this
possible while using drouting or do i need to scrap the
drouting module to do something complex like this..<br>
</blockquote>
<br>
</div>
It is possible and described in the module documentation:<br>
<br>
Also the module allows the usage of groups in the destination
lists. A group of destinations is delimited by semi-colon
char. inside the whole destination list ( like:
2,4;5,78,23;4;7;2 ). The destinations from within a group may
be act differently (like load-balancing, random selection,
etc), depending of the “sort_order” parameter - more about
this is available under the “do_routing()” function section.<br>
<br>
<a href="http://www.opensips.org/html/docs/modules/1.6.x/drouting.html#id294582" target="_blank">http://www.opensips.org/html/docs/modules/1.6.x/drouting.html#id294582</a><br>
<br>
-- <br>
Sincerely,<br>
Andrew Pogrebennyk<br>
<br>
<br>
</blockquote>
</div>
</blockquote>
<br>
</div></div><font color="#888888"><pre cols="72">--
Bogdan-Andrei Iancu
OpenSIPS solutions and "know-how"</pre>
</font></div>
<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>