aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-05-10 18:43:11 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-05-10 18:43:11 +0000
commit12972bff289d4090187cde0dbf76a23c4c075dcd (patch)
treed90abf9be8300a71e154833c601c74a288a2b098
parent977aa63b7ddbb4f425adfe36ad0dfdfdc9a11f0f (diff)
Minor tweaks to make wav49 default format, and put nice extension
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@991 f38db490-d61c-443f-a65b-d21fe96a405b
-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