aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_voicemail.c
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2008-10-09 21:47:02 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2008-10-09 21:47:02 +0000
commit768c0284e382e5b3adbe9e1fd00cf2a890fbebb3 (patch)
treef9b107bc541ba906160fa855fc9578091738ea28 /apps/app_voicemail.c
parent5e8a0a0fb0956e54b67c563eb5c233cd44234c1b (diff)
Reverting format addition for now
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@148071 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_voicemail.c')
-rw-r--r--apps/app_voicemail.c20
1 files changed, 4 insertions, 16 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index 87b10b166..9f2c335e8 100644
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -1755,11 +1755,8 @@ static int imap_store_file(char *dir, char *mailboxuser, char *mailboxcontext, i
tempcopy = 1;
}
- if (!strcmp(fmt, "wav49")) {
+ if (!strcmp(fmt, "wav49"))
fmt = "WAV";
- } else if (!strcmp(fmt, "wav16")) {
- fmt = "Wav";
- }
ast_debug(3, "Storing file '%s', format '%s'\n", fn, fmt);
/* Make a temporary file instead of piping directly to sendmail, in case the mail
@@ -2756,11 +2753,8 @@ static int retrieve_file(char *dir, int msgnum)
c = strchr(fmt, '|');
if (c)
*c = '\0';
- if (!strcasecmp(fmt, "wav49")) {
+ if (!strcasecmp(fmt, "wav49"))
strcpy(fmt, "WAV");
- } else if (!strcasecmp(fmt, "wav16")) {
- strcpy(fmt, "Wav");
- }
snprintf(msgnums, sizeof(msgnums),"%d", msgnum);
if (msgnum > -1)
make_file(fn, sizeof(fn), dir, msgnum);
@@ -3173,11 +3167,8 @@ static int store_file(char *dir, char *mailboxuser, char *mailboxcontext, int ms
c = strchr(fmt, '|');
if (c)
*c = '\0';
- if (!strcasecmp(fmt, "wav49")) {
+ if (!strcasecmp(fmt, "wav49"))
strcpy(fmt, "WAV");
- } else if (!strcasecmp(fmt, "wav16")) {
- strcpy(fmt, "Wav");
- }
snprintf(msgnums, sizeof(msgnums),"%d", msgnum);
if (msgnum > -1)
make_file(fn, sizeof(fn), dir, msgnum);
@@ -3998,11 +3989,8 @@ static int sendmail(char *srcemail, struct ast_vm_user *vmu, int msgnum, char *c
ast_log(AST_LOG_WARNING, "E-mail address missing for mailbox [%s]. E-mail will not be sent.\n", vmu->mailbox);
return(0);
}
- if (!strcmp(format, "wav49")) {
+ if (!strcmp(format, "wav49"))
format = "WAV";
- } else if (!strcmp(format, "wav16")) {
- format = "Wav";
- }
ast_debug(3, "Attaching file '%s', format '%s', uservm is '%d', global is %d\n", attach, format, attach_user_voicemail, ast_test_flag((&globalflags), VM_ATTACH));
/* Make a temporary file instead of piping directly to sendmail, in case the mail
command hangs */