Paging - Prevent calling the user that initiated the page
This commit is contained in:
parent
3c43f604c5
commit
d79e72141d
|
|
@ -131,6 +131,8 @@ if ( session:ready() ) then
|
|||
--get the destination required for number-alias
|
||||
destination = api:execute("user_data", destination .. "@" .. domain_name .. " attr id");
|
||||
|
||||
--prevent calling the user that initiated the page
|
||||
if (sip_from_user ~= destination) then
|
||||
--cmd = "username_exists id "..destination.."@"..domain_name;
|
||||
--reply = trim(api:executeString(cmd));
|
||||
--if (reply == "true") then
|
||||
|
|
@ -166,6 +168,7 @@ if ( session:ready() ) then
|
|||
--end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
--send main call to the conference room
|
||||
if (destination_count > 0) then
|
||||
|
|
|
|||
Loading…
Reference in New Issue