When I turned on SIP debug for a few minutes this was the result. I have my softphone connected externally (temporary for testing), and one CISCO 7940 / 7960 registered internally.
<--- SIP read from UDP:myexternalIP::52192 ---
SUBSCRIBE sip:[email protected]:5060 SIP/2.0
Via: SIP/2.0/UDP 10.0.0.139:11730;branch=z9hG4bK-d8754z-b12c653c871c8a3b-1---d8754z-;rport
Max-Forwards: 70
Contact:
To: ;tag=as7efd9a4b
From: ;tag=0f524c4b
Call-ID: YzAxMTFhY2MyNN57AMWZjM2FlM2I0N2Y2MDMxZDEyY2M.
CSeq: 25 SUBSCRIBE
Expires: 0
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO
Supported: timer
User-Agent: X-Lite 4 release 4.1 stamp 63215
Authorization: Digest username="6666",realm="asterisk",nonce="1a8c25d5",uri="sip:[email protected]:5060",response="af50cb8e82b4121cd59a41a196c880c0",algorithm=MD5
Event: message-summary
Content-Length: 0
<------------->
— (15 headers 0 lines) —
Found peer ‘6666’ for ‘6666’ from myexternalIP:52192
[2012-07-24 19:41:37] NOTICE[9183]: chan_sip.c:14952 check_auth: Correct auth, but based on stale nonce received from ‘sip:[email protected];tag=0f524c4b’
— Transmitting (no NAT) to myexternalIP:52192 —
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 10.0.0.139:11730;branch=z9hG4bK-d8754z-b12c653c871c8a3b-1—d8754z-;received=MyExternalIP;rport=52192
From: sip:[email protected];tag=0f524c4b
To: sip:[email protected];tag=as7efd9a4b
Call-ID: YzAxMTFhY2MyNN57AMWZjM2FlM2I0N2Y2MDMxZDEyY2M.
CSeq: 25 SUBSCRIBE
Server: FPBX-2.10.1(10.5.0)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm=“asterisk”, nonce=“684074fa”, stale=true
Content-Length: 0
Scheduling destruction of SIP dialog ‘YzAxMTFhY2MyNN57AMWZjM2FlM2I0N2Y2MDMxZDEyY2M.’ in 6400 ms (Method: SUBSCRIBE)
— SIP read from UDP:myexternalIP:52192 —
SUBSCRIBE sip:[email protected]:5060 SIP/2.0
Via: SIP/2.0/UDP 10.0.0.139:11730;branch=z9hG4bK-d8754z-72dcf4095c5cb14f-1—d8754z-;rport
Max-Forwards: 70
Contact: sip:[email protected]:52192
To: sip:[email protected];tag=as7efd9a4b
From: sip:[email protected];tag=0f524c4b
Call-ID: YzAxMTFhY2MyNN57AMWZjM2FlM2I0N2Y2MDMxZDEyY2M.
CSeq: 26 SUBSCRIBE
Expires: 0
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO
Supported: timer
User-Agent: X-Lite 4 release 4.1 stamp 63215
Authorization: Digest username=“6666”,realm=“asterisk”,nonce=“684074fa”,uri=“sip:[email protected]:5060”,response=“ebd857b433a798cd3253b34ddd2c429b”,algorithm=MD5
Event: message-summary
Content-Length: 0
<------------->
— (15 headers 0 lines) —
Found peer ‘6666’ for ‘6666’ from myexternalIP:52192
— Transmitting (no NAT) to myexternalIP:52192 —
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.0.0.139:11730;branch=z9hG4bK-d8754z-72dcf4095c5cb14f-1—d8754z-;received=MyExternalIP;rport=52192
From: sip:[email protected];tag=0f524c4b
To: sip:[email protected];tag=as7efd9a4b
Call-ID: YzAxMTFhY2MyNN57AMWZjM2FlM2I0N2Y2MDMxZDEyY2M.
CSeq: 26 SUBSCRIBE
Server: FPBX-2.10.1(10.5.0)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Expires: 0
Content-Length: 0
Reliably Transmitting (no NAT) to myexternalIP:11730:
NOTIFY sip:[email protected]:52192 SIP/2.0
Via: SIP/2.0/UDP ClientexternalIP:5060;branch=z9hG4bK0da2aae9;rport
Max-Forwards: 70
Route: sip:[email protected]:52192
From: “Unknown” sip:[email protected];tag=as7efd9a4b
To: sip:[email protected]:52192;tag=0f524c4b
Contact: sip:[email protected]:5060
Call-ID: YzAxMTFhY2MyNN57AMWZjM2FlM2I0N2Y2MDMxZDEyY2M.
CSeq: 116 NOTIFY
User-Agent: FPBX-2.10.1(10.5.0)
Event: message-summary
Content-Type: application/simple-message-summary
Subscription-State: terminated;reason=timeout
Content-Length: 88
Messages-Waiting: no
Message-Account: sip:*[email protected]
Voice-Message: 0/0 (0/0)
[2012-07-24 19:41:37] NOTICE[10306]: manager.c:2461 authenticate: Seems to have passed…
— SIP read from UDP:myexternalIP:52192 —
SIP/2.0 200 OK
Via: SIP/2.0/UDP ClientexternalIP:5060;branch=z9hG4bK0da2aae9;rport=5060
Contact: sip:[email protected]:52192
To: sip:[email protected]:52192;tag=0f524c4b
From: "Unknown"sip:[email protected];tag=as7efd9a4b
Call-ID: YzAxMTFhY2MyNN57AMWZjM2FlM2I0N2Y2MDMxZDEyY2M.
CSeq: 116 NOTIFY
User-Agent: X-Lite 4 release 4.1 stamp 63215
Content-Length: 0
<------------->
— (9 headers 0 lines) —
Really destroying SIP dialog ‘YzAxMTFhY2MyNN57AMWZjM2FlM2I0N2Y2MDMxZDEyY2M.’ Method: SUBSCRIBE
— SIP read from UDP:myexternalIP:52192 —
REGISTER sip:clientdomain.com SIP/2.0
Via: SIP/2.0/UDP 10.0.0.139:11730;branch=z9hG4bK-d8754z-9f409e1a1089975a-1—d8754z-;rport
Max-Forwards: 70
Contact: sip:[email protected]:52192;rinstance=f79730722b7dd419;expires=0
To: sip:[email protected]
From: sip:[email protected];tag=5fa85a66
Call-ID: OTgzYWJlMzA0YjBhNWIwMDAyMDRiNGE0N2IzZjRkOWI.
CSeq: 7 REGISTER
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO
Supported: timer
User-Agent: X-Lite 4 release 4.1 stamp 63215
Authorization: Digest username=“6666”,realm=“asterisk”,nonce=“3b4038c5”,uri=“sip:clientdomain.com”,response=“057ee1ba229d1ffcbe0a813ec3c30cc0”,algorithm=MD5
Content-Length: 0
<------------->
— (13 headers 0 lines) —
Sending to myexternalIP:52192 (NAT)
— Transmitting (no NAT) to myexternalIP:52192 —
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 10.0.0.139:11730;branch=z9hG4bK-d8754z-9f409e1a1089975a-1—d8754z-;received=MyExternalIP;rport=52192
From: sip:[email protected];tag=5fa85a66
To: sip:[email protected];tag=as37a3da30
Call-ID: OTgzYWJlMzA0YjBhNWIwMDAyMDRiNGE0N2IzZjRkOWI.
CSeq: 7 REGISTER
Server: FPBX-2.10.1(10.5.0)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm=“asterisk”, nonce="04c2bbb5"
Content-Length: 0
Scheduling destruction of SIP dialog ‘OTgzYWJlMzA0YjBhNWIwMDAyMDRiNGE0N2IzZjRkOWI.’ in 32000 ms (Method: REGISTER)
— SIP read from UDP:myexternalIP:52192 —
REGISTER sip:clientdomain.com SIP/2.0
Via: SIP/2.0/UDP 10.0.0.139:11730;branch=z9hG4bK-d8754z-284ba65483720724-1—d8754z-;rport
Max-Forwards: 70
Contact: sip:[email protected]:52192;rinstance=f79730722b7dd419;expires=0
To: sip:[email protected]
From: sip:[email protected];tag=5fa85a66
Call-ID: OTgzYWJlMzA0YjBhNWIwMDAyMDRiNGE0N2IzZjRkOWI.
CSeq: 8 REGISTER
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO
Supported: timer
User-Agent: X-Lite 4 release 4.1 stamp 63215
Authorization: Digest username=“6666”,realm=“asterisk”,nonce=“04c2bbb5”,uri=“sip:clientdomain.com”,response=“99f2f13a65db9ce748b48ec038d05435”,algorithm=MD5
Content-Length: 0
<------------->
— (13 headers 0 lines) —
Sending to myexternalIP:52192 (no NAT)
– Unregistered SIP ‘6666’
— Transmitting (no NAT) to myexternalIP:52192 —
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.0.0.139:11730;branch=z9hG4bK-d8754z-284ba65483720724-1—d8754z-;received=MyExternalIP;rport=52192
From: sip:[email protected];tag=5fa85a66
To: sip:[email protected];tag=as37a3da30
Call-ID: OTgzYWJlMzA0YjBhNWIwMDAyMDRiNGE0N2IzZjRkOWI.
CSeq: 8 REGISTER
Server: FPBX-2.10.1(10.5.0)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Expires: 0
Date: Wed, 25 Jul 2012 02:41:37 GMT
Content-Length: 0
Scheduling destruction of SIP dialog ‘OTgzYWJlMzA0YjBhNWIwMDAyMDRiNGE0N2IzZjRkOWI.’ in 32000 ms (Method: REGISTER)
[2012-07-24 19:41:44] NOTICE[10314]: manager.c:2461 authenticate: Seems to have passed…
[2012-07-24 19:41:46] NOTICE[10322]: manager.c:2461 authenticate: Seems to have passed…
[2012-07-24 19:41:49] NOTICE[9183]: chan_sip.c:13544 sip_reregister: – Re-registration for [email protected]
REGISTER 11 headers, 0 lines
Reliably Transmitting (NAT) to CallcentricIP:5060:
REGISTER sip:callcentric.com SIP/2.0
Via: SIP/2.0/UDP ClientexternalIP:5060;branch=z9hG4bK0a1d8dbd;rport
Max-Forwards: 70
From: sip:[email protected];tag=as59ebfd4e
To: sip:[email protected]
Call-ID: [email protected]
CSeq: 159 REGISTER
User-Agent: FPBX-2.10.1(10.5.0)
Authorization: Digest username=“17772XXXXXX”, realm=“callcentric.com”, algorithm=MD5, uri=“sip:sip:callcentric.com”, nonce=“dadabb98b90cc5189320b709e7c26fe4”, response="d9a8a75c99e6693a09527942b33f7bd3"
Expires: 120
Contact: sip:[email protected]:5060
Content-Length: 0
— SIP read from UDP:CallcentricIP:5060 —
SIP/2.0 200 Ok
v: SIP/2.0/UDP ClientexternalIP:5060;branch=z9hG4bK0a1d8dbd;rport=5060
f: sip:[email protected];tag=as59ebfd4e
t: sip:[email protected]
i: [email protected]
CSeq: 159 REGISTER
m: sip:[email protected]:5060;expires=60
l: 0
<------------->
— (8 headers 0 lines) —
Scheduling destruction of SIP dialog ‘[email protected]’ in 32000 ms (Method: REGISTER)
[2012-07-24 19:41:49] NOTICE[9183]: chan_sip.c:21492 handle_response_register: Outbound Registration: Expiry for callcentric.com is 60 sec (Scheduling reregistration in 45 s)
[2012-07-24 19:41:51] NOTICE[10325]: manager.c:2461 authenticate: Seems to have passed…
Really destroying SIP dialog ‘[email protected]’ Method: REGISTER
[2012-07-24 19:41:59] NOTICE[10333]: manager.c:2461 authenticate: Seems to have passed…
[2012-07-24 19:42:00] NOTICE[10341]: manager.c:2461 authenticate: Seems to have passed…
[2012-07-24 19:42:06] NOTICE[10344]: manager.c:2461 authenticate: Seems to have passed…
Really destroying SIP dialog ‘OTgzYWJlMzA0YjBhNWIwMDAyMDRiNGE0N2IzZjRkOWI.’ Method: REGISTER
[2012-07-24 19:42:13] NOTICE[10352]: manager.c:2461 authenticate: Seems to have passed…
[2012-07-24 19:42:15] NOTICE[9183]: chan_sip.c:13544 sip_reregister: – Re-registration for [email protected]
REGISTER 10 headers, 0 lines
Reliably Transmitting (NAT) to 67.216.35.205:5060:
REGISTER sip:67.216.35.205 SIP/2.0
Via: SIP/2.0/UDP ClientexternalIP:5060;branch=z9hG4bK59c0c145;rport
Max-Forwards: 70
From: sip:a97341syB0XXXXX[email protected];tag=as1ea40246
To: sip:[email protected]
Call-ID: [email protected]
CSeq: 116 REGISTER
User-Agent: FPBX-2.10.1(10.5.0)
Expires: 120
Contact: sip:[email protected]:5060
Content-Length: 0
— SIP read from UDP:67.216.35.205:5060 —
SIP/2.0 200 OK
Via: SIP/2.0/UDP ClientexternalIP:5060;branch=z9hG4bK59c0c145;received=ClientexternalIP;rport=5060
From: sip:[email protected];tag=as1ea40246
To: sip:[email protected];tag=gssb160561fcaae4af40524610885a29c28
Call-ID: [email protected]
CSeq: 116 REGISTER
Server: Gafachi UAS v110.09
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE
Contact: sip:[email protected]:5060
Date: Wed, 25 Jul 2012 02:42:15 GMT
Content-Length: 0
<------------->
— (11 headers 0 lines) —
Scheduling destruction of SIP dialog ‘[email protected]’ in 32000 ms (Method: REGISTER)
[2012-07-24 19:42:15] NOTICE[9183]: chan_sip.c:21492 handle_response_register: Outbound Registration: Expiry for 67.216.35.205 is 120 sec (Scheduling reregistration in 105 s)
[2012-07-24 19:42:16] NOTICE[10360]: manager.c:2461 authenticate: Seems to have passed…
[2012-07-24 19:42:21] NOTICE[10363]: manager.c:2461 authenticate: Seems to have passed…
Really destroying SIP dialog ‘[email protected]’ Method: REGISTER
[2012-07-24 19:42:28] NOTICE[10371]: manager.c:2461 authenticate: Seems to have passed…