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

Daniel Vukicevic daniel.vukicevic at finocom.de
Mon May 19 13:41:22 CEST 2014


Nice idea! This would perfectly fit. So are you executing a little script within the kamailio init script before kamailio finally starts, or are you asking
the db within the kamailio.cfg anywhere and generating the cfg file (which doesn’t work afaik)?

Am 19.05.2014 um 11:43 schrieb Juha Heinanen <jh at tutpro.com>:

> 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
> 
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20140519/3884b0b7/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 496 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20140519/3884b0b7/attachment.pgp>


More information about the sr-users mailing list