diff options
author | Mark Spencer <markster@digium.com> | 2003-11-17 06:16:41 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2003-11-17 06:16:41 +0000 |
commit | 02121840c1f5044acbc0b330c185462827dc0a13 (patch) | |
tree | a8e7df7f67732c388a3264bf03c57a38febd3de1 /apps | |
parent | 6da153e69cf61ed9270cc156bf67546995c07ded (diff) |
Match filename between content-disposition and content-type
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1757 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps')
-rwxr-xr-x | apps/app_voicemail.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 2ad6de79c..a030b72e6 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-%s; name=\"msg%04d.%s\"\n", format, msgnum + 1, format); + fprintf(p, "Content-Type: audio/x-%s; name=\"msg%04d.%s\"\n", format, msgnum, 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); |