How to call phone number

Nader

Well-known member
Joined
Oct 9, 2008
Messages
55
Programming Experience
Beginner
I'm using VB.Net 2005. I want to to know if I can use a code to connect with vb and line phone(modem). it's mean:
If I have a TextBox on the form and insert a number of telephone. and call the number from TextBox. it must call this number from the phone line that connect to PC.
 
I'm using VB.Net 2005. I want to to know if I can use a code to connect with vb and line phone(modem). it's mean:
If I have a TextBox on the form and insert a number of telephone. and call the number from TextBox. it must call this number from the phone line that connect to PC.
Like Skype does, right?
 
Go to the command prompt

which is this thing:

Command%20Prompt%20window.gif
 
I tried but it show and disapear. I can't see it.
What do you mean by this window?

Are you telling me you don't know how to open a DOS window on your computer, and type things into it?

This is a DOS window/command prompt:
g_dos_window_668x331.gif


Do you know what it is? Do you know how to use it?

If not.. we'll scrap that line of enquiry. Look up how to use a serial port in VB.NET, and send the command:

ATDT012345

Where 012345 is the phone number to dial
 
I looked to the Communication >> Hyper Terminal >> Connect to on PC , and found that it using the modem to call Phone number. so I inserted the name of modem in the : mdPhone.Port , But didn't succeed.

VB.NET:
Imports ATSMS
Dim mdPhone As New GSMModem
mdPhone.Port = "I entere the name of modem"
txtPhoneNumber.Text = mdPhone.MSISDN
 
it's normal phone not mobile.
I cant' understand what do you mean GSM but here is the pic of modem on my pc.
 

Attachments

  • Modem.JPG
    Modem.JPG
    10.4 KB · Views: 57
Last edited:
GSM is a mobile telephone network system, I don't think your modem is GSM. Why don't you just get a serial port tutorial out and send the command ATDT01234567890 into the serial port? It will cause the modem to dial 01234567890
 
Back
Top