首页 新闻 论坛 群组 Blog 文档 下载 读书 Tag 网摘 搜索 .NET Java 游戏 视频 人才 外包 培训 数据库 书店 程序员
中国软件网
欢迎您:游客 | 登录 注册 帮助
  • .NET 客户端如何获取来电显示的电话?需要什么硬件? [已结贴,结贴人:mengyang]
    进入用户个人空间
    加为好友
    发送私信
    在线聊天
    • mengyang
    • 等级:
    • 可用分等级:
    • 总技术分:
    • 总技术分排名:
    • 揭贴率:
    发表于:2008-08-21 13:15:18 楼主
    如题,请教大家,有谁知道,请多多指教。
    谢谢,分数不够再加。
    100  修改 删除 举报 引用 回复
    进入用户个人空间
    加为好友
    发送私信
    在线聊天
    • wapit
    • 等级:
    • 可用分等级:
    • 总技术分:
    • 总技术分排名:
    发表于:2008-08-21 13:17:281楼 得分:0
    具备来电显示功能的Modem就可以了.
    修改 删除 举报 引用 回复
    进入用户个人空间
    加为好友
    发送私信
    在线聊天
    • wapit
    • 等级:
    • 可用分等级:
    • 总技术分:
    • 总技术分排名:
    发表于:2008-08-21 13:19:422楼 得分:0
    买个这种猫, 装好驱动后, 用超级终端连上, 然后打电话进来, 你会看到超级终端上有相应的提示, 以及号码......剩下的就不用说了吧.........
    修改 删除 举报 引用 回复
    进入用户个人空间
    加为好友
    发送私信
    在线聊天
    • blestcc
    • 等级:
    • 可用分等级:
    • 总技术分:
    • 总技术分排名:
    发表于:2008-08-21 13:22:173楼 得分:0
    調制解調器及相關驅動
    修改 删除 举报 引用 回复
    进入用户个人空间
    加为好友
    发送私信
    在线聊天
    • mengyang
    • 等级:
    • 可用分等级:
    • 总技术分:
    • 总技术分排名:
    发表于:2008-08-21 13:37:574楼 得分:0
    谁有做过相关的东西啊?指点一下
    修改 删除 举报 引用 回复
    进入用户个人空间
    加为好友
    发送私信
    在线聊天
    • zds1010
    • 等级:
    • 可用分等级:
    • 总技术分:
    • 总技术分排名:
    发表于:2008-08-21 13:43:235楼 得分:10
    我感觉你是不是要做一键通类型的东西啊,一般的短信猫是一种方式,还有就是你到网通多是电信他们都有这样的硬件,一般的都留有这样的接口的~~~
    修改 删除 举报 引用 回复
    进入用户个人空间
    加为好友
    发送私信
    在线聊天
    • mengyang
    • 等级:
    • 可用分等级:
    • 总技术分:
    • 总技术分排名:
    发表于:2008-08-21 13:47:436楼 得分:0
    不是,一个12319电话,我们只是做一个小功能,但是系统需要自动获取客户的来电,
    我问网通的小姑娘了,她们不知道
    修改 删除 举报 引用 回复
    进入用户个人空间
    加为好友
    发送私信
    在线聊天
    • happycharles
    • 等级:
    • 可用分等级:
    • 总技术分:
    • 总技术分排名:
    发表于:2008-08-21 13:56:587楼 得分:0
    我们做过的都是呼叫中心的,需要硬件设备支持。
    修改 删除 举报 引用 回复
    进入用户个人空间
    加为好友
    发送私信
    在线聊天
    • yagebu1983
    • 等级:
    • 可用分等级:
    • 总技术分:
    • 总技术分排名:
    发表于:2008-08-21 13:57:028楼 得分:0
    用Modem!!
    修改 删除 举报 引用 回复
    进入用户个人空间
    加为好友
    发送私信
    在线聊天
    • xiaolukatie
    • 等级:
    • 可用分等级:
    • 总技术分:
    • 总技术分排名:
    发表于:2008-08-21 14:06:559楼 得分:20
    有个 CncallCtc ActiveX控件
    不过是厂家提供的,所以你可以联系这种厂家。
    银行,电信基本都是用这种的,来用于客服部门
    修改 删除 举报 引用 回复
    进入用户个人空间
    加为好友
    发送私信
    在线聊天
    • mengyang
    • 等级:
    • 可用分等级:
    • 总技术分:
    • 总技术分排名:
    发表于:2008-08-21 14:10:2610楼 得分:0
    引用 9 楼 xiaolukatie 的回复:
    有个 CncallCtc ActiveX控件
    不过是厂家提供的,所以你可以联系这种厂家。
    银行,电信基本都是用这种的,来用于客服部门


    这个厂家叫什么名字,我查查,
    修改 删除 举报 引用 回复
    进入用户个人空间
    加为好友
    发送私信
    在线聊天
    • Guyschaos
    • 等级:
    • 可用分等级:
    • 总技术分:
    • 总技术分排名:
    发表于:2008-08-21 14:11:3711楼 得分:20
    引用 2 楼 wapit 的回复:
    买个这种猫, 装好驱动后, 用超级终端连上, 然后打电话进来, 你会看到超级终端上有相应的提示, 以及号码......剩下的就不用说了吧.........

    还会提供接口以方便二次开发!以前搞过!不过现在想不起来具体叫啥,可以去网上找找看,可以提供试用的,还有一些相关的接口也会提供给你!
    修改 删除 举报 引用 回复
    进入用户个人空间
    加为好友
    发送私信
    在线聊天
    • LQknife
    • 等级:
    • 可用分等级:
    • 总技术分:
    • 总技术分排名:
    发表于:2008-08-21 14:40:3312楼 得分:0
    好高深 帮顶
    修改 删除 举报 引用 回复
    进入用户个人空间
    加为好友
    发送私信
    在线聊天
    • grandhong
    • 等级:
    • 可用分等级:
    • 总技术分:
    • 总技术分排名:
    发表于:2008-08-21 14:59:1313楼 得分:0
    看不懂,唉!!!
    修改 删除 举报 引用 回复
    进入用户个人空间
    加为好友
    发送私信
    在线聊天
    • xiaolukatie
    • 等级:
    • 可用分等级:
    • 总技术分:
    • 总技术分排名:
    发表于:2008-08-21 16:02:3414楼 得分:50
    http://www.cncall.com/
    华呼公司
    一般是做呼叫系统用的
    如果你只是简单的想要获得来电号码,可能这个会大材小用了点,而且浪费经济。
    其他的我就不清楚了,希望对楼主有所帮助
    修改 删除 举报 引用 回复
    进入用户个人空间
    加为好友
    发送私信
    在线聊天
    • wapit
    • 等级:
    • 可用分等级:
    • 总技术分:
    • 总技术分排名:
    发表于:2008-08-21 17:04:4615楼 得分:0
    引用 2 楼 wapit 的回复:
    买个这种猫, 装好驱动后, 用超级终端连上, 然后打电话进来, 你会看到超级终端上有相应的提示, 以及号码......剩下的就不用说了吧.........


    其实就是个串口编程. 没你想的那么复杂.

    串口连上Modem后, 有电话进来时, Modem会对串口发送如"Ring 12345678\n"类似的ASCII字符串(具体格式忘了). 你捕获到这个字符串再进行一下分析, 号码就出来了.

    可以先用普通Modem, 用超级终端连上试下. 就像在超级终端打入: AT换行, 会显示一个:OK给你一样. 具体的, 上网查查吧.
    修改 删除 举报 引用 回复
    进入用户个人空间
    加为好友
    发送私信
    在线聊天
    • wapit
    • 等级:
    • 可用分等级:
    • 总技术分:
    • 总技术分排名:
    发表于:2008-08-21 17:06:2516楼 得分:0
    而且C# 2005开始自带有System.IO.SerialPort串口控件, 还有相关的事件, 要实现这个功能很方便很简单了.
    修改 删除 举报 引用 回复
    进入用户个人空间
    加为好友
    发送私信
    在线聊天
    • qiujb
    • 等级:
    • 可用分等级:
    • 总技术分:
    • 总技术分排名:
    发表于:2008-09-26 17:55:5817楼 得分:0
    用moden的功能,可以很轻松的完成LZ想要的功能,至于.net 用mscomm控件则可接收来电电话,附上源码:
    C# code
    using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; using System.Data; using System.Text.RegularExpressions; using System.Xml; namespace incomingtelegramdisplay { /// <summary> /// Form1 的摘要说明。 /// </summary> public class Form1 : System.Windows.Forms.Form { private AxMSCommLib.AxMSComm com; private System.Windows.Forms.RichTextBox rtfTerminal; /// <summary> /// 必需的设计器变量。 /// </summary> private System.ComponentModel.Container components = null; private System.Windows.Forms.Label lblPhoneNum; private System.Windows.Forms.Button button1; private System.Windows.Forms.Button button2; private System.Windows.Forms.Label label1; private string callinfo=""; public Form1() { // // Windows 窗体设计器支持所必需的 // InitializeComponent(); // // TODO: 在 InitializeComponent 调用后添加任何构造函数代码 // // Initialize the COM Port control InitComPort(); // Send data out through the COM port //com.Output = "Serial Terminal Initialized"; com.Output="at+vcid=1"+"\r"; } private void InitComPort() { try { // Set the com port to be 1 com.CommPort = 3; // This port is already open, close it to reset it. if (com.PortOpen) com.PortOpen = false; // Trigger the OnComm event whenever data is received com.RThreshold = 1; com.SThreshold=0; // Set the port to 9600 baud, no parity bit, 8 data bits, 1 stop bit (all standard) com.Settings = "9600,n,8,1"; // Force the DTR line high, used sometimes to hang up modems com.DTREnable = true; // No handshaking is used com.Handshaking = MSCommLib.HandshakeConstants.comNone; // Don't mess with byte arrays, only works with simple data (characters A-Z and numbers) com.InputMode = MSCommLib.InputModeConstants.comInputModeText; //com.InputMode = MSCommLib.InputModeConstants.comInputModeBinary; // Use this line instead for byte array input, best for most communications //com.InputMode = MSCommLib.InputModeConstants.comInputModeText; // Read the entire waiting data when com.Input is used com.InputLen = 0; // Don't discard nulls, 0x00 is a useful byte com.NullDiscard = false; // Attach the event handler com.OnComm += new System.EventHandler(this.OnComm); // Open the com port com.PortOpen = true; //com.Output = "Serial Terminal Initialized"; } catch(Exception e) { MessageBox.Show(e.Message); } } private void OnComm(object sender, EventArgs e) // MSCommLib OnComm Event Handler { this.callinfo=callinfo+com.Input.ToString(); this.rtfTerminal.Text=this.callinfo; infoToken(this.rtfTerminal.Text); } private void infoToken(string temp) { //DATE = 0106 //TIME = 0219 //NMBR = 21156896 // Build a regular expression to match data that Regex r = new Regex(@"NMBR\s=\s[0-9]*"); string num=""; // Cycle through the matches for (Match m = r.Match(temp); m.Success; m = m.NextMatch()) { // Display the result to the 'Output' debug window //this.lblPhoneNum.Text=m.Value; num=m.Value; } num=num.Substring(7); this.lblPhoneNum.Text=num; } private void ProcessComData(string input) { // Send incoming data to a Rich Text Box rtfTerminal.AppendText(input + "\n"); } /// <summary> /// 清理所有正在使用的资源。 /// </summary> protected override void Dispose( bool disposing ) { if( disposing ) { if (components != null) { components.Dispose(); } } base.Dispose( disposing ); } #region Windows 窗体设计器生成的代码 /// <summary> /// 设计器支持所需的方法 - 不要使用代码编辑器修改 /// 此方法的内容。 /// </summary> private void InitializeComponent() { System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Form1)); this.com = new AxMSCommLib.AxMSComm(); this.rtfTerminal = new System.Windows.Forms.RichTextBox(); this.lblPhoneNum = new System.Windows.Forms.Label(); this.button1 = new System.Windows.Forms.Button(); this.button2 = new System.Windows.Forms.Button(); this.label1 = new System.Windows.Forms.Label(); ((System.ComponentModel.ISupportInitialize)(this.com)).BeginInit(); this.SuspendLayout(); // // com // this.com.Enabled = true; this.com.Location = new System.Drawing.Point(16, 192); this.com.Name = "com"; this.com.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("com.OcxState"))); this.com.Size = new System.Drawing.Size(38, 38); this.com.TabIndex = 0; // // rtfTerminal // this.rtfTerminal.Location = new System.Drawing.Point(24, 24); this.rtfTerminal.Name = "rtfTerminal"; this.rtfTerminal.Size = new System.Drawing.Size(240, 120); this.rtfTerminal.TabIndex = 1; this.rtfTerminal.Text = "richTextBox1"; // // lblPhoneNum // this.lblPhoneNum.Location = new System.Drawing.Point(104, 160); this.lblPhoneNum.Name = "lblPhoneNum"; this.lblPhoneNum.Size = new System.Drawing.Size(160, 23); this.lblPhoneNum.TabIndex = 2; this.lblPhoneNum.Text = "label1"; // // button1 // this.button1.Location = new System.Drawing.Point(96, 208); this.button1.Name = "button1"; this.button1.TabIndex = 3; this.button1.Text = "button1"; this.button1.Click += new System.EventHandler(this.button1_Click); // // button2 // this.button2.Location = new System.Drawing.Point(192, 208); this.button2.Name = "button2"; this.button2.TabIndex = 4; this.button2.Text = "记录号码"; this.button2.Click += new System.EventHandler(this.button2_Click); // // label1 // this.label1.Location = new System.Drawing.Point(24, 160); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(72, 23); this.label1.TabIndex = 5; this.label1.Text = "来电号码:"; // // Form1 // this.AutoScaleBaseSize = new System.Drawing.Size(6, 14); this.ClientSize = new System.Drawing.Size(288, 246); this.Controls.Add(this.label1); this.Controls.Add(this.button2); this.Controls.Add(this.button1); this.Controls.Add(this.lblPhoneNum); this.Controls.Add(this.rtfTerminal); this.Controls.Add(this.com); this.Name = "Form1"; this.Text = "Form1"; this.Load += new System.EventHandler(this.Form1_Load); ((System.ComponentModel.ISupportInitialize)(this.com)).EndInit(); this.ResumeLayout(false); } #endregion /// <summary> /// 应用程序的主入口点。 /// </summary> [STAThread] static void Main() { Application.Run(new Form1()); } private void Form1_Load(object sender, System.EventArgs e) { } private void button1_Click(object sender, System.EventArgs e) { string a="DATE = 0106 TIME = 0219 NMBR = 21156896"; infoToken(a); } private void button2_Click(object sender, System.EventArgs e) { string fileName="..\\incomingPhoneNumber.xml"; XmlTextWriter tw=new XmlTextWriter(fileName,null); tw.Formatting=Formatting.Indented; tw.WriteStartDocument(); tw.WriteStartElement("IncomingCall"); tw.WriteElementString("PhoneNumber",this.lblPhoneNum.Text); tw.WriteEndElement(); tw.WriteEndDocument(); tw.Flush(); tw.Close(); } } }
    修改 删除 举报 引用 回复

    网站简介广告服务网站地图帮助联系方式诚聘英才English 问题报告
    北京创新乐知广告有限公司 版权所有 京 ICP 证 070598 号
    世纪乐知(北京)网络技术有限公司 提供技术支持
    Copyright © 2000-2008, CSDN.NET, All Rights Reserved