Lorenzo,
last year, one of our clients who had several sites all sharing the same URS was experiencing the dreaded ghost-calls-in-queue.
We tried "check-stuck-in-queue" only to find out that it does not work virtual queues, we tried changing the carrier that connects the sites, we tried upgrading - nothing worked. Then we upgraded from 6.5.xxx to 7.1.xxxx and 90% of the ghost-calls were gone.
I am not sure why, but StatServer becomes dillusional when then order of events are sometimes do not come in the way it expects. This is especially true for TRANSFERED calls, where agent initiates a consult-call to routing point, is queued, connected to operator, and THEN completes the call. This also held true for some instances where call was completed while consult-call was queued.
What we did is added another routing point BEFORE the routing point where call was queued. The stop-gap routing point would just get the call, and forward it to the routing point with VQ. Adding 2 seconds before throwing adjunct on that stop-gap RP got rid of all our ghosts.
Of course, this is for Avaya G3 and POSSIBLY Avaya S8700 PBXs, but it would be worth a try - try adding an additional routing point before the one where you queue the call, put a 4 second delay (for right now) before issuing an adjunct, and then have a strategy on that RP that would route the call to your routing point with VQ on it. See if you get rid of your ghost calls this way.
You can also use Genesys TestPhone to issue EventAbandoned for the calls that are stuck, making StatServer removing them from memory.
Please tell me if you need help with that.
Or, if it is really bad, a simple app that would track StatServer logs for stuck calls and issue EventAbandoned for all the fake ones.
BTW, did you ask Genesys WHY you are getting ghost calls? I mean, it should not be there in a first place and perhaps a simple upgrade would fix it.