Update switch.sql

basic_calls view - add AS to match freeswitch code and accountcode
This commit is contained in:
FusionPBX 2016-07-10 15:04:25 -06:00 committed by GitHub
parent 7a67e61d96
commit 4609e858fe
1 changed files with 20 additions and 19 deletions

View File

@ -487,25 +487,26 @@ ALTER TABLE tiers OWNER TO fusionpbx;
CREATE VIEW basic_calls AS CREATE VIEW basic_calls AS
SELECT a.uuid, SELECT a.uuid,
a.direction, a.direction AS direction,
a.created, a.created AS created,
a.created_epoch, a.created_epoch AS created_epoch,
a.name, a.name AS name,
a.state, a.state AS state,
a.cid_name, a.cid_name AS cid_name,
a.cid_num, a.cid_num AS cid_num,
a.ip_addr, a.ip_addr AS ip_addr,
a.dest, a.dest AS dest,
a.presence_id, a.presence_id AS presence_id,
a.presence_data, a.presence_data AS presence_data,
a.callstate, a.accountcode AS accountcode,
a.callee_name, a.callstate AS callstate,
a.callee_num, a.callee_name AS callee_name,
a.callee_direction, a.callee_num AS callee_num,
a.call_uuid, a.callee_direction AS callee_direction,
a.hostname, a.call_uuid AS call_uuid,
a.sent_callee_name, a.hostname AS hostname,
a.sent_callee_num, a.sent_callee_name AS sent_callee_name,
a.sent_callee_num AS sent_callee_num,
b.uuid AS b_uuid, b.uuid AS b_uuid,
b.direction AS b_direction, b.direction AS b_direction,
b.created AS b_created, b.created AS b_created,