Expand the capability of the dial_string.lua by making it possible to set the unique_id in the dial_string.
This commit is contained in:
parent
f1984291c8
commit
b040cadb2b
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue