diff options
author | Mark Spencer <markster@digium.com> | 2003-05-10 18:43:11 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2003-05-10 18:43:11 +0000 |
commit | 425ab889d6e74211b30f2b610526230fe4f35e58 (patch) | |
tree | d90abf9be8300a71e154833c601c74a288a2b098 | |
parent | d593a70bbfcd7473b335318e6bdbdb42d2a08ea4 (diff) |
Minor tweaks to make wav49 default format, and put nice extension
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@991 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rwxr-xr-x | apps/app_voicemail2.c | 2 | ||||
-rwxr-xr-x | configs/voicemail.conf.sample | 2 |
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 |