Bug fix use tonumber function to detect non numeric required for those using extension number alias
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user