<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial">Thanks, the public ip is not a real device ip, it is a NAT external public ip, so if I listen on that, server will not work. Anyway, I found my problem is caused by firewall, so even the via header is priviate ip, I still can get response, so please ignore this question, thanks for your help. <br><br><br><br><br><div></div><div id="divNeteaseMailCard"></div><br>At 2015-01-26 17:14:46, "Olle E. Johansson" <oej@edvina.net> wrote:<br> <blockquote id="isReplyContent" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><br><div><div>On 25 Jan 2015, at 14:48, dongwf <<a href="mailto:dongwflj@163.com">dongwflj@163.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="line-height: 1.7; font-size: 14px; font-family: Arial;"><div>Hi Kamailio:</div><div>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!</div></div></blockquote></div><br><div>The core cookbok documents the "advertise" parameter to the "listen" config setting for this case.</div><div><br></div><div><a href="http://www.kamailio.org/wiki/cookbooks/4.2.x/core#listen">http://www.kamailio.org/wiki/cookbooks/4.2.x/core#listen</a></div><div><br></div><div>Go ahead and try that one.</div><div><br></div><div>/O</div></blockquote></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>