[sr-dev] Kamailio Glob style include / wildcard.

Brandon Armstead brandon at cryy.com
Fri Jan 28 20:43:54 CET 2022


Would it be possible to get glob style includes in place, i.e. include_file
"/some/path/*.cfg".

Reviewing the source, it looks like sr_push_yy_state in src/core/cfg.lex
needs an update.

Daniel - can you confirm if this is the correct place to modify such
behavior and if there are any gotchas in implementation of this?

It would be nice if it had full support for glob inclusion / imports,
similar to nginx

i.e.

include_file "/home/*/foo/bar/*.cfg"

would include files in /home/brandon/foo/bar/*.cfg and
/home/dev/foo/bar/*.cfg although I realize this adds a bit more complexity,
any reason you can see why not to add support for this?

Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20220128/9d9db1b1/attachment.htm>


More information about the sr-dev mailing list