[Asterisk-code-review] app voicemail/IMAP: function 'save to folder' creates wrong ... (asterisk[13])

Alexei Gradinari asteriskteam at digium.com
Thu Apr 7 12:09:38 CDT 2016


Alexei Gradinari has uploaded a new change for review.

  https://gerrit.asterisk.org/2548

Change subject: app_voicemail/IMAP: function 'save_to_folder' creates wrong folder
......................................................................

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

Change-Id: I03d1a761894bcc2d130ec9b003bbcddc28e25c51
---
M apps/app_voicemail.c
1 file changed, 6 insertions(+), 6 deletions(-)


  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/48/2548/1

diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index 0755c44..8f18fdb 100644
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -620,12 +620,12 @@
 #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 {

-- 
To view, visit https://gerrit.asterisk.org/2548
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I03d1a761894bcc2d130ec9b003bbcddc28e25c51
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-Owner: Alexei Gradinari <alex2grad at gmail.com>



More information about the asterisk-code-review mailing list