[SR-Users] Registration to sip provider

Alex Balashov abalashov at evaristesys.com
Tue Jan 19 11:01:04 CET 2016


Hi Evren,

1. The UAC module uses a database table called `uacreg` as a list of 
credentials and registration destinations.

See:

https://github.com/kamailio/kamailio/blob/master/utils/kamctl/mysql/uac-create.sql

2. You can trigger a registration manually with uac_reg_request_to() 
from route script:

http://kamailio.org/docs/modules/4.3.x/modules/uac.html#uac.f.uac_reg_request_to(user, 
mode)

However, this would be a rather hard thing to do in most cases since 
route script is generally only run when SIP messages are received 
(notwithstanding 'rtimer' and any special event_routes).

In general, the UAC module initiates these registrations when Kamailio 
first starts up, and then manages periodic registration renewal based on 
this setting:

http://kamailio.org/docs/modules/4.3.x/modules/uac.html#uac.p.reg-timer-interval-id

Plus the expiration value in the `uacreg` table.

-- Alex

-- 
Alex Balashov | Principal | Evariste Systems LLC
303 Perimeter Center North, Suite 300
Atlanta, GA 30346
United States

Tel: +1-800-250-5920 (toll-free) / +1-678-954-0671 (direct)
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/



More information about the sr-users mailing list