<div dir="ltr"><div>Hello everyone,</div><div>I am adding some new features to our Kamailio server, one of them is sending HTTP POST request after calls end. We created simple route like this and we are calling it from event_route[dialog_end]:</div><div><pre><code>route[HTTP_TEST_CALL_END] {

t_newtran();
$http_req(body) = "TEST";
http_async_query("<a href="http://192.168.6.23:2080/cdr_http" target="_blank">http://192.168.6.23:2080/cdr_http</a>", "HTTP_TEST_REPLY");
}<br><br></code></pre><pre><code><span style="font-family:arial,sans-serif">Problem is that Kamailio is crashing on line <b>http_async_query</b>, the log from crash:</span><br><code>Oct  3 16:13:37 sip_server /opt/ipgate/kamailio/sbin/kamailio[5331]: CRITICAL: <core> [core/mem/q_malloc.c:149]: qm_debug_check_frag(): BUG: qm: prev. fragm. tail overwritten(c0003032, abcdefed)[0x97a7ff3c:0x97a7ff58]! Memory allocator was called from http_async_client: hm_hash.c:82. Fragment marked by http_async_client: hm_hash.c:71. Exec from core/mem/q_malloc.c:384.<br><br></code></code></pre><pre><code><code><span style="font-family:arial,sans-serif">In older Kamailio 4.4 I am using http_async_query with no problems.</span> <span style="font-family:arial,sans-serif">I opened issue on GitHub:<br><a href="https://github.com/kamailio/kamailio/issues/2091" target="_blank">https://github.com/kamailio/kamailio/issues/2091</a> I hope that is ok, more logs and core dump is in the issue.</span><br><span style="font-family:arial,sans-serif"><br></span></code></code></pre><pre><span style="font-family:arial,sans-serif"><code><code><span style="font-family:arial,sans-serif">Any help or suggestion is welcomed.</span><br></code></code></span></pre><pre><code><code><span style="font-family:arial,sans-serif">Sincerely Michal</span><br></code></code></pre><pre><code><code><br><br></code></code></pre></div></div>