April 23, 2008
View b180a42d50

Errors are treated as false during the expression evaluation unless the operator is DIFF_OP. (backport from HEAD)

Miklos Tirpak authored on 23/04/2008 11:15:38
View ee3c64e2c3

(expr1 != expr2) is evaluated true if at least one of the expressions does not exist, which can be a missing AVP or select. (expr1 != expr2) and !(expr1 == expr2) mean the same from now in this case. (backport from HEAD)

Miklos Tirpak authored on 23/04/2008 11:12:26
February 23, 2008
View 0c32f9bb65

- backport: return status not checked when converting a string into a number in comp_str(...) (used when comparing string to numbers in ser.cfg). Patch from Bogdan Pintea <pintea@iptego.de>. Closes SER-338.

Andrei Pelinescu-Onciul authored on 23/02/2008 13:11:53
December 17, 2007
View db9497a915

- fix (backport): do not perform rev dns. when comparing an ip with a string or avp (in the script), if rev_dns is not set

Andrei Pelinescu-Onciul authored on 17/12/2007 17:51:35
December 9, 2007
View 075e5ef33c

- fix for script numeric compares on 64 bit big endian systems

Andrei Pelinescu-Onciul authored on 09/12/2007 13:14:45
September 11, 2007
View 8372cf9f0a

- warning fix

Andrei Pelinescu-Onciul authored on 11/09/2007 06:29:43
September 10, 2007
View ac705ed80b

backport to 2.0

Michal Matyska authored on 10/09/2007 19:44:30
August 29, 2007
View 95ecbea2b9

- backported fix: run_actions() & friends used some static variables to save some internal state (run_flags, last_ret a.s.o). Problems would appear when different routes (e.g. main route and an onsend route) would execute in the same process (e.g. an onsend route return would exit also the main route). Now run_actions(), do_action() and eval_expr() take an extra "context" parameter (which must be initialized before use). see http://lists.iptel.org/pipermail/serdev/2007-June/010402.html, http://lists.iptel.org/pipermail/serdev/2007-June/010403.html and http://lists.iptel.org/pipermail/serdev/2007-June/010404.html.

Andrei Pelinescu-Onciul authored on 29/08/2007 17:14:29
July 27, 2007
View 0853f1be96

backport of fix (related to SER-263) - revert partly fix which broke test of @select in route script. - leave the correction for seg. fault on @select match against regexp.

Michal Matyska authored on 27/07/2007 14:24:41
May 4, 2007
View 50f511d40d

Backport of SER-263 fix

Michal Matyska authored on 04/05/2007 16:10:59
December 13, 2006
View e8138515fe

- hash cleanup/cosmetics: - use the "raw" hash functions from hashes.h as base for the other hashes (e.g. tm hash). This doesn't change the hash functions, just removes some extra copies. - split old hashes.h into hashes.h (more generic stuff) and str_hash.h - new_hash() is safer now (nobody uses it, but just in case...)

Andrei Pelinescu-Onciul authored on 13/12/2006 22:50:46
June 12, 2006
View 270757bb54

Fix test if select result is not empty for select function returning empty string with result=0, res.len=0.

Michal Matyska authored on 12/06/2006 21:14:24
June 7, 2006
View 80d2811c92

- numeric avp compared with string value fix: the value will be converted to int on-the-fly if possible (unfortunately we don't have enough information to do it on fixup).

Andrei Pelinescu-Onciul authored on 07/06/2006 21:55:25
May 30, 2006
View bc5be3498c

- added route_lookup (like route_get(), but doesn't create a new route if not found) -- patch from Miklos Tirpak <miklos@iptel.org>

Andrei Pelinescu-Onciul authored on 30/05/2006 19:20:51
March 18, 2006
View 49e2c7c511

Comparing string results of @select or $avp expression with numeric value. Test like "123" > 100 is not allowed by cfg.y rules, but $test > 10 is.

Michal Matyska authored on 18/03/2006 23:40:15