<p>I tried to reproduce using master, but all ok. Based on default kamailio.cfg, I have added t_replicate_tcp:</p>
<pre><code># Handle SIP registrations
route[REGISTRAR] {
        if (!is_method("REGISTER")) return;

        if(isflagset(FLT_NATS)) {
                setbflag(FLB_NATB);
#!ifdef WITH_NATSIPPING
                # do SIP NAT pinging
                setbflag(FLB_NATSIPPING);
#!endif
        }
        if (!save("location")) {
                sl_reply_error();
        }
        t_replicate_tcp("127.0.0.1", 9);
        exit;
}
</code></pre>
<p>In logs I get:</p>
<pre><code>39(81014) ERROR: <core> [core/tcp_main.c:4135]: handle_tcpconn_ev(): connect 127.0.0.1:9 failed
</code></pre>
<p>and after a while (delete wait time) transaction is cleaned:</p>
<pre><code>25(81000) DEBUG: tm [t_reply.c:1263]: t_should_relay_response(): ->>>>>>>>> T_code=0, new_code=408
25(81000) DEBUG: tm [t_reply.c:2072]: local_reply(): branch=0, save=0, winner=0
25(81000) DEBUG: tm [t_reply.c:2111]: local_reply(): local transaction completed 408/0 (totag retr: 0/0)
26(81001) DEBUG: tm [h_table.c:129]: free_cell_helper(): freeing transaction 0x105712170 from timer.c:651
</code></pre>
<p><code>tm.stats</code> showing 0 current transactions.</p>
<p>What version are you using? What are the parameters you set for tm module?</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you commented.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/1220#issuecomment-326297453">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AF36ZQ1AzvAILOKSL6dfvHbRGLr6JFnCks5sdrb7gaJpZM4PC_1r">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZSeXZPDmYEtwX7nQLZ7CslUCblv0ks5sdrb7gaJpZM4PC_1r.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/kamailio/kamailio/issues/1220#issuecomment-326297453"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>

<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/kamailio/kamailio","title":"kamailio/kamailio","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/kamailio/kamailio"}},"updates":{"snippets":[{"icon":"PERSON","message":"@miconda in #1220: I tried to reproduce using master, but all ok. Based on default kamailio.cfg, I have added t_replicate_tcp:\r\n\r\n```\r\n# Handle SIP registrations\r\nroute[REGISTRAR] {\r\n\tif (!is_method(\"REGISTER\")) return;\r\n\r\n\tif(isflagset(FLT_NATS)) {\r\n\t\tsetbflag(FLB_NATB);\r\n#!ifdef WITH_NATSIPPING\r\n\t\t# do SIP NAT pinging\r\n\t\tsetbflag(FLB_NATSIPPING);\r\n#!endif\r\n\t}\r\n\tif (!save(\"location\")) {\r\n\t\tsl_reply_error();\r\n\t}\r\n\tt_replicate_tcp(\"127.0.0.1\", 9);\r\n\texit;\r\n}\r\n```\r\n\r\nIn logs I get:\r\n\r\n```\r\n39(81014) ERROR: \u003ccore\u003e [core/tcp_main.c:4135]: handle_tcpconn_ev(): connect 127.0.0.1:9 failed\r\n```\r\n\r\nand after a while (delete wait time) transaction is cleaned:\r\n\r\n```\r\n25(81000) DEBUG: tm [t_reply.c:1263]: t_should_relay_response(): -\u003e\u003e\u003e\u003e\u003e\u003e\u003e\u003e\u003e T_code=0, new_code=408\r\n25(81000) DEBUG: tm [t_reply.c:2072]: local_reply(): branch=0, save=0, winner=0\r\n25(81000) DEBUG: tm [t_reply.c:2111]: local_reply(): local transaction completed 408/0 (totag retr: 0/0)\r\n26(81001) DEBUG: tm [h_table.c:129]: free_cell_helper(): freeing transaction 0x105712170 from timer.c:651\r\n```\r\n\r\n`tm.stats` showing 0 current transactions.\r\n\r\nWhat version are you using? What are the parameters you set for tm module?"}],"action":{"name":"View Issue","url":"https://github.com/kamailio/kamailio/issues/1220#issuecomment-326297453"}}}</script>