<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<tt>Hi Sasmita,<br>
<br>
Take a look at the carrier flags definition (1.1.4.2):<br>
<a class="moz-txt-link-freetext" href="http://www.opensips.org/html/docs/modules/2.1.x/drouting.html#id293400">http://www.opensips.org/html/docs/modules/2.1.x/drouting.html#id293400</a><br>
</tt><br>
<tt>flags : 0x1 - use weight for sorting the list and not definition
order; 0x2 - use only the first gateway from the carrier
(depending on the sorting); 0x4 - disable the usage of this
carrier<br>
<br>
So, you need to have the flag 0x1 to do weight based selection
inside the carrier.<br>
<br>
Best regards,<br>
</tt>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
<div class="moz-cite-prefix">On 03.05.2016 10:57, Sasmita Panda
wrote:<br>
</div>
<blockquote
cite="mid:CALf-Q461UQ5z=3LF-rGvObggNuc6-J1PFgqk_FaACr2B1Wm5dA@mail.gmail.com"
type="cite">
<div dir="ltr">Hi All ,
<div><br>
</div>
<div> I am using opensips-1.11 and seting up the dynamic
routing .</div>
<div>I wanted to randomly distribute the call between two
gateways .</div>
<div> </div>
<div> When I have added two gateways with weight 50%
each in the dr_carriers table and set flags=2 , it didnt
worked . </div>
<div><br>
</div>
<div> But when i just changed the flags=3 , it started
working , calls get distributed randomly between two gateways
. </div>
<div><br>
</div>
<div> Is there any dependency of the call distribution with
the flags parameter of dr_carriers table ?</div>
<div> <br clear="all">
<div>
<div class="gmail_signature">
<div dir="ltr"><b><i>Thanks & Regards</i></b>
<div><i>Sasmita Panda</i></div>
<div><i>Network Testing and Software Engineer</i></div>
<div><i>3CLogic , ph:07827611765</i></div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>