[Spce-user] Doubt in call peers routing
Daniel Grotti
dgrotti at sipwise.com
Tue Aug 18 19:03:12 EDT 2015
Hi Alessandro,
Weights just define a probability that the peer is used in general. Does not mean the peer with highest weight will be the fisrt one always, neither that the second will be the one with lowest weight. It just a statistic.
If the first peer fails, it goes to the second in the list loaded by kamailio.
You can check more info about Weights by looking at the lcr module of kamailio:
http://kamailio.org/docs/modules/4.0.x/modules/lcr.html
Daniel
On Aug 18, 2015 8:03 PM, Alessandro Bolletta <alessandro at mediaspot.net> wrote:
>
> Hi,
>
> I’m using Sipwise from 2 months and everything is going great, but there are still some things that are not clear to me:
>
> - When I set the Weight on a peer, which is routing choice’ logic? Calls will be *always* forwarded to the higher value weighted peer? Or they will be distributed in a round-robin fashion?
>
> - When the first peer which Sipwise try to use for the call is unavailable or, for example, returns a 403 error code (forbidden) or whatever code which is not 200 OK, why Sipwise doesn’t try to route the call towards the second peer, following the weight logic?
>
>
>
> Thanks in advance,
>
> Alessandro
More information about the Spce-user
mailing list