[sr-dev] git:master:03cd22b4: core: cfg.lex support for undefned env vars

Daniel-Constantin Mierla miconda at gmail.com
Fri Dec 10 12:01:24 CET 2021


Module: kamailio
Branch: master
Commit: 03cd22b41b80a81a4260c0dee2c500cf1007e1f8
URL: https://github.com/kamailio/kamailio/commit/03cd22b41b80a81a4260c0dee2c500cf1007e1f8

Author: Ben Kaufman <bkaufman at nexvortex.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2021-12-10T12:01:19+01:00

core: cfg.lex support for undefned env vars

Feature Request GH #2967 for undefined defenv

Add new keywords for preprocessing:

- #!trydefenv - The same as #!defenv, except if the variable is
  undefined, the def value will be undefined as well.

- #!trydefenvs - The same as #!defenvs, except if the variable is
  undefined, the def value will be undefined as well.

---

Modified: src/core/cfg.lex
Modified: src/core/ppcfg.h

---

Diff:  https://github.com/kamailio/kamailio/commit/03cd22b41b80a81a4260c0dee2c500cf1007e1f8.diff
Patch: https://github.com/kamailio/kamailio/commit/03cd22b41b80a81a4260c0dee2c500cf1007e1f8.patch




More information about the sr-dev mailing list