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, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.

_______________________________________________
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev