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
SELECT a.uuid,
a.direction,
a.created,
a.created_epoch,
a.name,
a.state,
a.cid_name,
a.cid_num,
a.ip_addr,
a.dest,
a.presence_id,
a.presence_data,
a.callstate,
a.callee_name,
a.callee_num,
a.callee_direction,
a.call_uuid,
a.hostname,
a.sent_callee_name,
a.sent_callee_num,
a.direction AS direction,
a.created AS created,
a.created_epoch AS created_epoch,
a.name AS name,
a.state AS state,
a.cid_name AS cid_name,
a.cid_num AS cid_num,
a.ip_addr AS ip_addr,
a.dest AS dest,
a.presence_id AS presence_id,
a.presence_data AS presence_data,
a.accountcode AS accountcode,
a.callstate AS callstate,
a.callee_name AS callee_name,
a.callee_num AS callee_num,
a.callee_direction AS callee_direction,
a.call_uuid AS call_uuid,
a.hostname AS hostname,
a.sent_callee_name AS sent_callee_name,
a.sent_callee_num AS sent_callee_num,
b.uuid AS b_uuid,
b.direction AS b_direction,
b.created AS b_created,