Remove outbound restriction for intercept.
This commit is contained in:
parent
72d489ec65
commit
27a72bfa59
|
|
@ -16,7 +16,7 @@
|
||||||
--
|
--
|
||||||
-- The Initial Developer of the Original Code is
|
-- The Initial Developer of the Original Code is
|
||||||
-- Mark J Crane <markjcrane@fusionpbx.com>
|
-- Mark J Crane <markjcrane@fusionpbx.com>
|
||||||
-- Copyright (C) 2010 - 2014
|
-- Copyright (C) 2010 - 2015
|
||||||
-- the Initial Developer. All Rights Reserved.
|
-- the Initial Developer. All Rights Reserved.
|
||||||
--
|
--
|
||||||
-- Contributor(s):
|
-- Contributor(s):
|
||||||
|
|
@ -121,7 +121,7 @@ if ( session:ready() ) then
|
||||||
--check the database to get the uuid of a ringing call
|
--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 = "select call_uuid as uuid, hostname, callee_num, ip_addr from channels ";
|
||||||
sql = sql .. "where callstate in ('RINGING', 'EARLY') ";
|
sql = sql .. "where callstate in ('RINGING', 'EARLY') ";
|
||||||
sql = sql .. "AND direction = 'outbound' ";
|
--sql = sql .. "AND direction = 'outbound' ";
|
||||||
if (extension) then
|
if (extension) then
|
||||||
sql = sql .. "and presence_id = '"..extension.."@"..domain_name.."' ";
|
sql = sql .. "and presence_id = '"..extension.."@"..domain_name.."' ";
|
||||||
else
|
else
|
||||||
|
|
|
||||||
|
|
@ -165,7 +165,7 @@
|
||||||
call_hostname = "";
|
call_hostname = "";
|
||||||
sql = "SELECT call_uuid AS uuid, hostname, ip_addr FROM channels ";
|
sql = "SELECT call_uuid AS uuid, hostname, ip_addr FROM channels ";
|
||||||
sql = sql .. "WHERE callstate in ('RINGING', 'EARLY') ";
|
sql = sql .. "WHERE callstate in ('RINGING', 'EARLY') ";
|
||||||
sql = sql .. "AND direction = 'outbound' ";
|
--sql = sql .. "AND direction = 'outbound' ";
|
||||||
sql = sql .. "AND (";
|
sql = sql .. "AND (";
|
||||||
x = 0;
|
x = 0;
|
||||||
for key,extension in pairs(extensions) do
|
for key,extension in pairs(extensions) do
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue