[SR-Users] Configuration script behaviour with http_async_client usage
kris.domagalski at exactive.co.uk
Fri Oct 29 14:39:53 CEST 2021
I'm new in Kamailio and looking for some configuration guidance. I'm using http_async_client for API requests. It's configured to use TEST2 route, which should be executed upon reception of HTTPS response. After receiving the response I would like to go back to the request_route and perform some more actions. Currently behaviour is, in the syslog I can see only entries which I push from TEST2 route (TEST 123). Cannot see the one from request route.
Current syslog output:
Expected syslog output:
And now my question is why kamailio is not executing remaining actions (xlog) in request_route?
# define API request body in JSON format
jansson_set("string", "from", $fU, "$var(http_routing_query)");
# set API request parameters
$http_req(all) = $null;
$http_req(suspend) = 1;
$http_req(timeout) = 100;
$http_req(method) = "POST";
$http_req(hdr) = "Content-Type: application/json";
$http_req(body) = $var(http_routing_query);
# send API request
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the sr-users