From b132d5a15da49b77d45763967c6720c60d22f1e9 Mon Sep 17 00:00:00 2001 From: Peter Kozak Date: Thu, 27 Jun 2013 14:11:16 +0200 Subject: play voicemail_goodbye if no greeting_file specified --- misc/freeswitch/scripts/dialplan/voicemail.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'misc/freeswitch') 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 -- cgit v1.2.3