April 23, 2008
View 0c924c149f

intop (==, <, >, <=, >=) is supported between two integer AVP values

Miklos Tirpak authored on 23/04/2008 12:55:17
View 3eb5f31363

Errors are treated as false during the expression evaluation unless the operator is DIFF_OP.

Miklos Tirpak authored on 23/04/2008 09:31:44
April 13, 2008
View 5461d97326

(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.

Miklos Tirpak authored on 13/04/2008 05:12:55
February 23, 2008
View fddc0b6631

- fix: 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:10:19
December 17, 2007
View ac4f791faf

- fix: 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:04
December 9, 2007
View e922039020

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

Andrei Pelinescu-Onciul authored on 09/12/2007 13:15:24
September 11, 2007
View 12663fc64d

- warning fix

Michal Matyska authored on 11/09/2007 15:20:02
September 10, 2007
View a1f3d3fe75

Allow to compare the snd_ip and to_ip with the AVP value. (Was allowed for ports, not ips.) For performance purist: I did not measure which code is faster; whether finding the AVP in the list or using DNS name resolution. Using AVP (track and) domain prefix makes the search faster, when AVP is in fallback domains, e.g. for global AVP.

Michal Matyska authored on 10/09/2007 19:29:44
July 27, 2007
View 0be2fc378f

- 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:21:04
June 14, 2007
View 20fded1fe8

- 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).

Andrei Pelinescu-Onciul authored on 14/06/2007 23:12:26
April 19, 2007
View ec0d25f54d

fixes SER-263

Michal Matyska authored on 19/04/2007 08:56:13
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