[Asterisk-Dev] SIP presence notification updated (#3644)

Adam Gundy arg at cyberscience.com
Tue Aug 30 08:52:08 MST 2005


I just updated from CVS and tried this. when I subscribe to an extension 
using Pulver Communicator (which is based on Messenger under the hood), 
I get a continuous stream of subscriptions and subscription timeout 
responses from asterisk.

I'm not sure why asterisk is telling Pulver that its subscription has 
timed out, but of course it immediately tries again, and so on round in 
very fast circles...

sip debug extract follows:

<-- SIP read from 172.17.30.10:1193:
SUBSCRIBE sip:6110 at asterisk.us.cyberscience.com SIP/2.0
Via: SIP/2.0/UDP 172.17.30.10:1193
Max-Forwards: 70
From: 
<sip:adamgundy at asterisk.us.cyberscience.com>;tag=8a740fbbe5b64c92b88ae82f0e68081b;epid=6c3a73b3b9
To: <sip:6110 at asterisk.us.cyberscience.com>
Call-ID: d66916519b2e442e86e980e018c62d1a at 172.17.30.10
CSeq: 2 SUBSCRIBE
Contact: <sip:172.17.30.10:1193>
User-Agent: pulver.Comm - 0.95.3
Authorization: Digest username="adamgundy", 
realm="asterisk.us.cyberscience.com", algorithm=md5, 
uri="sip:6110 at asterisk.us.cyberscience.com", nonce="6d9187be", 
response="c3d45c6828e54c0ad6af7ae11de68ae2"
Event: presence
Accept: application/xpidf+xml, text/xml+msrtc.pidf
Supported: com.microsoft.autoextend
Content-Length: 0


--- (14 headers 0 lines)---
Using latest SUBSCRIBE request as basis request
Sending to 172.17.30.10 : 1193 (non-NAT)
Found peer 'adamgundy'
Looking for 6110 in default
Transmitting (no NAT) to 172.17.30.10:1193:
SIP/2.0 200 OK
Via: SIP/2.0/UDP 172.17.30.10:1193
From: 
<sip:adamgundy at asterisk.us.cyberscience.com>;tag=8a740fbbe5b64c92b88ae82f0e68081b;epid=6c3a73b3b9
To: <sip:6110 at asterisk.us.cyberscience.com>;tag=as7fc64fb7
Call-ID: d66916519b2e442e86e980e018c62d1a at 172.17.30.10
CSeq: 2 SUBSCRIBE
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Expires: 3600
Contact: <sip:6110 at 172.17.30.40>;expires=3600
Content-Length: 0
asterisk*CLI>

---
Scheduling destruction of call 
'd66916519b2e442e86e980e018c62d1a at 172.17.30.10' in 3610000 ms
Reliably Transmitting (no NAT) to 172.17.30.10:1193:
NOTIFY sip:adamgundy at asterisk.us.cyberscience.com SIP/2.0
Via: SIP/2.0/UDP 172.17.30.40:5060;branch=z9hG4bK44b7b2d1;rport
From: <sip:6110 at asterisk.us.cyberscience.com>;tag=as7fc64fb7
To: 
<sip:adamgundy at asterisk.us.cyberscience.com>;tag=8a740fbbe5b64c92b88ae82f0e68081b;epid=6c3a73b3b9
Contact: <sip:6110 at 172.17.30.40>
Call-ID: d66916519b2e442e86e980e018c62d1a at 172.17.30.10
CSeq: 102 NOTIFY
User-Agent: Asterisk PBX
Event: -
Content-Type: unknown
Subscription-State: terminated;reason=timeout
Retry-After: 60
Content-Length: 0


---
Reliably Transmitting (no NAT) to 172.17.30.10:1193:
NOTIFY sip:adamgundy at asterisk.us.cyberscience.com SIP/2.0
Via: SIP/2.0/UDP 172.17.30.40:5060;branch=z9hG4bK5fa0486e;rport
From: <sip:6110 at asterisk.us.cyberscience.com>;tag=as7fc64fb7
To: 
<sip:adamgundy at asterisk.us.cyberscience.com>;tag=8a740fbbe5b64c92b88ae82f0e68081b;epid=6c3a73b3b9
Contact: <sip:6110 at 172.17.30.40>
Call-ID: d66916519b2e442e86e980e018c62d1a at 172.17.30.10
CSeq: 103 NOTIFY
User-Agent: Asterisk PBX
Event: -
Content-Type: unknown
Subscription-State: active
Content-Length: 365

ag=8a740fbbe5b64c92b88ae82f0e68081b;epid=6c3a73b3b9
To: <sip:6110 at asterisk.us.cyberscience.com>;tag=as7fc64fb7
Call-ID: d66916519b2e442e86e980e018c62d1a at 172.17.30.10
CSeq: 2 SUBSCRIBE
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Expires: 3600
Contact: <sip:6110 at 172.17.30.40>;expires=3600
Content-Length: 0


---
asterisk*CLI>
<-- SIP read from 172.17.30.10:1193:
SUBSCRIBE sip:6110 at asterisk.us.cyberscience.com SIP/2.0
Via: SIP/2.0/UDP 172.17.30.10:1193
Max-Forwards: 70
From: 
<sip:adamgundy at asterisk.us.cyberscience.com>;tag=8a740fbbe5b64c92b88ae82f0e68081b;epid=6c3a73b3b9
To: <sip:6110 at asterisk.us.cyberscience.com>
Call-ID: d66916519b2e442e86e980e018c62d1a at 172.17.30.10
CSeq: 3 SUBSCRIBE
Contact: <sip:172.17.30.10:1193>
User-Agent: pulver.Comm - 0.95.3
Expires: 0
Event: presence
Content-Length: 0


--- (12 headers 0 lines)---
Using latest SUBSCRIBE request as basis request
Sending to 172.17.30.10 : 1193 (non-NAT)
Transmitting (no NAT) to 172.17.30.10:1193:
SIP/2.0 200 OK
Via: SIP/2.0/UDP 172.17.30.10:1193
From: 
<sip:adamgundy at asterisk.us.cyberscience.com>;tag=8a740fbbe5b64c92b88ae82f0e68081b;epid=6c3a73b3b9
To: <sip:6110 at asterisk.us.cyberscience.com>;tag=as7fc64fb7
Call-ID: d66916519b2e442e86e980e018c62d1a at 172.17.30.10
CSeq: 3 SUBSCRIBE
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Contact: <sip:6110 at 172.17.30.40>
Content-Length: 0


---
asterisk*CLI>
<-- SIP read from 172.17.30.10:1193:
SIP/2.0 481 Call Leg/Transaction Does Not Exist
Via: SIP/2.0/UDP 172.17.30.40:5060;branch=z9hG4bK44b7b2d1;rport
From: <sip:6110 at asterisk.us.cyberscience.com>
To: 
<sip:adamgundy at asterisk.us.cyberscience.com>;tag=8a740fbbe5b64c92b88ae82f0e68081b;epid=6c3a73b3b9
Call-ID: d66916519b2e442e86e980e018c62d1a at 172.17.30.10
CSeq: 102 NOTIFY
User-Agent: pulver.Comm - 0.95.3
Content-Length: 0


--- (8 headers 0 lines)---
Response message NOTIFY arrived
asterisk*CLI>
<-- SIP read from 172.17.30.10:1193:
SIP/2.0 489 Bad Event
Via: SIP/2.0/UDP 172.17.30.40:5060;branch=z9hG4bK5fa0486e;rport
From: <sip:6110 at asterisk.us.cyberscience.com>;tag=as7fc64fb7
To: 
<sip:adamgundy at asterisk.us.cyberscience.com>;tag=8a740fbbe5b64c92b88ae82f0e68081b;epid=6c3a73b3b9
Call-ID: d66916519b2e442e86e980e018c62d1a at 172.17.30.10
CSeq: 103 NOTIFY
User-Agent: pulver.Comm - 0.95.3
Allow-Events: presence
Content-Length: 0


--- (9 headers 0 lines)---
Response message NOTIFY arrived
Destroying call 'd66916519b2e442e86e980e018c62d1a at 172.17.30.10'
11 headers, 3 lines
Reliably Transmitting (no NAT) to 172.17.30.10:1193:
NOTIFY sip:172.17.30.10:1193 SIP/2.0
Via: SIP/2.0/UDP 172.17.30.40:5060;branch=z9hG4bK504d8d2b;rport
From: "asterisk" <sip:asterisk at 172.17.30.40>;tag=as4befb4e7
To: <sip:172.17.30.10:1193>
Contact: <sip:asterisk at 172.17.30.40>
Call-ID: 465ad5bb58142e5c267c9e362a5fa74b at 172.17.30.40
CSeq: 102 NOTIFY
User-Agent: Asterisk PBX
Event: message-summary
Content-Type: application/simple-message-summary
Content-Length: 80

Message-Account: sip:asterisk@
Messages-Waiting: no
Voice-Message: 0/0 (0/0)

Seeya,
  Adam
-- 
Real Programmers don't comment their code. If it was hard to write,
it should be hard to read, and even harder to modify.
These are all my own opinions.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3182 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.digium.com/pipermail/asterisk-dev/attachments/20050830/d31d46bf/smime.bin


More information about the asterisk-dev mailing list