Thanks Henning!
The async module seems a good solution indeed, I’ll look into this.
Regards,
Nicolas.
De : Henning Westerholt <hw@gilawa.com>
Envoyé : mardi 19 décembre 2023 09:10
À : Kamailio (SER) - Users Mailing List
Cc : Chaigneau, Nicolas
Objet : RE: enum queries using Kamailio in asynchronous mode ?
Hello,
the enum module seems to execute its queries synchronously indeed.
Asynchronous execution could be added to the module or as another module. Maybe also adding some configurable timeout values to not block the server in case of errors would be also sufficient.
You can also look at the async module to see if maybe this is an easier solution:
https://www.kamailio.org/docs/modules/devel/modules/async.html
Cheers,
Henning
From: Chaigneau, Nicolas via sr-users <sr-users@lists.kamailio.org>
Sent: Freitag, 15. Dezember 2023 10:37
To: Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org>
Cc: Chaigneau, Nicolas <nicolas.chaigneau@capgemini.com>
Subject: [SR-Users] enum queries using Kamailio in asynchronous mode ?
Hello,
I will need to perform enum queries from Kamailio.
I see that there is a module for that:
https://www.kamailio.org/docs/modules/devel/modules/enum.html
However, I’m worried that if the enum server is unresponsive, this could block all workers…
I don’t think the module can handle an asynchronous mode ? I see that we have a specific module for HTTP async:
https://www.kamailio.org/docs/modules/devel/modules/http_async_client.html
Has anyone had to implement this kind of need with enum in Kamailio ?
Thanks.
Regards,
Nicolas.