<!--
Kamailio Project uses GitHub Issues only for bugs in the code or feature requests. Please
use this template only for feature requests.
If you have questions about using Kamailio or related to its configuration file, ask on
sr-users mailing list:
*
http://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
If you have questions about developing extensions to Kamailio or its existing C code, ask
on sr-dev mailing list:
*
http://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
Please try to fill this template as much as possible for any issue. It helps the
developers to troubleshoot the issue.
If you submit a feature request (or enhancement) add the description of what you would
like to be added.
If there is no content to be filled in a section, the entire section can be removed.
You can delete the comments from the template sections when filling.
You can delete next line and everything above before submitting (it is a comment).
-->
### Description
Could a module parameter be added to retry a request _n_ number of times in the event of a
connection or server failure, without having to write a tedious bit of boiler plate config
to catch failure response codes and retry.
### Expected behavior
A http(s) post or get is performed and the returned code is < 0 but > -20 (null url
return code in libruxc) or is a 5xx or 6xx http error code. The module will reattempt the
request up to the number of attempts defined in a module parameter.
By default this behaviour is disabled and would require explicitly defining the module
parameter to enable it.
Requests could be exempted from automatic retries by either adding an additional argument
to the function called in config, or a http header could be supplied `X-RUXC-NORETRY` for
example using the existing function signature to exclude the request.
The header name could also be defined as a module parameter.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/2820