mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Fix voicemail using tonumber on message_silence_seconds
This commit is contained in:
@@ -264,7 +264,7 @@
|
|||||||
message_length_formatted = format_seconds(message_length);
|
message_length_formatted = format_seconds(message_length);
|
||||||
|
|
||||||
--if the recording is below the minimal length then re-record the message
|
--if the recording is below the minimal length then re-record the message
|
||||||
if (message_length > message_silence_seconds) then
|
if (message_length > tonumber(message_silence_seconds)) then
|
||||||
session:setVariable("voicemail_message_seconds", message_length);
|
session:setVariable("voicemail_message_seconds", message_length);
|
||||||
else
|
else
|
||||||
if (session:ready()) then
|
if (session:ready()) then
|
||||||
|
|||||||
Reference in New Issue
Block a user