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
This commit is contained in:
parent
cc016de696
commit
33215616d4
1 changed files with 0 additions and 6 deletions
|
@ -4058,12 +4058,6 @@ static void queue_mwi_event(const char *mbox, int new, int old)
|
||||||
if (strstr(mailbox, "@default"))
|
if (strstr(mailbox, "@default"))
|
||||||
mailbox = strsep(&mailbox, "@");
|
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,
|
if (!(event = ast_event_new(AST_EVENT_MWI,
|
||||||
AST_EVENT_IE_MAILBOX, AST_EVENT_IE_PLTYPE_STR, mailbox,
|
AST_EVENT_IE_MAILBOX, AST_EVENT_IE_PLTYPE_STR, mailbox,
|
||||||
AST_EVENT_IE_NEWMSGS, AST_EVENT_IE_PLTYPE_UINT, new,
|
AST_EVENT_IE_NEWMSGS, AST_EVENT_IE_PLTYPE_UINT, new,
|
||||||
|
|
Loading…
Reference in a new issue