Copy voicemail to another extension added single quotes to the copy string to help with paths with spaces.
This commit is contained in:
parent
95f86e6723
commit
b895946be8
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue