mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 09:03:49 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user