[SR-Users] [PATCH] modules_k/db_sqlite: make decltype matching case-insensitive

2012-05-19 Thread Timo Teräs
Search for keywords case insensitively instead of using strstr(). SQlite stores decltype as-is, and does the affinity type testing case insensitively too. --- modules_k/db_sqlite/dbase.c | 53 +-- 1 file changed, 36 insertions(+), 17 deletions(-) I'm test

[SR-Users] [PATCH] modules_k/uac: fix from/to restore for small original URI

2011-04-05 Thread Timo Teräs
happens if the original URI is smaller than the one we rewrote it to using uac_replace_from. Signed-off-by: Timo Teräs --- modules_k/uac/from.c | 14 -- 1 files changed, 8 insertions(+), 6 deletions(-) However, I think the delta encoding used for the RR attribute is flawed. Hostile

Re: [SR-Users] [PATCH] modules_k/db_sqlite: new sql backend

2011-04-05 Thread Timo Teräs
Hi, On 04/04/2011 03:25 PM, Daniel-Constantin Mierla wrote: > thanks, that is very useful! I was playing with the idea of developing > it for using in small deployments and embedded devices, but couldn't > find any time for it ... Yes. Same idea here. It's still missing the sql table creation scr

[SR-Users] [PATCH] modules_k/db_sqlite: new sql backend

2011-04-04 Thread Timo Teräs
Implements the kamailio database API for SQLite. Signed-off-by: Timo Teräs --- modules_k/db_sqlite/Makefile| 15 ++ modules_k/db_sqlite/db_sqlite.c | 90 +++ modules_k/db_sqlite/dbase.c | 515 +++ modules_k/db_sqlite/dbase.h | 72 +

Re: [SR-Users] valgrind errors from 3.1-stable (git 2fe4d633e4ac)

2011-04-01 Thread Timo Teräs
On 04/01/2011 01:33 PM, marius zbihlei wrote: > On 04/01/2011 12:53 PM, Timo Teräs wrote: >> Yes. My argument was that it absolutely does not work in two cases: >> - the memory allocated for the string is exactly the strings length >> (you'd be overwriting ran

Re: [SR-Users] valgrind errors from 3.1-stable (git 2fe4d633e4ac)

2011-04-01 Thread Timo Teräs
On 04/01/2011 11:17 AM, marius zbihlei wrote: > On 04/01/2011 10:38 AM, Timo Teräs wrote: >> On 04/01/2011 10:29 AM, marius zbihlei wrote: >>> On 03/31/2011 07:52 PM, Timo Teräs wrote: >> The first really evil programming mistake I found is at: >> modules_k/t

Re: [SR-Users] valgrind errors from 3.1-stable (git 2fe4d633e4ac)

2011-04-01 Thread Timo Teräs
On 04/01/2011 10:29 AM, marius zbihlei wrote: > On 03/31/2011 07:52 PM, Timo Teräs wrote: >> Hi all, >> >> I'm running 3.1-branch git head currently under valgrind. And I've seen >> several invalid reads and writes (apparently most are off by one). >>

[SR-Users] valgrind errors from 3.1-stable (git 2fe4d633e4ac)

2011-03-31 Thread Timo Teräs
Hi all, I'm running 3.1-branch git head currently under valgrind. And I've seen several invalid reads and writes (apparently most are off by one). ==22274== Invalid read of size 1 ==22274==at 0x6DA2C0A: pv_set_ruri_user (pv_core.c:1755) ==22274==by 0x13BA15: lval_pvar_assign (lvalue.c:357