Hi,

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:
TEST123

Expected syslog output:
TEST 123
TEST 789

And now my question is why kamailio is not executing remaining actions (xlog) 
in request_route?

request_route {
                route(TEST1);
                xlog("L_INFO","TEST 789\n");
}

route[TEST1] {
                # 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);
                t_newtran();
                # send API request
                http_async_query(http://local:3000/test, "TEST2");
}

route[TEST2] {
                xlog("L_INFO","TEST 123\n");
}

Thanks
Kris


__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
  * [email protected]
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to