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).
This commit is contained in:
Luis Daniel Lucio Quiroz 2019-12-03 17:35:24 -05:00 committed by FusionPBX
parent 347e5f0934
commit 4523d6e264
3 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -2,7 +2,7 @@
<extension name="not-found" continue="false" app_uuid="23d198e5-7a8e-4af7-b573-2d166c1c24ff" global="true" order="999">
<condition field="" expression="">
<action application="set" data="call_direction=inbound" inline="true"/>
<action application="log" data="[inbound routes] 404 not found ${sip_network_ip}"/>
<action application="log" data="WARNING [inbound routes] 404 not found ${sip_network_ip}"/>
</condition>
</extension>
</context>

View File

@ -115,7 +115,7 @@
table.insert(xml, [[ <extension name="not-found" continue="false" uuid="9913df49-0757-414b-8cf9-bcae2fd81ae7">]]);
table.insert(xml, [[ <condition field="" expression="">]]);
table.insert(xml, [[ <action application="set" data="call_direction=inbound" inline="true"/>]]);
table.insert(xml, [[ <action application="log" data="[inbound routes] 404 not found ${sip_network_ip}" inline="true"/>]]);
table.insert(xml, [[ <action application="log" data="WARNING [inbound routes] 404 not found ${sip_network_ip}" inline="true"/>]]);
table.insert(xml, [[ </condition>]]);
table.insert(xml, [[ </extension>]]);
end