From 4523d6e264972e4403380ddb99c8ff79cf18c43b Mon Sep 17 00:00:00 2001 From: Luis Daniel Lucio Quiroz Date: Tue, 3 Dec 2019 17:35:24 -0500 Subject: [PATCH] Same as 4.4, move 404 not found from DEBUG to WARNING (#4925) New system use the journal (some still use syslog). the "log" action default level is DEBUG. This change moves the 404 error code to WARNING, the mod_syslog will report to the journal (or syslog). --- app/dialplans/app_defaults.php | 2 +- app/dialplans/resources/switch/conf/dialplan/999_not-found.xml | 2 +- .../app/xml_handler/resources/scripts/dialplan/dialplan.lua | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/dialplans/app_defaults.php b/app/dialplans/app_defaults.php index 749cf69f82..69d196d71d 100644 --- a/app/dialplans/app_defaults.php +++ b/app/dialplans/app_defaults.php @@ -130,7 +130,7 @@ $array['dialplan_details'][1]['dialplan_detail_uuid'] = 'e391530c-4078-4b49-bc11-bda4a23ad566'; $array['dialplan_details'][1]['dialplan_detail_tag'] = 'action'; $array['dialplan_details'][1]['dialplan_detail_type'] = 'log'; - $array['dialplan_details'][1]['dialplan_detail_data'] = '[inbound routes] 404 not found \${sip_network_ip}'; + $array['dialplan_details'][1]['dialplan_detail_data'] = 'WARNING [inbound routes] 404 not found \${sip_network_ip}'; $array['dialplan_details'][1]['dialplan_detail_order'] = '20'; $p = new permissions; diff --git a/app/dialplans/resources/switch/conf/dialplan/999_not-found.xml b/app/dialplans/resources/switch/conf/dialplan/999_not-found.xml index a93bbc625d..f1e51c7e96 100644 --- a/app/dialplans/resources/switch/conf/dialplan/999_not-found.xml +++ b/app/dialplans/resources/switch/conf/dialplan/999_not-found.xml @@ -2,7 +2,7 @@ - + diff --git a/resources/install/scripts/app/xml_handler/resources/scripts/dialplan/dialplan.lua b/resources/install/scripts/app/xml_handler/resources/scripts/dialplan/dialplan.lua index 18f4884327..b235ba7041 100644 --- a/resources/install/scripts/app/xml_handler/resources/scripts/dialplan/dialplan.lua +++ b/resources/install/scripts/app/xml_handler/resources/scripts/dialplan/dialplan.lua @@ -115,7 +115,7 @@ table.insert(xml, [[ ]]); table.insert(xml, [[ ]]); table.insert(xml, [[ ]]); - table.insert(xml, [[ ]]); + table.insert(xml, [[ ]]); table.insert(xml, [[ ]]); table.insert(xml, [[ ]]); end