[SR-Users] How can change via header's ip to public ip when Kamailio locate behind a NAT network?

dongwf dongwflj at 163.com
Sun Jan 25 14:48:22 CET 2015


Hi Kamailio:
I use Kamailio with Amazon EC2 virtual machine, it has a private ip such as 172.31.7.164, kamailio listened on this, I assigned a float public ip 54.X.X.X on it, and all the client send traffics to the public ip and it work well(REGISTER), but now I would relay kamailio's traffic to another real public server, the server found the INVITE's via header's ip address is 172.31.7.164, so it failed to response 100 trying and 200 OK to my kamalio, because it send to a private 172.31.7.164, so my question is can I change Kamailio's via header's ip value with my specified public ip? How can I do? Thanks a lot!








-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20150125/4af579f1/attachment.html>


More information about the sr-users mailing list