Asterisk NOTIFY bug:  

The trap is from the ASTERISK side. 

IP ASTERISK = 192.168.1.2
IP CISCO    = 192.168.1.1

Summary of Call-ID

SUBSCRIBE  = Call-ID: 2C1ED0F6-2BDE11D6-80048294-A080CC2F
1st NOTIFY  = Call-ID: 2C1ED0F6-2BDE11D6-80048294-A080CC2F
2nd NOTIFY  = Call-ID: 57f3d594208235d27e796fd27db42c1b@192.168.1.2




 Sip read: 
REGISTER sip:192.168.1.2:5060 SIP/2.0

Via: SIP/2.0/UDP  192.168.1.1:5060;branch=z9hG4bKD1D

From: "2486" ;tag=6C28-14EF

To: 

Date: Tue, 13 Jul 2004 13:02:40 GMT

Call-ID: 2C1D98A7-2BDE11D6-80028294-A080CC2F

User-Agent: Cisco-SIPGateway/IOS-12.x

Max-Forwards: 70

Timestamp: 1089723760

CSeq: 1 REGISTER

C^Dasterick*CLI> 
ontact: 

Expires: 3600

Content-Length: 0




13 headers, 0 lines
Using latest request as basis request
Sending to 192.168.1.1 : 5060 (non-NAT)
Transmitting (no NAT):
SIP/2.0 100 Trying

Via: SIP/2.0/UDP  192.168.1.1:5060;branch=z9hG4bKD1D

From: "2486" ;tag=6C28-14EF

To: ;tag=as2385985f

Call-ID: 2C1D98A7-2BDE11D6-80028294-A080CC2F

CSeq: 1 REGISTER

User-Agent: Asterisk PBX

Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER

^Dasterick*CLI> 
Contact: 

Content-Length: 0




 to 192.168.1.1:5060
^Dasterick*CLI> 
Transmitting (no NAT):
SIP/2.0 200 OK

Via: SIP/2.0/UDP  192.168.1.1:5060;branch=z9hG4bKD1D

From: "2486" ;tag=6C28-14EF

To: ;tag=as2385985f

Call-ID: 2C1D98A7-2BDE11D6-80028294-A080CC2F

CSeq: 1 REGISTER

User-Agent: Asterisk PBX

Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER

Expires: 3600

Contact: ;expires=3600

Date: Tue, 13 Jul 2004 13:02:40 GMT

Content-Length: 0




 to 192.168.1.1:5060
^Dasterick*CLI> 


Sip read: 
SUBSCRIBE sip:2486@192.168.1.2:5060 SIP/2.0

Via: SIP/2.0/UDP  192.168.1.1:5060;branch=z9hG4bKFC2

From: "2486" ;tag=6C30-149

To: 

Date: 

Call-ID: 2C1ED0F6-2BDE11D6-80048294-A080CC2F

CSeq: 101 SUBSCRIBE

Timestamp: 1089723760

Contact: 

Event: message-summary

Expires: 600

Accept: application/simple-message-summary

Content-Length: 0




13 headers, 0 lines
^Dasterick*CLI> 
Using latest SUBSCRIBE request as basis request
Sending to 192.168.1.1 : 5060 (non-NAT)
Looking for 2486 in voice-mail
^Dasterick*CLI> 
Transmitting (no NAT):
SIP/2.0 200 OK

Via: SIP/2.0/UDP  192.168.1.1:5060;branch=z9hG4bKFC2

From: "2486" ;tag=6C30-149

To: ;tag=as5e6c0a09

Call-ID: 2C1ED0F6-2BDE11D6-80048294-A080CC2F

CSeq: 101 SUBSCRIBE

User-Agent: Asterisk PBX

Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER

Expires: 600

Contact: ;expires=600

Content-Length: 0




 to 192.168.1.1:5060
Reliably Transmitting:
NOTIFY sip:2486@192.168.1.1 SIP/2.0

Via: SIP/2.0/UDP 192.168.1.2:5060;branch=z9hG4bK7102bf5d

From: ;tag=as5e6c0a09

To: "2486" ;tag=6C30-149

Contact: 

Call-ID: 2C1ED0F6-2BDE11D6-80048294-A080CC2F

CSeq: 102 NOTIFY

User-Agent: Asterisk PBX

Content-Type: application/xpidf+xml

Content-Length: 344



<?xml version="1.0"?>




<^Dasterick*CLI> 
address uri="sip:2486@192.168.1.2;user=ip" priority="0,800000">





 (no NAT) to 192.168.1.1:5060
^Dasterick*CLI> 


Sip read: 
SIP/2.0 200 OK

Via: SIP/2.0/UDP 192.168.1.2:5060;branch=z9hG4bK7102bf5d

From: ;tag=as5e6c0a09

To: "2486" ;tag=6C30-149

Date: 

Call-ID: 2C1ED0F6-2BDE11D6-80048294-A080CC2F

CSeq: 102 NOTIFY

Timestamp: 1089723760

Event: message-summary

Content-Length: 0




^Dasterick*CLI> 
10 headers, 0 lines
Message is NOTIFY
^Dasterick*CLI> 
11 headers, 2 lines
Reliably Transmitting:
NOTIFY sip:2486@192.168.1.1 SIP/2.0

Via: SIP/2.0/UDP 192.168.1.2:5060;branch=z9hG4bK19c0b453

From: "asterisk" ;tag=as288443e6

To: 

Contact: 

Call-ID: 57f3d594208235d27e796fd27db42c1b@192.168.1.2

CSeq: 102 NOTIFY

User-Agent: Asterisk PBX

Event: message-summary

Content-Type: application/simple-message-summary

Content-Length: 37



Messages-Waiting: yes
Voicemail: 7/0
 (no NAT) to 192.168.1.1:5060
^Dasterick*CLI> 


Sip read: 
SIP/2.0 481 Call Leg/Transaction Does Not Exist

Via: SIP/2.0/UDP 192.168.1.2:5060;branch=z9hG4bK19c0b453

From: "asterisk" ;tag=as288443e6

To: 

Date: Tue, 13 Jul 2004 13:02:50 GMT

Call-ID: 57f3d594208235d27e796fd27db42c1b@192.168.1.2

Server: Cisco-SIPGateway/IOS-12.x

Content-Length: 0

CSeq: 102 NOTIFY