Paging - Prevent calling the user that initiated the page

This commit is contained in:
Mark Crane 2014-11-03 18:57:01 +00:00
parent 3c43f604c5
commit d79e72141d
1 changed files with 28 additions and 25 deletions

View File

@ -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