From 593c06360289bcc12126e276ad0eafe682b9e4da Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Tue, 21 Oct 2014 19:30:40 +0000 Subject: [PATCH] Fix the xml handler nil error for number_alias and fix some indentation. --- .../resources/scripts/directory/directory.lua | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/resources/install/scripts/app/xml_handler/resources/scripts/directory/directory.lua b/resources/install/scripts/app/xml_handler/resources/scripts/directory/directory.lua index 05cdaeeabd..4138cd02c1 100644 --- a/resources/install/scripts/app/xml_handler/resources/scripts/directory/directory.lua +++ b/resources/install/scripts/app/xml_handler/resources/scripts/directory/directory.lua @@ -34,12 +34,12 @@ --get the action action = params:getHeader("action"); purpose = params:getHeader("purpose"); - --sip_auth - registration - --group_call - call group has been called - --user_call - user has been called + --sip_auth - registration + --group_call - call group has been called + --user_call - user has been called --additional information - --event_calling_function = params:getHeader("Event-Calling-Function"); + --event_calling_function = params:getHeader("Event-Calling-Function"); --set the variables as a string number_alias = ""; @@ -381,9 +381,6 @@ table.insert(xml, [[ ]]); table.insert(xml, [[ ]]); table.insert(xml, [[ ]]); - if (string.len(number_alias) > 0) then - table.insert(xml, [[ ]]); - end --table.insert(xml, [[ ]]); table.insert(xml, [[ ]]); table.insert(xml, [[ ]]); @@ -528,4 +525,4 @@ --send the xml to the console if (debug["xml_string"]) then freeswitch.consoleLog("notice", "[xml_handler] XML_STRING: \n" .. XML_STRING .. "\n"); - end + end \ No newline at end of file