[OpenSIPS-Users] mid_registrar load balance

Andy Kama andyvoicetek at gmail.com
Fri Nov 13 13:09:11 EST 2020


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;
    }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20201113/7942bf50/attachment.html>


More information about the Users mailing list