<div dir="auto">You should be able to use the dispatcher module just before relaying. Have you tried that?</div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 13 Nov 2020 at 13:09, Andy Kama <<a href="mailto:andyvoicetek@gmail.com">andyvoicetek@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)"><div dir="ltr">Hi Guys<div><br></div><div>is it possible to load balance with mid_registrar?</div><div>perhaps setting multiple $ru in this part</div><div><br></div><div> if (is_method("REGISTER")) {<br> mid_registrar_save("location");<br> switch ($retcode) {<br> case 1:<br> xlog("forwarding REGISTER to main registrar ($$ci=$ci)\n");<br> $ru = "sip:<a href="http://1.2.3.4:5060" target="_blank">1.2.3.4:5060</a>";<br> t_relay();<br> break;<br> case 2:<br> xlog("absorbing REGISTER! ($$ci=$ci)\n");<br> break;<br> default:<br> xlog("failed to save registration! ($$ci=$ci)\n");<br> }<br><br> exit;<br> }<br></div></div>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Regards,</div><div><br></div>David Villasmil<div>email: <a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a></div><div>phone: +34669448337</div></div></div>