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

2019-05-25 Thread Stephen Bucklin
Hi Carsten, That would be great thanks. I am just playing around at the moment, seeing how it all works! That information would be great thanks  Steve On Sat, 25 May 2019 at 09:42, Carsten Bock wrote: > Hi Steven, > > If you want, I can provide you an example config based on ims_charging and

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

2019-05-25 Thread Carsten Bock
Hi Steven, If you want, I can provide you an example config based on ims_charging and ims_ocs without IMS. Even though, we do not use ims_ocs anymore in new deployments, we still have it running in production. Thanks, Carsten Stephen Bucklin schrieb am Sa., 25. Mai 2019, 01:31: > Alex, >

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

[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