Controlling A Computer Remotely
Scythe
Join Date: 2002-01-25 Member: 46NS1 Playtester, Forum Moderators, Constellation, Reinforced - Silver

<div class="IPBDescription">DTMF tones.</div> This is what I want to do:
I want my modem to intercept calls from my mobile phone (Using caller ID to recognise the number) after x number of rings. I then want to be able to send DTMF tones down the line and to have my modem recognise them and be able to run programs on my computer. I would like to be able to ring my computer up from anywhere and tell it to dial onto the 'net and then start up a telnet server so I can access files from it anywhere in the world. If anyone knows of a program that would do the job I would very much like to know about it.
I also know a fair bit of C++ so another possibility would be to find some C++ libraries that would allow me access to the modem's functions.
--Scythe--
P.S. Gah, double post. Need some deleteage on the older one.
I want my modem to intercept calls from my mobile phone (Using caller ID to recognise the number) after x number of rings. I then want to be able to send DTMF tones down the line and to have my modem recognise them and be able to run programs on my computer. I would like to be able to ring my computer up from anywhere and tell it to dial onto the 'net and then start up a telnet server so I can access files from it anywhere in the world. If anyone knows of a program that would do the job I would very much like to know about it.
I also know a fair bit of C++ so another possibility would be to find some C++ libraries that would allow me access to the modem's functions.
--Scythe--
P.S. Gah, double post. Need some deleteage on the older one.
Comments
Plskthx.
--Scythe--
As to the why... modems are not generally set up to LISTEN for DTMF tones. They generate them to ring out, sure. But after that, they're checking for carrier. Same as when they pick up. Uses an entirely different range. So you're not only going to have to figure out how to talk to the DSP and figure out what it's saying back, but figure out how to train it to listen for DTMF when offhook, interpret which buttons have been pressed, and then relay that to your daemon one way or another, with feedback.
And before you ask, the way large companies do it is that they have phone systems with the functionality and serial link for a computer interface already in as part of the package. But they DO cost, and quite a bit.
In any case, you have your work cut out for you. Let me know if you ever manage to get it working.
(Oh... and good luck finding a 2400 baud with caller ID, if you choose to go that route)
Anyone know of any links to sites that have code for DTFM recognition? I'm probably way out of my depth here but it's worth a try.
--Scythe--
software-wise, the tones can be generated easy enough i think, a bit of the intarweb's search function should help you here (google that is - use teh search function you nub! <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html/emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif'><!--endemo--> )
they are a set frequency so you should be able to auto-answer a call and just record the pcm data straight from soundcard (or from modem itself, most decent voice modems treat their sound portion as a soundcard so you can just select the modem as device to record from)
you can then do some crazy maths h4x to get the frequency and work from there i'd say (but the sound probly has line noise and such, making this more difficult)
still, where there's a will, there's a way...
-- Codeman