aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xapps/app_voicemail2.c2
-rwxr-xr-xconfigs/voicemail.conf.sample2
2 files changed, 3 insertions, 1 deletions
diff --git a/apps/app_voicemail2.c b/apps/app_voicemail2.c
index 0ebe83b05..7243e2da3 100755
--- a/apps/app_voicemail2.c
+++ b/apps/app_voicemail2.c
@@ -392,6 +392,8 @@ static int sendmail(char *srcemail, char *email, char *name, int msgnum, char *m
char dur[256];
time_t t;
struct tm tm;
+ if (!strcmp(format, "wav49"))
+ format = "WAV";
p = popen(SENDMAIL, "w");
if (p) {
gethostname(host, sizeof(host));
diff --git a/configs/voicemail.conf.sample b/configs/voicemail.conf.sample
index 3fc2fac1d..c3c0fb525 100755
--- a/configs/voicemail.conf.sample
+++ b/configs/voicemail.conf.sample
@@ -4,7 +4,7 @@
[general]
; Default formats for writing Voicemail
;format=g723sf|wav49|wav
-format=gsm|wav49|wav
+format=wav49|gsm|wav
; Who the e-mail notification should appear to come from
serveremail=asterisk
;serveremail=asterisk@linux-support.net