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

Yuriy Gorlichenko ovoshlook at gmail.com
Fri Jan 31 08:44:27 CET 2020


Kamailio as sip proxy according rfc adds via by its own based on set up you
making in cfg file. You doing something wrong, explanations above have to
work.

On Fri, 31 Jan 2020, 07:42 vinod mn, <vinodmn.dbit at gmail.com> wrote:

> Anyone let me know is it possible to modify the public-IP in via to
> private-IP.
>
>
> On Thu, Jan 30, 2020 at 4:41 PM vinod mn <vinodmn.dbit at gmail.com> wrote:
>
>> Thank's david
>>
>> in my kamailio configuration I am using *listen=udp:192.168.131.69:5060
>> <http://192.168.131.69:5060/> advertise 221.20.20.12:5060
>> <http://221.20.20.12:5060/>* (as mentioned by you)
>> and when the kamailio sends an invite to sip-gateway I am seeing this
>> sip-gateway ip is  *192.168.132.67 *   and this gateway don't have any
>> public-ip assigned ..
>>
>> Via: *SIP/2.0/UDP 221.20.20.12:5060 <http://221.20.20.12:5060/>;*
>> branch=z9hG4bKaa6a.14c65f5675077ae7b0df70b02516979b.0
>> Via: SIP/2.0/UDP 192.168.113.112 :50386;received= 192.168.113.112
>> ;branch=z9hG4bK-d87543-550b984016109617-1--d87543-;rport=50386
>>
>> I want  private ip instead of public ip in the first via
>>
>> --
>> Thanks and regards
>> Vinod.M.N
>>
>
>
> --
> Thanks and regards
> Vinod.M.N
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20200131/ec76b614/attachment.html>


More information about the sr-users mailing list