Forráskód Böngészése

Expand the capability of the dial_string.lua by making it possible to set the unique_id in the dial_string.

Mark Crane 13 éve
szülő
commit
3cccf2c717
1 módosított fájl, 5 hozzáadás és 0 törlés
  1. 5 0
      includes/install/scripts/dial_string.lua

+ 5 - 0
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