r388815 didn't not cleanly apply the intended patch. As a result, app_voicemail
had a small issue in that it didn't compile. Whoops.
This patch pulls in the correct variable declarations such that gcc can figure
out what 'urgent_index' is all about.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/10-digiumphones@397704
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
int i;
int this_index_only = -1;
int open = 0;
- int inbox_index = 0;
- int old_index = 1;
+ int inbox_index = get_folder_by_name("INBOX");
+ int old_index = get_folder_by_name("Old");
+ int urgent_index = get_folder_by_name("Urgent");
+
if (ast_strlen_zero(mailbox)) {
ast_log(LOG_WARNING, "Cannot create a mailbox snapshot since no mailbox was specified\n");