[SR-Users] Quick way to enable/disable all uac outbound registrations
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
> 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
> What do you think?
for the setup you describe, it sounds feasible.
More information about the sr-users