Fix voicemail copy to multiple destinations.
This commit is contained in:
parent
6ec145b0e4
commit
5f8fc98170
|
|
@ -359,6 +359,14 @@
|
||||||
voicemail_id_copy = result["voicemail_id"];
|
voicemail_id_copy = result["voicemail_id"];
|
||||||
end);
|
end);
|
||||||
|
|
||||||
|
--make sure the voicemail directory exists
|
||||||
|
mkdir(voicemail_dir.."/"..voicemail_id_copy);
|
||||||
|
|
||||||
|
--copy the voicemail to each destination
|
||||||
|
if (file_exists(voicemail_dir.."/"..voicemail_id.."/msg_"..uuid.."."..vm_message_ext)) then
|
||||||
|
os.execute("cp "..voicemail_dir.."/"..voicemail_id.."/msg_"..uuid.."."..vm_message_ext.." "..voicemail_dir.."/"..voicemail_id_copy.."/msg_"..uuid.."."..vm_message_ext);
|
||||||
|
end
|
||||||
|
|
||||||
--set the message waiting event
|
--set the message waiting event
|
||||||
if (tonumber(message_length) > 2) then
|
if (tonumber(message_length) > 2) then
|
||||||
local event = freeswitch.Event("message_waiting");
|
local event = freeswitch.Event("message_waiting");
|
||||||
|
|
@ -424,4 +432,4 @@
|
||||||
|
|
||||||
--uuid_video_refresh
|
--uuid_video_refresh
|
||||||
--uuid_video_refresh,<uuid>,Send video refresh.,mod_commands
|
--uuid_video_refresh,<uuid>,Send video refresh.,mod_commands
|
||||||
--may be used to clear video buffer before using record_fsv
|
--may be used to clear video buffer before using record_fsv
|
||||||
Loading…
Reference in New Issue