[SR-Users] modifying via header from public IP to private IP

vinod mn vinodmn.dbit at gmail.com
Thu Jan 30 08:19:42 CET 2020

Hi ,
I have a cloud server, when I make call from a sip phone (registered with
in the INVITE header I am seeing the via header with public IP, is there
any way that I can modify via header to send only the private IP.
Please let me know, is it possible to replace.

[image: image.png]
the via headers that kamailio is sending to sip-gateway is
sip-phone ip:

Via: SIP/2.0/UDP * <>*
Via: SIP/2.0/UDP :50386;received=

how to modify the first via header to have private-IP instead of public-IP..

I tried all the replace functions but it is not working.

Thanks and regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20200130/8167af4b/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 11953 bytes
Desc: not available
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20200130/8167af4b/attachment.png>

More information about the sr-users mailing list