Solved

How to receive incoming calls using mscomm control

Posted on 2002-07-10
5
296 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
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

Independent Software Vendors: 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

Suggested Solutions

Title # Comments Views Activity
vb6 connector to mongodb 2 138
Exit a vb6 apps when a calling it apps closes 15 57
Macro Excel - Multiple If conditions 2 87
Sub or Function is not defined 6 51
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…

713 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