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.
This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient,
you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.