[prev in list] [next in list] [prev in thread] [next in thread] 

List:       sr-dev
Subject:    [sr-dev] modifying via header from public IP to private IP
From:       vinod mn <vinodmn.dbit () gmail ! com>
Date:       2020-01-30 7:31:42
Message-ID: CAHeWXy637Kb-zyUvJLV+GXy3kP6gVUaB2TTaTfd+QWqxhmU+qw () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/related)]

[Attachment #4 (multipart/alternative)]


Hi ,
I have a cloud server, when I make call from a sip phone (registered with
kamailio),
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:192.168.113.112

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

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
Vinod.M.N

[Attachment #7 (text/html)]

<div dir="ltr">Hi ,<div>I have a cloud server, when I make call from a sip phone \
(registered with kamailio),</div><div>in the INVITE header I am seeing the  <span \
class="gmail-il">via</span>  header with public IP, is there any way that I can  \
<span class="gmail-il">modify</span>  <span class="gmail-il">via</span>  header to \
send only the private IP.</div><div>Please let  me know, is it possible to \
replace.<br></div><div><br></div><div><div><img src="cid:ii_k60ekz1n0" \
alt="image.png" width="472" height="128" style="margin-right: \
0px;"><br></div></div><div>the via headers that kamailio is sending to sip-gateway is \
</div><div>sip-phone ip:192.168.113.112</div><div><br></div><div>Via: SIP/2.0/UDP \
<b><a href="http://221.20.20.12:5060">221.20.20.12:5060</a></b>;branch=z9hG4bKaa6a.14c65f5675077ae7b0df70b02516979b.0<br>Via: \
SIP/2.0/UDP 

192.168.113.112 :50386;received=

192.168.113.112

;branch=z9hG4bK-d87543-550b984016109617-1--d87543-;rport=50386<br></div><div><br></div><div>how \
to modify the first via header to have private-IP instead of \
public-IP..</div><div><br></div><div>I tried all the replace functions but it is not \
working.</div><div><br></div>-- <br><div dir="ltr" class="gmail_signature" \
data-smartmail="gmail_signature"><div dir="ltr">Thanks and regards  \
<div>Vinod.M.N</div></div></div></div>


["image.png" (image/png)]
[Attachment #9 (text/plain)]

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic