Fix *98 for extensions with number-alias.

This commit is contained in:
Mark Crane 2014-10-25 00:01:46 +00:00
parent be7ba59b6e
commit 80f6638cae
1 changed files with 4 additions and 2 deletions

View File

@ -123,8 +123,10 @@
end
--if voicemail_id is non numeric then get the number-alias
if tonumber(voicemail_id) == nil then
voicemail_id = api:execute("user_data", voicemail_id .. "@" .. domain_name .. " attr number-alias");
if (voicemail_id ~= nil) then
if tonumber(voicemail_id) == nil then
voicemail_id = api:execute("user_data", voicemail_id .. "@" .. domain_name .. " attr number-alias");
end
end
--set the voicemail_dir