diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-08-20 02:46:02 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-08-20 02:46:02 +0000 |
commit | 911989a2f6e6f0cd7bb4cc2da572378cc38665aa (patch) | |
tree | f4318b2458474396d77d95f40a6ab07c0c4d0e53 /apps | |
parent | 4e358ef926b65709865fb12123bae4180f682d8a (diff) |
Merged revisions 79998 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r79998 | tilghman | 2007-08-19 21:42:49 -0500 (Sun, 19 Aug 2007) | 2 lines
Missing curly braces. Oops. (Reported by snuffy via IRC)
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@79999 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_voicemail.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 4c4929728..8dfffd518 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -3063,10 +3063,11 @@ static int leave_voicemail(struct ast_channel *chan, char *ext, struct leave_vm_ if (ast_streamfile(chan, prefile, chan->language) > -1) res = ast_waitstream(chan, ecodes); #ifdef ODBC_STORAGE - if(success == -1) - /*We couldn't retrieve the file from the database, but we found it on the file system. Let's put it in the database*/ + if (success == -1) { + /* We couldn't retrieve the file from the database, but we found it on the file system. Let's put it in the database. */ ast_debug(1, "Greeting not retrieved from database, but found in file storage. Inserting into database\n"); store_file(prefile, vmu->mailbox, vmu->context, -1); + } #endif } else { ast_debug(1, "%s doesn't exist, doing what we can\n", prefile); |