Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Position in Queue

Status
Not open for further replies.

Whynotmore

IS-IT--Management
Dec 19, 2010
8
US
I cannot seem to get this place in queue thing to work. Is there something that I am missing? It always seems to assign 0 to the piq_cv. I am going crazy. Can some one of you help on this? It will keep me from pulling my eyes out. If I replace the ASSIGN POSITION IN QUEUE TestSkillset TO piq_cv with ASSIGN 10 TestSkillset TO piq_cv it works, but the dynamic POSITION IN QUEUE is not working. I did cut some IF statements out, so sorry for any left overs in what I pasted below.

QUEUE TO SKILLSET TestSkillset
WAIT 2
READVAR piq_cv
ASSIGN POSITION IN QUEUE TestSkillset TO piq_cv
SAVEVAR
EXECUTE PIQ_Announcement
ELSE
EXECUTE AfterHours
END IF

SECTION Loop_Section

READVAR piq_cv
ASSIGN POSITION IN QUEUE TestSkillset TO piq_cv
SAVEVAR
EXECUTE PIQ_Announcement
ELSE
EXECUTE AfterHours
END IF

SECTION PIQ_Announcement


WHERE piq_cv EQUALS
VALUE 0: GIVE CONTROLLED BROADCAST ANNOUNCEMENT 6997 PLAY PROMPT VOICE SEGMENT piq_1_vs
VALUE 1: GIVE CONTROLLED BROADCAST ANNOUNCEMENT 6997 PLAY PROMPT VOICE SEGMENT piq_5_vs
VALUE 2: GIVE CONTROLLED BROADCAST ANNOUNCEMENT 6997 PLAY PROMPT VOICE SEGMENT piq_2_vs
VALUE 3: GIVE CONTROLLED BROADCAST ANNOUNCEMENT 6997 PLAY PROMPT VOICE SEGMENT piq_3_vs
VALUE 4: GIVE CONTROLLED BROADCAST ANNOUNCEMENT 6997 PLAY PROMPT VOICE SEGMENT piq_4_vs
VALUE 5: GIVE CONTROLLED BROADCAST ANNOUNCEMENT 6997 PLAY PROMPT VOICE SEGMENT piq_5_vs
VALUE 6: GIVE CONTROLLED BROADCAST ANNOUNCEMENT 6997 PLAY PROMPT VOICE SEGMENT piq_6_vs
VALUE 7: GIVE CONTROLLED BROADCAST ANNOUNCEMENT 6997 PLAY PROMPT VOICE SEGMENT piq_7_vs
VALUE 8: GIVE CONTROLLED BROADCAST ANNOUNCEMENT 6997 PLAY PROMPT VOICE SEGMENT piq_8_vs
VALUE 9: GIVE CONTROLLED BROADCAST ANNOUNCEMENT 6997 PLAY PROMPT VOICE SEGMENT piq_9_vs
VALUE 10: GIVE CONTROLLED BROADCAST ANNOUNCEMENT 6997 PLAY PROMPT VOICE SEGMENT piq_10_vs
VALUE 11: GIVE CONTROLLED BROADCAST ANNOUNCEMENT 6997 PLAY PROMPT VOICE SEGMENT piq_11_vs
VALUE 12: GIVE CONTROLLED BROADCAST ANNOUNCEMENT 6997 PLAY PROMPT VOICE SEGMENT piq_12_vs
VALUE 13: GIVE CONTROLLED BROADCAST ANNOUNCEMENT 6997 PLAY PROMPT VOICE SEGMENT piq_13_vs
VALUE 14: GIVE CONTROLLED BROADCAST ANNOUNCEMENT 6997 PLAY PROMPT VOICE SEGMENT piq_14_vs
VALUE 15: GIVE CONTROLLED BROADCAST ANNOUNCEMENT 6997 PLAY PROMPT VOICE SEGMENT piq_15_vs
VALUE 16: GIVE CONTROLLED BROADCAST ANNOUNCEMENT 6997 PLAY PROMPT VOICE SEGMENT piq_16_vs
VALUE 17: GIVE CONTROLLED BROADCAST ANNOUNCEMENT 6997 PLAY PROMPT VOICE SEGMENT piq_17_vs
VALUE 18: GIVE CONTROLLED BROADCAST ANNOUNCEMENT 6997 PLAY PROMPT VOICE SEGMENT piq_18_vs
VALUE 19: GIVE CONTROLLED BROADCAST ANNOUNCEMENT 6997 PLAY PROMPT VOICE SEGMENT piq_19_vs
VALUE 20: GIVE CONTROLLED BROADCAST ANNOUNCEMENT 6997 PLAY PROMPT VOICE SEGMENT piq_20_vs
DEFAULT: GIVE CONTROLLED BROADCAST ANNOUNCEMENT 6997 PLAY PROMPT VOICE SEGMENT piq_20_and_up_vs
END WHERE


