[sr-dev] git:andrei/rve_f_params: core: support for expressions/ variables in function parameters

Andrei Pelinescu-Onciul andrei at iptel.org
Mon Mar 15 20:21:15 CET 2010


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

Author: Andrei Pelinescu-Onciul <andrei at iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei at iptel.org>
Date:   Mon Mar 15 20:05:49 2010 +0100

core: support for expressions/variables in function parameters

- all module functions that do not have fixups can now be called
  with variables, avps or expressions. They will be converted to
  string, either on startup (if the expression is constant, e.g.
  "a"+"b") or at runtime (if the expression is not constant, .e.g.
   $a, $b+$var(foo)+"test").
   E.g.: f("1+1=" + 1 + 1, "v=" + $v).
- slightly faster module function calls (eliminated some
  never-triggered sanity tests).

---

 action.c       |  284 ++++++++++++++++++++++++++++++++++++++++++--------------
 cfg.y          |  183 ++++++++++++++++++++++++++++---------
 route.c        |   84 ++++++++++++++++-
 route_struct.c |   11 ++-
 route_struct.h |    7 +-
 5 files changed, 448 insertions(+), 121 deletions(-)

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



More information about the sr-dev mailing list