Whynotmore
IS-IT--Management
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
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