From: Russell Bryant Date: Wed, 23 May 2007 17:17:45 +0000 (+0000) Subject: Don't check for MWI event subscribers before creating the MWI event in voicemail. X-Git-Tag: 1.6.0-beta1~3^2~2609 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=33215616d4052b08e2fa72f59b397e7a1dd8581d;p=thirdparty%2Fasterisk.git Don't check for MWI event subscribers before creating the MWI event in voicemail. MWI events get cached, so go ahead and always generate them so the cache gets populated. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@65659 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index d6c38e56aa..3976c30edd 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -4058,12 +4058,6 @@ static void queue_mwi_event(const char *mbox, int new, int old) if (strstr(mailbox, "@default")) mailbox = strsep(&mailbox, "@"); - if (ast_event_check_subscriber(AST_EVENT_MWI, - AST_EVENT_IE_MAILBOX, AST_EVENT_IE_PLTYPE_STR, mailbox, - AST_EVENT_IE_END) == AST_EVENT_SUB_NONE) { - return; - } - if (!(event = ast_event_new(AST_EVENT_MWI, AST_EVENT_IE_MAILBOX, AST_EVENT_IE_PLTYPE_STR, mailbox, AST_EVENT_IE_NEWMSGS, AST_EVENT_IE_PLTYPE_UINT, new,