Hi, again and sorry for the late answer. 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. In conclusion, I believe that the changes proposed by you will not affect the current implementation.
On Tue, Oct 5, 2021 at 3:03 PM Erhan Onur Sendag notifications@github.com wrote:
Hi Aleksandar,
According to Kamalio naming, top via is the first via, and bottom via header is the last via. For each request, UAC puts its via header to the top of the list. And for each response, UAC deletes the top via header. So the bottom via (last via) always belongs to the UE's UAC (it doesn't matter if it is Request or Response). Why we use first Via header to identify the UE?
BR, Erhan Sendag
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/kamailio/kamailio/issues/2864#issuecomment-934345369, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABO7UZPLYQ5HOGOGCTJOHCLUFLSRBANCNFSM5E6NWBGA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev