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