Solved

Phone connection

Posted on 2006-06-21
3
243 Views
Last Modified: 2010-04-16
Is it possible to have an app that can call a number and tell whether or not it connects?
0
Comment
Question by:DoobyWho
3 Comments
 
LVL 25

Accepted Solution

by:
dstanley9 earned 500 total points
ID: 16954501
I assume you mean using a modem on a COM port?  In .NET 2.0 you can use the System.IO.Ports namespace:

http://msmvps.com/blogs/coad/archive/2005/03/23/39466.aspx

In .NET 1.1 you could try using the MSCOMM control to access the modem, send it AT commands, and check for a connection:

Here are some examples of using MSCOMM:

http://support.microsoft.com/default.aspx?scid=kb;en-us;823179  (in VB; just to illustrate using MSCOMM)
http://www.devhood.com/tutorials/tutorial_details.aspx?tutorial_id=320
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dncodefun/html/code4fun12102003.asp

You could then send the AT command to dial, then sink the OnComm event to see what data comes back.  I think the result you want is "OK" but it's been a long time since I've done modem communication.
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

760 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now