Skip to content

Commit

Permalink
Position exists for ABANDON, EXITWITHTIMEOUT, EXITEMPTY (#195)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrea-marchionni authored and Stell0 committed Feb 15, 2024
1 parent f6cdc3a commit d2613ef
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit d2613ef

Please sign in to comment.