获取来电显示(来电号码) [英] get caller id(caller number)

查看:452
本文介绍了获取来电显示(来电号码)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个电话簿,该电话簿必须显示那些如何打给我的电话号码,这样我就可以通过我的软件获取来电者的号码或ID

我已经编写了可以获取人员编号并打电话给他们的软件,所以我确定我的调制解调器支持该软件.

现在,我想用C#编写软件,以获取那些如何拨打我的家庭电话的电话号码,并将其显示在文本框中.只是数量和其他事物无关紧要.

I want to create a phone book, this phone book must show the number of those how call me so I can get the caller number or ID by my software

I have written the software that get the persons number and call them so I am sure my modem supports it.

Now i want to write software in C# to get the phone number of those how are calling my home phone and show it in a text box. Just the number and other things are not matter.

How can I get the caller ID in c#?

推荐答案

您是在谈论移动电话,VoIP部署还是家庭电话?

如果这是您的家庭电话,则不太可能发生.从理论上讲,您可以在调制解调器级别编写一些内容,但这对于刚起步的人来说是一项艰巨的任务.

同样,对于手机而言,这种情况不太可能发生.该电话拥有呼叫链,但我不认为有API可以访问WP7中的呼叫历史记录.

对于VoIP,您需要首先为所讨论的VoIP系统找到一个.Net库.此时,您可以评估虚拟呼叫管理器中的事件或读取CDR日志.

干杯.
Are you talking about a mobile phone, a VoIP deployment or your home phone?

If it''s your home phone, not likely going to happen. You could, in theory, write something at the modem level, but that''s a big task for someone just starting out.

For mobile phone, again, not likely going to happen. The phone owns the call chain and I don''t think there''s an API to access call history in WP7.

For VoIP, you''ll need to start by finding a .Net library for the VoIP system in question. At that point you can evaluate events from the virtual call manager or read CDR logs.

Cheers.


太好了,因此,如果您以前曾在该级别的编码上工作过,我们只需要知道问题出在哪里.

此处的大量文章此处位于CP [ ^ ]基于串行端口调制解调器搜索.

这是一种在调制解调器上测试呼叫者ID支持的方法以及示例结果字符串: https://secure.mtnsys.com/Pages/howto/htmdmtst.htm [ ^ ].

它说"AT#CID = 1或AT + VCID = 1"是大多数调制解调器用来激活设备本身上的呼叫ID的字符串.如果您的情况不正确,则需要检查调制解调器文档.

干杯.
Great, so if you''ve worked at that level of coding before, we just need to know where it is you''re having trouble.

Here''s a number of articles here on CP[^] based on a serial port modem search.

And here''s a way to test for caller id support on your modem, along with the sample result string: https://secure.mtnsys.com/Pages/howto/htmdmtst.htm[^].

It says that "AT#CID=1 or AT+VCID=1" are the strings that most modems use to activate call id on the unit itself. You''ll need to check your modem documentation if that''s not correct in your case.

Cheers.


这篇关于获取来电显示(来电号码)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