summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-03-27 08:23:55 +0100
committerPeter Kozak <spag@golwen.net>2013-03-27 08:23:55 +0100
commit24a63bc91adf2b9c8d3869be80a0654b22de2636 (patch)
treee5ef100409d72b3e1492eb35f85c5b61368706f6 /misc
parent8e9f9fd6f76356c18f43a1a1526e5a5ac40bb1f5 (diff)
messages count
Diffstat (limited to 'misc')
-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