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

Author: Andrei Pelinescu-Onciul <[email protected]>
Committer: Andrei Pelinescu-Onciul <[email protected]>
Date:   Wed Jun  2 18:24:05 2010 +0200

core: support for RVEs in fparam fixups

Hack to allow using RVEs in "safe" fparam fixups. This way all the
module functions using them will automatically have var support
(most ser modules that already supported variables as quoted
 parameter, support now any variable expression, without quotes
 too).
The cleanup is done by the core (this is the "hack" part).

E.g.:
t_set_fr($v + 2 + $x)  should work now
(it uses fixup_var_int_1 which is RVE-safe).

t_set_fr("$v") is now equivalent with t_set_fr($v).

---

 action.c       |   49 +++++++++++++++++++++++-------------
 cfg.y          |   51 +++++++++++++++++++++----------------
 route.c        |   76 ++++++++++++++++++++++++++++----------------------------
 route_struct.h |    3 +-
 sr_module.c    |   26 +++++++++++++++++++
 sr_module.h    |   13 +++++++++
 6 files changed, 139 insertions(+), 79 deletions(-)

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

_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to