Currently i am able to compress / decompress entire sip message coming from or going to remote endpoint in kamailio server. It works fine. Now i want to try ITV encryption algorithm for this on-wire data.
https://github.com/mshary/itvFor this i need to keep track of remote endpoint. At this low level, i only have raw data received from or being transmitted to remote UA, without even the remote socket address, so i have no choice but to look at this raw data to determine the identity of remote endpoint. For non-WS transport, i can easily look at topmost VIA and extract network address to use as "unique identification" of endpoint who sent the data or would receive the data. However, for WS transport this topmost VIA is useless static constant string. So VIA checking is pointless (all remote endpoints will or may have same top most VIA).
So i was thinking if there is another way to do it? I thought of using GRUU, but it is not always present, especially in SIP replies.