mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 20:04:50 +00:00
Sun Feb 23 07:00:00 CET 2003
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@621 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -341,11 +341,12 @@ sub message_audio()
|
||||
|
||||
# Mailbox and folder are already verified
|
||||
if (open(AUDIO, "<$path")) {
|
||||
$size = -s $path;
|
||||
$|=1;
|
||||
if ($forcedownload) {
|
||||
print header(-type=>$formats{$format}->{'mime'}, -attachment => "msg${msgid}.$format");
|
||||
print header(-type=>$formats{$format}->{'mime'}, -Content_length => $size, -attachment => "msg${msgid}.$format");
|
||||
} else {
|
||||
print header(-type=>$formats{$format}->{'mime'});
|
||||
print header(-type=>$formats{$format}->{'mime'}, -Content_length => $size);
|
||||
}
|
||||
|
||||
while(($amt = sysread(AUDIO, $data, 4096)) > 0) {
|
||||
|
Reference in New Issue
Block a user