[OpenSIPS-Users] mid_registrar load balance
David Villasmil
david.villasmil.work at gmail.com
Fri Nov 13 13:52:52 EST 2020
You should be able to use the dispatcher module just before relaying. Have
you tried that?
On Fri, 13 Nov 2020 at 13:09, Andy Kama <andyvoicetek at gmail.com> wrote:
> Hi Guys
>
> is it possible to load balance with mid_registrar?
> perhaps setting multiple $ru in this part
>
> if (is_method("REGISTER")) {
> mid_registrar_save("location");
> switch ($retcode) {
> case 1:
> xlog("forwarding REGISTER to main registrar ($$ci=$ci)\n");
> $ru = "sip:1.2.3.4:5060";
> t_relay();
> break;
> case 2:
> xlog("absorbing REGISTER! ($$ci=$ci)\n");
> break;
> default:
> xlog("failed to save registration! ($$ci=$ci)\n");
> }
>
> exit;
> }
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
--
Regards,
David Villasmil
email: david.villasmil.work at gmail.com
phone: +34669448337
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20201113/d659609c/attachment.html>
More information about the Users
mailing list