diff options
author | Alexei Gradinari <alex2grad@gmail.com> | 2016-04-07 13:02:19 -0400 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2016-04-11 22:30:53 -0500 |
commit | f89613646082c7abb48ed4415fc34fd3fc70e923 (patch) | |
tree | 52865b3565f4fe0e5dd69b567c462f30af70185c /apps | |
parent | 8207372e663bdaa44acbe8fd6a262eead5532ad8 (diff) |
app_voicemail/IMAP: function 'save_to_folder' creates wrong folder
If try to move message to Cust1 (number 5)
the function 'save_to_folder' tries to create Greeting folder instead of Cust1.
This patch fixed it by setting GREETINGS_FOLDER = -1
ASTERISK-24927 #close
Change-Id: I03d1a761894bcc2d130ec9b003bbcddc28e25c51
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_voicemail.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 0755c44b0..8f18fdb4a 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -620,12 +620,12 @@ static AST_LIST_HEAD_STATIC(vmstates, vmstate); #define OPERATOR_EXIT 300 enum vm_box { - NEW_FOLDER, - OLD_FOLDER, - WORK_FOLDER, - FAMILY_FOLDER, - FRIENDS_FOLDER, - GREETINGS_FOLDER + NEW_FOLDER = 0, + OLD_FOLDER = 1, + WORK_FOLDER = 2, + FAMILY_FOLDER = 3, + FRIENDS_FOLDER = 4, + GREETINGS_FOLDER = -1 }; enum vm_option_flags { |