Hi,
Just some ideas for research:
IMS route: https://kamailio.org/docs/modules/devel/modules/ims_charging.html
Using SIP session timer and then executing on the periodic re-INVITE the check and end the dialog if needed
Insert the call in a user specific profile together with a dialog timeout and then periodically check the profiles in a timer route and update the timeout
Insert the call in a hash table together with a timeout and then periodically checks this again in a timer route
Cheers,
Henning
--
Henning Westerholt – https://skalatan.de/blog/
Kamailio services – https://gilawa.com
From: sr-users <sr-users-bounces@lists.kamailio.org> On Behalf Of Avremy Cohen
Sent: Tuesday, May 18, 2021 11:29 AM
To: sr-users@lists.kamailio.org
Subject: [SR-Users] execute callback every X minutes mid call
Hi
I am trying to execute code every X min in active calls and I cant seem to find any way to do this. I basically have a function that checks if the user has balance and permission to carry on the call and the callback should trigger it every X mins.
The call_control module doesnt work for me since
A. It doesn't trigger a function it just ends the callback
B. it uses an external application to calculate it
any advice is appreciated
Avi