[sr-dev] git:master: dialplan: option to allow variables in match and substitution expressions

Daniel-Constantin Mierla miconda at gmail.com
Mon Oct 13 09:32:01 CEST 2014


Module: sip-router
Branch: master
Commit: dd7a49ee775ff5b29bb73c5313c3bfd8a64b26a0
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=dd7a49ee775ff5b29bb73c5313c3bfd8a64b26a0

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Sun Oct 12 23:39:18 2014 +0200

dialplan: option to allow variables in match and substitution expressions

- based on requirement from FS#429
- new parameter: match_dynamic to enable this feature
- if enabled, at load time, the values are searched for variables and if
  any found, then evaluation and pcre compilation is done at runtime
- it can work with rules that don't include variables at the same time,
  these being pre-compiled at load time

---

 modules/dialplan/dialplan.c |   13 ++--
 modules/dialplan/dialplan.h |   33 ++++++---
 modules/dialplan/dp_db.c    |  160 ++++++++++++++++++++++++++++++++----------
 modules/dialplan/dp_repl.c  |   82 +++++++++++++++++++---
 4 files changed, 222 insertions(+), 66 deletions(-)

Diff:   http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commitdiff;h=dd7a49ee775ff5b29bb73c5313c3bfd8a64b26a0



More information about the sr-dev mailing list