Enter and EnterB events are generated when control passes to the main input or input B. VB Code can call any function required and is responsible for transferring the call to another control using the GotoNode property or TakeCall method in one of the events. If GotoNode or TakeCall are used in the Enter event, the EntryGreeting is not played. Otherwise, After the EntryGreeting is played, the VoiceEvent is fired. There is no Disconnect event in this control: the Voice event must detect this condition and hang up the call if required.
The Enter event is executed by the control upon call entry. If you set the GotoNode property or use the TakeCall method, the call exits this control and is handled by the new control after the Exit Sub or End Sub statement. After the Enter event occurs, the Entry greeting is played. See Enter, EnterB Events.
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(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.
Sub 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 about PlayRequest Event.
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.
VoiceEvent(ByVal Channel as Integer, ByVal EventCode as Integer, ByVal EventData as Integer)
If there was no greeting set, a VoiceEvent event occurs immediately after the Enter event, with the eventcode set to EVT_EOF. If there was a greeting set, the VoiceEvent occurs after the play greeting terminates. It can terminate either due to a digit being received (EVT_MAXDT), or due to the end of file (EVT_EOF).
Because the User control only provides the events, your code must either call another voice card driver function to generate another event, or it must transfer the call to another control using the GotoNode property or TakeCall method.