[SR-Users] Quick way to enable/disable all uac outbound registrations

Henning Westerholt hw at kamailio.org
Wed Aug 15 21:31:34 CEST 2018

Am Montag, 13. August 2018, 21:23:04 CEST schrieb Joel Serrano:
> Yes, it would be for the HA setup.
> So for example, say we have (I'm making it up):
> modparam("uac", "reg_start_disabled", 1)   ## This tells uac module to
> start with all records in `uacreg` table disabled.
> 1- Start kamailio on both nodes (no registrations are sent by any node).
> 2- Start keepalived on both nodes, some tests are done, the VIP is enabled
> on one of the nodes (MASTER). Keepalived would then run a script that would
> effectively enable all registrations (looping through all the records in
> the uacreg table doing a `kamctl rpc uac.reg_enable ...` or a future
> possible `kamctl rpc uac.reg_enable_all` :P).
> That way, only the active node would be proactively sending the outbound
> registrations.
> I don't see any of this a problem, as right now both are sending
> registrations using the same "Contact:", so any incoming requests will be
> directed to the active kamailio. This is just to keep things tidy and not
> have 2 servers sending outbound registrations when it isn't strictly
> necessary.
> What do you think?
> [..]

Hello Joel,

for the setup you describe, it sounds feasible.

Best regards,


Henning Westerholt

More information about the sr-users mailing list