<p></p>
<p>With your changes, does it create a new connection every time? Or connections are reused in some cases?</p>
<p>You can make a pull request with your code and we can analyze/review/comment there if can be integrated. The new behaviour should be guarded by a core parameter, because the current one follows the specs. Adding a new core parameter requires changing lex/yacc files, I can do it if you are not familiar with them, just introduce a global variable to use it in IF conditions.</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/2760#issuecomment-858517980">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZKFAEMC7NEWHU6U6VDTSCJ5TANCNFSM46BFDBOA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZLN6MJO4XOV6MNIXSDTSCJ5TA5CNFSM46BFDBOKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGMV7DXA.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/2760#issuecomment-858517980",
"url": "https://github.com/kamailio/kamailio/issues/2760#issuecomment-858517980",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>