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
February 15, 2006
View fd6d4dc97a

AVP track searching resolution ------------------------------ new AVP prefixes registered fu - FROM USER and tu - TO USER $avp and $f.avp now searches in from track $t.avp searches in to track

Michal Matyska authored on 15/02/2006 17:29:18
February 7, 2006
View 93349b4eca

- named routes support in core and tm (t_on_*). e.g.: route{ route(bar); t_on_reply("reply_route"); route(1); # == route("1") ... } route[foo]{ ... } route["bar"]{ ... } route[1]{ ... } onreply_route[reply_route]{ ... }

Andrei Pelinescu-Onciul authored on 07/02/2006 01:14:57
January 30, 2006
View d2f9352e81

- eval_expr too many expressions bug (reported by Michal), fixed by removing the expr. recursions checks (they were a parser debugging remainder, you can't have expr. loops without having actions loops and the actions loops are already handled). Closes SER-91.

Andrei Pelinescu-Onciul authored on 30/01/2006 13:09:40
January 27, 2006
View 186908e8f6

- fixed comp_avp returning values != 0 , 1 or -1 (error)

Andrei Pelinescu-Onciul authored on 27/01/2006 18:33:11
January 9, 2006
View f141bc93c5

- rewritten module function parsing and call processing (mk_action, struct action, action_u_t) - API to get other fixup params from fixup - full function overloading - optional NUMBER/STRING param in config for module functions - added oveloaded functions to print_stdout (demostrates overloading)

Tomas Mandys authored on 09/01/2006 19:42:35
January 7, 2006
View 145e3fb302

=AVP core extended to be aware of multiple AVPs with the same name exist in the list. There are three possibilities of correct script syntax...

Michal Matyska authored on 07/01/2006 21:28:49
December 20, 2005
View a0fb4e8bd5

History rewritten, new files GPLized

Michal Matyska authored on 20/12/2005 01:52:40
View 3fb428edb4

New script element, Jan's select function framework (@xxx), extended for modular use. In the script it can be used as value assigned to AVP and in the string comparision, RE matching, like: $my_avp=@my.function[1]; if (@via.protocol=="UDP")...

Michal Matyska authored on 20/12/2005 00:49:32
December 12, 2005
View 01dea12497

- return [val] support (returns from the current route with value val, by default 1) - exit [val] support (exits the script with code val, where 0 means drop, >0 means do default actions and <0 means error) - drop is now equivalent to exit 0 - drop should be faster when used to exit deep routes - break is now equivalent with return 1 - the return code can be checked with $?, e.g.: if ($?==1) {...} else if ($?==-1){...} else {...}.

Andrei Pelinescu-Onciul authored on 12/12/2005 23:47:56
December 11, 2005
View 0d88ce78c9

- tm: t_relay will not stop script execution anymore in case of send error - added onsend_route: special route executed before forwarding a message, when the final destination is known. Only a limited number of commands are allowed ( if (expr) {}else{}, drop, flags manipulations, send(), log()). Usefull to catch more easily unauthorized attempts to relay/bounce message to protected destinations (e.g PSTN gateways) - new onsend checks: to_{ip,port}, snd_{ip,port,proto,af}. to= to whom the message will be sent to. snd=how ser will send it (socket ip/port,proto,af). - msg:len in onsend_route will containg the "new" message len - textops: search() onsend_route support (it will use the new, freshly constructed message and not the original one)

Andrei Pelinescu-Onciul authored on 11/12/2005 22:46:38
December 5, 2005
View 3d942590eb

- fixed some warnings - fixed typo in action.c - fixed dynamic regex not regfreed and backup char not restored on error in route.c

Andrei Pelinescu-Onciul authored on 05/12/2005 17:32:17