Re: [SR-Users] Calls per second

2014-07-03 Thread Abdelkader Allam
Yes if you set the key created to auto expire in a second On Thu, Jul 3, 2014 at 12:31 PM, Olle E. Johansson wrote: > > On 03 Jul 2014, at 14:21, Alex Balashov wrote: > > > On 07/03/2014 08:18 AM, Abdelkader Allam wrote: > >> Very true Alex, didnt knew about htables

Re: [SR-Users] Calls per second

2014-07-03 Thread Abdelkader Allam
, Jul 3, 2014 at 12:14 PM, Alex Balashov wrote: > On 07/03/2014 08:12 AM, Abdelkader Allam wrote: > > Then to check the number of invite per seconds for CUSTOMER_A smoothed >> over a window of 10 seconds, you count the keys in the DB that starts >> with CUSTOMER_A ( KEYS CU

Re: [SR-Users] Calls per second

2014-07-03 Thread Abdelkader Allam
Hello Olle, If you are to reimplement this by scripting instead of developing a C module, maybe you could use redis as a database, and for each invite of a customer, create a unique key in the redis database like this: CUSTOMER_A:CALLID Then set this key to auto expire in let's 10 seconds for in

Re: [SR-Users] flatstore.rotate not working

2013-12-15 Thread Abdelkader Allam
Hi Daniel I found the bug, On Wed, Dec 11, 2013 at 10:52 AM, Abdelkader Allam < abdelkader.al...@gmail.com> wrote: > Here is another try > > > I made a code change to see if the kamcmd has really an effect on the > module > > root@corex-mc1s:/usr/local/src/kama

Re: [SR-Users] flatstore.rotate not working

2013-12-11 Thread Abdelkader Allam
kamailio 1377 déc. 11 10:48 T201312111046_135.CFT -rw-r--r-- 1 root kamailio 1160 déc. 11 10:48 T201312111046_136.CFT On Wed, Dec 11, 2013 at 10:13 AM, Abdelkader Allam < abdelkader.al...@gmail.com> wrote: > Here is an example, > > today at 9:20 i did a rotate comman

Re: [SR-Users] flatstore.rotate not working

2013-12-11 Thread Abdelkader Allam
Here is an example, today at 9:20 i did a rotate command, after renaming the files, you see that some files are not used so havent been changed since 9:20, but the remaining files are still used until now (10:06 AM). So basically the command had no effet (i launched the command two times -rw-r--r

Re: [SR-Users] flatstore.rotate not working

2013-12-11 Thread Abdelkader Allam
file inside kamailio rotate > command. > > Cheers, > Daniel > > > On 04/12/13 15:24, Abdelkader Allam wrote: > > Hello I am doing it manually with a script which does the renaming > (basically it is a unix mv) > > from glob import glob > from time import time,sleep

Re: [SR-Users] flatstore.rotate not working

2013-12-04 Thread Abdelkader Allam
w you do the files rotation? The readme is saying that has to be done > via an external application. Nothing has change in this regard for many > years. > > Cheers, > Daniel > > > On 12/4/13 2:31 PM, Abdelkader Allam wrote: > > Hello Guys, > > I am using Kamaili

[SR-Users] flatstore.rotate not working

2013-12-04 Thread Abdelkader Allam
Hello Guys, I am using Kamailio 4.1.0. I am trying to get Kamailio to rotate the cdr log through command kamcmd flatstore.rotate but it keeps sending log to the renamed files, I use the following parameter (i tried to set flush to 1 and 0, same result, i have also tried in debug and normal mode

[SR-Users] (no subject)

2013-12-04 Thread Abdelkader Allam
Hello Guys, I am using Kamailio 4.1.0. I am trying to get Kamailio to rotate the cdr log through command kamcmd flatstore.rotate but it keeps sending log to the renamed files, I use the following parameter #!define WITH_ACCFILE # - acc params - /* what special events should be accoun