Code:
<--- SIP read from UDP:192.168.100.20:14554 --->
SUBSCRIBE sip:7010@192.168.100.30 SIP/2.0
Via: SIP/2.0/UDP 192.168.100.20:14554;branch=z9hG4bK-d8754z-fc8cd9e3ff6eeb88-1---d8754z-;rport
Max-Forwards: 70
Contact: <sip:7000@192.168.100.20:14554>
To: <sip:7010@192.168.100.30>
From: "7000"<sip:7000@192.168.100.30>;tag=ea4b908a
Call-ID: MzFlMzk4NDFkODBiZGRkZTM3NTBhODE1ZDQ4ZjY1NTQ.
CSeq: 1 SUBSCRIBE
Expires: 3600
Accept: multipart/related, application/rlmi+xml, application/pidf+xml
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO
User-Agent: X-Lite 4 release 4.1 stamp 63214
Event: presence
Content-Length: 0
<------------->
--- (14 headers 0 lines) ---
Creating new subscription
Sending to 192.168.100.20 : 14554 (no NAT)
list_route: hop: <sip:7000@192.168.100.20:14554>
Found peer '7000' for '7000' from 192.168.100.20:14554
<--- Transmitting (no NAT) to 192.168.100.20:14554 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.100.20:14554;branch=z9hG4bK-d8754z-fc8cd9e3ff6eeb88-1---d8754z-;received=192.168.100.20;rport=14554
From: "7000"<sip:7000@192.168.100.30>;tag=ea4b908a
To: <sip:7010@192.168.100.30>;tag=as70e8bb8a
Call-ID: MzFlMzk4NDFkODBiZGRkZTM3NTBhODE1ZDQ4ZjY1NTQ.
CSeq: 1 SUBSCRIBE
Server: Asterisk PBX 1.6.2.9-2+squeeze3
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="1ee0bcc6"
Content-Length: 0
<------------>
Scheduling destruction of SIP dialog 'MzFlMzk4NDFkODBiZGRkZTM3NTBhODE1ZDQ4ZjY1NTQ.' in 6400 ms (Method: SUBSCRIBE)
<--- SIP read from UDP:192.168.100.20:14554 --->
SUBSCRIBE sip:7010@192.168.100.30 SIP/2.0
Via: SIP/2.0/UDP 192.168.100.20:14554;branch=z9hG4bK-d8754z-14611342ffe0592e-1---d8754z-;rport
Max-Forwards: 70
Contact: <sip:7000@192.168.100.20:14554>
To: <sip:7010@192.168.100.30>
From: "7000"<sip:7000@192.168.100.30>;tag=ea4b908a
Call-ID: MzFlMzk4NDFkODBiZGRkZTM3NTBhODE1ZDQ4ZjY1NTQ.
CSeq: 2 SUBSCRIBE
Expires: 3600
Accept: multipart/related, application/rlmi+xml, application/pidf+xml
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO
User-Agent: X-Lite 4 release 4.1 stamp 63214
Authorization: Digest username="7000",realm="asterisk",nonce="1ee0bcc6",uri="sip:7010@192.168.100.30",response="654497f2ed3126e470cfe64addfa81f9",algorithm=MD5
Event: presence
Content-Length: 0
<------------->
--- (15 headers 0 lines) ---
Creating new subscription
Sending to 192.168.100.20 : 14554 (no NAT)
Found peer '7000' for '7000' from 192.168.100.20:14554
Looking for 7010 in mdm-hint (domain 192.168.100.30)
Scheduling destruction of SIP dialog 'MzFlMzk4NDFkODBiZGRkZTM3NTBhODE1ZDQ4ZjY1NTQ.' in 3610000 ms (Method: SUBSCRIBE)
<--- Transmitting (no NAT) to 192.168.100.20:14554 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.100.20:14554;branch=z9hG4bK-d8754z-14611342ffe0592e-1---d8754z-;received=192.168.100.20;rport=14554
From: "7000"<sip:7000@192.168.100.30>;tag=ea4b908a
To: <sip:7010@192.168.100.30>;tag=as70e8bb8a
Call-ID: MzFlMzk4NDFkODBiZGRkZTM3NTBhODE1ZDQ4ZjY1NTQ.
CSeq: 2 SUBSCRIBE
Server: Asterisk PBX 1.6.2.9-2+squeeze3
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
Expires: 3600
Contact: <sip:7010@192.168.100.30>;expires=3600
Content-Length: 0
<------------>
set_destination: Parsing <sip:7000@192.168.100.20:14554> for address/port to send to
set_destination: set destination to 192.168.100.20, port 14554
Reliably Transmitting (no NAT) to 192.168.100.20:14554:
NOTIFY sip:7000@192.168.100.20:14554 SIP/2.0
Via: SIP/2.0/UDP 192.168.100.30:5060;branch=z9hG4bK0eb1f48d;rport
Max-Forwards: 70
From: <sip:7010@192.168.100.30>;tag=as70e8bb8a
To: "7000"<sip:7000@192.168.100.30>;tag=ea4b908a
Contact: <sip:7010@192.168.100.30>
Call-ID: MzFlMzk4NDFkODBiZGRkZTM3NTBhODE1ZDQ4ZjY1NTQ.
CSeq: 102 NOTIFY
User-Agent: Asterisk PBX 1.6.2.9-2+squeeze3
Event: presence
Content-Type: application/pidf+xml
Subscription-State: active
Content-Length: 483
<?xml version="1.0" encoding="ISO-8859-1"?>
<presence xmlns="urn:ietf:params:xml:ns:pidf"
xmlns:pp="urn:ietf:params:xml:ns:pidf:person"
xmlns:es="urn:ietf:params:xml:ns:pidf:rpid:status:rpid-status"
xmlns:ep="urn:ietf:params:xml:ns:pidf:rpid:rpid-person"
entity="sip:7000@192.168.100.30">
<pp:person><status>
</status></pp:person>
<note>Ready</note>
<tuple id="7010">
<contact priority="1">sip:7010@192.168.100.30</contact>
<status><basic>open</basic></status>
</tuple>
</presence>
---
<--- SIP read from UDP:192.168.100.20:14554 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.100.30:5060;branch=z9hG4bK0eb1f48d;rport=5060
Contact: <sip:7000@192.168.100.20:14554>
To: "7000"<sip:7000@192.168.100.30>;tag=ea4b908a
From: <sip:7010@192.168.100.30>;tag=as70e8bb8a
Call-ID: MzFlMzk4NDFkODBiZGRkZTM3NTBhODE1ZDQ4ZjY1NTQ.
CSeq: 102 NOTIFY
User-Agent: X-Lite 4 release 4.1 stamp 63214
Content-Length: 0
<------------->
--- (9 headers 0 lines) ---
SIP Response message for INCOMING dialog NOTIFY arrived
srv1001*CLI> sip set debug off
SIP Debugging Disabled
srv1001*CLI>