?
Solved

Phone connection

Posted on 2006-06-21
3
Medium Priority
?
253 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 2000 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
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…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses
Course of the Month12 days, 7 hours left to enroll

777 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