Steffen,

Thanks for the reply. Actually, position in queue is the correct reporting 
statistic because I want to know how many contacts are ahead of the current 
contact. ContactsWaiting gives total number of contacts waiting for a resource 
without context for the existing contact. So, if I had 5 people in queue, all 
of them would hear the same count. Also, with Position in Queue, we wouldn't 
hit a -1 if there is only a single contact as the position for the contact is 
1. Decrementing that variable would give me 0 not -1. Since I am reinitializing 
the variable each iteration, I should never hit a value below zero.


Thanks again.


Regards,
Bill



On Nov 30, 2012, at 5:17 PM, Steffen Bruening wrote:

> Hi Bill,
> 
> When you ask for callers ahead of you, you should go with 
> ContactsWaiting+decrement step, because position in Queue is your position 
> and when nobody else is in the queue you will hear a "- 1" after the 
> decrement, don't know whether there is also an increment step.
> 
> At the end it is your choice how you get your script working. Not the way, 
> only the result is graded.
> 
> Regards
> 
> Steffen
> 
> Am Freitag, 30. November 2012 schrieb William Bell :
> I have a question that may really just come down to a matter of preference. 
> However, I want to make sure there is something that I am not missing. For 
> those who want to "read along" my question stems from IPexpert's One Week Lab 
> Experience lab 2. I also think i have seen a similar question in the 5-lab 
> workbook.
> 
> For everyone else, the CCX requirement is to play a contact's position in 
> queue while they are in the queued branch of Select Resource.  Specifically, 
> they want you to play a prompt that says "The number of people ahead of you 
> is one" (or two, or three, etc.).
> 
> The way I do this is as follows:
> 
> step: Select Resource from CSQ
> - (Connected)
> - (Queued)
> label: queueLoop
> intPosInQ = Get Reporting Statistic PositionInQueue
> decrement intPosInQ
> playPrompt (P[YourPosinQ.wav] + intPosInQ)
> delay 30s
> goto label: queueLoop
> 
> 
> The way I have seen IPExpert handle this has a few more steps:
> 
> step: Select Resource from CSQ
> - (Connected)
> - (Queued)
> label: queueLoop
> intPosInQ = Get Reporting Statistic PositionInQueue
> decrement intPosInQ
> promptNumInQ = Create Generated Prompt number (intPosInQ)
> promptQueue = Create Container Prompt Concatenation (P[YourPosinQ] + 
> promptNumInQ)
> playPrompt (promptQueue)
> delay 30s
> goto label: queueLoop
> 
> 
> When I use my method, I get the desired result. My question is what (if any) 
> advantage is there in generating the spoken prompt and packaging the two 
> prompts instead of just doing the concatenation in-line with the Play Prompt 
> step?
> 
> Thanks in advance.
> 
> -Bill
> --
> William Bell
> blog: http://ucguerrilla.com
> twitter: @ucguerrilla
> 
> 

--
William Bell
blog: http://ucguerrilla.com
Follow me on twitter @ucguerrilla



_______________________________________________
For more information regarding industry leading CCIE Lab training, please visit 
www.ipexpert.com

Are you a CCNP or CCIE and looking for a job? Check out 
www.PlatinumPlacement.com

Reply via email to