Bug fix use tonumber function to detect non numeric required for those using extension number alias

This commit is contained in:
FusionPBX
2023-08-10 13:57:30 -06:00
committed by GitHub
parent e8e6673be8
commit 956b8686f9
@@ -144,7 +144,7 @@
--if voicemail_id is non numeric then get the number-alias
if (voicemail_id ~= nil) then
if (voicemail_id and #voicemail_id == nil) then
if (voicemail_id and tonumber(voicemail_id) == nil) then
voicemail_id = api:execute("user_data", voicemail_id .. "@" .. domain_name .. " attr number-alias");
end
end