I have a requirement for allowing an agent assigned to one queue to take calls from another queue. The problem I am having is that this is not all the time and there is no set schedule on when this would occur. I wrote a script awhile ago that mapped a session id into memory and another script acted off of that value. I have forgotten how to do this and also how get the session information back into the script that would look for the value. Does anyone have any examples.
Assuming CCX: Agents do not have an option to manually pull contacts from a queue. The selection criteria on the CSQ will dictate this. Along the same lines, there is no method for an agent to add or remove themselves from a CSQ. Supervisors can be granted this right within System Parameters though.
You will need to identify conditions with the Get Reporting Statistics step where the script should change it's logic (e.g. quantity of contacts waiting, longest waiting time, estimated wait time, etc). You can then queue the contact into additional or different CSQs based on these conditions.
As for session information: I'm not sure how that would assist you here; however, the Session steps are pretty straight forward. The Get Contact Info step will retrieve the contact's session ID for you. Note that you would need to trigger another application for the "other script" to start.
Cisco Unified Contact Center Express Scripting and Development Series: Volume 2, Editor Step Reference 7.0(1)
Edit: You could also have the script retrieve data from an external location instead of using the Get Reporting Statistics step. A supported database or XML file available through HTTP are two examples. This would allow you to provide an interface for controlling the behavior of the script to users. The behavior of the script and CSQs must still be predefined but you could allow users to selectively engage one or more predefined scenarios as needed.
These are the paths to get to each CCX logs through CLI. They may be helpful if you are having issues accessing RTMT or downloading logs through it.
If you want to download them you have to prefix "file get " and you can add one of the options (re...