Update call_flow.lua
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
-- call_flow.lua
|
-- call_flow.lua
|
||||||
-- Part of FusionPBX
|
-- Part of FusionPBX
|
||||||
-- Copyright (C) 2010 - 2018 Mark J Crane <markjcrane@fusionpbx.com>
|
-- Copyright (C) 2010 Mark J Crane <markjcrane@fusionpbx.com>
|
||||||
-- All rights reserved.
|
-- All rights reserved.
|
||||||
--
|
--
|
||||||
-- Redistribution and use in source and binary forms, with or without
|
-- Redistribution and use in source and binary forms, with or without
|
||||||
@@ -31,15 +31,16 @@
|
|||||||
--include config.lua
|
--include config.lua
|
||||||
require "resources.functions.config";
|
require "resources.functions.config";
|
||||||
|
|
||||||
|
--additional includes
|
||||||
local presence_in = require "resources.functions.presence_in"
|
local presence_in = require "resources.functions.presence_in"
|
||||||
local Database = require "resources.functions.database"
|
local Database = require "resources.functions.database"
|
||||||
local Settings = require "resources.functions.lazy_settings"
|
local Settings = require "resources.functions.lazy_settings"
|
||||||
local file = require "resources.functions.file"
|
file = require "resources.functions.file"
|
||||||
local log = require "resources.functions.log".call_flow
|
log = require "resources.functions.log".call_flow
|
||||||
local basename = require "resources.functions.basename"
|
require "resources.functions.basename"
|
||||||
local is_absolute_path = require "resources.functions.is_absolute_path"
|
require "resources.functions.is_absolute_path"
|
||||||
local find_file = require "resources.functions.find_file"
|
require "resources.functions.find_file"
|
||||||
local play_file = require "resources.functions.play_file"
|
require "resources.functions.play_file"
|
||||||
|
|
||||||
--include json library
|
--include json library
|
||||||
local json
|
local json
|
||||||
@@ -52,11 +53,11 @@
|
|||||||
|
|
||||||
--get the variables
|
--get the variables
|
||||||
if (session:ready()) then
|
if (session:ready()) then
|
||||||
local domain_name = session:getVariable("domain_name");
|
domain_name = session:getVariable("domain_name");
|
||||||
local domain_uuid = session:getVariable("domain_uuid");
|
domain_uuid = session:getVariable("domain_uuid");
|
||||||
local call_flow_uuid = session:getVariable("call_flow_uuid");
|
call_flow_uuid = session:getVariable("call_flow_uuid");
|
||||||
local sounds_dir = session:getVariable("sounds_dir");
|
sounds_dir = session:getVariable("sounds_dir");
|
||||||
local feature_code = session:getVariable("feature_code");
|
feature_code = session:getVariable("feature_code");
|
||||||
end
|
end
|
||||||
|
|
||||||
--set the sounds path for the language, dialect and voice
|
--set the sounds path for the language, dialect and voice
|
||||||
|
|||||||
Reference in New Issue
Block a user