Change sip_from_user to user_name for greater flexibility.
This commit is contained in:
parent
0d67eed8d2
commit
b2295da641
|
|
@ -86,6 +86,7 @@
|
||||||
record_silence_threshold = session:getVariable("record-silence-threshold");
|
record_silence_threshold = session:getVariable("record-silence-threshold");
|
||||||
voicemail_authorized = session:getVariable("voicemail_authorized");
|
voicemail_authorized = session:getVariable("voicemail_authorized");
|
||||||
sip_from_user = session:getVariable("sip_from_user");
|
sip_from_user = session:getVariable("sip_from_user");
|
||||||
|
user_name = session:getVariable("user_name");
|
||||||
sip_number_alias = session:getVariable("sip_number_alias");
|
sip_number_alias = session:getVariable("sip_number_alias");
|
||||||
|
|
||||||
--modify caller_id_number if effective_caller_id_number is set
|
--modify caller_id_number if effective_caller_id_number is set
|
||||||
|
|
@ -378,7 +379,7 @@
|
||||||
if (voicemail_id) then
|
if (voicemail_id) then
|
||||||
if (voicemail_authorized) then
|
if (voicemail_authorized) then
|
||||||
if (voicemail_authorized == "true") 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
|
--skip the password check
|
||||||
else
|
else
|
||||||
check_password(voicemail_id, password_tries);
|
check_password(voicemail_id, password_tries);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue