Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

IncommingPhoneNotification doesnt work

Alexus
2008-11-20
2013-04-22
  • Alexus
    Alexus
    2008-11-20

    Hey
    I'm trying to see if I can get incomming caller id but it seams not to work.
    Can u help me out?
    I do get CLIP info in my plain COM Port comniaction. but not with your library :(
    here is my code:

    Imports ATSMS
    Imports ATSMS.Common

    Public Class Form1
        Private WithEvents oPhone As New GSMModem

        Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
            Try
                If oPhone.IsConnected Then oPhone.Disconnect()
                oPhone.Port = "COM8"
                oPhone.BaudRate = 9600
                oPhone.DataBits = 8
                oPhone.Parity = EnumParity.None
                oPhone.StopBits = EnumStopBits.One
                oPhone.FlowControl = EnumFlowControl.RTS_CTS
                oPhone.Connect()
                'MsgBox("Connected to " + oPhone.Port, MsgBoxStyle.Information)
                oPhone.Echo = False
                oPhone.IncomingCallIndication = True

            Catch ex As GeneralException
                MsgBox("Error connecting: " + ex.Message)
            End Try
        End Sub

        Private Sub oPhone_NewIncomingCall(ByVal e As ATSMS.NewIncomingCallEventArgs) Handles oPhone.NewIncomingCall
            MsgBox(e.CallerID.ToString())
        End Sub
    End Class