LineGroup Events

Disconnect

(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.

PreDisc

(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.

Released

(BvVal Channel as Integer)

This event occurs when a channel is released and when the line goes into idle mode. Specifically, this occurs when:

Ring

(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

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.

Read more about LineGroup control.