]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
vms doesn't exist on non-IMAP storage builds.
authorJoshua Colp <jcolp@digium.com>
Wed, 20 Dec 2006 02:56:09 +0000 (02:56 +0000)
committerJoshua Colp <jcolp@digium.com>
Wed, 20 Dec 2006 02:56:09 +0000 (02:56 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48637 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_voicemail.c

index eb7b1195dec84a0ef51309adb4642540308707f6..73bcf74b6b91d5f2a51954215c65fa05e6d0bc9b 100644 (file)
@@ -3063,8 +3063,12 @@ static int leave_voicemail(struct ast_channel *chan, char *ext, struct leave_vm_
                                category ? category : ""); 
                } else
                        ast_log(LOG_WARNING, "Error opening text file for output\n");
+#ifdef IMAP_STORAGE
                res = play_record_review(chan, NULL, tmptxtfile, vmmaxmessage, fmt, 1, vmu, &duration, NULL, options->record_gain, vms);
-                               
+#else
+               res = play_record_review(chan, NULL, tmptxtfile, vmmaxmessage, fmt, 1, vmu, &duration, NULL, options->record_gain, NULL);
+#endif
+
                if (txt) {
                        if (duration < vmminmessage) {
                                if (option_verbose > 2)