SOLVED pin_number=vmpassword

Status
Not open for further replies.
Feb 21, 2017
74
3
8
40
Good afternoon, I would like to use the voicemail password of the extension that makes the call for the pin_number application but I have no idea that they can help me with that
 
Feb 21, 2017
74
3
8
40
After carefully reading the script pin_number.lua I could see that I could use pin_number = voicemail only that I did not want it to ask me for the extension number but to take it from the variables so I modified the line

user_ext = session:playAndGetDigits(min_digits, max_digits, max_tries, digit_timeout, "#", "phrase:pin_number_enter_extension:#", "", "\\d+");

with

user_ext = session:getVariable("caller_id_number");
 
Status
Not open for further replies.