From 9c51439eb791366a47ebb1d93e8f2d61c3c99771 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Thu, 9 Jan 2014 03:04:28 +0000 Subject: [PATCH] Update the app.lua script. --- resources/install/scripts/app.lua | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/resources/install/scripts/app.lua b/resources/install/scripts/app.lua index bef17a7591..f7e5aa5a15 100644 --- a/resources/install/scripts/app.lua +++ b/resources/install/scripts/app.lua @@ -33,17 +33,16 @@ app_name = argv[1]; --example use command - --luarun app.lua name 'a' 'b 123' 'c' + --luarun app.lua app_name 'a' 'b 123' 'c' --for loop through arguments arguments = ""; for key,value in pairs(argv) do if (key > 1) then arguments = arguments .. " '" .. value .. "'"; - freeswitch.consoleLog("notice", "[voicemail] argv["..key.."]: " .. argv[key] .. "\n"); end end --route the request to the application - --freeswitch.consoleLog("notice", "[app] lua route: ".. scripts_dir .. "/app/" .. app_name .. "/index.lua" .. arguments .."\n"); - dofile(scripts_dir .. "/app/" .. app_name .. "/index.lua" .. arguments); \ No newline at end of file + --freeswitch.consoleLog("notice", "[app] lua route: ".. scripts_dir .. "/app/" .. app_name .. "/index.lua\n"); + dofile(scripts_dir .. "/app/" .. app_name .. "/index.lua"); \ No newline at end of file