Add message-count place holder to the xml_handler.lua

This commit is contained in:
Mark Crane
2013-01-08 22:46:37 +00:00
parent 5f000bc160
commit 3397fe3619

View File

@@ -468,7 +468,14 @@
--user_call - user has been called
--determine the correction action to perform
if (action == "group_call") then
if (action == "message-count") then
--Event-Calling-Line-Number: 102
--Event-Sequence: 4173
--action: message-count
--key: id
--user: *98
--domain: example.com
elseif (action == "group_call") then
--handles action
--group_call
@@ -536,8 +543,11 @@
table.insert(xml, [[ </section>]]);
table.insert(xml, [[</document>]]);
XML_STRING = table.concat(xml, "\n");
freeswitch.consoleLog("notice", "[directory] XML_STRING: \n" .. XML_STRING .. "\n");
--send the xml to the console
if (debug["xml_string"]) then
freeswitch.consoleLog("notice", "[directory] XML_STRING: \n" .. XML_STRING .. "\n");
end
else
--handle action
--all directory actions: sip_auth, user_call