Minor tweaks to make wav49 default format, and put nice extension
authorMark Spencer <markster@digium.com>
Sat, 10 May 2003 18:43:11 +0000 (18:43 +0000)
committerMark Spencer <markster@digium.com>
Sat, 10 May 2003 18:43:11 +0000 (18:43 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@991 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_voicemail2.c
configs/voicemail.conf.sample

index 0ebe83b..7243e2d 100755 (executable)
@@ -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));
index 3fc2fac..c3c0fb5 100755 (executable)
@@ -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