[SR-Users] kamailio 4.1.3 remote registration

Alex Balashov abalashov at evaristesys.com
Fri May 23 19:12:27 CEST 2014


Iyi geceler Betül,

On 05/23/2014 10:40 AM, betul.cerit at netgsm.com.tr wrote:

> Hi to all,
> We use uac module to use remote registration but when I add a new user
> to uacreg table the change doesnt take effect until I restart kamailio
> service which is not convenient for us.Is there another way to achieve
> this without restarting service?

Unfortunately there is no mechanism for this; the 'uacreg' facility in 
the 'uac' module is a bit rudimentary, because it is definitely not a 
primary or common application of Kamailio, in light of its character as 
a proxy.

I ran into this issue myself in a project a few years ago, and added the 
'reg_timer_interval' modparam to 'uac' to increase the frequency with 
which registrations are managed and renewed:

 
http://git.sip-router.org/cgi-bin/gitweb.cgi?p=sip-router;a=commitdiff;h=455b64088b7ace99c767a3320b79f7069a3202b8

However, it provides no mechanism to reload the 'uacreg' table and 
become aware of new registration bindings to track.

It might be worthwhile for someone to consider adding this functionality 
to the existing timer. The problem is just that it's a pain because it 
involves rebuilding the entire runtime structure with a dynamic DB 
query, and not everyone is going to want it to work that way, so it 
would have to be made optional, which means more modparams, etc.

-- Alex

-- 
Alex Balashov - Principal
Evariste Systems LLC
Tel: +1-678-954-0670
Web: http://www.evaristesys.com/, http://www.alexbalashov.com/

Please be kind to the English language:

http://www.entrepreneur.com/article/232906



More information about the sr-users mailing list