summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-06-27 14:11:16 +0200
committerPeter Kozak <spag@golwen.net>2013-06-27 14:11:16 +0200
commitb132d5a15da49b77d45763967c6720c60d22f1e9 (patch)
tree2fe46226da9d4e6444c0d290111e4eeb219c9341 /misc
parent7ffb10465ecdbd96fc3c3ba9d8df92485f787e62 (diff)
play voicemail_goodbye if no greeting_file specified
Diffstat (limited to 'misc')
-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