Based just on the piece of your script you took screenshots of, I don't see anything immediately amiss. I am assuming the string variable "CSQ" is, in fact, representing the queue they're in. I can't verify that from your screenshot. It's very possible to query the wrong queue, and I believe it's valid to look up your position (which will be last in line) for queues the caller isn't in.
What is your evidence of their "real" position in queue? What are you comparing the script-reported position to? Also, bear in mind it is possible for a caller's position in queue to go up if higher-priority callers enter the queue. Are you using Priority steps to manage callers in this or any other script on your system?
SIP traces provide key information in troubleshooting SIP Trunks, SIP
endpoints and other SIP related issues. Even though these traces are in
clear text, these texts can be gibberish unless you understand fully
what they mean. This document attempts to br...
Please find the attached HTML document, download and open it on your PC.
This provides an easy to use form where you simply answer a few
questions and it will render the proper jabber-config.xml file for you
to copy/paste. There is built in logic to verif...
[toc:faq]CUCM Database Replication is an area in which Cisco customers
and partners have asked for more in-depth training in being able to
properly assess a replication problem and potentially resolve an issue
without involving TAC. This document discusse...