Click or drag to resize

ChannelResourceDisconnect Method

This method forces the Channel Resource to disconnect any current connections or calls. You may also think of this as "hanging up."

Namespace:  VoiceElements.Client
Assembly:  VoiceElementsClient (in VoiceElementsClient.dll) Version: 8.6.1.1
Syntax
public void Disconnect()
Remarks
Communicating the Disconnect Cause to a Carrier

Optionally, you may specify a numeric cause for your disconnection to the carrier of the call. To do this, use the Disconnect with Cause Code overload.

Examples
The example below shows the simple one line to disconnect a call.
public void HangupMyCall()
{
  // Hangup any connected call
  m_ChannelResource.Disconnect();
}
See Also