"DbHost": "127.0.0.1",
"DbPort": "5480",
"DbUser": "phonesystem",
"DbPassword": "XZg9CE3GJRCfh",
"DbName": "database_single"
SELECT q_num, time_start, time_end, ts_waiting, ts_polling, ts_servicing, ring_time, reason_noanswercode, reason_failcode, call_history_id, from_userpart, from_displayname, to_dn, cb_num, is_answered, is_callback
FROM public.callcent_queuecalls_view order by time_start desc;
SELECT * FROM callcent_queuecalls ORDER BY idcallcent_queuecalls DESC LIMIT 50
select
count(*) as sum,
dst_display_name
from(
select
distinct (c.call_id), c.dst_display_name
from public.cl_segments_view c
where cast(c.start_time as date)> (now() - '7 days'::interval)
and (c.dst_display_name in (select name FROM public.queue ) )
limit 100) as sub
group by dst_display_name
SELECT id_recording, cl_participants_id, recording_url, start_time, end_time, transcription, archived, archived_url, call_type
FROM public.recordings
order by start_time desc;