[OpenSIPS-Users] launch (or launch + rest_post) don't work with many IP addresses returned from DNS
Павел Зенкевич
strekozec2008 at gmail.com
Tue Nov 19 09:45:31 UTC 2024
Hi, I tried to send http request HTTP from FAILURE ROUTE to my API with
command:
launch(rest_post("http://10.219.5.80/trunks/$avp(trunk_id)/disable", "", ,
$var(rcode)), resume);
And it works, but when I specify a host with multiple addresses (singular),
it breaks everything. This example request:
launch(rest_post("http://singular/trunks/$avp(trunk_id)/disable", "", ,
$var(rcode)), resume);
I thought the problem was in rest_post, but it turned out that it works
like this.
rest_post("http://singular/trunks/$avp(trunk_id)/disable", "", ,
$var(rcode))
However this is a synchronous request.
I know that async processing is disabled to handle all routes except
request routes, but launch() worked. Is there anything I can do so that the
asynchronous HTTP request from my FAILURE ROUTE using a host with a large
number of IP addresses?
Best regards, Pavel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20241119/3db3aa9d/attachment.html>
More information about the Users
mailing list