diff options
author | jpeeler <jpeeler@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-04-19 19:09:46 +0000 |
---|---|---|
committer | jpeeler <jpeeler@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-04-19 19:09:46 +0000 |
commit | 42485610d0b4529be900448606c7cf091fb7df0b (patch) | |
tree | 2a74b4dfaccd75688cfee4afaa9a4ef16308ca5c /apps/app_voicemail.c | |
parent | 6eb3fcbacdb8f4e7cb4968a67e64ffa58b0d47e0 (diff) |
make app_voicemail compile with IMAP_STORAGE
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@257856 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_voicemail.c')
-rw-r--r-- | apps/app_voicemail.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 40f56eeab..c75303a35 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -2877,6 +2877,7 @@ static int remove_file(char *dir, int msgnum) } #endif +#ifndef IMAP_STORAGE static int copy(char *infile, char *outfile) { int ifd; @@ -2926,7 +2927,9 @@ static int copy(char *infile, char *outfile) } #endif } +#endif +#ifndef IMAP_STORAGE static void copy_plain_file(char *frompath, char *topath) { char frompath2[PATH_MAX], topath2[PATH_MAX]; @@ -2935,7 +2938,9 @@ static void copy_plain_file(char *frompath, char *topath) snprintf(topath2, sizeof(topath2), "%s.txt", topath); copy(frompath2, topath2); } +#endif +#ifndef IMAP_STORAGE static int vm_delete(char *file) { char *txt; @@ -2950,6 +2955,7 @@ static int vm_delete(char *file) unlink(txt); return ast_filedelete(file, NULL); } +#endif static int inbuf(struct baseio *bio, FILE *fi) { @@ -5387,8 +5393,10 @@ static int forward_message(struct ast_channel *chan, char *context, struct vm_st } else { /* Forward VoiceMail */ long duration = 0; - char msgfile[PATH_MAX]; struct vm_state vmstmp; +#ifndef IMAP_STORAGE + char msgfile[PATH_MAX]; +#endif memcpy(&vmstmp, vms, sizeof(vmstmp)); |