<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>