<div dir="ltr">Hi,<div>the http async callback implicitly resumes the transaction that it's then processed in the routing script callback route.</div><div>If there is no action in the callback route you'll get the message about the not released transaction. </div><div>Depending on your routing logic you have two choices:</div><div>1) you don't suspend the transaction when calling http_async_query, setting $http_req(suspend)=0. </div><div>2) you suspend again the transaction in the callback route </div><div><br></div><div>Cheers,</div><div><br></div><div>Federico</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jan 7, 2021 at 10:55 PM Jeremy McNamara <<a href="mailto:mcnamara.jeremy@gmail.com">mcnamara.jeremy@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><br></div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jan 7, 2021 at 2:59 PM Daniel-Constantin Mierla <<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div>
    <p>Hello,</p>
    <p>have you run with debug=3 in kamailio.cfg? You should see more
      log messages about what happens, maybe the transaction is
      destroyed for some reason, there are debug messages when that
      happens.</p></div></blockquote><div><br></div><div><br></div><div>Upon deep dive today we discovered that http_async_client might be the issue and/or we need to call t_release() from within the HTTP reply handler? </div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><font face="monospace">16(9808) DEBUG: <core> [core/parser/msg_parser.c:620]: parse_msg(): SIP Reply  (status):<br>16(9808) DEBUG: <core> [core/parser/msg_parser.c:622]: parse_msg():  version: <HTTP/1.1><br>16(9808) DEBUG: <core> [core/parser/msg_parser.c:624]: parse_msg():  status:  <200><br>16(9808) DEBUG: <core> [core/parser/msg_parser.c:626]: parse_msg():  reason:  <OK><br>16(9808) DEBUG: <core> [core/parser/msg_parser.c:185]: get_hdr_field(): content_length=2<br>16(9808) DEBUG: <core> [core/parser/msg_parser.c:89]: get_hdr_field(): found end of header<br>16(9808) DEBUG: http_async_client [async_http.c:209]: async_http_cb(): successfully parsed http reply 0x7f6c871bb3a0<br>16(9808) DEBUG: tm [t_lookup.c:1612]: t_lookup_ident_filter(): transaction found<br>16(9808) DEBUG: http_async_client [async_http.c:235]: async_http_cb(): resuming transaction (49045:953290246)<br>16(9808) DEBUG: tm [t_lookup.c:1612]: t_lookup_ident_filter(): transaction found<br>16(9808) INFO: <script>: [PUSH_RESPONSE]: status 200<br>16(9808) INFO: <script>: [PUSH_RESPONSE]: body   OK<br>16(9808) DEBUG: dialog [dlg_var.c:97]: cb_dlg_locals_reset(): resetting the local dialog shortcuts on script callback: 2147483650<br>16(9808) WARNING: tm [t_lookup.c:1505]: t_unref(): script writer didn't release transaction</font><br></div><div><br></div><div>...</div><div><font face="monospace"><br></font></div><div><font face="monospace">21(9813) INFO: <script>: [R-JOIN]: Resuming trasaction [49045:953290246] viaan [49045:953290246]<br>21(9813) DEBUG: tm [t_lookup.c:1604]: t_lookup_ident_filter(): transaction in terminated phase - skipping<br>21(9813) WARNING: tm [t_suspend.c:192]: t_continue_helper(): active transaction not found<br>21(9813) WARNING: tmx [tmx_mod.c:847]: w_t_continue(): resuming the processing of transaction [49045:953290246] failed</font><br></div><div> </div></div></div>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div>