[Home]

Summary:ASTERISK-14654: MWI is not sent to a SIP phone upon registration, but is after the mailbox is updated/checked
Reporter:Moriah Trostler (natmlt)Labels:
Date Opened:2009-08-13 19:21:35Date Closed:2009-08-21 16:53:06
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Applications/app_voicemail
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) realtime_sipdebug.txt
Description:chan_sip and app_voicemail are both configured to use realtime for configuration; additionally, app_voicemail is configured to use ODBC for message storage.

When a SIP phone registers, and the mailbox assigned to that SIP peer has unread messages in it, the phone does *not* receive a MWI notification upon registration. However, any action taken to cause app_voicemail to check the status of the mailbox (leaving a message, deleting a message, calling in just to hear how many messages are present) immediately sends a proper MWI notification to the phone. In this configuration, the SIP phone is *not* subscribing for MWI notification, it's relying on Asterisk's default 'push' notification mechanism.

It would appear that the SIP phone registration, which results in an internal subscription to the voicemail box, does not actually cause app_voicemail to check the mailbox's status as it should.
Comments:By: Digium Subversion (svnbot) 2009-08-21 16:40:24

Repository: asterisk
Revision: 213697

U   trunk/apps/app_voicemail.c

------------------------------------------------------------------------
r213697 | kpfleming | 2009-08-21 16:40:24 -0500 (Fri, 21 Aug 2009) | 12 lines

Ensure that realtime mailboxes properly report status on subscription.

This patch modifies app_voicemail's response to mailbox status subscriptions
(via the internal event system) to ensure that a subscription triggers an
explicit poll of the mailbox, so the subscriber can get an immediate cached
event with that status. Previously, the cache was only populated with the
status of non-realtime mailboxes.

(closes issue ASTERISK-14654)
Reported by: natmlt


------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=213697

By: Digium Subversion (svnbot) 2009-08-21 16:45:19

Repository: asterisk
Revision: 213698

_U  branches/1.6.2/
U   branches/1.6.2/apps/app_voicemail.c

------------------------------------------------------------------------
r213698 | kpfleming | 2009-08-21 16:45:18 -0500 (Fri, 21 Aug 2009) | 18 lines

Merged revisions 213697 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
 r213697 | kpfleming | 2009-08-21 16:39:51 -0500 (Fri, 21 Aug 2009) | 12 lines
 
 Ensure that realtime mailboxes properly report status on subscription.
 
 This patch modifies app_voicemail's response to mailbox status subscriptions
 (via the internal event system) to ensure that a subscription triggers an
 explicit poll of the mailbox, so the subscriber can get an immediate cached
 event with that status. Previously, the cache was only populated with the
 status of non-realtime mailboxes.
 
 (closes issue ASTERISK-14654)
 Reported by: natmlt
........

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=213698

By: Digium Subversion (svnbot) 2009-08-21 16:53:06

Repository: asterisk
Revision: 213699

_U  branches/1.6.1/
U   branches/1.6.1/apps/app_voicemail.c

------------------------------------------------------------------------
r213699 | kpfleming | 2009-08-21 16:53:06 -0500 (Fri, 21 Aug 2009) | 18 lines

Merged revisions 213697 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
 r213697 | kpfleming | 2009-08-21 16:39:51 -0500 (Fri, 21 Aug 2009) | 12 lines
 
 Ensure that realtime mailboxes properly report status on subscription.
 
 This patch modifies app_voicemail's response to mailbox status subscriptions
 (via the internal event system) to ensure that a subscription triggers an
 explicit poll of the mailbox, so the subscriber can get an immediate cached
 event with that status. Previously, the cache was only populated with the
 status of non-realtime mailboxes.
 
 (closes issue ASTERISK-14654)
 Reported by: natmlt
........

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=213699