<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi,<br>
<br>
I guess you are fighting against a NAT problem (the 2098 device
being behind a NAT) - to see how to properly activate NAT traversal
for the your OpenSIPS server, take a look at the auto-generated cfg
file (use make menuconfig), the residential script, with NAT
traversal support.<br>
<br>
Best regards,<br>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
<div class="moz-cite-prefix">On 08.09.2015 04:09, chiu ching cheng
wrote:<br>
</div>
<blockquote
cite="mid:CA+Ew+Jxtk9jB2tM1ne61kTxmEMEaLh3aEJcD3kwamEKHURhbkg@mail.gmail.com"
type="cite">
<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't call another user sometime , it show
" time out ".</div>
<div><br>
</div>
<div>so I create two account for test u2099
& 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'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
moz-do-not-send="true"
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 moz-do-not-send="true"
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::
<urn:uuid:6d257aac-06d8-4938-8078-23065ae6bdb3></div>
<div> <span style="white-space:pre-wrap"> </span>AOR::
u2098</div>
<div> <span style="white-space:pre-wrap"> </span>Contact:: <a
moz-do-not-send="true"
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 moz-do-not-send="true"
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::
<urn:uuid:5177d940-b2f5-459d-bb01-da5e43b7599b></div>
<div> <span style="white-space:pre-wrap"> </span>Contact:: <a
moz-do-not-send="true"
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 moz-do-not-send="true"
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::
<urn:uuid:5177d940-b2f5-459d-bb01-da5e43b7599b></div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>But it'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
moz-do-not-send="true"
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 moz-do-not-send="true"
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::
<urn:uuid:6d257aac-06d8-4938-8078-23065ae6bdb3></div>
<div> <span style="white-space:pre-wrap"> </span>AOR::
u2098</div>
<div> <span style="white-space:pre-wrap"> </span>Contact:: <a
moz-do-not-send="true"
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 moz-do-not-send="true"
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::
<urn:uuid:5177d940-b2f5-459d-bb01-da5e43b7599b></div>
<div> <span style="white-space:pre-wrap"> </span>Contact:: <a
moz-do-not-send="true"
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 moz-do-not-send="true"
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::
<urn:uuid:5177d940-b2f5-459d-bb01-da5e43b7599b></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("nathelper", "ping_nated_only",
1)</div>
<div>modparam("nathelper", "received_avp",
"$avp(received_nh)")</div>
<div><br>
</div>
<div>modparam("usrloc", "nat_bflag", "NAT")</div>
<div>modparam("nathelper", "natping_socket", "<a
moz-do-not-send="true"
href="http://54.169.33.191:5060/"
target="_blank">54.169.33.191:5060</a>")</div>
<div>modparam("nathelper", "nortpproxy_str",
"")</div>
<div>modparam("nathelper", "sipping_bflag", 8)</div>
<div><br>
</div>
<div>changed:</div>
<div>
<div>modparam("nathelper",
"natping_interval", 10)</div>
<div>modparam("nathelper",
"ping_nated_only", 1)</div>
<div>modparam("nathelper",
"natping_processes", 1)</div>
<div>modparam("nathelper", "received_avp",
"$avp(received_nh)")</div>
<div>modparam("nathelper", "natping_socket",
"<a moz-do-not-send="true"
href="http://54.169.33.191:5060/"
target="_blank">54.169.33.191:5060</a>")</div>
<div>modparam("nathelper", "sipping_from", "<a
moz-do-not-send="true"
href="mailto:sip%3Apinger@54.169.33.191"
target="_blank">sip:pinger@54.169.33.191</a>")</div>
<div>modparam("nathelper", "sipping_method",
"OPTIONS")</div>
<div>modparam("nathelper", "sipping_bflag",
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
moz-do-not-send="true"
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 moz-do-not-send="true"
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::
<urn:uuid:6d257aac-06d8-4938-8078-23065ae6bdb3></div>
<div> <span style="white-space:pre-wrap"> </span>Contact:: <a
moz-do-not-send="true"
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 moz-do-not-send="true"
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::
<urn:uuid:6d257aac-06d8-4938-8078-23065ae6bdb3></div>
<div> <span style="white-space:pre-wrap"> </span>AOR::
u2098</div>
<div> <span style="white-space:pre-wrap"> </span>Contact:: <a
moz-do-not-send="true"
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 moz-do-not-send="true"
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::
<urn:uuid:5177d940-b2f5-459d-bb01-da5e43b7599b></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>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>