This patch gives very useful feature - support to perform substitutions inside the strings of config.
Work derived from the great parser enhancements made by Daniel-Constantin Mierla to the sip-router project.
perform substitutions inside the strings of config
!subst offers an easy way to search and replace inside strings before cfg parsing. E.g.,:
flags is optional and can be: 'i' - ignore case; 'g' - global replacement
modparam("acc", "db_url", "mysql://user:DBPASSWD@localhost/db")
will do the substitution of db password in db_url parameter value
Log in to post a comment.