You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
Version 1
Current »
This article provides instructions to run sql scripts to prune extension duplicates in the ACD agents Extension list in CyDashboard.
Stop CyReport Engine service.
Backup Database ‘CyTrack’
run, against the database:
select
eas.id,
eas.id_ext,
eas.extensionnumber,
e.*
from
tblDirExtAcdStationState as eas
inner join tblDirExt as e on eas.id_ext = e.id
where extensionnumber in
(select extensionnumber from tblDirExtAcdStationState
group by extensionnumber
having count(*) > 1)
and eas.extensionnumber != e.num
Run, against the database:
delete from tblDirExtAcdStationState where id in
(select
eas.id
from
tblDirExtAcdStationState as eas
inner join tblDirExt as e on eas.id_ext = e.id
where extensionnumber in
(select extensionnumber from tblDirExtAcdStationState
group by extensionnumber
having count(*) > 1)
and eas.extensionnumber != e.num)
Start CyReport Engine service.
Check that the ACD Agents combo to ensure extensions are not duplicated any more.