Change sip_from_user to user_name for greater flexibility.

This commit is contained in:
FusionPBX
2020-05-26 15:49:47 -06:00
committed by GitHub
parent 0d67eed8d2
commit b2295da641

View File

@@ -86,6 +86,7 @@
record_silence_threshold = session:getVariable("record-silence-threshold");
voicemail_authorized = session:getVariable("voicemail_authorized");
sip_from_user = session:getVariable("sip_from_user");
user_name = session:getVariable("user_name");
sip_number_alias = session:getVariable("sip_number_alias");
--modify caller_id_number if effective_caller_id_number is set
@@ -378,7 +379,7 @@
if (voicemail_id) then
if (voicemail_authorized) then
if (voicemail_authorized == "true") then
if (voicemail_id == sip_from_user or voicemail_id == sip_number_alias) then
if (voicemail_id == user_name or voicemail_id == sip_number_alias) then
--skip the password check
else
check_password(voicemail_id, password_tries);