<div dir="ltr">Hi Kiwon<div><br></div><div>You applied at beginning, before loose_route. Not sure it gonna work this way, i sent you exactly line where to put the code.</div><div>Move this:</div><div> if (nat_uac_test(23)) {<br>             if (is_method("REGISTER")) {<br>                        fix_nated_register();<br>                 setbflag("NAT");<br>            } else {<br>                      fix_nated_contact();<br>                  setflag("NAT");<br>             }<br>     }<br></div><div><br></div><div>After:</div><div>t_check_trans();<br></div><div><br></div><div>Anyway, I suggest you add some log to confirm messages are coming. Put this line right after main route:</div><div>xlog("L_ERR","MESSAGE RECEIVED $rm [$fu/$tu/$ru/$ci/$si]");<br></div><div><br></div><div>There's no big deal on Opensips, everything comes to main route, internal transaction responses comes from specific routes. (<a href="https://www.opensips.org/Documentation/Script-Routes-3-1" target="_blank">https://www.opensips.org/Documentation/Script-Routes-3-1</a>)</div><div><br></div><div>I have some spare time tomorrow, send me a direct message if you need help.</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Mar 29, 2022 at 12:43 AM 이기원 <<a href="mailto:chester@zigbang.com" target="_blank">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 Daniel and opensips users goup,<div>Thank you for answering my questions.<div><br></div><div>I missed to inform you about the opensips version I'm trying. It is 3.2.5.<br></div><div> </div><div>After modifying config, opensips does not respond for the REGISTER requests from phones.<br></div><div>Actually I already tried the following <a href="https://kb.smartvox.co.uk/opensips/nat-contact-and-via-fixing-in-sip-part-3/" target="_blank">https://kb.smartvox.co.uk/opensips/nat-contact-and-via-fixing-in-sip-part-3/</a> article but I have the same problem - no response for REGISTERs.</div><div><br></div><div>Is there any way to know why opensips ignores or does not respond for REGISTERs?</div><div>Please find my new opensips.cfg that Diniel's advice is applied.</div><div><br></div><div><br></div><div>Thank you</div><div><br></div><div>Regards</div><div>Kiwon</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">2022년 3월 28일 (월) 오후 10:47, Daniel Zanutti <<a href="mailto:daniel.zanutti@gmail.com" target="_blank">daniel.zanutti@gmail.com</a>>님이 작성:<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 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" target="_blank">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>
_______________________________________________<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></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>