Hi Iskren,
What do you mean by 'true IP address'? The real IP address of a device
which sends a request?
$si and $sp reference to the source IP address and port of the message,
"Via" header contains IP address and port of UA and it could be different
from $si, for example if UA is behind NAT device.
Arsen Semionov
On Fri, Sep 29, 2017 at 3:05 PM, Iskren Hadzhinedev <
iskren.hadzhinedev(a)ikiji.com> wrote:
Hi list,
How can I reliably get the sender’s IP address?
$si and $sp are returning the server IP and Port.
I also tried using $Ri and $Rp but it yields the same results.
Inspecting the packet shows the sender’s true IP:Port pair in the Via:
header,
but the From: and To: contain the kamailio server’s public IP address.
Kind regards,
--
*Iskren Hadzhinedev*
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users(a)lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users