Solved

How to receive incoming calls using mscomm control

Posted on 2002-07-10
5
310 Views
Last Modified: 2008-01-09
Hi,
I'm using MSCOMM control for my dialer program.

the following is my vb settings:-
   MSComm1.CommPort = 3
   MSComm1.Settings = "9600,N,8,1"
   MSComm1.InputLen = 0
   MSComm1.RTSEnable = True    'must
   MSComm1.PortOpen = True
   
this one is a call
   MSComm1.Output = "ATDT" + Trim(Text1.Text) + Chr$(13)
and this is on my timer
   If MSComm1.InBufferCount Then
        MsgBox (MSComm1.Input)
   End If
at this stage, i can call any phone number and also can send & receive msg to & from other party.

but when other party call my program, i don't know how to pickup or receive the call. for a start can somebody show how to pop up a message when there is a incoming calls.

0
Comment
Question by:azsoft
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 28

Accepted Solution

by:
vinnyd79 earned 50 total points
ID: 7143234
0
 
LVL 4

Expert Comment

by:AlonHirsch
ID: 7145309
Hi,

The MSCOMM Control raises events when ever anything happens on the COM port.
The Event is _OnCom

You have to detect a RING on the modem (comEvRing) and when it is received, you need to issues an ANSWER modem instruction (ATA).

If you set the RTThreshHold to 1 - an event will be raised everytime a character arrives on the port.
You can also use this to detect the 'RING' data arriving on the port and then handling the Ring.

I've had to do this on NT as NT has a problem raising the comEvRing event.

Once the modem answers the call you can change the RTThreshHold to a value that better suits you or even to 0 to prevent the raising of events.

HTH,
Alon
0
 

Author Comment

by:azsoft
ID: 7153321
Where can i get the ATA.
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 8002263
Hi azsoft,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Accept vinnyd79's comment(s) as an answer.

azsoft, if you think your question was not answered at all or if you need help, just post a new comment here; Community Support will help you.  DO NOT accept this comment as an answer.

EXPERTS: If you disagree with that recommendation, please post an explanatory comment.
==========
DanRollins -- EE database cleanup volunteer
0
 

Expert Comment

by:SpideyMod
ID: 8095162
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month5 days, 11 hours left to enroll

627 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question