Hey guys how would I go about dialing a number through my modem? I searched the forums and Google but only found ways to do it with the Window's stupid built in phone dialer. I need to dial to number, verify if it has been picked up or if the call has ended (or gone to voicemail)
Last edited by Datacide; Jan 25th, 2006 at 09:51 PM.
I can't help you with the person picking up the phone. I Guess that you would have to read from the line. Have you tried Using MSCOMM? You can see if they have picked up or not using that. I don't know if there's a way to tell if it's gone to vioce mail. If you want to do it the manual way try this code...
VB Code:
PhoneNumber$ = "(123)456-7890"
Open "COM3" For Output As #1 'or what ever your modem's COM port is.
Print #1, "ATDT" & PhoneNumber$ & Chr$(13) 'Chr 13 is like 'Enter'
Hmm worked for me :s Did you put it on the right COM port?
I have to get off now, but when i come back tommorow, if no one has solved it, i'll post how to use the MSCOMM.
lol that worked the first time I ran it then my modem stopped working completely. Probably my fault. This is pefect though just gotta figger out what's wrong with my system. Thanx!
Last edited by Datacide; Jan 15th, 2006 at 06:38 PM.
Now, does anyone know how I can detect if the phone has be picked up? I know I can change the system sound input/output to the modem so how can I tell if the modem is picked up using the microphone?
..or better yet can the MSComm control detect if the phone has been answered?
Last edited by Datacide; Jan 15th, 2006 at 06:06 PM.
This sucks I have less tha 2 hours to figure this out. I can get it to call no problem. There's gotta be a MSComm event to see if the phone is ringing/not ringing. Or at least is there a distiguisable sound (tone or click) when the person picks up the phone?
Any suggestions would be ubelievably gratefully appreciated.
Ok I've now got a personal aspiration to solve this problem. Many hours of Googling only turns up hundreds of other people asking the same question. Turns out that there is no way at all to use the MSComm or modem to detect if the phone has been answered for voice calls. I think I may have found a solution though...
Originally Posted by Datacide
Just wondering...
When a phone is idle, it has 20 volts on the line.
When it rings it jumps up to 48 volts then down 10 volts when answered.
Is there any way to detect this, by like listening for 10 volts?
Well there is a way somewhat, but it involes building a simple device that can be controlled with the MSComm control. Here's the link . Basically it's a serial volt-meter. I could use it measure the volts on the line. What are your thoughts on doing it this way?
Yes, what you discovered is right, you can't detect if phone is picked up with a modem or MSComm.
But... I don't know how acceptable it might be for you: You can detect the phone rings, and when it stops ringing, you can assume the phone is ansered...
Yes, what you discovered is right, you can't detect if phone is picked up with a modem or MSComm.
But... I don't know how acceptable it might be for you: You can detect the phone rings, and when it stops ringing, you can assume the phone is ansered...
I was wondering how does the computer know when you dialup a connection that it has been established?
Because the computer it calls plays a tone when it answers that calling computer listen for. Unfortunately voice lines don't play a tone when it is answered.
That wont work. What about my idea for checking the voltage?
Yea, that will work for sure, but do you know how to build that device ? I know electronics, I would know how to build it... but that wouldn't help you
Anyways, check out these 2 threads that are "kind of" related... Sound Recognition [ Solved ], VB - Tone Recognition. Maybe those threads will help you...
Originally Posted by Andrew G
I was wondering how does the computer know when you dialup a connection that it has been established?
Well, the modem is analog, so I assume the dialing modem sends some data (as sound), and the receiver replies when it undertands that message, kind of like a ping, when the sender received something from the receiver, then it knows it establised a connection.
Does anyone know how I can detect if the phone has be picked up?
Originally Posted by Datacide
Turns out that there is no way at all to use the MSComm or modem to detect if the phone has been answered for voice calls
Appearently there is a way. I found that there is software to that can do this so I did a little more Googling and found some source code through Google Groups that does just that. Since this is very popular and requested alot, whoever wants the link can send me a PM. I'd post it here but it's very valuable and I'm sure you'd want to sell any software you make with this code. (I saw this kind of software selling for $300 - $700US )