GIVE MUSIC 16
WAIT 10
GIVE CONTROLLED BROADCAST ANNOUNCEMENT 6997
PLAY PROMPT VOICE SEGMENT Comfort1
EXECUTE Loop_Section

SECTION AfterHours
GIVE IVR 6998 WITH TREATMENT 9009
 
It almost seems as if no number is assigned to the position in queue. is there some counter that needs to be on that may have been over looked?
 
Just to be sure: piq_cv is a 'Call Variable' of type: INTEGER?

I've compared stripting above with my working script.
The main difference is I do not use 'READVAR piq_cv' and 'SAVEVAR' so remove those lines (is is not needed to store the value: the counter only has to apply for 1 caller. If these commands are used every new caller will get the same value!)

In General scripting is the same but I also added some checks in case of wrong level assigments:

IF piq_cv > 1 THEN
IF piq_cv > POSITION IN QUEUE Init_skill AND POSITION IN QUEUE Init_skill > 0 THEN
ASSIGN POSITION IN QUEUE Init_skill TO piq_cv
ELSE
IF POSITION IN QUEUE Init_skill <= 0 THEN
ASSIGN 1 TO piq_cv
END IF
END IF
END IF

 
ok. i removed the 'READVAR piq_cv' and 'SAVEVAR' and inserted the example above, but the POSITION IN QUEUE is still not changing. it is always set to 0. I POSITION IN QUEUE something that i need to build? or is that variable built in to the SCCM system?
 
ok, so piq_cv is a 'Call Variable' of type: INTEGER and is not a 'Global Variable'...

POSITION IN QUEUE <skillset> | <skillset list>
is a standard script command so no additional variable built is needed.

You cut some IF statements out, don't know if that causes the '0'?
I see for instance a multiple 'EXECUTE AfterHours'; I would prefer to do that check before queing to a skillset.

In my script the initialisation section holds:
ASSIGN 20 TO piq_cv
(and not '0 TO pic_cv')

Hope this helps..


 
ok. here is my whoe script. i have commented out some parts for testing purposes. not sure what you mean about the initialisation section. I may not have it at all.

/* TechnicalHelp */

/*IF DATE = TechEarlyHoliday AND
TIME OF DAY = TechHolidayTime THEN
EXECUTE AfterHours
END IF

IF DATE = TechHoliday THEN
EXECUTE AfterHours
END IF

IF DAY OF WEEK = TestStarWeek AND
TIME OF DAY = TestStarWork AND
OUT OF SERVICE TestSkillset THEN
ROUTE CALL TestStar
ELSE*/
IF DAY OF WEEK = TestStarWeek AND
TIME OF DAY = TestStarWork /*AND
NOT OUT OF SERVICE TestSkillset */THEN
QUEUE TO SKILLSET TestSkillset
WAIT 2

EXECUTE PIQ_Announcement
ELSE
EXECUTE AfterHours
END IF
/*END IF*/

SECTION Loop_Section

IF DAY OF WEEK = TestStarWeek AND
TIME OF DAY = TestStarWork AND
NOT OUT OF SERVICE TestSkillset THEN
READVAR piq_cv
ASSIGN (POSITION IN QUEUE TestSkillset) TO piq_cv
SAVEVAR
EXECUTE PIQ_Announcement
ELSE
EXECUTE AfterHours
END IF

SECTION PIQ_Announcement

IF piq_cv > 1 THEN
IF piq_cv > POSITION IN QUEUE TestSkillset AND
POSITION IN QUEUE TestSkillset > 0 THEN
ASSIGN POSITION IN QUEUE TestSkillset TO piq_cv
ELSE
IF POSITION IN QUEUE TestSkillset <= 0 THEN
ASSIGN 21 TO piq_cv
END IF
END IF
END IF

