diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-02-28 07:13:39 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-02-28 07:13:39 +0000 |
commit | 2bf63fcf990ba58a6a3c40a9b70e2e3644ad1bc3 (patch) | |
tree | d9cd76eb4c5bbe1b7dc41c16b573238496b15cad /apps/app_voicemail.c | |
parent | f1bf1c4cf83e6cd123b81e797544a1fa78a69924 (diff) |
Merged revisions 249405 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r249405 | tilghman | 2010-02-28 01:10:22 -0600 (Sun, 28 Feb 2010) | 2 lines
Properly document voicemail API documents. Also fix a crash reported via the -dev list.
........
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.1@249406 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_voicemail.c')
-rw-r--r-- | apps/app_voicemail.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 72d8e91f8..3278ec790 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -4807,7 +4807,7 @@ static int copy_message(struct ast_channel *chan, struct ast_vm_user *vmu, int i static int messagecount(const char *context, const char *mailbox, const char *folder) { - return __has_voicemail(context, mailbox, folder, 0) + (strcmp(folder, "INBOX") ? 0 : __has_voicemail(context, mailbox, "Urgent", 0)); + return __has_voicemail(context, mailbox, folder, 0) + (folder && strcmp(folder, "INBOX") ? 0 : __has_voicemail(context, mailbox, "Urgent", 0)); } static int __has_voicemail(const char *context, const char *mailbox, const char *folder, int shortcircuit) |