summaryrefslogtreecommitdiff
path: root/misc/freeswitch/scripts/dialplan/voicemail.lua
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-06-27 20:59:32 +0200
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-06-27 20:59:32 +0200
commitd95155baebf7004bfc99c13545e343b8bd0882b6 (patch)
tree480d5bdf3f8e1354e56281d497300f776a1c980b /misc/freeswitch/scripts/dialplan/voicemail.lua
parentaad51572a6c75a4cbd2d44804b82f634a4ddd732 (diff)
parent51c51156e22b16fb5c120aed8dfef13a2d10b465 (diff)
Merge branch 'develop' of github.com:amooma/GS5 into develop
Diffstat (limited to 'misc/freeswitch/scripts/dialplan/voicemail.lua')
-rw-r--r--misc/freeswitch/scripts/dialplan/voicemail.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/misc/freeswitch/scripts/dialplan/voicemail.lua b/misc/freeswitch/scripts/dialplan/voicemail.lua
index 3358d2b..f436720 100644
--- a/misc/freeswitch/scripts/dialplan/voicemail.lua
+++ b/misc/freeswitch/scripts/dialplan/voicemail.lua
@@ -349,7 +349,10 @@ function Voicemail.leave(self, caller, greeting, number)
end
os.remove(record_file_name);
caller:send_display('Goodbye');
- caller.session:sayPhrase('voicemail_goodbye');
+
+ if common.str.blank(greeting_file) then
+ caller.session:sayPhrase('voicemail_goodbye');
+ end
end