Solved

Phone connection

Posted on 2006-06-21
3
248 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
[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
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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

730 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