[SR-Users] cfg values read from Database possible?

Juha Heinanen jh at tutpro.com
Mon May 19 11:43:06 CEST 2014


Daniel Vukicevic writes:

> I am setting different cfg Parameters via XMLRPC. Which is good for
> changing parameters per runtime and being independent from database
> lookups when kamailio is running. 
> Unfortunately cfg settings will be lost and empty after Restarting
> Kamailio if cfg values aren’t set before the request_route. So the
> idea was to look if cfg value is set, if not look into database and
> take the last cfg setting which was set. (Last cfg values will updated
> via SQL Query in the XMLRPC branch).

before my proxy (re)starts, i generate config.cfg from database and
include

local.attribute = value

statements into it.  i think it would solve your problem too.

-- juha



More information about the sr-users mailing list