<div dir="ltr">Hi, again and sorry for the late answer.<br>I analyzed some log/pcap files and the source code too. Unfortunately, cscf_get_ue_via is legacy, and I do not know why it is implemented that way.<br>In conclusion, I believe that the changes proposed by you will not affect the current implementation.<div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Oct 5, 2021 at 3:03 PM Erhan Onur Sendag <<a href="mailto:notifications@github.com" target="_blank">notifications@github.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><p></p>
<p>Hi Aleksandar,</p>
<p>According to Kamalio naming, top via is the first via, and bottom via header is the last via.<br>
For each request, UAC puts its via header to the top of the list.  And for each response,  UAC deletes the top via header.<br>
So the bottom via  (last via) always belongs to the UE's UAC (it doesn't matter if it is Request or Response).<br>
Why we use first Via header to identify the UE?</p>
<p>BR,<br>
Erhan Sendag</p>

<p style="font-size:small;color:rgb(102,102,102)">—<br>You are receiving this because you commented.<br>Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/2864#issuecomment-934345369" target="_blank">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZPLYQ5HOGOGCTJOHCLUFLSRBANCNFSM5E6NWBGA" target="_blank">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" target="_blank">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" target="_blank">Android</a>.
<img src="https://github.com/notifications/beacon/ABO7UZMXXSB4TUW5OYGDSMLUFLSRBA5CNFSM5E6NWBGKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOG6YPVGI.gif" height="1" width="1" alt=""></p>
_______________________________________________<br>
Kamailio (SER) - Development Mailing List<br>
<a href="mailto:sr-dev@lists.kamailio.org" target="_blank">sr-dev@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev</a><br>
</blockquote></div>