06-27-2011 11:50 AM - edited 03-14-2019 08:08 AM
Good afternoon,
i am trying, to get a call in que for three minutes to route somewhere, ultimately offsite...script editor seems way to input driven for a wait x and go to here step..is there a simple example, and i have googled to death the web, of a real script that has a current wait duration =x then go to off site number around out here?
it would be much appreciated.
thank you
06-27-2011 12:19 PM
It's unlikely that you will get exactly a three minute cut-off. The way most do this is to check the Current Wait Duration (in seconds) using the Get Reporting Statistics step every time you loop through your queued loop. Following the Get Reporting step you would use an If statement to evaluate if the variable is >= 180. In the True branch you would use a Dequeue and then a Call Redirect step. In the false branch you would continue your nomal queued logic.
Select Resource
-Selected
-Queued
--Label: QUEUED LOOP
--Get Reporting Statistic (Current Wait Duration)
--If contactWaitDuration >= 180
---True
----Dequeue
----Call Redirect
---False
----Nothing
--[normal queued prompt/MoH/etc]
--Goto: QUEUED LOOP
06-27-2011 12:46 PM
Jonathan,
If call is not dequeued before Call Redirect, what would be the status of the call compare to a dequeue call.
Thanks.
Dat
06-27-2011 12:48 PM
If you do not dequeue the call prior to leaving the Queued branch it may become a stuck call in the database. This is really bad because it would ruin your metrics from a historical reporting standpoint.
Please rate helpful replies.
06-27-2011 12:52 PM
Thanks. I have seen some stuck data in the realtime snapshot table from time to time, may be once in couple months. This is helpful, I will double check and make sure call is dequeued before sending to voicemail box.
Thanks.
Dat.
06-28-2011 03:36 AM
Jonathan,
I believe the de-que may have been what I was missing. I had new calls come in, when the que was already at 180, and route offsite, yet the calls sitting there never would go off-site. Testing now and it "seems" to be working.
Again, as always, your advice and help is very much appreciated...and yes I am very slowly learning this uccx...
Thanks again!!!
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