Base64 - Make sure the directory structure exists.
This commit is contained in:
parent
a698b32b2a
commit
986784e3fa
|
|
@ -83,6 +83,7 @@
|
||||||
require "resources.functions.base64";
|
require "resources.functions.base64";
|
||||||
|
|
||||||
--set the voicemail message path
|
--set the voicemail message path
|
||||||
|
mkdir(voicemail_dir.."/"..voicemail_id);
|
||||||
message_location = voicemail_dir.."/"..voicemail_id.."/msg_"..uuid.."."..vm_message_ext;
|
message_location = voicemail_dir.."/"..voicemail_id.."/msg_"..uuid.."."..vm_message_ext;
|
||||||
|
|
||||||
--save the recording to the file system
|
--save the recording to the file system
|
||||||
|
|
|
||||||
|
|
@ -55,6 +55,7 @@
|
||||||
require "resources.functions.base64";
|
require "resources.functions.base64";
|
||||||
|
|
||||||
--set the voicemail message path
|
--set the voicemail message path
|
||||||
|
mkdir(voicemail_dir.."/"..voicemail_id);
|
||||||
greeting_location = voicemail_dir.."/"..voicemail_id.."/greeting_"..greeting_id..".wav"; --vm_message_ext;
|
greeting_location = voicemail_dir.."/"..voicemail_id.."/greeting_"..greeting_id..".wav"; --vm_message_ext;
|
||||||
|
|
||||||
--if not found, save greeting to local file system
|
--if not found, save greeting to local file system
|
||||||
|
|
|
||||||
|
|
@ -193,6 +193,8 @@
|
||||||
status = dbh:query(sql, function(row)
|
status = dbh:query(sql, function(row)
|
||||||
--add functions
|
--add functions
|
||||||
require "resources.functions.base64";
|
require "resources.functions.base64";
|
||||||
|
--make sure the recordings directory exists
|
||||||
|
mkdir(recordings_dir.."/"..domain_name);
|
||||||
--add the path to filename
|
--add the path to filename
|
||||||
ivr_menu_greet_long = recordings_dir.."/"..domain_name.."/"..greet_long_file_name;
|
ivr_menu_greet_long = recordings_dir.."/"..domain_name.."/"..greet_long_file_name;
|
||||||
ivr_menu_greet_long_is_base64 = true;
|
ivr_menu_greet_long_is_base64 = true;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue