January 19, 2006
View 5b1455d070

-changed "str str" declaration to "struct _str str" to make gcc happy when compiling with "-x c++" options (required when a module uses c++ .h files)

Tomas Mandys authored on 19/01/2006 10:29:10
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
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 9, 2005
View 24c9352297

Let tm module be relatively independent on the route action internal structure (resp. its data size). When accessing param #1 while fixing param #2 in the fixup_hostport2proxy function use correct type for pointer arithemtics.

Michal Matyska authored on 09/12/2005 18:33:58
November 30, 2005
View 74ce7043b5

- AVPs can be used in place of strings and integers in expressions (if (method == %method)) - Support for AVP assign statements ( %var1 = "value"; %var1 += "value2"; ) - Support for binary operators & and | in expressions - AVPs can be tested in expressions (if (%var1 == 4)) - fixed a bug in string comparisons in expressions - extended parameters of expression evaluation functions - fixed possible buffer overflow vulnerability in log("dfd") script function - default memory buffers enlarged - length of string is calculated in expression fixup - fixed bug in function printing route statements (traversed the list recursively several times)

Jan Janak authored on 30/11/2005 16:26:50
November 30, 2004
View 6cd4883577

- added the missing force_send_socket script command

Andrei Pelinescu-Onciul authored on 30/11/2004 16:28:23
October 19, 2004
View 6b7de230aa

- from_uri & to_uri script support (exaclty like uri, from_uri==myself or from_uri=~'^sip:[0-9]{7}@' a.s.o)

Andrei Pelinescu-Onciul authored on 19/10/2004 13:40:05
August 24, 2004
View 53c7e0f19a

- Spelling checked - READMEs updated

Jan Janak authored on 24/08/2004 08:45:09
February 24, 2004
View 1bee75ad6a

t_attr_to_uri() moved from tm into core as avp_to_uri() (Jiri's wish)

Bogdan-Andrei Iancu authored on 24/02/2004 16:59:33
February 6, 2004
View 1580c8214e

- basics for users preferences: - script param. "avp_db_url" added - scrit function "load_avp" with 2 or 3 params added - do_action updated - init. of bd connection from core on startup per each proccess - reseting avp list after main route and reply/failure_route execution

Bogdan-Andrei Iancu authored on 06/02/2004 18:56:49
October 29, 2003
View 59653eb856

- changed tcp to support port aliases (major changes) - added via alias parameter parsing - added script var. tcp_accept_aliases= yes|no (honour or not via alias param) - added script. cmd. force_tcp_alias( <void>|port_no) [for more info read the NEWS file]

Andrei Pelinescu-Onciul authored on 29/10/2003 17:41:27
October 12, 2003
View dda578bae9

- if () {} do not have to be followed by ';' anymore - added switch to check the config file (-c) and display aliases and listen interface list if the config is ok. - changes: removed len_gt() and replaced with if (msg:len op number|max_len) - more operators supported: != for special operations (e.g. myself or ip comparisons), != for strings (==, !=, ~=), !=, >, <, >=, <= for numbers (e.g msg:len >= max_len). - updated NEWS

Andrei Pelinescu-Onciul authored on 12/10/2003 15:09:08