mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-09 10:08:23 +00:00
Fix the xml handler nil error for number_alias and fix some indentation.
This commit is contained in:
@@ -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, [[ <variable name="domain_uuid" value="]] .. domain_uuid .. [["/>]]);
|
||||
table.insert(xml, [[ <variable name="domain_name" value="]] .. domain_name .. [["/>]]);
|
||||
table.insert(xml, [[ <variable name="extension_uuid" value="]] .. extension_uuid .. [["/>]]);
|
||||
if (string.len(number_alias) > 0) then
|
||||
table.insert(xml, [[ <variable name="number-alias" value="]] .. number_alias .. [["/>]]);
|
||||
end
|
||||
--table.insert(xml, [[ <variable name="call_timeout" value="]] .. call_timeout .. [["/>]]);
|
||||
table.insert(xml, [[ <variable name="caller_id_name" value="]] .. sip_from_user .. [["/>]]);
|
||||
table.insert(xml, [[ <variable name="caller_id_number" value="]] .. sip_from_user .. [["/>]]);
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user