About register, i am confused

Hi supporter,
I have a gateway with sip VoIP. There are 2 sets Asterisk server. Server A install 15.2.0 and Server B install 15.2.2.
I use the Same gateway register server A is OK, but register server B is fail.
I capture the sip packets use Wireshark. Gateway send the REGISTER, Server B response the 200 OK, but seem gateway don’t accept it. So the gateway resend the REGISTER and Server B response the 200 OK. Repeat this process all the time. By the way the x-lite register server B is OK.
I compare the sip packets but i can not find what 's worry with it. I want to upload capture packets follow UDP stream but be refused. I upload the compare result PNG file of server A and Server B sip packets.See the below:


Would you like to help me resolve it?
Below is server’s information. Comments: Server B and Server A have same kernel version, i update server B kernel when I got this confused problem about register. but It’s not work.
======Server A ========
[root@szeco164 ~]# rpm -qa | grep kernel
kernel-devel-3.10.0-514.el7.x86_64
kernel-headers-3.10.0-514.el7.x86_64
kernel-tools-libs-3.10.0-514.el7.x86_64
kernel-3.10.0-514.el7.x86_64
kernel-tools-3.10.0-514.el7.x86_64
abrt-addon-kerneloops-2.1.11-45.el7.centos.x86_64
[root@szeco164 ~]#
======Server B ========
[root@localhost asterisk-15.2.2]# rpm -qa | grep kernel
kernel-debug-devel-3.10.0-693.21.1.el7.x86_64
kernel-headers-3.10.0-693.21.1.el7.x86_64
abrt-addon-kerneloops-2.1.11-45.el7.centos.x86_64
kernel-3.10.0-514.el7.x86_64
kernel-tools-3.10.0-693.21.1.el7.x86_64
kernel-debug-3.10.0-693.21.1.el7.x86_64
kernel-doc-3.10.0-693.21.1.el7.noarch
kernel-3.10.0-693.21.1.el7.x86_64
kernel-abi-whitelists-3.10.0-693.21.1.el7.noarch
kernel-devel-3.10.0-693.21.1.el7.x86_64
kernel-tools-libs-3.10.0-693.21.1.el7.x86_64
kernel-tools-libs-devel-3.10.0-693.21.1.el7.x86_64
[root@localhost asterisk-15.2.2]#

Winnie,
Thank you.

You’ll need to provide the actual SIP traffic as seen on the Asterisk console using “sip set debug on” or “pjsip set logger on” depending on whether you are using chan_sip or chan_pjsip. It may be that the 200 OK isn’t getting back to the source of the REGISTER.

Hi jcolp,

Below is “sip set debug on.png”.


Server A and Server B both all skip the step “PJSIP-pjproject” when install the asterisk — we can use the old SIP stack for basic function.

Winnie,
Thank you.

This shows a successful registration, nothing out of the ordinary.

Yeah, I agree with you. that’s why i am utterly confused. GW can not register in this server (15.2.2) and repeat register process. if i switch the register server to Server A(install 15.2.0), register success.
I don’t know how resolve it. Do you have any advice?

Provide the traces for the additional REGISTER requests that you state occur.

Please provide your packet traces in a text format, not as images - it is much easier to search in a text block.

It does not look like anything wrong in your system.
Maybe your ISP does not accept packets from Server B’s IP address?
Try to swap IPs of your servers and check whether the issue persists with Server B or it moves to Server A.

Below is the traces ,

This is server B(install 15.2.2):

REGISTER sip:10.89.24.34 SIP/2.0
To: "5005"sip:5005@10.89.24.34
From: "5005"sip:5005@10.89.24.34;tag=18-16926712-0-04e5ccc0-00000038
Contact: "5005"sip:5005@10.88.33.166:5070;q=1.0
Allow-Events: dialog,message-summary,vq-rtcpxr-ATT
Call-ID: 04e5ccc001064ff838@10.88.33.166
Expires: 3600
CSeq: 1 REGISTER
Via: SIP/2.0/UDP 10.88.33.166:5070;branch=z9hG4bK0ef9022d0c6414
Supported: 100rel,timer,early-session,replaces
Allow: ACK,BYE,CANCEL,INVITE,OPTIONS,REGISTER,INFO,PRACK,SUBSCRIBE,NOTIFY,UPDATE,REFER,PUBLISH
Content-Length: 0
Max-Forwards: 70
User-Agent: (ARRIS/NVG468MQ/9.2.4h1d14_1.1-49/Line1)

SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.88.33.166:5070;branch=z9hG4bK0ef9022d0c6414;received=10.88.33.166
From: "5005"sip:5005@10.89.24.34;tag=18-16926712-0-04e5ccc0-00000038
To: "5005"sip:5005@10.89.24.34;tag=as33c4814a
Call-ID: 04e5ccc001064ff838@10.88.33.166
CSeq: 1 REGISTER
Server: Asterisk PBX 15.2.2
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Expires: 3600
Contact: sip:5005@10.88.33.166:5070;expires=3600
Date: Wed, 14 Mar 2018 19:39:19 GMT
Content-Length: 0

This is server A(install 15.2.0):

REGISTER sip:10.89.17.164 SIP/2.0
To: "5004"sip:5004@10.89.17.164
From: "5004"sip:5004@10.89.17.164;tag=18-31070200-0-1e7a9490-00000076
Contact: "5004"sip:5004@10.88.33.166:5070;q=1.0
Allow-Events: dialog,message-summary,vq-rtcpxr-ATT
Call-ID: 1e7a949001de1ff8b@10.88.33.166
Expires: 3600
CSeq: 1 REGISTER
Via: SIP/2.0/UDP 10.88.33.166:5070;branch=z9hG4bK9ec80f4aaaf276
Supported: 100rel,timer,early-session,replaces
Allow: ACK,BYE,CANCEL,INVITE,OPTIONS,REGISTER,INFO,PRACK,SUBSCRIBE,NOTIFY,UPDATE,REFER,PUBLISH
Content-Length: 0
Max-Forwards: 70
User-Agent: (ARRIS/NVG468MQ/9.2.4h1d14_1.1-49/Line1)

SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.88.33.166:5070;branch=z9hG4bK9ec80f4aaaf276;received=10.88.33.166
From: "5004"sip:5004@10.89.17.164;tag=18-31070200-0-1e7a9490-00000076
To: "5004"sip:5004@10.89.17.164;tag=as07e402de
Call-ID: 1e7a949001de1ff8b@10.88.33.166
CSeq: 1 REGISTER
Server: Asterisk PBX 15.2.0
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Expires: 3600
Contact: sip:5004@10.88.33.166:5070;expires=3600
Date: Tue, 13 Mar 2018 04:28:03 GMT
Content-Length: 0

Thanks,
Winnie.

There is nothing abnormal on the Asterisk side and it is responding as one would expect. You’ll have to investigate outside of Asterisk.

Thank you for your back. I will be recheck my GW.