From 39bc0cad29056a96f16134fdc59dc488bfa49b67 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Wed, 6 Jul 2016 16:27:22 -0600 Subject: [PATCH] Update local_stream.conf.lua Set a default rate for chime list if one is not provided. --- .../resources/scripts/configuration/local_stream.conf.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/resources/install/scripts/app/xml_handler/resources/scripts/configuration/local_stream.conf.lua b/resources/install/scripts/app/xml_handler/resources/scripts/configuration/local_stream.conf.lua index 89443e675e..165ecd9fc6 100644 --- a/resources/install/scripts/app/xml_handler/resources/scripts/configuration/local_stream.conf.lua +++ b/resources/install/scripts/app/xml_handler/resources/scripts/configuration/local_stream.conf.lua @@ -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;