Click or drag to resize

ChannelResourceCallerIdName Property

This is the originating name field of the last inbound call (if available).

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

Property Value

Type: String
Remarks
If provided by the carrier or network, this is essentially the callerID name as defined by the numbers owner or carrier of the party who placed the last inbound call. For more detail, see Caller ID Information. This is typically used for logging call activity in a database or even applying routing or script rules based on checking the name against a customer or contact list. Also helpful for this type of call filtering and available on an inbound call are the DNIS and the ANI.

Note: This Field is Not Always Available

You may find that many inbound calls will have "Unavailable", "Private" or no data in this field. Make sure to account for this in your application design.

Examples
static void s_TelephonyServer_NewCall(object sender, VoiceElements.Client.NewCallEventArgs callArgs)
{
  // Get the Name and put in a variable
  string m_Name = callArgs.ChannelResource.CallerIdName;

  // Log the Name
  Log.Write("New Call Arrival from {0}.", m_Name);
}
See Also