简体   繁体   English

我可以通过C#接收调制解调器的电话

[英]Can I receive a phone call over my modem in C#

I'm working a piece of software that in a perfect world would never lose an internet connection, and I could send an audio feed between two clients flawlessly. 我正在使用一个软件,在完美的世界中永远不会失去互联网连接,我可以在两个客户端之间完美地发送音频。 My problem is that this world is far from that. 我的问题是这个世界远非如此。 In the event of a failed internet connection and a dropped audio feed, my service is effectively worthless. 如果互联网连接失败并且音频输入丢失,我的服务实际上毫无价值。

My question is this: 我的问题是:

Is there a way in C# to attach to my systems modem and either make a call, or receive a call, (or preferably both,) and push/play audio to/from two points? C#中是否有一种方法可以连接到我的系统调制解调器并拨打电话,或接听电话(或最好是两者)并向/从两点推送/播放音频?

The approach is deprecated, but nearly a necessity in my scenario, and I couldn't find much on Google, so any help would be appreciated. 该方法已被弃用,但在我的方案中几乎是必需的,而且我在Google上找不到多少,所以任何帮助都会受到赞赏。

Thanks ahead of time. 提前谢谢。

No, modems (dial-up I assume you mean) do not have the ability to insert raw audio on a pots line (perhaps if you rewrite the driver though) but you may want to look into asterisk that has some really cool stuff you can mess with. 不,调制解调器(拨号,我认为你的意思是)没有能力在花盆线上插入原始音频(可能如果你重写了驱动程序),但你可能想要查看星号,它有一些非常酷的东西,你可以一塌糊涂。 But to the main point unless you forget the modem and use an ip-phone solution the answer is no. 但除非你忘记调制解调器并使用ip-phone解决方案,否则答案是否定的。

You should look at using a service like Twilio to handle voice calling. 您应该考虑使用像Twilio这样的服务来处理语音呼叫。 They have a .net client: http://www.twilio.com/docs/libraries 他们有一个.net客户端: http//www.twilio.com/docs/libraries

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM