Update local_stream.conf.lua

Set a default rate for chime list if one is not provided.
This commit is contained in:
FusionPBX
2016-07-06 16:27:22 -06:00
committed by GitHub
parent ed89df28c5
commit 39bc0cad29

View File

@@ -36,9 +36,12 @@
--replace the variable with the path to the sounds directory
music_on_hold_path = row.music_on_hold_path:gsub("$${sounds_dir}", sounds_dir);
--set the rate
rate = row.music_on_hold_rate;
if (rate ~= nil or rate == '') then
rate = '48000';
end
--add the full path to the chime list
chime_list = row.music_on_hold_chime_list;