<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">I had a bug, I was resuming the wrong transaction indeed. I created a new transaction for the purpose of http async in a different route and this was causing the issue.<div class=""><br class=""></div><div class="">Actually managed to solve it after I posted this question.</div><div class=""><br class=""></div><div class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 13 Apr 2018, at 9:55, Kjeld Flarup <<a href="mailto:kjeld.flarup@liberalismen.dk" class="">kjeld.flarup@liberalismen.dk</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">You are suspending in [6039] and resuming in [6092], does these two processes share memory?<div class=""><br class=""></div><div class=""> Kjeld</div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">2018-04-12 11:52 GMT+02:00 Arik Halperin <span dir="ltr" class=""><<a href="mailto:arik@mobilinq.io" target="_blank" class="">arik@mobilinq.io</a>></span>:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-US" link="#0563C1" vlink="#954F72" class="">
<div class="m_-521505815009058530WordSection1"><p class="MsoNormal"><span style="font-size:11.0pt" class="">Hello,<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt" class=""><u class=""></u> <u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt" class="">I’m trying to resume a suspended transaction, but keep getting this error:<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt" class=""><u class=""></u> <u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt" class="">WARNING: tm [t_suspend.c:193]: t_continue(): transaction is not suspended [20608:1256194941]<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt" class="">WARNING: tmx [tmx_mod.c:686]: w_t_continue(): resuming the processing of transaction [20608:1256194941] failed<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt" class="">WARNING: tm [t_lookup.c:1483]: t_unref(): script writer didn't release transaction<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt" class=""><u class=""></u> <u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt" class=""><u class=""></u> <u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt" class="">I’m implementing push handling, in INVITE I do the following:<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt" class=""><u class=""></u> <u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt" class="">route[INVITE] {<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt" class=""> <b class="">if (!lookup("location"))<u class=""></u><u class=""></u></b></span></p><p class="MsoNormal"><span style="font-size:11.0pt" class=""> {<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt" class=""> <u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt" class=""> send_reply("100", "Trying");<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt" class=""> record_route();<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><b class=""><span style="font-size:11.0pt" class=""> route(SUSPEND);<u class=""></u><u class=""></u></span></b></p><p class="MsoNormal"><span style="font-size:11.0pt" class=""> }<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt" class=""> else<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt" class=""> {<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt" class=""> # NAT detection<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt" class=""> route(NATMANAGE);<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt" class=""> if(!t_is_set("onreply_route")) t_on_reply("MANAGE_REPLY");<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt" class=""> record_route();<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt" class=""> t_relay();<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt" class=""> ts_store();<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt" class=""> $sht(vtp=>stored::$rU) = 1;<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt" class="">}<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt" class="">route(SENDPUSH);<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt" class="">}<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt" class=""><u class=""></u> <u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt" class=""># suspend the transaction<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt" class="">route[SUSPEND] {<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><b class=""><span style="font-size:11.0pt" class=""><u class=""></u> <u class=""></u></span></b></p><p class="MsoNormal"><b class=""><span style="font-size:11.0pt" class="">if(!t_suspend()) </span></b><span style="font-size:11.0pt" class="">//Transaction is suspended!<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt" class="">{<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt" class=""> exit;<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt" class="">}<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt" class="">$sht(vtp=>join::$rU) = "" + $T(id_index) + ":" +$T(id_label);<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt" class="">}<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt" class=""><u class=""></u> <u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt" class="">In Register I call the PUSHJOIN route:<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt" class=""><u class=""></u> <u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt" class=""># append branches or resume the transaction<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt" class="">route[PUSHJOIN] {<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt" class="">$var(hjoin) = 0;<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt" class="">lock("$tU");<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt" class="">$var(hjoin) = $sht(vtp=>join::$tU);<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt" class="">$var(hstored) = $sht(vtp=>stored::$tU);<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt" class="">$sht(vtp=>join::$tU) = $null;<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt" class="">unlock("$tU");<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt" class="">if ($var(hjoin)==0)<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt" class="">{<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt" class=""> if ($var(hstored))<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt" class=""> ts_append("location", "$tu");<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt" class=""> return;<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt" class="">}<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt" class="">$var(id_index) = $(var(hjoin){s.select,0,:}{<a href="http://s.int/" target="_blank" class="">s.<wbr class="">int</a>});<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt" class="">$var(id_label) = $(var(hjoin){s.select,1,:}{<a href="http://s.int/" target="_blank" class="">s.<wbr class="">int</a>});<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt" class="">($var(hjoin))\n");<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><b class=""><span style="font-size:11.0pt" class=""> t_continue("$var(id_index)", "$var(id_label)", "INVRESUME");<u class=""></u><u class=""></u></span></b></p><p class="MsoNormal"><span style="font-size:11.0pt" class="">}<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt" class=""><u class=""></u> <u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt" class=""><u class=""></u> <u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt" class="">For some reason I keep getting:<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt" class=""><u class=""></u> <u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt" class="">Apr 12 12:37:11 kamprod /usr/local/sbin/kamailio[6039]<wbr class="">: ERROR: <script>: 1111 suspended transaction [20608:1256194941] FreeSWITCH => 972587102881<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt" class=""><u class=""></u> <u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt" class="">pr 12 12:37:19 kamprod /usr/local/sbin/kamailio[6092]<wbr class="">: ERROR: <script>: 1111 tU=972587102881 20608:1256194941 0<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt" class="">Apr 12 12:37:19 kamprod /usr/local/sbin/kamailio[6092]<wbr class="">: ERROR: <script>: 1111 resuming trasaction [20608:1256194941] 972587102881 (20608:1256194941)<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt" class="">Apr 12 12:37:19 kamprod /usr/local/sbin/kamailio[6092]<wbr class="">: WARNING: tm [t_suspend.c:193]: t_continue(): transaction is not suspended [20608:1256194941]<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt" class="">Apr 12 12:37:19 kamprod /usr/local/sbin/kamailio[6092]<wbr class="">: WARNING: tmx [tmx_mod.c:686]: w_t_continue(): resuming the processing of transaction [20608:1256194941] failed<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt" class="">Apr 12 12:37:19 kamprod /usr/local/sbin/kamailio[6092]<wbr class="">: WARNING: tm [t_lookup.c:1483]: t_unref(): script writer didn't release transaction<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt" class=""><u class=""></u> <u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt" class=""><u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt" class=""><u class=""></u> <u class=""></u></span></p>
</div>
</div>
<br class="">______________________________<wbr class="">_________________<br class="">
Kamailio (SER) - Users Mailing List<br class="">
<a href="mailto:sr-users@lists.kamailio.org" class="">sr-users@lists.kamailio.org</a><br class="">
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank" class="">https://lists.kamailio.org/<wbr class="">cgi-bin/mailman/listinfo/sr-<wbr class="">users</a><br class="">
<br class=""></blockquote></div><br class=""></div>
_______________________________________________<br class="">Kamailio (SER) - Users Mailing List<br class=""><a href="mailto:sr-users@lists.kamailio.org" class="">sr-users@lists.kamailio.org</a><br class="">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users<br class=""></div></blockquote></div><br class=""></div></body></html>