]> git.ipfire.org Git - thirdparty/asterisk.git/commit
app_voicemail: Emit warning if asking for nonexistent mailbox.
authorNaveen Albert <asterisk@phreaknet.org>
Wed, 16 Feb 2022 11:34:34 +0000 (11:34 +0000)
committerFriendly Automation <jenkins2@gerrit.asterisk.org>
Wed, 23 Feb 2022 22:28:41 +0000 (16:28 -0600)
commit39820e3561df91e3fdeb464578be614660f77eff
treeba520a16109628793506035c7ce0eb0a8688d971
parenta2aa881dcbdcbe06bafc43eec44e67b84c8de544
app_voicemail: Emit warning if asking for nonexistent mailbox.

Currently, if VoiceMailMain is called with a mailbox, if that
mailbox doesn't exist, then the application silently falls back
to prompting the user for the mailbox, as if no arguments were
provided.

However, if a specific mailbox is requested and it doesn't exist,
then no warning at all is emitted.

This fixes this behavior to now warn if a specifically
requested mailbox could not be accessed, before falling back to
prompting the user for the correct mailbox.

ASTERISK-29920 #close

Change-Id: Ib4093b88cd661a2cabc5d685777d4e2f0ebd20a4
apps/app_voicemail.c