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!

Collection Digits at anytime in a script.

Status
Not open for further replies.
May 2, 2006
10
CA
Hello.

I am trying to create a script that will allow the caller to press 1 at any time during the script to access a voice mail option.

In the past I have done this at a given time interval using the following code.
---------------------------
IF AGE OF CALL >=600 THEN
OPEN VOICE SESSION
PLAY PROMPT
VOICE SEGMENT Mail_vs
COLLECT 1 DIGITS INTO Menu_choice_cv
END VOICE SESSION
END IF

IF Menu_choice_cv = 1 THEN
ROUTE CALL closed_mb_cv
DISCONNECT
End If
---------------------------

This gives the caller about 10 seconds to press 1, after that the Music starts to play again, and pressing 1 is ignored.

Is this possible?
 
Not that I'm aware of. Your method of simply asking the caller every "X" is the same way I do it.
 
You can extend the inter-digit timer like this:
COLLECT 1 DIGITS INTO Menu_choice_cv INTER DIGIT TIMER 30
(30 is just an example.

But don't forget that you are tying up an ACCESS port for each call while the OPEN VOICE SESSION command is active. So you could easily end up with too few channels to handle all your calls.



 
The collect digits command has to be in between an OPEN VOICE SESSION/END VOICE SESSION commands. So as StanleySteamer pointed out, you would be tying up one access port per call to be able to do this.

I usually recommend putting in the message that they will be given these options again in 45 seconds or something like that.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top