From: Mark Spencer Date: Mon, 17 Nov 2003 05:58:51 +0000 (+0000) Subject: Make format name match (not sure this is always a good idea) (bug #542) X-Git-Tag: 0.7.0~256 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6da153e69cf61ed9270cc156bf67546995c07ded;p=thirdparty%2Fasterisk.git Make format name match (not sure this is always a good idea) (bug #542) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1756 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index fd18374aed..2ad6de79c1 100755 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -741,7 +741,7 @@ static int sendmail(char *srcemail, struct ast_vm_user *vmu, int msgnum, char *m } if (attach_user_voicemail) { fprintf(p, "--%s\n", bound); - fprintf(p, "Content-Type: audio/x-wav; name=\"msg%04d.%s\"\n", msgnum + 1, format); + fprintf(p, "Content-Type: audio/x-%s; name=\"msg%04d.%s\"\n", format, msgnum + 1, format); fprintf(p, "Content-Transfer-Encoding: BASE64\n"); fprintf(p, "Content-Description: Voicemail sound attachment.\n"); fprintf(p, "Content-Disposition: attachment; filename=\"msg%04d.%s\"\n\n", msgnum, format);