diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-05-10 18:43:11 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-05-10 18:43:11 +0000 |
commit | 12972bff289d4090187cde0dbf76a23c4c075dcd (patch) | |
tree | d90abf9be8300a71e154833c601c74a288a2b098 | |
parent | 977aa63b7ddbb4f425adfe36ad0dfdfdc9a11f0f (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-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 |