09-20-2018 05:52 PM - edited 03-15-2019 06:40 AM
Hi
I have a requirement in the existing UCCX Script where I need to find out how long the call is waiting in the script.
The call flow is like:
1. Incoming call > UCCX Script
2. Here I have configured time variable "tCallEntertime"
3. When caller selects particular option and go to select resources, I have configured another time variable "tCurrentTime.
4. If all the agents are busy the call gets in to queue and if the wait time is more than 5 min, call needs to go to voicemail.
5. I also have configured integer variable "iWaitTime".
I am stuck at this stage and not able to find out how calculate the difference between two times.
Can someone please help?
Thanks in advance for responding my query.
09-21-2018 05:29 AM
Why do you need to know how long call is in script? Normally you want to know how long call is in queue, i.e. once a queue has been selected, and for that all you need to do is using the "get reporting statistics" select "CSQ IPCC Express" object, "Current Wait Duration" field for your current CSQ (i.e. CSQ variable), store it as defined integer variable and and then just check if its value is greater than the max wait time as you loop through your queue logic.
09-23-2018 06:22 PM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide