Caller ID.com
homeHome contactContact sitemapSite Map
800.240.4637
 

CID_Call_Parser.dll Help

  1. Download (Right-click and Save)
  2. Add as reference in your project
  3. How to code with CallRecord class (C#)
         - Variables and Functions

Download

Right-click here and save CID_Call_Parser.dll into your project folder.

Add Reference in your project

  1. Open your project in Visual Studio
  2. In your Solution Explorer right-click on your project and select 'Add Reference'
  3. Browse to where you saved CID_Call_Parser.dll and select it.

    CID_Call_Parser

  4. Save your project. Now you have successfully added the CID_Call_Parser.dll reference to your project and you can now begin to use it.

How to code with CID_Call_Parser.dll

This is a simple way to use the CID_Call_Parser within a DataRecieve event. In this example the string that comes into the variable 'receivedData' is this:

VB.Net Coding:

    ' -- Receive data from Serial or UDP reception
    DIM receivedData As String = ' Serial or UDP reception

    ' -- Create call record with string from reception
    DIM callRecord As New CID_Call_Parser.CallRecord(receivedData)

    ' -- Now you have a callRecord with all the data parsed
    ' -- You can get it back from your callRecord by simply
    ' -- using a '.' after callRecord, as shown below:

    DIM lineNumber As Integer = callRecord.Line
    DIM callerIDNumber As String = callRecord.PhoneNumber
    DIM callerIDName As String = callRecord.Name

 C#.Net Coding

    // This goes at top of your form
    using CID_Call_Parser;

    // This goes in your DataRecieve event
    string receivedData = // Serial or UDP reception

    // Create record from reception string
    CallRecord currentRecord = new CallRecord(receivedData);

    // Now you have a callRecord with all the data parsed
    // You can get it back from your callRecord by simply
    // using a '.' after callRecord, as shown below:
    string lineNumber = currentRecord.Line;
    string callerIDNumber = currentRecord.PhoneNumber;
    string callerIDName = currentRecord.Name; 

All variables and functions in CID_Parser.CallRecord() [C# format but other Visual Studio languages work as well]

public bool Detailed; // Detailed record or not
public string DetailedType; // ON/OFF Hook or Ring
public int Line; // Call line number
public string InboundOrOutboundOrBlock; // Inbound or Outbound
public string StartOrEnd; // Start or End record
public int Duration; // Call duration
public string CheckSum; // Call checksum
public string RingType; // Ring type
public int RingNumber; // Nnumber of rings
public DateTime DateTime; // Call time
public string PhoneNumber; // CallerId Phone number
public string Name; // CallerId Name

// These funtions below do as their name descibes, returning True or False
public bool IsDetailed() As Boolean
public bool IsOutbound() As Boolean
public bool IsInbound() As Boolean
public bool IsStartRecord() As Boolean
public bool IsEndRecord() As Boolean
public bool IsGoodChecksum() As Boolean


Help

Contact: spenland@callerid.com