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. The calls are landing on another sip gateway, they will allow only the private IP. Please let me know, is it possible to replace.
I tried all the replace functions but it is not working.
If your SIP phone is doing it, try turn off STUN/TURN.
If it’s a SIP ALG (application layer gateway) on an intermediate NAT router, try turning that off.
— Sent from mobile, with due apologies for brevity and errors.
On Apr 8, 2019, at 8:10 AM, vinod mn vinodmn.dbit@gmail.com wrote:
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. The calls are landing on another sip gateway, they will allow only the private IP. Please let me know, is it possible to replace.
I tried all the replace functions but it is not working.
-- Thanks and regards Vinod.M.N _______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
On Mon, Apr 08, 2019 at 05:40:30PM +0530, vinod mn wrote:
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. The calls are landing on another sip gateway, they will allow only the private IP. Please let me know, is it possible to replace.
Alex responded assuming you are talking about the UAC via headers. I read this a from kamailio to the 3rd party sip server, in that case you might want to look at the topos/topoh modules.