<div dir="ltr">Hi Kiwon<div><br></div><div>You need to handle NAT scenarios. Try putting this code on line 254, right after "t_check_trans()":</div><div><br></div><div>if (nat_uac_test("7"))<br>{<br>  #nathelper<br>  if(is_method("REGISTER"))<br>    fix_nated_register();<br>  else<br>    fix_nated_contact();<br>  xlog("L_NOTICE", "Fix contact - M=$rm RURI=$ru F=$fu T=$tu IP=$si ID=$ci\n");<br>}<br></div><div><br></div><div>You also need to enable nathelper module. The reason is that you need to use the public IP/Port that sent data to opensips and ignore the Contact. </div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Mar 28, 2022 at 5:20 AM 이기원 <<a href="mailto:chester@zigbang.com">chester@zigbang.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi guys, I'm trying to introduce opensips into my company these days.<div><br></div><div>I'm testing with many other phones. During the test, I had a very strange symptom.</div><div><br></div><div>Please, take look at the picture below first. (Please find my screenshot from the link below)</div><div>A. The most left one 14.52.252.236 is a phone (with hardware).</div><div>B. 10.0.0.177 is proxy which is woking on cloud and its external IP is 58.79.209.75</div><div>C. 175.223.34.31 is a zoiper softphone which is working on iphone</div><div>D. 192.168.10.187 is the private IP address of A - a phone which is the most left one (14.52.252.236)</div><div><br></div><div><br></div><div><br></div><div><a href="https://drive.google.com/file/d/14zAREWLsluIa1TcU7tZJLSgff-iPqBDA/view?usp=sharing" target="_blank">https://drive.google.com/file/d/14zAREWLsluIa1TcU7tZJLSgff-iPqBDA/view?usp=sharing</a><br></div><div><br></div><div><div>As you can see, C is calling A but opensips transmits the INVITE rqeuset to A's private IP address.</div><div>INVITE request should be transmitted A's public IP address - In this scenario 14.52.252.236 (A) </div><div><br></div><div>I also attach my opensips.cfg. What's wrong with me? </div><div><br></div><div>Thank you</div><div><br></div><div><br></div><div>Regards </div><div>Kiwon</div></div><div dir="ltr"><div dir="ltr"></div></div></div>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div>