diff options
author | Peter Kozak <spag@golwen.net> | 2013-06-27 14:11:16 +0200 |
---|---|---|
committer | Peter Kozak <spag@golwen.net> | 2013-06-27 14:11:16 +0200 |
commit | b132d5a15da49b77d45763967c6720c60d22f1e9 (patch) | |
tree | 2fe46226da9d4e6444c0d290111e4eeb219c9341 /misc/freeswitch/scripts/dialplan/voicemail.lua | |
parent | 7ffb10465ecdbd96fc3c3ba9d8df92485f787e62 (diff) |
play voicemail_goodbye if no greeting_file specified
Diffstat (limited to 'misc/freeswitch/scripts/dialplan/voicemail.lua')
-rw-r--r-- | misc/freeswitch/scripts/dialplan/voicemail.lua | 5 |
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 |