<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div apple-content-edited="true"><div><div>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</div><div>the db within the kamailio.cfg anywhere and generating the cfg file (which doesn’t work afaik)?<br><div style="font-family: Calibri, sans-serif; font-size: 14px;"><div style="margin: 0cm 0cm 0.0001pt;"><br></div><div style="margin: 0cm 0cm 0.0001pt;">Am 19.05.2014 um 11:43 schrieb Juha Heinanen <<a href="mailto:jh@tutpro.com">jh@tutpro.com</a>>:</div></div></div></div></div><div><br class="Apple-interchange-newline"><blockquote type="cite">Daniel Vukicevic writes:<br><br><blockquote type="cite">I am setting different cfg Parameters via XMLRPC. Which is good for<br>changing parameters per runtime and being independent from database<br>lookups when kamailio is running. <br>Unfortunately cfg settings will be lost and empty after Restarting<br>Kamailio if cfg values aren’t set before the request_route. So the<br>idea was to look if cfg value is set, if not look into database and<br>take the last cfg setting which was set. (Last cfg values will updated<br>via SQL Query in the XMLRPC branch).<br></blockquote><br>before my proxy (re)starts, i generate config.cfg from database and<br>include<br><br>local.attribute = value<br><br>statements into it.  i think it would solve your problem too.<br><br>-- juha<br><br>_______________________________________________<br>SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br><a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users<br></blockquote></div><br></body></html>