Description

When using http_async_client, I'm getting the following error:

Nov 28 08:18:49 tm-kamailio-ingress kamailio[24612]: 3(24635) : [core/mem/q_malloc.c:483]: qm_free(): BUG: qm_free: freeing already freed pointer (0x7f62e75130c0), called from http_async_client: async_http.c: set_query_params(616), first free http_async_client: async_http.h: free_async_query(142) - aborting

Troubleshooting

Reproduction

route[REQUEST_PERMISSIONS] {
$var(body) = 0;
jansson_set("string", "from", "$fU", "$var(body)");
jansson_set("string", "to", "$tU", "$var(body)");
$http_req(all) = $null;

$http_req(method) = "POST";

$http_req(hdr) = "Content-Type: application/json";
$http_req(hdr) = "Accept: application/json";
$http_req(hdr) = "Connection: keep-alive";

$http_req(body) = $var(body);

$var(re_url)= "localhost:3000/v1/mock/makeCall";

if (http_async_query("$var(re_url)", "REQUEST_PERMISSIONS_REPLY") < 0) {
t_reply("500", "Server Internal Error");
exit;
}
}

Debugging Data

(paste your debugging data here)

Log Messages

(paste your log messages here)

SIP Traffic

(paste your sip traffic here)

Possible Solutions

Additional Information

(paste your output here)
(paste your output here)


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.