Hi,
the http async callback implicitly resumes the transaction that it's then processed in the routing script callback route.
If there is no action in the callback route you'll get the message about the not released transaction. 
Depending on your routing logic you have two choices:
1) you don't suspend the transaction when calling http_async_query, setting $http_req(suspend)=0. 
2) you suspend again the transaction in the callback route 

Cheers,

Federico

On Thu, Jan 7, 2021 at 10:55 PM Jeremy McNamara <mcnamara.jeremy@gmail.com> wrote:

On Thu, Jan 7, 2021 at 2:59 PM Daniel-Constantin Mierla <miconda@gmail.com> wrote:

Hello,

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.



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? 





16(9808) DEBUG: <core> [core/parser/msg_parser.c:620]: parse_msg(): SIP Reply  (status):
16(9808) DEBUG: <core> [core/parser/msg_parser.c:622]: parse_msg():  version: <HTTP/1.1>
16(9808) DEBUG: <core> [core/parser/msg_parser.c:624]: parse_msg():  status:  <200>
16(9808) DEBUG: <core> [core/parser/msg_parser.c:626]: parse_msg():  reason:  <OK>
16(9808) DEBUG: <core> [core/parser/msg_parser.c:185]: get_hdr_field(): content_length=2
16(9808) DEBUG: <core> [core/parser/msg_parser.c:89]: get_hdr_field(): found end of header
16(9808) DEBUG: http_async_client [async_http.c:209]: async_http_cb(): successfully parsed http reply 0x7f6c871bb3a0
16(9808) DEBUG: tm [t_lookup.c:1612]: t_lookup_ident_filter(): transaction found
16(9808) DEBUG: http_async_client [async_http.c:235]: async_http_cb(): resuming transaction (49045:953290246)
16(9808) DEBUG: tm [t_lookup.c:1612]: t_lookup_ident_filter(): transaction found
16(9808) INFO: <script>: [PUSH_RESPONSE]: status 200
16(9808) INFO: <script>: [PUSH_RESPONSE]: body   OK
16(9808) DEBUG: dialog [dlg_var.c:97]: cb_dlg_locals_reset(): resetting the local dialog shortcuts on script callback: 2147483650
16(9808) WARNING: tm [t_lookup.c:1505]: t_unref(): script writer didn't release transaction


...

21(9813) INFO: <script>: [R-JOIN]: Resuming trasaction [49045:953290246] viaan [49045:953290246]
21(9813) DEBUG: tm [t_lookup.c:1604]: t_lookup_ident_filter(): transaction in terminated phase - skipping
21(9813) WARNING: tm [t_suspend.c:192]: t_continue_helper(): active transaction not found
21(9813) WARNING: tmx [tmx_mod.c:847]: w_t_continue(): resuming the processing of transaction [49045:953290246] failed

 
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users