From b040cadb2b62d5fef43fa45ff13560b7b323087f Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Wed, 11 Jul 2012 10:07:23 +0000 Subject: [PATCH] Expand the capability of the dial_string.lua by making it possible to set the unique_id in the dial_string. --- includes/install/scripts/dial_string.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/includes/install/scripts/dial_string.lua b/includes/install/scripts/dial_string.lua index 73fcd089c6..54b9668dde 100644 --- a/includes/install/scripts/dial_string.lua +++ b/includes/install/scripts/dial_string.lua @@ -71,6 +71,11 @@ if ( session:ready() ) then max_digits = 15; unique_id = session:playAndGetDigits(min_digits, max_digits, max_tries, digit_timeout, "#", "phrase:voicemail_enter_id:#", "", "\\d+"); + --add the unique_id value to the dial_string + if (string.len(dial_string) > 0) then + dial_string = string.gsub(dial_string, '{v_unique_id}', unique_id); + end + --authenticate the user if (pin_number) then --get the pin number from the caller