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 95f86e6723
commit b895946be8
1 changed files with 1 additions and 1 deletions

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