Play the message number first then the caller id number.

This commit is contained in:
markjcrane 2015-10-24 21:12:43 -06:00
parent cdd4cb5ccd
commit 51087791e6
1 changed files with 6 additions and 6 deletions

View File

@ -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