Fix. Do not prompt password if there no mailbox.

This commit is contained in:
Alexey Melnichuk 2016-01-22 11:37:34 +03:00
parent 5a20dce9ab
commit e4e6fe92a9
1 changed files with 6 additions and 0 deletions

View File

@ -61,6 +61,12 @@
end);
end
end
-- check either we found valid voicemail box
if (not voicemail_uuid) or (#voicemail_uuid == 0) then
return session:hangup();
end
--please enter your password followed by pound
dtmf_digits = '';
password = macro(session, "voicemail_password", 20, 5000, '');