Update send.lua

This commit is contained in:
FusionPBX
2018-09-19 02:51:40 -04:00
committed by GitHub
parent 0f7ba7e761
commit 45124a9599

View File

@@ -22,12 +22,12 @@
script_name = argv[0];
message_from = argv[1];
message_to = argv[2];
message_content = argv[3];
message_text = argv[3];
--send a message to the console
freeswitch.consoleLog("NOTICE",[[[message] from ]]..message_from);
freeswitch.consoleLog("NOTICE",[[[message] to ]] .. message_to);
freeswitch.consoleLog("NOTICE",[[[message] from ]]..message_content);
freeswitch.consoleLog("NOTICE",[[[message] from ]]..message_text);
--connect to the database
--local Database = require "resources.functions.database";
@@ -64,7 +64,7 @@
event:addHeader("hint", "the hint");
event:addHeader("replying", "true");
event:addHeader("sip_profile", sip_profile);
event:addBody(message_content);
event:addBody(message_text);
--send info to the console
freeswitch.consoleLog("info", event:serialize());