<div dir="auto">Hello Alex and Daniel,<div dir="auto"><br></div><div dir="auto">Thank you for your answers.</div><div dir="auto"><br></div><div dir="auto">This happened when a client had some network problems and couldn't received my packets. The problem is that after some time and the transaction is dead,since Kamailio does a new dispatcher, my accounting system counts this as two calls and that's the behaviour i want to avoid.</div><div dir="auto">Since in this case the client has network issues and won't probably get the SIP replies, i don't think raising the timers will be very helpfull.</div><div dir="auto"><br></div><div dir="auto">Also, i already use Dialog module for other functionalities so i don't think there's a need to go to hash tables. </div><div dir="auto"><br></div><div dir="auto">Thanks for the help.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">A terça, 12/05/2020, 17:15, Duarte Rocha <<a href="mailto:duarterocha91@gmail.com">duarterocha91@gmail.com</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto">Greetings, <div dir="auto"><br></div><div dir="auto">I have an issue where a client doesn't get the responses to the INVITE sent and as such keeps sending me retransmissions of the INVITE.</div><div dir="auto"><br></div><div dir="auto">While the transaction is still up, Kamailio does its job. However, when the transaction is closed Kamailio processes the request again as a first request (Doing Routing and Dispatcher operations again).</div><div dir="auto"><br></div><div dir="auto">In order to avoid the issue i've made the following code : </div><div dir="auto"><br></div><div dir="auto">    // If it's the first INVITE</div><div dir="auto"> if( is_method("INVITE") && !has_totag() )</div><div dir="auto"> {</div><div dir="auto">  if(t_check_trans()) {</div><div dir="auto">            xnotice("TRANS - INVITE Retransmission"); </div><div dir="auto">        }</div><div dir="auto">        else if ( is_known_dlg())  { </div><div dir="auto">            xerr("KamTAG: INVITE in dialog without To Tag "); </div><div dir="auto">            exit;</div><div dir="auto">        }</div><div dir="auto">    }    </div><div dir="auto">    </div><div dir="auto">Is this a good solution and still compliant with the SIP rules?</div><div dir="auto"><br></div><div dir="auto">Best Regards</div></div>
</blockquote></div>