<p>There is only one Via header, so it does not matter where it is located. In SIP it matters only the order of the headers with the same name. So what Kamailio does here is according to the specs. It is not a bug.</p>
<p>You can start a discussion on <a href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a> mailing list if you want more clarification.</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/1865#issuecomment-466904219">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AF36ZZuMz2RPrx6E6JQmsTY1ZR_4V_GAks5vQ5RegaJpZM4bOql0">mute the thread</a>.<img src="https://github.com/notifications/beacon/AF36ZcLFpl9oWvMQntriSLxOEqILbQ8oks5vQ5RegaJpZM4bOql0.gif" height="1" width="1" alt="" /></p>
<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://github.githubassets.com/images/email/message_cards/header.png","avatar_image_url":"https://github.githubassets.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/kamailio/kamailio"}},"updates":{"snippets":[{"icon":"PERSON","message":"@miconda in #1865: There is only one Via header, so it does not matter where it is located. In SIP it matters only the order of the headers with the same name. So what Kamailio does here is according to the specs. It is not a bug.\r\n\r\nYou can start a discussion on sr-users@lists.kamailio.org mailing list if you want more clarification.\r\n"}],"action":{"name":"View Issue","url":"https://github.com/kamailio/kamailio/issues/1865#issuecomment-466904219"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/1865#issuecomment-466904219",
"url": "https://github.com/kamailio/kamailio/issues/1865#issuecomment-466904219",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>