Hello,
in addition, check also cnxcc module, if you haven't done it yet, it may
offer the features you are looking for, without having to build them
with timer callbacks.
Cheers,
Daniel
On 18.05.21 14:16, Henning Westerholt wrote:
Hi,
Just some ideas for research:
IMS route:
https://kamailio.org/docs/modules/devel/modules/ims_charging.html
<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/ <https://skalatan.de/blog/>
Kamailio services –
https://gilawa.com <https://gilawa.com/>
*From:* sr-users <sr-users-bounces(a)lists.kamailio.org> *On Behalf Of
*Avremy Cohen
*Sent:* Tuesday, May 18, 2021 11:29 AM
*To:* sr-users(a)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
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
* sr-users(a)lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
*
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla --
www.asipto.com
www.twitter.com/miconda --
www.linkedin.com/in/miconda
Kamailio Advanced Training - Online
May 17-20, 2021 (Europe Timezone) - June 7-10, 2021 (America Timezone)
*
https://www.asipto.com/sw/kamailio-advanced-training-online/