From 51087791e63d96b673318195476e173a69bae3cb Mon Sep 17 00:00:00 2001 From: markjcrane Date: Sat, 24 Oct 2015 21:12:43 -0600 Subject: [PATCH] Play the message number first then the caller id number. --- .../resources/functions/listen_to_recording.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/resources/install/scripts/app/voicemail/resources/functions/listen_to_recording.lua b/resources/install/scripts/app/voicemail/resources/functions/listen_to_recording.lua index f798f63c40..81b763f044 100644 --- a/resources/install/scripts/app/voicemail/resources/functions/listen_to_recording.lua +++ b/resources/install/scripts/app/voicemail/resources/functions/listen_to_recording.lua @@ -46,6 +46,12 @@ dtmf_digits = macro(session, "message_number", 1, 100, ''); end end + --say the number + if (session:ready()) then + if (string.len(dtmf_digits) == 0) then + session:say(message_number, default_language, "number", "pronounced"); + end + end --say the caller id number if (session:ready() and caller_id_number ~= nil) then if (vm_say_caller_id_number ~= nil) then @@ -55,12 +61,6 @@ end end end - --say the number - if (session:ready()) then - if (string.len(dtmf_digits) == 0) then - session:say(message_number, default_language, "number", "pronounced"); - end - end --say the message date if (session:ready()) then if (string.len(dtmf_digits) == 0) then