mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-30 04:29:16 +00:00
Change. library loads only needed files. (#2987)
This commit is contained in:
committed by
FusionPBX
parent
38002a8cb4
commit
eb72f3d5ce
@@ -1,3 +1,6 @@
|
||||
local log = log or require "resources.functions.log"[app_name or 'play_file']
|
||||
local find_file = require "resources.functions.find_file"
|
||||
|
||||
function play_file(dbh, domain_name, domain_uuid, file_name)
|
||||
local full_path, is_base64 = find_file(dbh, domain_name, domain_uuid, file_name)
|
||||
if not full_path then
|
||||
@@ -8,3 +11,5 @@ function play_file(dbh, domain_name, domain_uuid, file_name)
|
||||
end
|
||||
session:execute("playback", full_path);
|
||||
end
|
||||
|
||||
return play_file
|
||||
Reference in New Issue
Block a user