[sr-dev] git:kamailio_3.0: script engine: verbose conversion-to-int errors

Daniel-Constantin Mierla miconda at gmail.com
Thu Dec 10 14:20:05 CET 2009


Module: sip-router
Branch: kamailio_3.0
Commit: 9d1f0c69a0ac832c00245ec92c2ec431c1241e97
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=9d1f0c69a0ac832c00245ec92c2ec431c1241e97

Author: Andrei Pelinescu-Onciul <andrei at iptel.org>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Mon Nov 16 19:41:02 2009 +0100

script engine: verbose conversion-to-int errors

- more verbose errors (all of them contain now the config file
  position for the error).
- integer conversion errors will now by default log a warning
  message. Like before they won't cause the expression evaluation
  to fail, they'll just evaluate the failed conversion to 0.
  The behaviour can be changed using the defines at the top of
  rvalue.c. To restore the old behaviour (no int conversion error
  message and error ignored), comment out the following defines:
  RV_STR2INT_VERBOSE_ERR, RV_STRINT_ERR, EVAL_GET_INT_ERR_WARN,
  RVAL_GET_INT_ERR_IGN. For more info see the comments in the
  file.
(cherry picked from commit c744f71c858f34d41741d90e0d5cb05e48cf8016)

---

 lvalue.c |    4 +-
 rvalue.c |  230 +++++++++++++++++++++++++++++++++++++++++++++++++++-----------
 2 files changed, 193 insertions(+), 41 deletions(-)

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



More information about the sr-dev mailing list