Netgear WGR615 + asterisk - 1 line works, 2 lines - not

I’ve got following problem.
I’m trying to connect netgear WGR615V voip gateway with my asterisk server.

Here’s part of my sip.conf:

[code][201]
username=201
secret=****************
type=friend
host=dynamic
nat=no
canreinvite=no
dtmfmode = rfc2833

[202]
username=202
secret=****************
type=friend
host=dynamic
nat=no
canreinvite=no
dtmfmode = rfc2833 [/code]

And my WGR615V configuration looks like that:

When only one line is enabled in voip gateway - it works fine.
When I try to enable two lines - I’m getting following errors:

[quote]<-- SIP read from 192.168.0.15:5060:
REGISTER sip:192.168.0.1:5060 SIP/2.0
From: 201sip:201@192.168.0.1:5060;tag=c0a83dfe-13c4-2d-b550-5ec5
To: 201sip:201@192.168.0.1:5060
Call-ID: 18f538f7–48ce–4cd8–b54e–7cb774643fee
CSeq: 4 REGISTER
Via: SIP/2.0/UDP 192.168.0.15:5060;branch=z9hG4bK-2d-b56c-1bd4
Max-Forwards: 70
User-Agent: WGR615V-000FB512DA81-V1.3_31NA
Supported: timer,replaces
Contact: sip:201@192.168.0.15:5060
Expires: 120
Authorization: Digest username=“201”, realm=“asterisk”, nonce=“75367418”, uri=“sip:192.168.0.1:5060”, response=“6dec16f4700541b32b9f73fd987171bd”, algorithm=MD5
Content-Length: 0

— (13 headers 0 lines)—
Using latest REGISTER request as basis request
Sending to 192.168.0.15 : 5060 (non-NAT)
Transmitting (no NAT) to 192.168.0.15:5060:
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.0.15:5060;branch=z9hG4bK-2d-b56c-1bd4;received=192.168.0.15
From: 201sip:201@192.168.0.1:5060;tag=c0a83dfe-13c4-2d-b550-5ec5
To: 201sip:201@192.168.0.1:5060
Call-ID: 18f538f7–48ce–4cd8–b54e–7cb774643fee
CSeq: 4 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Contact: sip:201@192.168.0.1
Content-Length: 0


Aug 21 21:30:24 NOTICE[28937]: chan_sip.c:6404 check_auth: stale nonce received from ‘201sip:201@192.168.0.1:5060
Transmitting (no NAT) to 192.168.0.15:5060:
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.0.15:5060;branch=z9hG4bK-2d-b56c-1bd4;received=192.168.0.15
From: 201sip:201@192.168.0.1:5060;tag=c0a83dfe-13c4-2d-b550-5ec5
To: 201sip:201@192.168.0.1:5060;tag=as3a9eee18
Call-ID: 18f538f7–48ce–4cd8–b54e–7cb774643fee
CSeq: 4 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Contact: sip:201@192.168.0.1
WWW-Authenticate: Digest algorithm=MD5, realm=“asterisk”, nonce=“51cacdd2”, stale=true
Content-Length: 0


Scheduling destruction of call ‘18f538f7–48ce–4cd8–b54e–7cb774643fee’ in 15000 ms
net24*CLI>
<-- SIP read from 192.168.0.15:5060:
REGISTER sip:192.168.0.1:5060 SIP/2.0
From: 202sip:202@192.168.0.1:5060;tag=c0a83dfe-13c4-2d-b556-2241
To: 202sip:202@192.168.0.1:5060
Call-ID: 18f538f7–48ce–4cd8–b54e–7cb774643fee
CSeq: 5 REGISTER
Via: SIP/2.0/UDP 192.168.0.15:5060;branch=z9hG4bK-2d-b582-872
Max-Forwards: 70
User-Agent: WGR615V-000FB512DA81-V1.3_31NA
Supported: timer,replaces
Contact: sip:202@192.168.0.15:5060
Expires: 100
Authorization: Digest username=“202”, realm=“asterisk”, nonce=“543a19c1”, uri=“sip:192.168.0.1:5060”, response=“19d1e8a0e8d096b9f171312fc1a46ab8”, algorithm=MD5
Content-Length: 0

— (13 headers 0 lines)—
Using latest REGISTER request as basis request
Sending to 192.168.0.15 : 5060 (non-NAT)
Transmitting (no NAT) to 192.168.0.15:5060:
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.0.15:5060;branch=z9hG4bK-2d-b582-872;received=192.168.0.15
From: 202sip:202@192.168.0.1:5060;tag=c0a83dfe-13c4-2d-b556-2241
To: 202sip:202@192.168.0.1:5060
Call-ID: 18f538f7–48ce–4cd8–b54e–7cb774643fee
CSeq: 5 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Contact: sip:202@192.168.0.1
Content-Length: 0


Aug 21 21:30:24 NOTICE[28937]: chan_sip.c:6404 check_auth: stale nonce received from ‘202sip:202@192.168.0.1:5060
Transmitting (no NAT) to 192.168.0.15:5060:
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.0.15:5060;branch=z9hG4bK-2d-b582-872;received=192.168.0.15
From: 202sip:202@192.168.0.1:5060;tag=c0a83dfe-13c4-2d-b556-2241
To: 202sip:202@192.168.0.1:5060;tag=as3a9eee18
Call-ID: 18f538f7–48ce–4cd8–b54e–7cb774643fee
CSeq: 5 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Contact: sip:202@192.168.0.1
WWW-Authenticate: Digest algorithm=MD5, realm=“asterisk”, nonce=“6e279b5f”, stale=true
Content-Length: 0 [/quote]

And phones do not work.

Does anyone has idea, what’s wrong ?[/code]