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 <[email protected]> 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
> [email protected]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
-- 
Regards,

David Villasmil
email: [email protected]
phone: +34669448337
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to