[sr-dev] git:master:dd717b80: core: new core directive modparamx(mod, param, val)

Daniel-Constantin Mierla miconda at gmail.com
Mon Dec 28 14:11:21 CET 2020


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2020-12-28T14:08:16+01:00

core: new core directive modparamx(mod, param, val)

- alternative to modparam() where all its parameters are evaluated for
config script variables
- note that only variables that do not depend on SIP message processing
should be used at this stage
- example - set a module parameter using the value of an evironment
variable:
  modparamx("dispatcher", "db_url", "$env(DBURL)")

---

Modified: src/core/cfg.lex
Modified: src/core/cfg.y
Modified: src/core/modparam.c
Modified: src/core/modparam.h
Modified: src/core/sr_module.h

---

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




More information about the sr-dev mailing list