[OpenSIPS-Users] register table & request time out

Bogdan-Andrei Iancu bogdan at opensips.org
Wed Sep 9 12:30:42 CEST 2015


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:u2099 at 118.163.76.241:58623 
> <http://sip:u2099@118.163.76.241: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:u2098 at 218.211.224.81:5060 
> <http://sip:u2098@218.211.224.81: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:u2098 at 218.211.224.81 <mailto:sip%3Au2098 at 218.211.224.81> 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:u2099 at 118.163.76.241:58623 
> <http://sip:u2099@118.163.76.241: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:u2098 at 218.211.224.81 <mailto:sip%3Au2098 at 218.211.224.81> 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:u2098 at 218.211.224.83 <mailto:sip%3Au2098 at 218.211.224.83> 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:pinger at 54.169.33.191 
> <mailto:sip%3Apinger at 54.169.33.191>")
> 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:u2099 at 118.163.76.241:65383 
> <http://sip:u2099@118.163.76.241: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:u2099 at 218.211.224.83:1024 
> <http://sip:u2099@218.211.224.83: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:u2098 at 218.211.224.83 <mailto:sip%3Au2098 at 218.211.224.83> 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
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20150909/dda85b7a/attachment-0001.htm>


More information about the Users mailing list