with a Get reporting Statistic I take the Contacts waiting value within the CSQ IPCC Express report Object.
The result is place inside an integer ex : intContactsWaiting
With it I try to compare the result with a maximum value that I have manually configured.
intMaxContactsWaiting = 3
IF intContactsWaiting > intMaxContactsWaiting
Play prompt A
Play promt B
The problem is I can not reach the true. (PromptA) even if I have 4 contacts in the CSQ.
The weird part is, If I do a debug on the 4th call it reach the true... ONLY when I use the debug. I know it sounds weird and I did'nt find any explaination on that. As soon as I use the debug for the third call, the script seems to be fine, when I look at the value of all variable they are well populated.
I explained that to the TAC and they say it's a bug.
Pretty much like if the get have a problem when it's in the Select resources.
The workaround is to put it outside the Select resource.
The problem is if you want to do a play prompt to tell the caller how many people are waiting in the queue you will have an issue, it will not give the exact number of people that are waiting in the queue.
I tell them to open a Bug-ID, i will post it here as soon I have it.