dect
/
asterisk
Archived
13
0
Fork 0

Make format name match (not sure this is always a good idea) (bug #542)

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1756 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
markster 2003-11-17 05:58:51 +00:00
parent cea79db46f
commit c7fd406448
1 changed files with 1 additions and 1 deletions

View File

@ -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);