(ByVal Channel as Integer, ByVal Reason as Integer)
When a call that was initiated by this control is terminated, a Disconnect event occurs after the system hangs up the line. This allows for call termination code to run. Read more about Disconnect Event.
(BvVal Channel as Integer)
When a call that was initiated by this control is terminated, a PreDisc event occurs just before the system hangs up the line. This allows for call termination code to run before the call is taken back on-hook.
(BvVal Channel as Integer)
This event occurs when a channel is released and when the line goes into idle mode. Specifically, this occurs when:
The mode is currently set to idle and a call completes
The IdleChannel method is used and the call completes
The system is shutdown and the current call completes
The mode is set to idle and the system starts
An error occurs which causes the line to go idle. This can occur if an error is returned from the driver while going offhook or onhook in the LineGroup control.
(ByVal Channel as Integer, NoOffhook as Integer
The Ring event occurs when the numbers of rings set by RingsToAnswer have been received, but before the LineGroup control takes the line offhook. If NoOffhook is set to True in the event code, the line is not taken off-hook. If you want to process the call through some VBVoice controls without going offhook, use the TakeCall method on the target control in this event. If you need to subsequently go offhook, use a Dial control with a pause (a comma) for the dial string.
To set the NoOffHook parameter:
In C#::
e.noOffHook = 1;
In VB.NET:
e.noOffHook = true
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 VoiceError Event.