Solved

Phone connection

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

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

This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…

717 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