detect phone

  Is there a way to detect if I have an incoming telephone call while I am online? I have only one phone line, and I need to be alerted when someone is calling me. Is is possible to write a program that has the com port which my modem uses alert me, via c++ or some other language code?

I just need to know if this is possible, and if so, a hint as to how I may approach this.

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

First of all, ou would have to have call waiting.  if you don't have call waiting, then no other calls can come in when you are on line.  But if you do have call waiting, when another call comes in it will screw up your connection becuse of the sound made by the call waiting notification.

fortunately, there are now modems that take care of this.  When they detect an incomming call, they don't let the call waiting signal through, isntead they alerr the user.  The user can then use the modem to switch to the other call (keeping the connection open!)  You can switch back and forth between the incomming call and the connection freely.  Of course you still need call waiting.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
You can't do it yourself because the phone line is engaged when you are online. Some ISPs/phone companies provide such a feature that you will be alerted whenever there is a phone call for you when you are online. The way it works is that when the phone company detects someone is phoning you and you are online the server will notify the client you have installed on your computer. Have a look at
nietod and chensu are both correct.  Basically, there is no way with a standard modem and a standard phone line (with or without call waiting).  You will have to buy a special modem and/or subscribe to a service (which may or may not be available in your area).

IMHO you would be better off with a second phone line for your modem calls (local calls only [i.e., never pay any long distance charges, and never fall for any carrier's $5.95/month "free" long distance plan]), never answer it, no call waiting, no caller ID, no call forwarding, etc.

One alternative that may be available in your area is a cable (as in TV) modem.  Just watch out for great response now (very few subscribers) and slow(er) response later (as more subscribers sign up), an agreement to use the cable company's ISP (at a horrible price), and the cost of "additional" equipment (such as the cable modem itself).
rdfAuthor Commented:
Didn't know who to give the points to, so I just picked nietod because he was first, although I appreciate the other comments

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.