Asterisk ignores register request

Hello!

I have the hardware SIP gateway (NSGate 3912) and it has problems registering with asterisk. Asterisk receives following message from the device:

[code]<— SIP read from UDP:192.168.0.19:5060 —>
REGISTER sip:192.168.0.211 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.19:5060;rport;branch=z9hG4bKu34ay0vs511tw077vo7x
From: sip:5555@192.168.0.211
To: sip:5555@192.168.0.211
Call-ID: 561n97f2o3z0a683151d-6@192.168.0.211
CSeq: 325 REGISTER
MAX-Forwards: 70
Contact: sip:5555@192.168.0.19:5060
Expires: 900
Content-Length: 0

<------------->
— (10 headers 0 lines) —[/code]

Asterisk completely ignores this request, sends no reply and displays no errors. What’s wrong?

I use asterisk 1.8.9.3 but had same problems with 1.8.8.2

Another gateway of different model registers and works with no problems. They communicate like this:

[code][2012-03-02 16:08:10] VERBOSE[25481] chan_sip.c:
<— SIP read from UDP:192.168.0.39:5060 —>
REGISTER sip:192.168.0.211:5060 SIP/2.0
Via:SIP/2.0/UDP 192.168.0.39:5060;branch=z9hG4bK181c0a2d22b340c2
From: “965” sip:965@192.168.0.211;tag=8b473b16-684818
To: “965” sip:965@192.168.0.211
Call-ID:D1B9-1138-4668481835A23F665467-001@SipHost
CSeq:1 REGISTER
Contact:sip:965@192.168.0.39:5060
Expires:600
Max-Forwards:70
User-Agent:204 12-38-31928837-0.9.5.1.1140-SA7O8
Content-Length:0

<------------->
[2012-03-02 16:08:10] VERBOSE[25481] chan_sip.c: — (11 headers 0 lines) —
[2012-03-02 16:08:10] VERBOSE[25481] chan_sip.c: Sending to 192.168.0.39:5060 (no NAT)
[2012-03-02 16:08:10] VERBOSE[25481] chan_sip.c:
<— Transmitting (no NAT) to 192.168.0.39:5060 —>
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.0.39:5060;branch=z9hG4bK181c0a2d22b340c2;received=192.168.0.39
From: “965” sip:965@192.168.0.211;tag=8b473b16-684818
To: “965” sip:965@192.168.0.211;tag=as5e378b13
Call-ID: D1B9-1138-4668481835A23F665467-001@SipHost
CSeq: 1 REGISTER
Server: FPBX-2.9.0(1.8.9.3)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm=“asterisk”, nonce="38e347c4"
Content-Length: 0

<------------>[/code]

Why does Asterisk send reply to request two but ignores request from device one?

Bug report filed:

issues.asterisk.org/jira/browse/ASTERISK-19466