[asterisk-bugs] [Asterisk 0013028]: [patch] Add support to handle incoming out-of-dialog SIP NOTIFY requests for "message-summary" event package

noreply at bugs.digium.com noreply at bugs.digium.com
Tue Jul 8 15:39:57 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=13028 
====================================================================== 
Reported By:                AsteriskRocks
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   13028
Category:                   Channels/chan_skinny/NewFeature
Reproducibility:            always
Severity:                   feature
Priority:                   normal
Status:                     new
Asterisk Version:           1.6.0-beta9 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             07-08-2008 15:34 CDT
Last Modified:              07-08-2008 15:39 CDT
====================================================================== 
Summary:                    [patch] Add support to handle incoming out-of-dialog
SIP NOTIFY requests for "message-summary" event package
Description: 
The existing Asterisk code rejects all incoming out of dialog SIP NOTIFY
requests with a "489 Bad Request" response. This feature adds support for
handling NOTIFY requests with "message-summary" event package. This will
allow third party telephone switches and voicemail systems to set and clear
MWI lamps to SIP phones configured on Asterisk.

With this change, Asterisk code will not reject an incoming out of dialog
NOTIFY
request by default. It will examine the "Event" header and "Content-Type"
header
before sending a response. If the event package is "message-sumary" and
the content type is "application/simple-message-summary", then Asterisk
will process the request further. Asterisk will attempt to ascertain if the
intended 
destination has subscribed for "message-summary". If an active
subscription is 
found, a NOTIFY request will be generated based on the subscription
dialog. If 
no subscription is found, then an unsolicited NOTIFY request will be
generated. 
In both cases, a successful response to the original NOTIFY requested will
be 
sent. Asterisk will continue to reject the request with 489 "Bad event"
for all 
out of dialog NOTIFY request with event package other than
"message-summary. 
Additionally, it will reject the NOTIFY request with 400 "Bad request" if
the 
message body is not formatted per RFC 3842. On receiving a NOTIFY request
for an
extension that is not currently registered, Asterisk will respond with 404
"Not 
found".

====================================================================== 

---------------------------------------------------------------------- 
 AsteriskRocks - 07-08-08 15:39  
---------------------------------------------------------------------- 
Example:
=========================
The attached screen capture from the Asterisk console shows the following
SIP messages exchanged between the third party switch / application,
Asterisk and the SIP phone.

I: MWI set and clear for a SIP phone that has subscribed for
"message-summary"
------------------------------------------------------------------------------

================================================================================
 Subscription for "message-summary" from Polycom Soundpoint IP 320SIP ext:
6199
================================================================================

   SIP phone               Asterisk            3rd party application
   (6199)
   ---------------------------------------------------------------------

1)  SUBSCRIBE    -------->
2)               <--------  200 OK

3)               <--------  NOTIFY
4)  200 OK       -------->

5)                                    <--------  NOTIFY (out of dialog)
(MWI:yes)
6)               <--------  NOTIFY (subscribe dialog)

7)                          200 OK    -------->

8)  200 OK       -------->

9)                                    <--------  NOTIFY (out of dialog)
(MWI:no)
10)              <--------  NOTIFY (subscribe dialog)

11)                         200 OK    -------->

12) 200 OK       -------->





II: MWI set and clear for a SIP phone that has not subscribed for
"message-summary"
--------------------------------------------------------------------------------

   SIP phone               Asterisk            3rd party application
   (3622)
---------------------------------------------------------------------
(3622 is registered with Asterisk but does not maintain a subscription for
"message-summary")

1)                                    <--------  NOTIFY (out of dialog)
(MWI:yes)
2)               <--------  NOTIFY (out of dialog) (MWI:yes)

3)                          200 OK    -------->

4)  200 OK       -------->

5)                                    <--------  NOTIFY (out of dialog)
(MWI:no)
6)               <--------  (out of dialog) (MWI:yes)

7)                          200 OK    -------->

8)  200 OK       --------> 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
07-08-08 15:39  AsteriskRocks  Note Added: 0089910                          
======================================================================




More information about the asterisk-bugs mailing list