如何捕获一个电话号码电话号码

2023-09-03 17:32:12 作者:╰髮型吥能亂ぷ

我在找创建在vb.net或C#.NET Windows应用程序,将捕获来电的电话号码。这将是一个陆线。什么硬件要求是什么?其中.NET库将使用?

I'm looking to create a windows application in vb.net or c#.net that will capture the phone number of incoming calls. This would be a land line. What would the hardware requirements be? Which .Net libraries would be used?

推荐答案

您将需要一个最近的调制解调器,支持来电大头贴及Windows支持的。 Windows提供了说话的叫电话应用程序编程接口的调制解调器,又名TAPI的API。不幸的是,这个API 不能轻易地从管理code 的访问。

You'll need a recent modem that supports Caller ID and is supported by Windows. Windows provides an API for talking to the modem called Telephony Application Programming Interface, a.k.a. TAPI. Unfortunately, this API cannot easily be accessed from managed code.

您最好的说明了访问来电显示在管理code的选择将是使用一个免费或共享软件TAPI的OCX控件,坐在TAPI API之上的,其中大部分应该有一个简单的API,将给你的来电号码。谷歌这样的事情'TAPI OCX或TAPI来电显示,看看有什么可用。

Your best bet for getting access to Caller ID in managed code would be to use one of the free or shareware TAPI OCX controls that sit on top of the TAPI API, most of them should have a simple API that would give you the incoming number. Google for something like 'TAPI OCX' or 'TAPI Caller ID' to see what's available.