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!

Can't get position in Q to work 1

Status
Not open for further replies.

LittleGremlins

Technical User
Jan 7, 2003
119
CA
When I test this in a script it only plays the section more_than_3_in_Q_section voice prompt, even though I am 1st in Q.


SECTION pos_in_Q_section
IF POSITION IN QUEUE ahre >3
THEN EXECUTE more_than_3_in_Q_section
IF POSITION IN QUEUE ahre =3
THEN EXECUTE third_in_Q_section
IF POSITION IN QUEUE ahre =2
THEN EXECUTE second_in_Q_section
IF POSITION IN QUEUE ahre =1
THEN EXECUTE first_in_Q_section
END IF
END IF
END IF

SECTION more_than_3_in_Q_section
OPEN VOICE SESSION vs_dn_6001_gv
PLAY PROMPT VOICE SEGMENT e_all_our_analysts_vp29_gv
VOICE SEGMENT e_pos_MoreThan3_vp47_gv
VOICE SEGMENT e_and_is_being_held_vp49_gv
VOICE SEGMENT e_we_appreciate_vp53_gv
END VOICE SESSION
EXECUTE music_section

SECTION third_in_Q_section
OPEN VOICE SESSION vs_dn_6001_gv
PLAY PROMPT VOICE SEGMENT e_all_our_analysts_vp29_gv
VOICE SEGMENT e_pos_3rd_in_Q_vp45_gv
VOICE SEGMENT e_and_is_being_held_vp49_gv
VOICE SEGMENT e_we_appreciate_vp53_gv
END VOICE SESSION
EXECUTE music_section

SECTION second_in_Q_section
OPEN VOICE SESSION vs_dn_6001_gv
PLAY PROMPT VOICE SEGMENT e_all_our_analysts_vp29_gv
VOICE SEGMENT e_pos_2nd_in_Q_vp43_gv
VOICE SEGMENT e_and_is_being_held_vp49_gv
VOICE SEGMENT e_we_appreciate_vp53_gv
END VOICE SESSION
EXECUTE music_section

SECTION first_in_Q_section
OPEN VOICE SESSION vs_dn_6001_gv
PLAY PROMPT VOICE SEGMENT e_all_our_analysts_vp29_gv
VOICE SEGMENT e_pos_1st_in_Q_vp41_gv
VOICE SEGMENT e_and_is_being_held_vp49_gv
VOICE SEGMENT e_we_appreciate_vp53_gv
END VOICE SESSION
EXECUTE music_section

 
Did you try to insert ELSE in your script:


SECTION pos_in_Q_section
IF POSITION IN QUEUE ahre >3
THEN EXECUTE more_than_3_in_Q_section
ELSE
IF POSITION IN QUEUE ahre =3
THEN EXECUTE third_in_Q_section
ELSE
IF POSITION IN QUEUE ahre =2
THEN EXECUTE second_in_Q_section
ELSE
IF POSITION IN QUEUE ahre =1
THEN EXECUTE first_in_Q_section
END IF
END IF
END IF
END IF
 
I used the following script to utilise pos in queue:


OPEN VOICE SESSION
WHERE POSITION IN QUEUE technical EQUALS
VALUE 1: PLAY PROMPT VOICE SEGMENT POS_1
VALUE 2: PLAY PROMPT VOICE SEGMENT POS_2
VALUE 3: PLAY PROMPT VOICE SEGMENT POS_3
VALUE 4: PLAY PROMPT VOICE SEGMENT POS_4
VALUE 5: PLAY PROMPT VOICE SEGMENT POS_5
END WHERE
END VOICE SESSION

PauL DS
 
You should use the DEFAULT in there like:
OPEN VOICE SESSION
WHERE POSITION IN QUEUE technical EQUALS
VALUE 1: PLAY PROMPT VOICE SEGMENT POS_1
VALUE 2: PLAY PROMPT VOICE SEGMENT POS_2
VALUE 3: PLAY PROMPT VOICE SEGMENT POS_3
VALUE 4: PLAY PROMPT VOICE SEGMENT POS_4
VALUE 5: PLAY PROMPT VOICE SEGMENT POS_5
DEFAULT: PLAY PROMPT VOICE SEGMENT POS_5
END WHERE
END VOICE SESSION
 
I know I should. But in your insert I would either replace VALUE 5 with default or have another VS for DEFAULT.....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top