<p></p>
<p>The behaviour is according SIP specs, see <code>RFC 3261</code>, section <code>12.2 Requests within a Dialog</code>:</p>
<ul>
<li><a href="https://tools.ietf.org/html/rfc3261#section-12.2" rel="nofollow">https://tools.ietf.org/html/rfc3261#section-12.2</a></li>
</ul>
<p>Relevant snippet:</p>
<pre><code>   Requests within a dialog MAY contain Record-Route and Contact header
   fields.  However, these requests do not cause the dialog's route set
   to be modified, although they may modify the remote target URI.
</code></pre>
<p>I am not aware of any newer RFC amending that, if you know such, point it here.</p>
<p>Now, if one needs such behaviour out of SIP specs, I am fine to accept a contribution that makes it configurable with a modparam.</p>
<p>For the moment, I am going to label this as a request for enhancement. If nobody commits to implement it, it will be closed in the near future.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/2554#issuecomment-729922020">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZJT7VQD6MZALR7LRO3SQQSDPANCNFSM4TZ4EHTQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZJLB3SJ477ES7AP5RLSQQSDPA5CNFSM4TZ4EHT2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFOA3TZA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/2554#issuecomment-729922020",
"url": "https://github.com/kamailio/kamailio/issues/2554#issuecomment-729922020",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>