Hi all
I've been working with async http client and async db queries in the past but now I have to execute scripts and store the return values in avps.
Since I have no experience with that, I wonder how to achieve concurrency with that scenario. Is there a way to exec async or suspend until the exec has finished and resume later?
cheers,
Jon
Yes, there is. You're best off building an rtimer+mqueue pipeline (or streamlined 'async' equivalent) and running your exec() calls in the asynchronous route. You can then t_continue() the transaction inside there.
On Jun 18, 2024, at 1:16 PM, Jon Bonilla (Manwe) via sr-users sr-users@lists.kamailio.org wrote:
Hi all
I've been working with async http client and async db queries in the past but now I have to execute scripts and store the return values in avps.
Since I have no experience with that, I wonder how to achieve concurrency with that scenario. Is there a way to exec async or suspend until the exec has finished and resume later?
cheers,
Jon
-- PekePBX, the multitenant PBX solution https://pekepbx.com __________________________________________________________ Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe send an email to sr-users-leave@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe:
El Tue, 18 Jun 2024 13:56:06 -0400 Alex Balashov via sr-users sr-users@lists.kamailio.org escribió:
Yes, there is. You're best off building an rtimer+mqueue pipeline (or streamlined 'async' equivalent) and running your exec() calls in the asynchronous route. You can then t_continue() the transaction inside there.
Thank you Alex
I haven't clear the process you're suggesting but I have a path to check.