使电话连接到调制解调器振铃
我有一部旧的固定电话,正在寻找一种方法,使其在连接到我的家庭服务器的调制解调器时响起。我想用它作为构建被破坏时的通知以及类似的东西。与大多数调制解调器一样,我的服务器中的调制解调器有两个线路插孔,一个用于数据,一个用于电话。由于我只能以编程方式操作数据线,所以我猜我必须将手机插入数据线并以某种方式模拟连接,但这就是我绘制空白的地方。
我已经阅读了有关电话窃听和电话铃声电路的内容,但我不确定如何将其转换为代码(如果有的话)。我无法想象我是唯一一个考虑这个问题的人,所以我猜这要么不可能,要么太难实现。任何帮助都很棒。谢谢。
I have an old landline phone and am looking for a way to make it ring when it's connected to the modem of my home server. I want to use it as a notification when a build is broken and stuff like that. Like most modems, the one in my server has two line jacks, one for data and one for a phone. Since I can only programmatically manipulate the data line, I'm guessing I'm going to have to plug the phone into the data line and simulate a connection somehow but that's where I'm drawing a blank.
I've read up on phone phreaking and telephone ringing circuits but I'm not real sure how that would translate to code, if at all. I can't imagine I'm the only one to think about this so I'm guessing it's either not possible or too hard to be practical. Any help is great. Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
产生振铃功率超出了调制解调器的能力。拨打电话的唯一方法是实际上有两条真正的交换机线路,将电话连接到一条,将调制解调器连接到另一条,然后实际拨打电话。
Generating ringing power is beyond the capabilities of modems. The only way you could ring the phone is to actually have two real switch lines, connect the phone to one, modem to the other and actually call the phone.
我曾经将万用表放在电话线上,然后让它响。这可能是 20 多年前的事了,但我仍然记得:线路电压高达 90 多伏(交流)。所以我猜手机预计会看到 90v 信号才会响铃。调制解调器似乎不太可能发出该信号,而且调制解调器也不太可能提供必要的电流(正如马丁所说)。
我有一个想法,但这取决于您的电话线路提供商。我不知道它是否仍然有效,但几年前在澳大利亚,您可以拨打某个短号码然后挂断电话,交换机会立即给您回电。我想对于电话技术人员测试线路非常有用。因此,如果您可以查明您的提供商是否有可以执行此操作的号码,您所要做的就是命令调制解调器拨打该号码,然后挂断电话。然后,您可以继续监视线路,并在响铃几次后,告诉调制解调器拿起并再次挂断以使其停止响铃。
这是一个根本不使用调制解调器的想法。您可以连接到 VOIP 服务(其中某些服务必须有 API),然后只需通过该服务拨打您的电话号码即可。你永远不会回答,所以它永远不会花费任何费用。
I once put my multimeter across the phone line and then made it ring. This was probably 20+ years ago, but I still remember: the line went up to 90+ volts (AC). So I guess the phone expects to see a 90v signal for it to ring. It seems highly unlikely that the modem would be able to emit that signal, and also unlikely that the modem could provide the necessary current (as Martin said).
I have one idea but it will depend on your phone line provider. I don't know if it still works, but years ago in Australia you could dial a certain short number and then hang up, and the exchange would call you back right away. Very useful for the phone tech to test the line I guess. So if you can find out if your provider has a number that does that, all you have to do is command the modem to dial that number and then hang up. Then you can keep monitoring the line and after it rings a few times, tell the modem to pick up and hang up again to make it stop ringing.
Here's an idea that doesn't use the modem at all. You could connect to a VOIP service (there must be APIs for some of them) and just dial your phone number through that. You'd never answer so it would never cost anything.
有人在 2004 年问过类似的问题,并在 2010 年得到答复。供您参考:http://www.overclockers.com/forums/archive/index.php/t-283831.html
Someone asked similar question in 2004 and get answered in 2010. for your reference: http://www.overclockers.com/forums/archive/index.php/t-283831.html
您必须使用固定电话吗?
如果服务器已连接到互联网,则每当构建失败时,您都可以拨打您的手机(或发送短信)。
否则,您可以将扬声器连接到服务器,并在需要时通过扬声器播放铃声。
Do you have to use a land line phone?
If the server is connected to the internet you could ring your mobile (or send an sms message) whenever a build fails.
Otherwise you could hook up speakers to the server and play a ring tone through the speakers whenever you need to.