diff options
Diffstat (limited to 'misc/freeswitch/scripts')
-rw-r--r-- | misc/freeswitch/scripts/dialplan/voicemail.lua | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/misc/freeswitch/scripts/dialplan/voicemail.lua b/misc/freeswitch/scripts/dialplan/voicemail.lua index 4fd5612..522f9c2 100644 --- a/misc/freeswitch/scripts/dialplan/voicemail.lua +++ b/misc/freeswitch/scripts/dialplan/voicemail.lua @@ -275,11 +275,6 @@ function Voicemail.menu_messages(self, folder, messages) index = index + 1; end - if index > #messages then - digits, key = self.ivr:ivr_phrase('voicemail_no_messages', message_menu, 0, 0); - return; - end - if key.action == 'delete' and self:message_delete(message) then self.caller:send_display('Message deleted'); digits = self.caller.session:sayPhrase('voicemail_ack', 'deleted'); @@ -287,6 +282,9 @@ function Voicemail.menu_messages(self, folder, messages) self.caller:send_display('Message saved'); digits = self.caller.session:sayPhrase('voicemail_ack', 'saved'); end + if index > #messages then + digits = self.ivr:ivr_phrase('voicemail_no_messages', message_menu, 0, 0); + end end end |