Copy voicemail to another extension added single quotes to the copy string to help with paths with spaces.

This commit is contained in:
Mark Crane
2013-07-11 17:13:15 +00:00
parent 9f71bdd024
commit 0f10a134b8

View File

@@ -125,7 +125,7 @@
--if local after email is true then copy the recording file
mkdir(voicemail_dir.."/"..forward_voicemail_id);
os.execute("cp "..voicemail_dir.."/"..voicemail_id.."/msg_"..uuid.."."..vm_message_ext.." "..voicemail_dir.."/"..forward_voicemail_id.."/msg_"..uuid.."."..vm_message_ext);
os.execute("cp '"..voicemail_dir.."/"..voicemail_id.."/msg_"..uuid.."."..vm_message_ext.."' '"..voicemail_dir.."/"..forward_voicemail_id.."/msg_"..uuid.."."..vm_message_ext.."'");
--send the email with the voicemail recording attached
send_email(forward_voicemail_id, uuid);