Hello,

LCR module logic is :

When the function /load_gws()/ is called, matching gateways (that are not currently designated as defunct) are ordered for forwarding purposes as follows:

1.

   according to longest Request-URI user part match

2.

   according to tuple's priority

3.

   according to tuple's randomized weight

or, if priority_ordering parameter is set to value 1, as follows:

1.

   according to tuple's priority

2.

   according to tuple's randomized weight

and Smaller priority value means higher priority (highest priority value being 0 and lowest being 255). so I have 3 lcr_rule_target use the same lcr_rule entry but 3 different Gateways and priority. So the order of rules would be longest Request-URI (same) and the priority but the result is:

added matched_gws[0]=[3, 5, 200, 2193562]
added matched_gws[1]=[1, 5, 2, 6888519]
added matched_gws[2]=[2, 5, 50, 2159388]

same prefix but first rule target with priority 200 and then 2 and then 50. I think the result would be priority 2,50 and 100.

¿Or not?

---
I'm SoCIaL, MayBe
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:

Reply via email to