doc/
subfolder, the README file is autogenerated)Add new preprocessor keywords trydefenv
and trydefenvs
that work like defenv
and defenvs
respectively, with the difference that if the environmental variable is not defined, then the value in Kamailio will not be defined.
For example:
#!KAMAILIO
loadmodule "xlog"
loadmodule "pv"
#!trydefenv EXTRALOG
request_route {
#!ifdef EXTRALOG
xlog("L_I", "Some Extra Logging here\n");
#!endif
forward ();
}
If the environmental variable $EXTRALOG
is defined, the log line will be written. If the environmental variable is not set, then in Kamailio EXTRALOG
will not be defined and the #!ifdef
section will not be loaded.
https://github.com/kamailio/kamailio/pull/2969
(2 files)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.