[OpenSIPS-Users] Surrogate SBC Implementation
Antonios Psaras
apsaras at microbase.gr
Sat Nov 2 06:21:47 UTC 2024
Hello Team
I am implementing a Surrogate SBC on OpenSIPs 3.4 and I have the following scenario
OpenSIPs will use registrant to register 5000+ user to a remote registrar.
If that remote registrar fails (connectivity or Registrar down), OpenSIPs will register all users to a Backup remote registrar.
Up to that point is implemented and working fine.
Now, in case Primary registrar is up again, OpenSIPs should switch over to Primary only when registration to Backup is expired or forced un-registered.
I have only one solution on that which is not working well on large number or users. The solution is to select all registered users from db, and loop to un-register / register.
My preferred solution would be a mi command reg_re-register all which will do the following steps async.
reg_disable all (send de-registration for all users)
reg_reload (reload the new configuration from DB with the new registrar)
reg_enable all (force re-register all users)
I have to mention that the switch over between registrars is done via SQL Update.
Finally, one finding which I have to cross check, is that if I change the registrar on DB and execute reg_reload, there is no REGISTRATION Request to the new registrar until initial registration is expired. Mi reg_list shows wrong that user is in state REGISTERED at the New registrar Server which is not.
Any other suggestion / help will be appreciated.
Antonis Psaras
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20241102/fc5bc42e/attachment.html>
More information about the Users
mailing list