[OpenSIPS-Users] I need some understanding how does opensips do loadbalancing with SRV record .

Bogdan-Andrei Iancu bogdan at opensips.org
Thu Jan 23 13:43:33 UTC 2025


Hi Sasmita,

There is no round robin, but weight based random selection. If the 
weights are both equal, you should get a half-half distribution on large 
numbers of calls.

Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
   https://www.opensips-solutions.com
   https://www.siphub.com

On 22.01.2025 16:10, Sasmita Panda wrote:
> Hi ,
>
> I have a domain mapped as SRV as below in route 53  .
> _sip._udp.fs.sip.dev.xxx.com <http://udp.fs.sip.dev.xxx.com> ttl : 60sec
> 1 10 6080 1.1.1.1
> 1 10 6080 2.2.2.2
> Inside opensips config
> if(is_from_gw())
> {
> sethost("fs.sip.dev.xxx.com <http://fs.sip.dev.xxx.com>");
> setport("");
> route(inbound);
> */}/*
> */
> /*
> */As for the SRV record , the explanation says , opensips must do 
> round robin while giving a call to the destination . I mean , when I 
> am placing multiple calls both servers must get a call one by one , 
> but I can see 2/3 calls at a time going to the same server . Why is 
> this happening ? /*
> */
> /*
> */
> /*
> */Thanks & Regards/*
> /Sasmita Panda/
> /Senior Network Testing and Software Engineer/
> /3CLogic , ph:07827611765
> /
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20250123/eef31eb7/attachment.html>


More information about the Users mailing list