Hi,

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.

Best regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 08.09.2015 04:09, chiu ching cheng wrote:
Dear man :

I am a new user for opensips , and my staff installed one opensips server for company service .

I something suffer us recently . One user can't call another user sometime , it show " time out ".

so I create two account for test u2099 & u2098 .

one day I find the situation . I have two wifi AP , one ip 218.211.224.81 , the other is 218.211.224.83

I find I can't call u2098 from u2099 , I find two register record in opensips console as follow:

OpenSIPS$:online
Domain:: location table=512 records=6
AOR:: u2099
Contact:: sip:[email protected]:58623 <http://sip:[email protected]:58623/> Q=
Expires:: 1645
Callid:: CQUZde-qZ~
Cseq:: 23
User-agent:: LinphoneAndroid/2.5.0 (belle-sip/1.4.1)
State:: CS_SYNC
Flags:: 0
Cflags:: NAT
Socket:: udp:172.31.20.192:5060 <http://172.31.20.192:5060/>
Methods:: 4294967295
SIP_instance:: <urn:uuid:6d257aac-06d8-4938-8078-23065ae6bdb3>
AOR:: u2098
Contact:: sip:[email protected]:5060 <http://sip:[email protected]:5060/> Q=
Expires:: 43
Callid:: 4Cb~7N3o41
Cseq:: 25
User-agent:: LinphoneAndroid/2.4.1 (belle-sip/1.4.1)
State:: CS_SYNC
Flags:: 0
Cflags:: NAT
Socket:: udp:172.31.20.192:5060 <http://172.31.20.192:5060/>
Methods:: 4294967295
SIP_instance:: <urn:uuid:5177d940-b2f5-459d-bb01-da5e43b7599b>
Contact:: sip:[email protected] <mailto:sip%[email protected]> Q=
Expires:: 910
Callid:: 4Cb~7N3o41
Cseq:: 28
User-agent:: LinphoneAndroid/2.4.1 (belle-sip/1.4.1)
State:: CS_SYNC
Flags:: 0
Cflags::
Socket:: udp:172.31.20.192:5060 <http://172.31.20.192:5060/>
Methods:: 4294967295
SIP_instance:: <urn:uuid:5177d940-b2f5-459d-bb01-da5e43b7599b>


But it's wrong for u2098 ,because I transfer wifi to ip 218.211.224.83 AP .

Then I call from u2098 to u2099 , the I find the register information from console .
OpenSIPS$:online

AOR:: u2099
Contact:: sip:[email protected]:58623 <http://sip:[email protected]:58623/> Q=
Expires:: 913
Callid:: CQUZde-qZ~
Cseq:: 23
User-agent:: LinphoneAndroid/2.5.0 (belle-sip/1.4.1)
State:: CS_SYNC
Flags:: 0
Cflags:: NAT
Socket:: udp:172.31.20.192:5060 <http://172.31.20.192:5060/>
Methods:: 4294967295
SIP_instance:: <urn:uuid:6d257aac-06d8-4938-8078-23065ae6bdb3>
AOR:: u2098
Contact:: sip:[email protected] <mailto:sip%[email protected]> Q=
Expires:: 178
Callid:: 4Cb~7N3o41
Cseq:: 28
User-agent:: LinphoneAndroid/2.4.1 (belle-sip/1.4.1)
State:: CS_SYNC
Flags:: 0
Cflags::
Socket:: udp:172.31.20.192:5060 <http://172.31.20.192:5060/>
Methods:: 4294967295
SIP_instance:: <urn:uuid:5177d940-b2f5-459d-bb01-da5e43b7599b>
Contact:: sip:[email protected] <mailto:sip%[email protected]> Q=
Expires:: 3419
Callid:: 4Cb~7N3o41
Cseq:: 30
User-agent:: LinphoneAndroid/2.4.1 (belle-sip/1.4.1)
State:: CS_SYNC
Flags:: 0
Cflags::
Socket:: udp:172.31.20.192:5060 <http://172.31.20.192:5060/>
Methods:: 4294967295
SIP_instance:: <urn:uuid:5177d940-b2f5-459d-bb01-da5e43b7599b>

Then one record for u2098 changed . and u2098 can be called.

I change nathelper module parameter in opensips.cfg

original :
 modparam("nathelper", "ping_nated_only", 1)
modparam("nathelper", "received_avp", "$avp(received_nh)")

modparam("usrloc", "nat_bflag", "NAT")
modparam("nathelper", "natping_socket", "54.169.33.191:5060 <http://54.169.33.191:5060/>")
modparam("nathelper", "nortpproxy_str", "")
modparam("nathelper", "sipping_bflag", 8)

changed:
modparam("nathelper", "natping_interval", 10)
modparam("nathelper", "ping_nated_only", 1)
modparam("nathelper", "natping_processes", 1)
modparam("nathelper", "received_avp", "$avp(received_nh)")
modparam("nathelper", "natping_socket", "54.169.33.191:5060 <http://54.169.33.191:5060/>") modparam("nathelper", "sipping_from", "sip:[email protected] <mailto:sip%[email protected]>")
modparam("nathelper", "sipping_method", "OPTIONS")
modparam("nathelper", "sipping_bflag", 8)

I find register information in console as follow:
OpenSIPS$:online
Domain:: location table=512 records=4
AOR:: u2099
Contact:: sip:[email protected]:65383 <http://sip:[email protected]:65383/> Q=
Expires:: 760
Callid:: 8IjzHDTRMF
Cseq:: 54
User-agent:: LinphoneAndroid/2.5.0 (belle-sip/1.4.1)
State:: CS_SYNC
Flags:: 0
Cflags:: NAT
Socket:: udp:172.31.20.192:5060 <http://172.31.20.192:5060/>
Methods:: 4294967295
SIP_instance:: <urn:uuid:6d257aac-06d8-4938-8078-23065ae6bdb3>
Contact:: sip:[email protected]:1024 <http://sip:[email protected]:1024/> Q=
Expires:: 3569
Callid:: DwNOAXCG7A
Cseq:: 23
User-agent:: LinphoneAndroid/2.5.0 (belle-sip/1.4.1)
State:: CS_NEW
Flags:: 0
Cflags:: NAT
Socket:: udp:172.31.20.192:5060 <http://172.31.20.192:5060/>
Methods:: 4294967295
SIP_instance:: <urn:uuid:6d257aac-06d8-4938-8078-23065ae6bdb3>
AOR:: u2098
Contact:: sip:[email protected] <mailto:sip%[email protected]> Q=
Expires:: 3573
Callid:: asla4m-yxG
Cseq:: 23
User-agent:: LinphoneAndroid/2.5.0 (belle-sip/1.4.1)
State:: CS_DIRTY
Flags:: 0
Cflags::
Socket:: udp:172.31.20.192:5060 <http://172.31.20.192:5060/>
Methods:: 4294967295
SIP_instance:: <urn:uuid:5177d940-b2f5-459d-bb01-da5e43b7599b>

My question is :


why UA has two different record ?
 and ua is behind NAT , but Cflag has no nat ,why ?
Since I open sipping ( option package ) , why still has two record ,and still keep time out ( incorrect register information)

How I to solve the question?

Thanks
Best Regard

JJ.Chiou


_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to