WHERE piq_cv EQUALS
VALUE 0: GIVE CONTROLLED BROADCAST ANNOUNCEMENT 6997 PLAY PROMPT VOICE SEGMENT piq_1_vs
VALUE 1: GIVE CONTROLLED BROADCAST ANNOUNCEMENT 6997 PLAY PROMPT VOICE SEGMENT piq_1_vs
VALUE 2: GIVE CONTROLLED BROADCAST ANNOUNCEMENT 6997 PLAY PROMPT VOICE SEGMENT piq_2_vs
VALUE 3: GIVE CONTROLLED BROADCAST ANNOUNCEMENT 6997 PLAY PROMPT VOICE SEGMENT piq_3_vs
VALUE 4: GIVE CONTROLLED BROADCAST ANNOUNCEMENT 6997 PLAY PROMPT VOICE SEGMENT piq_4_vs
VALUE 5: GIVE CONTROLLED BROADCAST ANNOUNCEMENT 6997 PLAY PROMPT VOICE SEGMENT piq_5_vs
VALUE 6: GIVE CONTROLLED BROADCAST ANNOUNCEMENT 6997 PLAY PROMPT VOICE SEGMENT piq_6_vs
VALUE 7: GIVE CONTROLLED BROADCAST ANNOUNCEMENT 6997 PLAY PROMPT VOICE SEGMENT piq_7_vs
VALUE 8: GIVE CONTROLLED BROADCAST ANNOUNCEMENT 6997 PLAY PROMPT VOICE SEGMENT piq_8_vs
VALUE 9: GIVE CONTROLLED BROADCAST ANNOUNCEMENT 6997 PLAY PROMPT VOICE SEGMENT piq_9_vs
VALUE 10: GIVE CONTROLLED BROADCAST ANNOUNCEMENT 6997 PLAY PROMPT VOICE SEGMENT piq_10_vs
VALUE 11: GIVE CONTROLLED BROADCAST ANNOUNCEMENT 6997 PLAY PROMPT VOICE SEGMENT piq_11_vs
VALUE 12: GIVE CONTROLLED BROADCAST ANNOUNCEMENT 6997 PLAY PROMPT VOICE SEGMENT piq_12_vs
VALUE 13: GIVE CONTROLLED BROADCAST ANNOUNCEMENT 6997 PLAY PROMPT VOICE SEGMENT piq_13_vs
VALUE 14: GIVE CONTROLLED BROADCAST ANNOUNCEMENT 6997 PLAY PROMPT VOICE SEGMENT piq_14_vs
VALUE 15: GIVE CONTROLLED BROADCAST ANNOUNCEMENT 6997 PLAY PROMPT VOICE SEGMENT piq_15_vs
VALUE 16: GIVE CONTROLLED BROADCAST ANNOUNCEMENT 6997 PLAY PROMPT VOICE SEGMENT piq_16_vs
VALUE 17: GIVE CONTROLLED BROADCAST ANNOUNCEMENT 6997 PLAY PROMPT VOICE SEGMENT piq_17_vs
VALUE 18: GIVE CONTROLLED BROADCAST ANNOUNCEMENT 6997 PLAY PROMPT VOICE SEGMENT piq_18_vs
VALUE 19: GIVE CONTROLLED BROADCAST ANNOUNCEMENT 6997 PLAY PROMPT VOICE SEGMENT piq_19_vs
VALUE 20: GIVE CONTROLLED BROADCAST ANNOUNCEMENT 6997 PLAY PROMPT VOICE SEGMENT piq_20_vs
DEFAULT: GIVE CONTROLLED BROADCAST ANNOUNCEMENT 6997 PLAY PROMPT VOICE SEGMENT piq_20_and_up_vs
END WHERE


GIVE MUSIC 16

IF NOT QUEUED THEN
/*IF NOT OUT OF SERVICE TestSkillset THEN*/
QUEUE TO SKILLSET TestSkillset
WAIT 2
/*ELSE
ROUTE CALL TriStar
END IF*/
END IF

/* ROUTE CALL TriStar*/
WAIT 10
GIVE CONTROLLED BROADCAST ANNOUNCEMENT 6997
PLAY PROMPT VOICE SEGMENT ClinicalComfort1
/*EXECUTE Loop_Section*/

SECTION AfterHours
GIVE IVR 6998 WITH TREATMENT 9009
 
