Caller ID.com
homeHome contactContact sitemapSite Map
800.240.4637
 

CID_Parser.dll Help

     Click Here for VB.NET UDP Example Code

  1. Download
  2. Add as reference in your project
  3. How to code with CallRecord class (VB.Net)
         - Variables and Functions

Download

Right-click here and save CID_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 'Properties'
  3. In the Properties window select the tab labeled 'References'



  4. Now click 'Add', browse to where you saved CID_Parser.dll and select it.



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

How to code with CID_Parser

This is a simple way to use the CID_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_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.Phone
    DIM callerIDName As String = callRecord.Name

 C#.Net Coding

    // This goes at top of your form
    using CID_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.Phone;
    string callerIDName = currentRecord.Name;

 

All variables and functions in CID_Parser.CallRecord() [VB.Net format but works in C#]

    Public Name As String ' CallerId Name
    Public Phone As String ' CallerId Phone number
    Public Duration As Integer ' Call duration
    Public Line As Integer ' Call line number
    Public SEType As String ' Start or End record
    Public Checksum As String ' Call checksum
    Public CallTime As DateTime ' Call time
    Public Ring As String ' Ring type and number of rings
    Public IOType As String ' Inbound or Outbound
    Public DetailType As String ' ON/OFF Hook or Ring
    Private Detail As Boolean ' If detailed record or not

    ' These funtions below do as their name descibes, returning True or False
    Public Function IsDetailed() As Boolean
    Public Function IsOutbound() As Boolean
    Public Function IsInbound() As Boolean
    Public Function IsStartRecord() As Boolean
    Public Function IsEndRecord() As Boolean
    Public Function IsGoodChecksum() As Boolean
    Public Function IsAMTime() As Boolean

    ' This function below allows you to update all your fields within
    ' the current CallRecord by passing a new input string into it
    Public Sub update(receivedData)


Help

Contact: spenland@callerid.com