GetDigits Events

Condition

Condition (Channel as Integer, decided as Integer, node as Integer)

This event is generated when Let VB code decide is specified in the condition dialog for one or more digit conditions, digit collection has terminated, and at least one digit has been received. Digit collection terminates when the maximum digits or a terminating digit have been received or digit collection has timed out.

If your code determines that the digits match for the node defined by the node parameter, it should set the decided parameter to -1 for True and exit, or 0 for False. The call is then transferred to the control connected to this node. If decided is left unchanged, pattern matching continues on the next node. If your code changes the node parameter in addition to setting decided to True, the call is transferred to the node number you set. Nodes are counted from 0, starting from the top node.

You can access the digits using the Digits property. A Condition event is generated for each mask that has the Let VB code decide check box set.

EXAMPLE

Sub GetDigits1_Condition (Channel as Integer, decided As Integer, node As Integer)

If GetDigits1.Digits(channel) = 12345 Then

decided = -1

End If

End Sub

Disconnect

Disconnect (ByVal Channel as Integer, ByVal Reason as Integer)

This event is fired when a caller hangs up and it can occur in any control that performs voice processing. This event allows clean-up on a per-control basis. After it occurs, a Disconnect event occurs in the LineGroup control that initiated this call. Read more about Disconnect Event.

Enter

Enter(Channel As Integer, Greeting As Object)

The Enter event is executed by the control upon call entry. If the GotoNode property is set or the TakeCall method is used, the call exits this control and is handled by the new control after the Exit Sub or End Sub statement. Read more about Enter, EnterB Events.

Exit

Exit(Channel As Integer, Node As Integer)

This event fires when a call leaves a control, but before the Enter event occurs in the destination control. Read more about Exit Event.

PhraseError

PhraseError(ByVal Channel as Integer, Phrase as Object, ByVal ErrType as Integer)

This event is fired when VBVoice cannot open a specified file; when VBVoice cannot find a specified phrase within a file; when an invalid parameter is specified in a System Phrase. Read more about PhraseError Event.

PlayRequest

PlayRequest(ByVal Channel as Integer, ByVal PhraseName as String, Phrase as Object)

This event occurs when a greeting contains a VB Phrase. Every VB Phrase is named so that it can easily be identified in a situation where a control has multiple VB Phrases. Read more PlayRequest Event.

VoiceError

VoiceError(Channel as Integer, ErrorType as Integer, ErrorData as Integer, Processed as Integer)

This event fires when a non-fatal error occurs in the control. When this error event occurs, the control generating the event is generally not able to continue normal processing. Read more about VoiceError Event.

Read more about GetDigits control.