Awesome, thanks! That’s perfect! On Tue, 14 May 2019 at 16:14, Daniel-Constantin Mierla <[email protected]> wrote:
> Hello, > > for convenience, I added command line parameters to set #!subst, > #!substdef and #!substdefs expressions - details about them in the wiki: > > * https://www.kamailio.org/wiki/cookbooks/devel/core#subst > > It is only in master branch, being new features, but maybe you can test > and report if they work fine. It should be like: > > kamailio --subst="%DBURL%mysql://admin:[email protected]/kamailio%" > <%DBURL%25mysql://admin:[email protected]/kamailio%25> ... > > And in kamailio.cfg: > > modparam("acc", "db_url", "DBURL") > ... > modparam("sqlops","sqlcon", "cb=>DBURL") > ... > modparam("sqlops","sqlcon", "asg=>DBURL") > Cheers, > Daniel > > > On 12.05.19 23:51, David Villasmil wrote: > > Finally figured out how to do it: > > cfg: > modparam("acc", "db_url", DBURL) > ... > modparam("sqlops","sqlcon", CBDBURL) > ... > modparam("sqlops","sqlcon", ASGDBURL) > > and startup: > > kamailio -f /etc/kamailio/kamailio.cfg -E \ > -A 'DBURL="mysql://admin:[email protected]/kamailio"' \ > -A "CBDBURL=\"cb=>admin:[email protected]/kamailio\"" \ > -A 'ASGDBURL=\"asg=>admin:[email protected]/kamailio\"' -DDDD 2>&1 > > Now let's try and put that on the startup systemd script. > > -- > Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda -- > www.linkedin.com/in/miconda > > -- Regards, David Villasmil email: [email protected] phone: +34669448337
_______________________________________________ Kamailio (SER) - Users Mailing List [email protected] https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
