When looking up a mailbox, use the default context if not specified as something...
authorRussell Bryant <russell@russellbryant.com>
Thu, 9 Aug 2007 19:35:07 +0000 (19:35 +0000)
committerRussell Bryant <russell@russellbryant.com>
Thu, 9 Aug 2007 19:35:07 +0000 (19:35 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@78824 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 8f19c58..f3c1985 100644 (file)
@@ -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);