Remove outbound restriction for intercept.

This commit is contained in:
markjcrane
2015-08-12 23:38:46 -06:00
parent 6987bf9c49
commit 46e9bdc49f
2 changed files with 3 additions and 3 deletions

View File

@@ -16,7 +16,7 @@
--
-- The Initial Developer of the Original Code is
-- Mark J Crane <markjcrane@fusionpbx.com>
-- Copyright (C) 2010 - 2014
-- Copyright (C) 2010 - 2015
-- the Initial Developer. All Rights Reserved.
--
-- Contributor(s):
@@ -121,7 +121,7 @@ if ( session:ready() ) then
--check the database to get the uuid of a ringing call
sql = "select call_uuid as uuid, hostname, callee_num, ip_addr from channels ";
sql = sql .. "where callstate in ('RINGING', 'EARLY') ";
sql = sql .. "AND direction = 'outbound' ";
--sql = sql .. "AND direction = 'outbound' ";
if (extension) then
sql = sql .. "and presence_id = '"..extension.."@"..domain_name.."' ";
else

View File

@@ -165,7 +165,7 @@
call_hostname = "";
sql = "SELECT call_uuid AS uuid, hostname, ip_addr FROM channels ";
sql = sql .. "WHERE callstate in ('RINGING', 'EARLY') ";
sql = sql .. "AND direction = 'outbound' ";
--sql = sql .. "AND direction = 'outbound' ";
sql = sql .. "AND (";
x = 0;
for key,extension in pairs(extensions) do