[sr-dev] [kamailio/kamailio] Using undefined environmental variables with #!defenv (Issue #2967)
notifications at github.com
Wed Dec 8 17:28:53 CET 2021
Currently, an undefined environmental variable with `#!defenv` results in Kamailio failing to start. The proposal here that if the environmental variable is not defined, then the macro value would be undefined as well. For example:
xlog("L_INFO","Environmental variable $$FOO is set\n");
xlog("L_WARN","Environmental variable $$FOO is NOT set\n");
Currently this configuration will fail to load if environmental variable is not set. My proposal is to either allow `#!envdef` to accept an undefined environmental variable and have the preprocessor macro undefined, or to add a new keyword (`#!envdefn` perhaps?) to allow this behavior.
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the sr-dev