Hello Brandon,
It was discussed some time ago
https://github.com/kamailio/kamailio/issues/2125 - have a
look for some more context.
I think there is no objection against this feature, just nobody implemented it yet.
Cheers,
Henning
From: sr-dev <sr-dev-bounces(a)lists.kamailio.org> On Behalf Of Brandon Armstead
Sent: Friday, January 28, 2022 8:44 PM
To: Kamailio (SER) - Development Mailing List <sr-dev(a)lists.kamailio.org>
Subject: [sr-dev] Kamailio Glob style include / wildcard.
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!