Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Position exists for ABANDON, EXITWITHTIMEOUT, EXITEMPTY #195

Merged
merged 1 commit into from
Feb 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion root/opt/nethvoice-report/scripts/queue-miner.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ function do_time_queries($start_ts,$end_ts) {
$sqls[] = "INSERT IGNORE INTO report_queue ( id,timestamp_out,timestamp_in,qname,action,position,duration,hold,data4,agent,qdescr,agents)
select id,UNIX_TIMESTAMP(time) as timestamp_out, callid as timestamp_in, queuename as qname,
event as action,
cast(data1 as UNSIGNED) as position,
if (event in ('ABANDON','EXITWITHTIMEOUT','EXITEMPTY'), cast(data1 as UNSIGNED), '') as position,
cast(data2 as UNSIGNED) as duration,
cast(data3 as UNSIGNED) as hold,
cast(data4 as UNSIGNED) as data4,
Expand Down
Loading