<div dir="ltr"><div class="" tabindex="-1" style="outline:none;font-size:medium"><div class="" style="margin-bottom:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-radius:0px;float:left;width:875px"><div class="" style="padding-top:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-bottom-color:rgb(216,216,216);border-top-color:rgb(216,216,216);border-radius:0px;margin-bottom:0px;margin-left:0px;margin-right:0px"><div id=":1e4"><div class="" style="padding-bottom:20px;padding-left:8px"><div class="" style="margin-left:44px"><div id=":1eo" class="" style="font-size:12.8px;margin-bottom:0px;margin-left:0px;padding-bottom:5px"><div id=":1f9" class="" style="overflow:hidden"><div dir="ltr">Dear man :<div><br></div><div>I am a new user for opensips , and my staff installed one opensips server for company service .</div><div><br></div><div>I something suffer us recently . One user can&#39;t call another user sometime  , it show &quot; time out &quot;.</div><div><br></div><div>so I create two account for test u2099 &amp; u2098 .</div><div><br></div><div>one day I find the situation . I have two wifi AP , one ip 218.211.224.81 , the other is 218.211.224.83</div><div><br></div><div>I find I can&#39;t call u2098 from u2099 , I find two register record in opensips console as follow:</div><div><br></div><div><div>OpenSIPS$:online</div><div>Domain:: location table=512 records=6</div><div> <span style="white-space:pre-wrap">        </span></div><div> <span style="white-space:pre-wrap">        </span>AOR:: u2099</div><div> <span style="white-space:pre-wrap">                </span>Contact:: <a href="http://sip:u2099@118.163.76.241:58623/" target="_blank">sip:u2099@118.163.76.241:58623</a> Q=</div><div> <span style="white-space:pre-wrap">                        </span>Expires:: 1645</div><div> <span style="white-space:pre-wrap">                        </span>Callid:: CQUZde-qZ~</div><div> <span style="white-space:pre-wrap">                        </span>Cseq:: 23</div><div> <span style="white-space:pre-wrap">                        </span>User-agent:: LinphoneAndroid/2.5.0 (belle-sip/1.4.1)</div><div> <span style="white-space:pre-wrap">                        </span>State:: CS_SYNC</div><div> <span style="white-space:pre-wrap">                        </span>Flags:: 0</div><div> <span style="white-space:pre-wrap">                        </span>Cflags:: NAT</div><div> <span style="white-space:pre-wrap">                        </span>Socket:: udp:<a href="http://172.31.20.192:5060/" target="_blank">172.31.20.192:5060</a></div><div> <span style="white-space:pre-wrap">                        </span>Methods:: 4294967295</div><div> <span style="white-space:pre-wrap">                        </span>SIP_instance:: &lt;urn:uuid:6d257aac-06d8-4938-8078-23065ae6bdb3&gt;</div><div> <span style="white-space:pre-wrap">        </span>AOR:: u2098</div><div> <span style="white-space:pre-wrap">                </span>Contact:: <a href="http://sip:u2098@218.211.224.81:5060/" target="_blank">sip:u2098@218.211.224.81:5060</a> Q=</div><div> <span style="white-space:pre-wrap">                        </span>Expires:: 43</div><div> <span style="white-space:pre-wrap">                        </span>Callid:: 4Cb~7N3o41</div><div> <span style="white-space:pre-wrap">                        </span>Cseq:: 25</div><div> <span style="white-space:pre-wrap">                        </span>User-agent:: LinphoneAndroid/2.4.1 (belle-sip/1.4.1)</div><div> <span style="white-space:pre-wrap">                        </span>State:: CS_SYNC</div><div> <span style="white-space:pre-wrap">                        </span>Flags:: 0</div><div> <span style="white-space:pre-wrap">                        </span>Cflags:: NAT</div><div> <span style="white-space:pre-wrap">                        </span>Socket:: udp:<a href="http://172.31.20.192:5060/" target="_blank">172.31.20.192:5060</a></div><div> <span style="white-space:pre-wrap">                        </span>Methods:: 4294967295</div><div> <span style="white-space:pre-wrap">                        </span>SIP_instance:: &lt;urn:uuid:5177d940-b2f5-459d-bb01-da5e43b7599b&gt;</div><div> <span style="white-space:pre-wrap">                </span>Contact:: <a href="mailto:sip%3Au2098@218.211.224.81" target="_blank">sip:u2098@218.211.224.81</a> Q=</div><div> <span style="white-space:pre-wrap">                        </span>Expires:: 910</div><div> <span style="white-space:pre-wrap">                        </span>Callid:: 4Cb~7N3o41</div><div> <span style="white-space:pre-wrap">                        </span>Cseq:: 28</div><div> <span style="white-space:pre-wrap">                        </span>User-agent:: LinphoneAndroid/2.4.1 (belle-sip/1.4.1)</div><div> <span style="white-space:pre-wrap">                        </span>State:: CS_SYNC</div><div> <span style="white-space:pre-wrap">                        </span>Flags:: 0</div><div> <span style="white-space:pre-wrap">                        </span>Cflags:: </div><div> <span style="white-space:pre-wrap">                        </span>Socket:: udp:<a href="http://172.31.20.192:5060/" target="_blank">172.31.20.192:5060</a></div><div> <span style="white-space:pre-wrap">                        </span>Methods:: 4294967295</div><div> <span style="white-space:pre-wrap">                        </span>SIP_instance:: &lt;urn:uuid:5177d940-b2f5-459d-bb01-da5e43b7599b&gt;</div></div><div><br></div><div><br></div><div>But it&#39;s wrong for u2098 ,because I transfer wifi to ip 218.211.224.83 AP .</div><div><br></div><div>Then I call from u2098 to u2099 , the I find the register information from console .</div><div><div>OpenSIPS$:online</div><div><br></div><div><span style="white-space:pre-wrap">                </span></div><div> <span style="white-space:pre-wrap">        </span>AOR:: u2099</div><div> <span style="white-space:pre-wrap">                </span>Contact:: <a href="http://sip:u2099@118.163.76.241:58623/" target="_blank">sip:u2099@118.163.76.241:58623</a> Q=</div><div> <span style="white-space:pre-wrap">                        </span>Expires:: 913</div><div> <span style="white-space:pre-wrap">                        </span>Callid:: CQUZde-qZ~</div><div> <span style="white-space:pre-wrap">                        </span>Cseq:: 23</div><div> <span style="white-space:pre-wrap">                        </span>User-agent:: LinphoneAndroid/2.5.0 (belle-sip/1.4.1)</div><div> <span style="white-space:pre-wrap">                        </span>State:: CS_SYNC</div><div> <span style="white-space:pre-wrap">                        </span>Flags:: 0</div><div> <span style="white-space:pre-wrap">                        </span>Cflags:: NAT</div><div> <span style="white-space:pre-wrap">                        </span>Socket:: udp:<a href="http://172.31.20.192:5060/" target="_blank">172.31.20.192:5060</a></div><div> <span style="white-space:pre-wrap">                        </span>Methods:: 4294967295</div><div> <span style="white-space:pre-wrap">                        </span>SIP_instance:: &lt;urn:uuid:6d257aac-06d8-4938-8078-23065ae6bdb3&gt;</div><div> <span style="white-space:pre-wrap">        </span>AOR:: u2098</div><div> <span style="white-space:pre-wrap">                </span>Contact:: <a href="mailto:sip%3Au2098@218.211.224.81" target="_blank">sip:u2098@218.211.224.81</a> Q=</div><div> <span style="white-space:pre-wrap">                        </span>Expires:: 178</div><div> <span style="white-space:pre-wrap">                        </span>Callid:: 4Cb~7N3o41</div><div> <span style="white-space:pre-wrap">                        </span>Cseq:: 28</div><div> <span style="white-space:pre-wrap">                        </span>User-agent:: LinphoneAndroid/2.4.1 (belle-sip/1.4.1)</div><div> <span style="white-space:pre-wrap">                        </span>State:: CS_SYNC</div><div> <span style="white-space:pre-wrap">                        </span>Flags:: 0</div><div> <span style="white-space:pre-wrap">                        </span>Cflags:: </div><div> <span style="white-space:pre-wrap">                        </span>Socket:: udp:<a href="http://172.31.20.192:5060/" target="_blank">172.31.20.192:5060</a></div><div> <span style="white-space:pre-wrap">                        </span>Methods:: 4294967295</div><div> <span style="white-space:pre-wrap">                        </span>SIP_instance:: &lt;urn:uuid:5177d940-b2f5-459d-bb01-da5e43b7599b&gt;</div><div> <span style="white-space:pre-wrap">                </span>Contact:: <a href="mailto:sip%3Au2098@218.211.224.83" target="_blank">sip:u2098@218.211.224.83</a> Q=</div><div> <span style="white-space:pre-wrap">                        </span>Expires:: 3419</div><div> <span style="white-space:pre-wrap">                        </span>Callid:: 4Cb~7N3o41</div><div> <span style="white-space:pre-wrap">                        </span>Cseq:: 30</div><div> <span style="white-space:pre-wrap">                        </span>User-agent:: LinphoneAndroid/2.4.1 (belle-sip/1.4.1)</div><div> <span style="white-space:pre-wrap">                        </span>State:: CS_SYNC</div><div> <span style="white-space:pre-wrap">                        </span>Flags:: 0</div><div> <span style="white-space:pre-wrap">                        </span>Cflags:: </div><div> <span style="white-space:pre-wrap">                        </span>Socket:: udp:<a href="http://172.31.20.192:5060/" target="_blank">172.31.20.192:5060</a></div><div> <span style="white-space:pre-wrap">                        </span>Methods:: 4294967295</div><div> <span style="white-space:pre-wrap">                        </span>SIP_instance:: &lt;urn:uuid:5177d940-b2f5-459d-bb01-da5e43b7599b&gt;</div></div><div><br></div><div>Then one record for u2098 changed . and u2098 can be called.</div><div><br></div><div>I change nathelper module parameter in opensips.cfg</div><div><br></div><div>original :</div><div> modparam(&quot;nathelper&quot;, &quot;ping_nated_only&quot;, 1)</div><div>modparam(&quot;nathelper&quot;, &quot;received_avp&quot;, &quot;$avp(received_nh)&quot;)</div><div><br></div><div>modparam(&quot;usrloc&quot;, &quot;nat_bflag&quot;, &quot;NAT&quot;)</div><div>modparam(&quot;nathelper&quot;, &quot;natping_socket&quot;, &quot;<a href="http://54.169.33.191:5060/" target="_blank">54.169.33.191:5060</a>&quot;)</div><div>modparam(&quot;nathelper&quot;, &quot;nortpproxy_str&quot;, &quot;&quot;)</div><div>modparam(&quot;nathelper&quot;, &quot;sipping_bflag&quot;, 8)</div><div><br></div><div>changed:</div><div><div>modparam(&quot;nathelper&quot;, &quot;natping_interval&quot;, 10)</div><div>modparam(&quot;nathelper&quot;, &quot;ping_nated_only&quot;, 1)</div><div>modparam(&quot;nathelper&quot;, &quot;natping_processes&quot;, 1)</div><div>modparam(&quot;nathelper&quot;, &quot;received_avp&quot;, &quot;$avp(received_nh)&quot;)</div><div>modparam(&quot;nathelper&quot;, &quot;natping_socket&quot;, &quot;<a href="http://54.169.33.191:5060/" target="_blank">54.169.33.191:5060</a>&quot;)</div><div>modparam(&quot;nathelper&quot;, &quot;sipping_from&quot;, &quot;<a href="mailto:sip%3Apinger@54.169.33.191" target="_blank">sip:pinger@54.169.33.191</a>&quot;)</div><div>modparam(&quot;nathelper&quot;, &quot;sipping_method&quot;, &quot;OPTIONS&quot;)</div><div>modparam(&quot;nathelper&quot;, &quot;sipping_bflag&quot;, 8)<br></div></div><div><br></div><div>I find register information in console as follow:</div><div><div>OpenSIPS$:online</div><div>Domain:: location table=512 records=4</div><div> <span style="white-space:pre-wrap">        </span> <span style="white-space:pre-wrap">        </span>AOR:: u2099</div><div> <span style="white-space:pre-wrap">                </span>Contact:: <a href="http://sip:u2099@118.163.76.241:65383/" target="_blank">sip:u2099@118.163.76.241:65383</a> Q=</div><div> <span style="white-space:pre-wrap">                        </span>Expires:: 760</div><div> <span style="white-space:pre-wrap">                        </span>Callid:: 8IjzHDTRMF</div><div> <span style="white-space:pre-wrap">                        </span>Cseq:: 54</div><div> <span style="white-space:pre-wrap">                        </span>User-agent:: LinphoneAndroid/2.5.0 (belle-sip/1.4.1)</div><div> <span style="white-space:pre-wrap">                        </span>State:: CS_SYNC</div><div> <span style="white-space:pre-wrap">                        </span>Flags:: 0</div><div> <span style="white-space:pre-wrap">                        </span>Cflags:: NAT</div><div> <span style="white-space:pre-wrap">                        </span>Socket:: udp:<a href="http://172.31.20.192:5060/" target="_blank">172.31.20.192:5060</a></div><div> <span style="white-space:pre-wrap">                        </span>Methods:: 4294967295</div><div> <span style="white-space:pre-wrap">                        </span>SIP_instance:: &lt;urn:uuid:6d257aac-06d8-4938-8078-23065ae6bdb3&gt;</div><div> <span style="white-space:pre-wrap">                </span>Contact:: <a href="http://sip:u2099@218.211.224.83:1024/" target="_blank">sip:u2099@218.211.224.83:1024</a> Q=</div><div> <span style="white-space:pre-wrap">                        </span>Expires:: 3569</div><div> <span style="white-space:pre-wrap">                        </span>Callid:: DwNOAXCG7A</div><div> <span style="white-space:pre-wrap">                        </span>Cseq:: 23</div><div> <span style="white-space:pre-wrap">                        </span>User-agent:: LinphoneAndroid/2.5.0 (belle-sip/1.4.1)</div><div> <span style="white-space:pre-wrap">                        </span>State:: CS_NEW</div><div> <span style="white-space:pre-wrap">                        </span>Flags:: 0</div><div> <span style="white-space:pre-wrap">                        </span>Cflags:: NAT</div><div> <span style="white-space:pre-wrap">                        </span>Socket:: udp:<a href="http://172.31.20.192:5060/" target="_blank">172.31.20.192:5060</a></div><div> <span style="white-space:pre-wrap">                        </span>Methods:: 4294967295</div><div> <span style="white-space:pre-wrap">                        </span>SIP_instance:: &lt;urn:uuid:6d257aac-06d8-4938-8078-23065ae6bdb3&gt;</div><div> <span style="white-space:pre-wrap">        </span>AOR:: u2098</div><div> <span style="white-space:pre-wrap">                </span>Contact:: <a href="mailto:sip%3Au2098@218.211.224.83" target="_blank">sip:u2098@218.211.224.83</a> Q=</div><div> <span style="white-space:pre-wrap">                        </span>Expires:: 3573</div><div> <span style="white-space:pre-wrap">                        </span>Callid:: asla4m-yxG</div><div> <span style="white-space:pre-wrap">                        </span>Cseq:: 23</div><div> <span style="white-space:pre-wrap">                        </span>User-agent:: LinphoneAndroid/2.5.0 (belle-sip/1.4.1)</div><div> <span style="white-space:pre-wrap">                        </span>State:: CS_DIRTY</div><div> <span style="white-space:pre-wrap">                        </span>Flags:: 0</div><div> <span style="white-space:pre-wrap">                        </span>Cflags:: </div><div> <span style="white-space:pre-wrap">                        </span>Socket:: udp:<a href="http://172.31.20.192:5060/" target="_blank">172.31.20.192:5060</a></div><div> <span style="white-space:pre-wrap">                        </span>Methods:: 4294967295</div><div> <span style="white-space:pre-wrap">                        </span>SIP_instance:: &lt;urn:uuid:5177d940-b2f5-459d-bb01-da5e43b7599b&gt;</div></div><div><br></div><div>My question is :</div><div><br></div><div><br></div><div>why UA has two different record ?</div><div> and ua is behind NAT , but Cflag has no nat ,why ?</div><div>Since I open sipping ( option package ) , why still has two record ,and still keep time out ( incorrect register information) </div><div><br></div><div>How I to solve the question?</div><div><br></div><div>Thanks </div><div>Best Regard</div><div><br></div><div>JJ.Chiou</div></div><div class=""></div></div></div><div class=""></div></div><div class=""></div></div><div class="" style="font-size:12.8px;border-bottom-left-radius:0px;border-bottom-right-radius:0px;border-top-style:none;border-top-color:initial;background-image:initial"><div class=""><div class="" style="margin-right:5px;padding-left:0px"></div></div></div></div></div></div></div><div class="" tabindex="-1" style="outline:none;font-size:medium"><div class="" style="margin-bottom:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-radius:0px;float:left;width:875px"><div class="" style="padding-top:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-bottom-color:rgb(216,216,216);border-top-color:rgb(216,216,216);border-radius:0px;margin-bottom:0px;margin-left:0px;margin-right:0px"><div id=":1db"><div class="" style="padding-bottom:20px;padding-left:8px"><div class=""><div class=""></div></div></div></div></div></div></div></div>