[Spce-user] Value wight, how it works?

Mykola Zaika mzaika at voiptime.net
Wed Jan 21 08:10:38 EST 2015


Hi,
I have a problem with my routing.

example:
I created one group "Test".
This group include two peers:
peer1 (IP x.x.x.x) port 5060 wight 1
peer2 (IP y.y.y.y) port 5060 wight 2
Also there are created peering rules

I try to change  value "wight", but it does not work. Calls are always
going randomly via peers. One time via peer1, next time via peer2. I do not
understand why.


>From manual:

The selection of peering servers for outbound calls is done in the
following order: 1. length of the matching peering
rules for a call. 2. priority of the peering group.* 3. weight of the
peering servers in the selected peering group*. After one
or more peering group(s) is matched for an outbound call, all servers in
this group are tried, according to their weight
(lower weight has more precedence). If a peering server replies with SIP
codes 408 , 500 or 503 , or if a peering
server doesn’t respond at all, the next peering server in the current
peering group is used as a fallback, one after the
other until the call succeeds. If no more servers are left in the current
peering group, the next group which matches the
peering rules is going to be used.


A bit from log:
Jan 21 13:46:47 spce /usr/sbin/kamailio[16077]: INFO: <script>: Load gws
matching calling part 'sip:032255 at 10.110.10.55' and called user
'peerB_032255' and called part 'sip:peerB_032255 at 10.110.10.55' -
R=sip:peerB_03225
5 at 10.110.10.55 ID=5fc804c63f7f89564addaac057f3d894 at 10.110.10.55
Jan 21 13:46:47 spce /usr/sbin/kamailio[16077]: INFO: <script>: Dialog set
mark type to outgoing - R=sip:peerB_032255 at 10.110.10.55 ID=
5fc804c63f7f89564addaac057f3d894 at 10.110.10.55
Jan 21 13:46:47 spce /usr/sbin/kamailio[16077]: INFO: <script>: Load peer
preferences for peer host '11' -
R=sip:peerB_032255 at 10.110.10.12:5060;transport=udp
ID=5fc804c63f7f89564addaac057f3d894 at 10.110.10.55
Jan 21 13:46:47 spce /usr/sbin/kamailio[16077]: INFO: <script>: Load
dialplan IDs for peer host '11' -
R=sip:peerB_032255 at 10.110.10.12:5060;transport=udp
ID=5fc804c63f7f89564addaac057f3d894 at 10.110.10.55

-- 
З повагою,
Микола Заїка
Компанія VoIPTime,
Тел: +380 32 2328022
mzaika at voiptime.net <ydidukh at voiptime.net>
www.voiptime.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sipwise.com/mailman/private/spce-user_lists.sipwise.com/attachments/20150121/b38b33f1/attachment.html>


More information about the Spce-user mailing list