Fix call_block/index.lua by removing a section of code that is performed by app.lua.
This commit is contained in:
parent
d3ebb46dc6
commit
ed5f999943
|
|
@ -39,11 +39,11 @@ This method causes the script to get its manadatory arguments directly from the
|
||||||
]]
|
]]
|
||||||
|
|
||||||
-- Command line parameters
|
-- Command line parameters
|
||||||
local params = { cmd="",
|
local params = { cmd = "",
|
||||||
cid_num = string.gsub(tostring(session:getVariable("caller_id_number")), "+", ""),
|
cid_num = string.gsub(tostring(session:getVariable("caller_id_number")), "+", ""),
|
||||||
cid_name = session:getVariable("caller_id_name"),
|
cid_name = session:getVariable("caller_id_name"),
|
||||||
domain = session:getVariable("domain"),
|
domain = session:getVariable("domain"),
|
||||||
userid= "", -- session:getVariable("id")
|
userid = "", -- session:getVariable("id")
|
||||||
loglevel = "W" -- Warning, Debug, Info
|
loglevel = "W" -- Warning, Debug, Info
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -58,11 +58,6 @@ This method causes the script to get its manadatory arguments directly from the
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
--include config.lua
|
|
||||||
scripts_dir = string.sub(debug.getinfo(1).source,2,string.len(debug.getinfo(1).source)-(string.len(argv[0])+1));
|
|
||||||
dofile(scripts_dir.."/resources/functions/config.lua");
|
|
||||||
dofile(config());
|
|
||||||
|
|
||||||
--connect to the database
|
--connect to the database
|
||||||
dofile(scripts_dir.."/resources/functions/database_handle.lua");
|
dofile(scripts_dir.."/resources/functions/database_handle.lua");
|
||||||
dbh = database_handle('system');
|
dbh = database_handle('system');
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue