I have a script where I'd like to play the queue position to the user while waiting. basically there is:
:waitcustomer=get reporting statistics (--trigerring contact--,Position in queue[CSQ] from CSQ IPCC Express)
:Play prompt (--trigerring contact--, wait)
But it doesnt work :-(, i need to pass a parameter from get reporting statistics to "wait" so that it can play wait1 or wait2 and so on based on the position.
What are your requirements for the script, are you using the system generated voice or are you using your own recorded position in queue messages.
For example, we will only allow 9 calls in queue, based on customers position, we will play our own generated wav's, evaluated with if statements.
You could post snippet from your script up here for analysis.
Thanks for the reply, I am using my own recordings. The main idea is to let callers know what their position is. Maximum number of people in the queue is 10.
here is a short snippet of the code, hope it helps.
waitCustomer = Get Reporting Statistic (--Triggering C
ontact--, Position in Queue[CSQ ] from CSQ IPCC Expre
Play Prompt (--Triggering Contact--, wait )
Play Prompt (--Triggering Contact--, Music)
If (pocetMenu>=10) Then
Dequeue (--Triggering Contact-- from ChosenQueue)
First, you might want to consider creating a sub-flow to do this as this kind of 'feature' is very common. You can use it again in other scripts.
Second, you can use the built-in system prompts to play numbers (5) or ordinals (5th) by using the N or # identifiers respectively. They play in the 'Cisco Lady's' voice.
If you require your own voice talent to say the number/ordinal then consider just 'creating' the wav file name by concatination.
intWaitCustomer = 5;
prmtYouAre = 'YouAre.wav';
prmtInQueue = 'InQueue.wav';
!Use a Container Prompt Step for this bit
"Wait" + intWaitCustomer.toString() + ".wav" (as User Prompt)
Alternatively, this works too.
#[intWaitCustomer] (as System Prompt)