if sip debug is on then the following is shown.
<--- SIP read from UDP:y.y.y.y:13603 --->
REGISTER sip:x.x.x.x SIP/2.0
Via: SIP/2.0/UDP 192.168.0.20:5061;rport;branch=z9hG4bK770628930703_192.168.0.20
Max-Forwards: 70
To: <sip:
[email protected]>
From: <sip:
[email protected]>;tag=sip1366205456255
Call-ID: 770628930703_192.168.0.20
CSeq: 1 REGISTER
Contact: <sip:
[email protected]:5061>
Expires: 3600
User-Agent: Nimbuzz Single
Content-Length: 0
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, NOTIFY, MESSAGE
<------------->
--- (12 headers 0 lines) ---
Sending to y.y.y.y:13603 (NAT)
<--- Transmitting (NAT) to y.y.y.y:13603 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.0.20:5061;branch=z9hG4bK770628930703_192.168.0.20;received=y.y.y.y;rport=13603
From: <sip:
[email protected]>;tag=sip1366205456255
To: <sip:
[email protected]>;tag=as336676e0
Call-ID: 770628930703_192.168.0.20
CSeq: 1 REGISTER
Server: FPBX2.11.0rc1(11.3.0)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="39cabb6f"
Content-Length: 0
<------------>
Scheduling destruction of SIP dialog '770628930703_192.168.0.20' in 32000 ms (Method: REGISTER)
<--- SIP read from UDP:y.y.y.y:13603 --->
ACK sip:
[email protected] SIP/2.0
Via: SIP/2.0/UDP 192.168.0.20:5061;rport;branch=z9hG4bK770628930703_192.168.0.20
Max-Forwards: 70
To: <sip:
[email protected]>;tag=as336676e0
From: <sip:
[email protected]>;tag=sip1366205456255
Call-ID: 770628930703_192.168.0.20
CSeq: 1 ACK
Contact: <sip:
[email protected]:5061>
Expires: 3600
User-Agent: Nimbuzz Single
Content-Length: 0
<------------->
--- (11 headers 0 lines) ---
<--- SIP read from UDP:y.y.y.y:13603 --->
REGISTER sip:x.x.x.x SIP/2.0
Via: SIP/2.0/UDP 192.168.0.20:5061;rport;branch=z9hG4bK5344087869
Max-Forwards: 70
To: <sip:
[email protected]>
From: <sip:
[email protected]>;tag=sip1366205456255
Call-ID: 770628930703_192.168.0.20
CSeq: 2 REGISTER
Contact: <sip:
[email protected]:5061>
Expires: 3600
User-Agent: Nimbuzz Single
Content-Length: 0
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, NOTIFY, MESSAGE
Authorization: Digest username="111111111", realm="asterisk", nonce="39cabb6f", uri="sip:x.x.x.x", algorithm=MD5, nc=00000001, response="221eacda1b76cf11558d727040f18208"
<------------->
--- (13 headers 0 lines) ---
Sending to y.y.y.y:13603 (NAT)
<--- Transmitting (NAT) to y.y.y.y:13603 --->
SIP/2.0 403 Forbidden
Via: SIP/2.0/UDP 192.168.0.20:5061;branch=z9hG4bK5344087869;received=y.y.y.y;rport=13603
From: <sip:
[email protected]>;tag=sip1366205456255
To: <sip:
[email protected]>;tag=as336676e0
Call-ID: 770628930703_192.168.0.20
CSeq: 2 REGISTER
Server: FPBX2.11.0rc1(11.3.0)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0
<------------>
[2013-05-09 10:01:31] NOTICE[5859]: chan_sip.c:27786 handle_request_register: Registration from '<sip:
[email protected]>' failed for 'y.y.y.y:13603' - Wrong password
Scheduling destruction of SIP dialog '770628930703_192.168.0.20' in 32000 ms (Method: REGISTER)