From david.villasmil.work@gmail.com Fri Nov 16 22:33:16 2018 From: David Villasmil To: sr-users@lists.kamailio.org Subject: Re: [SR-Users] Which algorithm to use as load-balance Date: Fri, 16 Nov 2018 21:32:56 +0000 Message-ID: In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0225632711==" --===============0225632711== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Ok i got part of it to work: if(ds_select_routes("1=3D10;11=3D9", "D", "10")) The first 2 setid nodes are filled until the maxload value, looks good: DEBUG: dispatcher [dispatcher.c:679]: ki_ds_select_routes_limit(): routing with setid=3D1 alg=3D10 cnt=3D0 limit=3D0xa (10) DEBUG: dispatcher [dispatch.c:2044]: ds_manage_routes(): set [1] DEBUG: dispatcher [dispatch.c:2148]: ds_manage_routes(): using alg [10] hash [1] DEBUG: dispatcher [dispatch.c:2188]: ds_manage_routes(): selected [10-1-0/1] DEBUG: dispatcher [dispatch.c:2207]: ds_manage_routes(): using first entry [1/1] DEBUG: dispatcher [dispatcher.c:679]: ki_ds_select_routes_limit(): routing with setid=3D11 alg=3D9 cnt=3D1 limit=3D0xa (10) DEBUG: dispatcher [dispatch.c:2044]: ds_manage_routes(): set [11] DEBUG: dispatcher [dispatch.c:2148]: ds_manage_routes(): using alg [9] hash [0] DEBUG: dispatcher [dispatch.c:2188]: ds_manage_routes(): selected [9-11-2/0] DEBUG: dispatcher [dispatch.c:2207]: ds_manage_routes(): using first entry [11/0] DEBUG: dispatcher [dispatcher.c:738]: ki_ds_select_routes_limit(): selected target destinations: 2 exec: *** cfgtrace:request_route=3D[DISPATCH] c=3D[/usr/local/kamailio5/etc/kamailio/kamailio.cfg] l=3D1067 a=3D26 n=3Dxlog DEBUG: