]> git.ipfire.org Git - thirdparty/asterisk.git/commit
app_voicemail_imap: Fix message count when IMAP server is unavailable
authorOlaf Titz <olaf@bigred.inka.de>
Thu, 15 Jun 2023 15:36:26 +0000 (17:36 +0200)
committerOlaf Titz <olaf@bigred.inka.de>
Mon, 26 Jun 2023 13:03:20 +0000 (13:03 +0000)
commit3b23ee42033842bfb991ee66cfe2e9a450e5ca55
tree906dc624d0df50d789a33d438444712ae867a353
parent897bb03de272eae91fa49d6a424cd4fdc07ac5a2
app_voicemail_imap: Fix message count when IMAP server is unavailable

Some callers of __messagecount did not correctly handle error return,
instead returning a -1 message count.
This caused a notification with "Messages-Waiting: yes" and
"Voice-Message: -1/0 (0/0)" if the IMAP server was unavailable.

Fixes: #64
apps/app_voicemail.c