Fix *98 for extensions with number-alias.

This commit is contained in:
Mark Crane
2014-10-25 00:01:46 +00:00
parent 2cbf1c7a14
commit b006d8c28c

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