Re: [SR-Users] PRE-PAY update timer

2019-05-24 Thread Stephen Bucklin
Alex, Thanks so much for that. A lot to play with in the morning. I did set up an rtimer that called a route that then did checks if the number of dialogs > 1. I think I will keep playing with the time slices as the user may divert, conference etc so keeping the charging real time is my goal.

Re: [SR-Users] PRE-PAY update timer

2019-05-24 Thread Alex Balashov
Well, the generic answer to the question of how to periodically do something in the background is 'rtimer': https://kamailio.org/docs/modules/5.2.x/modules/rtimer.html This can be combined with putting dialogs in an `htable` (perhaps using the dialog module's start/end event_routes) and walking

Re: [SR-Users] PRE-PAY update timer

2019-05-24 Thread Aqs Younas
I would say use cgrates for this purpose with kamailio. It is especially designed for billing stuff. Br, Aqs. On Fri, 24 May 2019, 10:19 pm Steve Bucklin, wrote: > Hello all (again), > > I am looking at a 'good' method to start a call with "chunks" of time > allocated. I wish the initial call

Re: [SR-Users] Question about setbflag and isbflagset usage

2019-05-24 Thread Alex Balashov
Branches are a creature of transactions. It follows that “branch flags” are transaction-persistent flags at the branch level, rather than scoped to the transaction as a whole. ACKs constitute a separate transaction. — Sent from mobile, with due apologies for brevity and errors. > On May 24,

Re: [SR-Users] Question about setbflag and isbflagset usage

2019-05-24 Thread Sergiu Pojoga
Then.. I don't know, lol But the fact that ACKs belong or not to even different transactions (depending on whether positive or negative reply) must be playing a role here. Good luck. On Fri, May 24, 2019, 12:11 PM Володимир Іванець, wrote: > Hello Sergiu, > > We allow multiple contacts to

[SR-Users] PRE-PAY update timer

2019-05-24 Thread Steve Bucklin
Hello all (again), I am looking at a 'good' method to start a call with "chunks" of time allocated. I wish the initial call to check a credit, and if credit is good, allow a small amount of time (say 30 seconds). I have enabled DIALOG and have looked at CNXCC, but am confused! When the

Re: [SR-Users] Question about setbflag and isbflagset usage

2019-05-24 Thread Володимир Іванець
Hello Sergiu, We allow multiple contacts to register on single account. They can have different properties. On step 1 I'm looking for something specific which can be different for different contacts. If I understood correctly *setbflag* and *isbflagset* can set and check flags for different

Re: [SR-Users] No Private memory left using usrloc with db_redis in mode 3

2019-05-24 Thread Fred Posner
On 5/24/19 11:30 AM, José Seabra wrote: Hello there, i have stored ~200 000 registrations contacts in redis database and when kamailio starts looking for expired contacts in redis then it starts giving these errors: > [snip] I have configured the private memory to 128 MB but seems that

[SR-Users] No Private memory left using usrloc with db_redis in mode 3

2019-05-24 Thread José Seabra
Hello there, i have stored ~200 000 registrations contacts in redis database and when kamailio starts looking for expired contacts in redis then it starts giving these errors: WARNING: PR_LOG: 123: db_redis [redis_dbase.c:1099]: db_redis_perform_query(): performing full table scan on table

Re: [SR-Users] Question about setbflag and isbflagset usage

2019-05-24 Thread Sergiu Pojoga
I might be wrong, but isn't ACK part of a transaction? If so, you'd need to use *setflag*/*isflagset* Cheers. On Fri, May 24, 2019 at 10:03 AM Володимир Іванець wrote: > Hello everyone! > > I'm not sure if I correctly understood the description of functions > *isbflagset* and *isbflagset* so

[SR-Users] Question about setbflag and isbflagset usage

2019-05-24 Thread Володимир Іванець
Hello everyone! I'm not sure if I correctly understood the description of functions *isbflagset* and *isbflagset* so once again I'm asking for help :) Here is what I do: 1. Asterisk sends INVITE to Kamailio. Kamailio performs lookup of available contacts and then few checks in branch_route. I'm

Re: [SR-Users] Kamailio IMS installation from pacakges

2019-05-24 Thread Sergey Safarov
need to make review config file changes On Fri, May 24, 2019 at 10:54 AM Mohit Chawla wrote: > Hi Sergey, > > > > Thanks very much for your reply. > > > > We are able to install the kamailio and kamailio IMS packages. > > > > I will create the ticket so that it will be helpful for others as

Re: [SR-Users] Kamailio IMS installation from pacakges

2019-05-24 Thread Mohit Chawla
Hi Sergey, Thanks very much for your reply. We are able to install the kamailio and kamailio IMS packages. I will create the ticket so that it will be helpful for others as well. We are able to start the kamailio services with default configuration file, but as soon as we edit