i simplified it to this, but it still does not change the position in QUEUE. could there be a permissions issue?

/* TechnicalHelp */

QUEUE TO SKILLSET TestSkillset
WAIT 2
ASSIGN POSITION IN QUEUE TestSkillset TO piq_cv

WHERE piq_cv EQUALS
VALUE 0: GIVE CONTROLLED BROADCAST ANNOUNCEMENT 6997 PLAY PROMPT VOICE SEGMENT piq_1_vs
VALUE 1: GIVE CONTROLLED BROADCAST ANNOUNCEMENT 6997 PLAY PROMPT VOICE SEGMENT piq_5_vs
VALUE 2: GIVE CONTROLLED BROADCAST ANNOUNCEMENT 6997 PLAY PROMPT VOICE SEGMENT piq_2_vs
VALUE 3: GIVE CONTROLLED BROADCAST ANNOUNCEMENT 6997 PLAY PROMPT VOICE SEGMENT piq_3_vs
VALUE 4: GIVE CONTROLLED BROADCAST ANNOUNCEMENT 6997 PLAY PROMPT VOICE SEGMENT piq_4_vs
VALUE 5: GIVE CONTROLLED BROADCAST ANNOUNCEMENT 6997 PLAY PROMPT VOICE SEGMENT piq_5_vs
VALUE 6: GIVE CONTROLLED BROADCAST ANNOUNCEMENT 6997 PLAY PROMPT VOICE SEGMENT piq_6_vs
VALUE 7: GIVE CONTROLLED BROADCAST ANNOUNCEMENT 6997 PLAY PROMPT VOICE SEGMENT piq_7_vs
VALUE 8: GIVE CONTROLLED BROADCAST ANNOUNCEMENT 6997 PLAY PROMPT VOICE SEGMENT piq_8_vs
VALUE 9: GIVE CONTROLLED BROADCAST ANNOUNCEMENT 6997 PLAY PROMPT VOICE SEGMENT piq_9_vs
VALUE 10: GIVE CONTROLLED BROADCAST ANNOUNCEMENT 6997 PLAY PROMPT VOICE SEGMENT piq_10_vs
VALUE 11: GIVE CONTROLLED BROADCAST ANNOUNCEMENT 6997 PLAY PROMPT VOICE SEGMENT piq_11_vs
VALUE 12: GIVE CONTROLLED BROADCAST ANNOUNCEMENT 6997 PLAY PROMPT VOICE SEGMENT piq_12_vs
VALUE 13: GIVE CONTROLLED BROADCAST ANNOUNCEMENT 6997 PLAY PROMPT VOICE SEGMENT piq_13_vs
VALUE 14: GIVE CONTROLLED BROADCAST ANNOUNCEMENT 6997 PLAY PROMPT VOICE SEGMENT piq_14_vs
VALUE 15: GIVE CONTROLLED BROADCAST ANNOUNCEMENT 6997 PLAY PROMPT VOICE SEGMENT piq_15_vs
VALUE 16: GIVE CONTROLLED BROADCAST ANNOUNCEMENT 6997 PLAY PROMPT VOICE SEGMENT piq_16_vs
VALUE 17: GIVE CONTROLLED BROADCAST ANNOUNCEMENT 6997 PLAY PROMPT VOICE SEGMENT piq_17_vs
VALUE 18: GIVE CONTROLLED BROADCAST ANNOUNCEMENT 6997 PLAY PROMPT VOICE SEGMENT piq_18_vs
VALUE 19: GIVE CONTROLLED BROADCAST ANNOUNCEMENT 6997 PLAY PROMPT VOICE SEGMENT piq_19_vs
VALUE 20: GIVE CONTROLLED BROADCAST ANNOUNCEMENT 6997 PLAY PROMPT VOICE SEGMENT piq_20_vs
DEFAULT: GIVE CONTROLLED BROADCAST ANNOUNCEMENT 6997 PLAY PROMPT VOICE SEGMENT piq_20_and_up_vs
END WHERE

GIVE MUSIC 16
WAIT 20
GIVE CONTROLLED BROADCAST ANNOUNCEMENT 6997
PLAY PROMPT VOICE SEGMENT ClinicalComfort1
 
OK. I got it. I am crazy. Inorder for POSITION IN QUEUE to work, an agent has to be logged in. once that happens, the QUEUEis created.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top