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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HOLD Choice_cv with no digits

Status
Not open for further replies.

nortelinsd

Technical User
Jul 28, 2005
173
US
I have a voice segment that I want to have that if nothing is enterd, no digits, to play a certian message. I can't say "if hold_choice <> 1,2,3,4,5,6,7,8,9,0" because I have to use some of these digits.
 
Is it possible that if you are using a WHERE EQUALS clause to send the default (or no digits) to a certain message?

WHERE hold_cv EQUALS
1 EXECUTE sample_scr
2 EXECUTE sample_scr2

DEFAULT GIVE different_announcement

Something like that?

 
I'll give it a whirl on Tuesday. Looks like this is what I need to use.

Thanks.

If a tree hugger falls in the woods...who cares?
 
An example with all the syntax you'll need...

OPEN VOICE SESSION

PLAY PROMPT VOICE SEGMENT vs_menu
COLLECT 1 DIGITS INTO choice_cv
INTER DIGIT TIMER 2
END VOICE SESSION

WHERE choice_cv EQUALS
VALUE 1: ROUTE CALL 54321
VALUE 2: ROUTE CALL 12345
DEFAULT: EXECUTE no_selection_section
END WHERE

SECTION no_selection_section

OPEN VOICE SESSION
PLAY PROMPT VOICE SEGMENT vs_no_speak
END VOICE SESSION

DISCONNECT
 
Set the call variable to a number (say 9) before you run the open voice session statement.

ASSIGN 9 TO choice_cv

Then check after the digit is played. If the value of choice_cv is still 9, play your vs_no_speak voice segment.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top