fusionpbx/app/switch/resources/scripts/app
emak-Corey e5025d394f
Fix vm_disk_quota (#6814)
The current condition #vm_disk_quota <= #message_sum is checking the lengths of vm_disk_quota and message_sum, not their actual values. So, it won't compare the numeric values for your intended logic.

If they're strings that can be safely converted to numbers, use tonumber():

if (vm_disk_quota and message_sum and tonumber(vm_disk_quota) <= tonumber(message_sum)) then
  -- your code
end

This will compare them as numbers, ensuring that vm_disk_quota is less than or equal to message_sum.
2023-10-26 13:53:38 -06:00
..
agent_status Move scripts to app/switch/resources/scripts 2023-06-24 08:32:56 -06:00
avmd Move scripts to app/switch/resources/scripts 2023-06-24 08:32:56 -06:00
call_block Use SQL concat as its safer with NULL values. 2023-10-18 21:18:39 -06:00
caller_id Update and rename contacts.lua to database.lua 2023-08-01 18:03:58 -06:00
conference_center Move scripts to app/switch/resources/scripts 2023-06-24 08:32:56 -06:00
dialplan Move scripts to app/switch/resources/scripts 2023-06-24 08:32:56 -06:00
emergency_notify Move scripts to app/switch/resources/scripts 2023-06-24 08:32:56 -06:00
event_notify Move scripts to app/switch/resources/scripts 2023-06-24 08:32:56 -06:00
failure_handler Move scripts to app/switch/resources/scripts 2023-06-24 08:32:56 -06:00
fax Move scripts to app/switch/resources/scripts 2023-06-24 08:32:56 -06:00
feature_event Move scripts to app/switch/resources/scripts 2023-06-24 08:32:56 -06:00
follow_me Fix follow-me delay timing 2023-09-22 16:01:59 -06:00
hangup Move scripts to app/switch/resources/scripts 2023-06-24 08:32:56 -06:00
is_local Move scripts to app/switch/resources/scripts 2023-06-24 08:32:56 -06:00
missed_calls/resources/templates/en/us Move scripts to app/switch/resources/scripts 2023-06-24 08:32:56 -06:00
provision Move scripts to app/switch/resources/scripts 2023-06-24 08:32:56 -06:00
ring_groups Clear the dial_string variables 2023-10-04 14:55:08 -06:00
servers/resources Move scripts to app/switch/resources/scripts 2023-06-24 08:32:56 -06:00
speed_dial Move scripts to app/switch/resources/scripts 2023-06-24 08:32:56 -06:00
toll_allow Move scripts to app/switch/resources/scripts 2023-06-24 08:32:56 -06:00
voicemail Fix vm_disk_quota (#6814) 2023-10-26 13:53:38 -06:00
xml_handler IVR Menu: allow sending the ${uuid} variable 2023-10-23 14:25:04 -06:00