Click or drag to resize

ChannelResourceGcCauseMessage Property

GC Cause message for a disconnected call if available.

Namespace:  VoiceElements.Client
Assembly:  VoiceElementsClient (in VoiceElementsClient.dll) Version:
public string GcCauseMessage { get; }

Property Value

Type: String
Cause Codes and Messages

This is a message string specifying the cause of a Disconnect. This may or may not be passed by the carrier depending on the underlying protocol being used. Typically, these are used for PRI's. For a list of these codes, see Q.931 Cause Codes on our support wiki. You may want to log these if availble for troubleshooting carrier problems. You can also use GC Cause Code Property, General Cause Code Porperty, and General Cause Message Property for more information when investigating disconnects.

The example below shows a chunk of code that gets all of the possible Cause Code properties and puts them into variables for logging when a Disconnect Event arrives.
static void ChannelResource_Disconnected(object sender, DisconnectedEventArgs e)
// Get the carrier information and log it.
int GcCode = e.ChannelResource.GcCause;
string GcMessage = e.ChannelResource.GcCauseMessage;
int GeneralCode = e.ChannelResource.GeneralCause;
string GeneralMessage = e.ChannelResource.GeneralCauseMessage;

// Use your vriables now to log, store or alert based on available contents
See Also