<div dir="ltr">I have done something similar as follows<div><br></div><div><div><br></div><div>if($rU=~"^[0-3][0-9][0-9]$")</div><div>{</div><div><span class="" style="white-space:pre">   </span>$var(valor)=1;</div><div>}</div></div><div><br></div><div>And later..</div><div><br></div><div><div>if(!ds_select_domain("$var(valor)", "4")) {</div><div>                sl_send_reply("500", "Service Unavailable");</div><div>                xlog("L_INFO","[$fU@$si:$sp]{$rm} Sin destinos disponibles para $rd \n");</div><div><br></div><div>                exit;</div><div>        }</div><div><br></div></div><div>That could be one idea to do that...</div><div><br></div><div>On your load balance table you have to use 0 -> All</div><div><br></div><div>1 -> Destination 1</div><div><br></div><div>2 -> Destination 2</div><div><br></div><div>an so.</div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-04-01 12:26 GMT+02:00 NITESH BANSAL <span dir="ltr"><<a href="mailto:nitesh.bansal@outlook.com" target="_blank">nitesh.bansal@outlook.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<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>_______________________________________________<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>