summaryrefslogtreecommitdiff
path: root/misc/freeswitch/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'misc/freeswitch/scripts')
-rw-r--r--misc/freeswitch/scripts/dialplan/voicemail.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/freeswitch/scripts/dialplan/voicemail.lua b/misc/freeswitch/scripts/dialplan/voicemail.lua
index 522f9c2..eaa8064 100644
--- a/misc/freeswitch/scripts/dialplan/voicemail.lua
+++ b/misc/freeswitch/scripts/dialplan/voicemail.lua
@@ -189,7 +189,7 @@ function Voicemail.menu_main(self, caller, authorized)
caller.session:sayPhrase('voicemail_hello');
end
- if self.settings.voicemail_message_count then
+ if #messages_new > 0 then
caller.session:sayPhrase('voicemail_message_count', #messages_new .. ':new');
end