Hello,
the syntax is flexible it terms of the delimiter character, being borrowed from the sed tool. Practically you can replace / with any other character to make it easier to write your substitution expression.
The ! is used for DBURL because there are / in the content (like: mysql://...) which should be escaped (like: mysql://:...) if / would be used as delimiter.
So, you can use whatever delimiter you want and should be fine, like: "/regexp/subst/flags", "!regexp!subst!flags" or "ZregexpZsubstZflags".
Cheers, Daniel
On 19.09.22 12:11, Fredrik Dahlgren wrote:
Hi,
I'm looking at a kamailio config where all substdef have the syntax "!regexp!subst!flags", "!DB_URL!db.example.com http://db.example.com!g" but i can't find this syntax in the documentation. It's currently running on a fairly modern 5.x version and as far as i know it has never been on 4.x or older.
Does anyone know where this syntax is from and if it's possible/recommended to simply replace it with "/regexp/subst"?
*Fredrik* *Dahlgren* | Senior SIP/VoIP Engineer fredrik.dahlgren@freespee.com | LinkedIn https://www.linkedin.com/company/freespee/ | Twitter https://twitter.com/freespee
Kamailio - Users Mailing List - Non Commercial Discussions
- sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe: