<p></p>
<p dir="auto">Hi <a class="user-mention" data-hovercard-type="user" data-hovercard-url="/users/miconda/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/miconda">@miconda</a> !</p>
<p dir="auto">I checked this commit, now it works, there are no errors in the log, except for one - there are no extra attributes in the second branch in the Via header,<br>
srvid=10 in my case:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/26491743/151150675-9b758c31-6d5b-41a6-8315-bfc12d576a0c.png"><img src="https://user-images.githubusercontent.com/26491743/151150675-9b758c31-6d5b-41a6-8315-bfc12d576a0c.png" alt="Screenshot_20220126_135326" style="max-width: 100%;"></a></p>
<pre><code>2022/01/26 13:50:57.083262 192.168.122.130:5060 -> 192.168.122.131:5060
OPTIONS sip:192.168.122.131:5060;transport=udp SIP/2.0
Via: SIP/2.0/UDP 192.168.122.130;branch=z9hG4bK1f34.23d14794000000000000000000000000.0;srvid=10
To: <sip:192.168.122.131:5060;transport=udp>
From: <sip:dispatcher@localhost>;tag=e92e326f0a937cb326014225217c2c12-6c22046b
CSeq: 10 OPTIONS
Call-ID: 6bf96ef8338b5e4a-58713@192.168.122.130
Max-Forwards: 70
Content-Length: 0
User-Agent: kamailio (5.6.0-dev3 (x86_64/linux))

2022/01/26 13:50:57.331945 192.168.122.130:5060 -> 192.168.122.129:5060
OPTIONS sip:192.168.122.131:5060;transport=udp SIP/2.0
Via: SIP/2.0/UDP 192.168.122.130;branch=z9hG4bK1f34.23d14794000000000000000000000000.1
To: <sip:192.168.122.131:5060;transport=udp>
From: <sip:dispatcher@localhost>;tag=e92e326f0a937cb326014225217c2c12-6c22046b
CSeq: 10 OPTIONS
Call-ID: 6bf96ef8338b5e4a-58713@192.168.122.130
Max-Forwards: 70
Content-Length: 0
User-Agent: kamailio (5.6.0-dev3 (x86_64/linux))

2022/01/26 13:50:57.334087 192.168.122.129:5060 -> 192.168.122.130:5060
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.122.130;rport=5060;received=192.168.122.130;branch=z9hG4bK1f34.23d14794000000000000000000000000.1
Call-ID: 6bf96ef8338b5e4a-58713@192.168.122.130
From: <sip:dispatcher@localhost>;tag=e92e326f0a937cb326014225217c2c12-6c22046b
To: <sip:192.168.122.131>;tag=z9hG4bK1f34.23d14794000000000000000000000000.1
CSeq: 10 OPTIONS
WWW-Authenticate: Digest realm="asterisk",nonce="1643194257/ff6d7e670c94e952efa5b03ea181f1b3",opaque="30981a5d6736d06f",algorithm=md5,qop="auth"
Server: Asterisk PBX 18.1.1
Content-Length:  0
</code></pre>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/2987#issuecomment-1022086617">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZOLXVQAN53CLWQR7RLUX7HLPANCNFSM5KWRVE6A">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/ABO7UZNQHEJGES5BP73MCI3UX7HLPA5CNFSM5KWRVE6KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOHTV43WI.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><kamailio/kamailio/issues/2987/1022086617</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/2987#issuecomment-1022086617",
"url": "https://github.com/kamailio/kamailio/issues/2987#issuecomment-1022086617",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>