Fix uploaded greetings to use next id for wav,mp3,ogg (#7464)

* Fix uploaded greetings to use the next ID for wav,mp3,ogg

* Update voicemail_greetings.php
This commit is contained in:
frytimo
2025-08-20 18:13:43 -03:00
committed by GitHub
parent f26aee738d
commit 44e41f52d4
2 changed files with 17 additions and 30 deletions

View File

@@ -104,6 +104,9 @@
if (file_exists(voicemail_dir.."/"..voicemail_id.."/greeting_"..greeting_id..".mp3")) then
greeting_ext = "mp3";
end
if (file_exists(voicemail_dir.."/"..voicemail_id.."/greeting_"..greeting_id..".ogg")) then
greeting_ext = "ogg";
end
dtmf_digits = session:playAndGetDigits(0, max_digits, tries, timeout, "#", voicemail_dir.."/"..voicemail_id.."/greeting_"..greeting_id.."."..greeting_ext, "",".*", max_timeout);
--session:execute("playback",voicemail_dir.."/"..voicemail_id.."/greeting_"..greeting_id..".wav");
end