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:
parent
347e5f0934
commit
4523d6e264
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue