<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Thanks guys for your ideas, I finally think that I have an idea on how to do it.<div><br></div><div>Nitesh<br><br><div><hr id="stopSpelling">Date: Fri, 1 Apr 2016 16:28:02 +0200<br>From: alberto.sagredo@avanzada7.com<br>To: sr-users@lists.sip-router.org<br>Subject: Re: [SR-Users] Load balancing traffic based on SIP URI<br><br><div dir="ltr">Hi Federico. In mi case i have to force some RURIs to a determinate Asterisk . There was some logic to do that instead letting kamailio to handle that situations<div><br></div><div>I haven't tested option 3 , but it must do what you expect i think. Maybe you would need to adjust </div><h3 style="color:rgb(0,0,0);font-family:Helvetica,Arial;"> <code>ds_hash_expire</code></h3><div><code>Regards</code></div></div><div class="ecxgmail_extra"><br><div class="ecxgmail_quote">2016-04-01 14:46 GMT+02:00 Federico Cabiddu <span dir="ltr"><<a href="mailto:federico.cabiddu@gmail.com" target="_blank">federico.cabiddu@gmail.com</a>></span>:<br><blockquote class="ecxgmail_quote" style="border-left:1px #ccc solid;padding-left:1ex;"><div dir="ltr">Hi,<div>if I understand correctly your problem is that the first INVITE for a specific URI will go to a server and the conference will be instantiated there. Then you must route all the INVITEs from the other participants to the same server, is it right?</div><div style="text-align:justify;">If this is the case why not use algorithm 3 in ds_select_ds (or ds_select_domain) which does hashing over Request-URI?</div><div style="text-align:justify;">(<a href="http://www.kamailio.org/docs/modules/devel/modules/dispatcher.html#dispatcher.f.ds_select_dst" target="_blank">http://www.kamailio.org/docs/modules/devel/modules/dispatcher.html#dispatcher.f.ds_select_dst</a>)</div><div style="text-align:justify;"><br></div><div style="text-align:justify;">Regards,</div><div style="text-align:justify;"><br></div><div style="text-align:justify;">Federico</div></div><div class="ecxgmail_extra"><br><div class="ecxgmail_quote"><div><div class="h5">On Fri, Apr 1, 2016 at 12:26 PM, NITESH BANSAL <span dir="ltr"><<a href="mailto:nitesh.bansal@outlook.com" target="_blank">nitesh.bansal@outlook.com</a>></span> wrote:<br></div></div><blockquote class="ecxgmail_quote" style="border-left:1px #ccc solid;padding-left:1ex;"><div><div class="h5">


<div><div dir="ltr">Hello,<div><br></div><div>I want to use Kamailio to load balance traffic across multiple asterisks.</div><div>The problem is that my SIP traffic is related to conference, so if a SIP call</div><div>for a particular URI is sent to an Asterisk instance, any subsequent calls for that</div><div>SIP URI should be sent to the same Asterisk instance.</div><div>Is there anyway to achieve this in Kamailio?</div><div><br></div><div>Thanks,</div><div>Nitesh</div>                                        </div></div>
<br></div></div><span>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></span></blockquote></div><br></div>
<br>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</div></div>                                     </div></body>
</html>