Im writing a script and i hope to reuse most of the logic from it for other very simmilar scripts.
Regarding the prompts, i have made a prompt directory which categorises the prompt names (which are a numeric value) to keep it structured. Hopefully this will explain better.
Prompts are reccored and stored in xx=team ID yy=prompt categry and zz=prompt
e.g. 060110.wav = team 06, prompt category = 01 (welcome) and prompt = 10 (
To play the welcome message i have;
variable; (all string)
teamID - e.g "06"
pWelcomeMessage - e.g. "0110.wav"
play prompt = teamID + pWelcomeMessage
This allows me to set the teamID as a parameter and use the same script over again. This piece is working perfect....
In the queuing section i have to play the position in the queue. Initially i had the system play the position number from a get reporting statistic which worked but they want to record the position prompt themselves. so, If the PIQ <= 5 there is a SET step to;
set pPositionInQueue = "teamID + positionPromptCategory + positionInQueueString + positionPromptExtn"
I was hoping this would work, i converted the PIQ integer to a string to see if that fixed it but no luck. So for caller who is position 2 in the queue the prompt file should be (with no spaces) 06 021 2 .wav.
Any ideas on where im going wrong? I think i need to use a generate prompt step but im not sure....
Hmm, I'm not sure why my email response never made it to the thread but alas, the original message:
positionInQueueString +""+ positionPromptExtn
That will result in a string.
You must have + "" in there otherwise, when you add two strings
together that contain a number it gets added. Putting in "" prevents
From my understanding thats what you are trying to accomplish
You want the result of say, "061001.wav" from strings teamID "06" and pSomethingElse "1001.wav"
Playing two user defined prompts in one Play Prompt step:
Play Prompt (--Triggering Contact--, P[var1 + var2] + P[var3 + var4])