Merge pull request #1355 from mafoo/Merge-4.0_BugFixes
cherry picked changes from 4.0 branch
This commit is contained in:
commit
c14c5ad900
|
|
@ -156,11 +156,20 @@
|
||||||
file = voicemail_dir.."/"..id.."/msg_"..uuid.."."..vm_message_ext;
|
file = voicemail_dir.."/"..id.."/msg_"..uuid.."."..vm_message_ext;
|
||||||
|
|
||||||
--send the email
|
--send the email
|
||||||
send_mail(headers,
|
if (voicemail_file == "attach") then
|
||||||
voicemail_mail_to,
|
freeswitch.email(voicemail_mail_to,
|
||||||
{subject, body},
|
voicemail_mail_to,
|
||||||
(voicemail_file == "attach") and file
|
"To: "..voicemail_mail_to.."\nFrom: "..voicemail_mail_to.."\nX-Headers: "..headers.."\nSubject: "..subject,
|
||||||
);
|
body,
|
||||||
|
file
|
||||||
|
);
|
||||||
|
else
|
||||||
|
freeswitch.email(voicemail_mail_to,
|
||||||
|
voicemail_mail_to,
|
||||||
|
"To: "..voicemail_mail_to.."\nFrom: "..voicemail_mail_to.."\nX-Headers: "..headers.."\nSubject: "..subject,
|
||||||
|
body
|
||||||
|
);
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
--whether to keep the voicemail message and details local after email
|
--whether to keep the voicemail message and details local after email
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue