When looking up a mailbox, use the default context if not specified as something else
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78824 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
parent
633c98f1bc
commit
24aa12a370
1 changed files with 1 additions and 1 deletions
|
@ -16303,7 +16303,7 @@ static int get_cached_mwi(struct sip_peer *peer, int *new, int *old)
|
|||
struct ast_event *event;
|
||||
event = ast_event_get_cached(AST_EVENT_MWI,
|
||||
AST_EVENT_IE_MAILBOX, AST_EVENT_IE_PLTYPE_STR, mailbox->mailbox,
|
||||
AST_EVENT_IE_CONTEXT, AST_EVENT_IE_PLTYPE_STR, mailbox->context,
|
||||
AST_EVENT_IE_CONTEXT, AST_EVENT_IE_PLTYPE_STR, S_OR(mailbox->context, "default"),
|
||||
AST_EVENT_IE_NEWMSGS, AST_EVENT_IE_PLTYPE_EXISTS,
|
||||
AST_EVENT_IE_OLDMSGS, AST_EVENT_IE_PLTYPE_EXISTS,
|
||||
AST_EVENT_IE_END);
|
||||
|
|
Reference in a new issue