如何使用C#程序拨打电话? [英] how to make phone call using C# program?
本文介绍了如何使用C#程序拨打电话?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以使用c#程序或.net框架拨打语音电话?
推荐答案
请参考以下链接得到一些想法。
手机 - 就像C#中的键盘控制 [ ^ ]
http://stackoverflow.com/questions/4785786/dial-mobile-phone-via-c-sharp-program [ ^ ]
Please refer the below link you may get some idea.
Mobile Phone - like keyboard control in C#[^]
http://stackoverflow.com/questions/4785786/dial-mobile-phone-via-c-sharp-program[^]
您好Ganesh,
您可以使用电话应用程序编程接口(TAPI)或Skype API或twilio API或Asterix。
使用TAPI:
创建你的第一个TAPI应用程序
TAPI-3-0-Application-development-using-C-NET
更多... TAPI在codeproject上搜索结果
使用Skype API:
skypekit
使用Twilio:
图书馆
宣布.NET,C#Helper Library for Twilio
< a href =http://www.proworks.com/blog/2010/11/22/adventures-in-twilio-and-c/> Twilio和C#中的冒险
使用Asterix:
第1步 - 获取服务器安装Asterix就可以了。 http://www.asterisk.org。它是开源的。
第2步 - 获得支持的硬件,例如http://www.asterisk.org/hardware
步骤3 - 使用http://sourceforge.net/projects/asterisk-dotnet/与其进行通信(打开源码c#到星号库。
如果回复有帮助你把它标记为你的答案。谢谢!!
Hi Ganesh,
You can use Telephony Application Programming Interface(TAPI) or Skype API or twilio API or Asterix.
Using TAPI :
Creating-your-first-TAPI-application
TAPI-3-0-Application-development-using-C-NET
More ... TAPI search result on codeproject
Using Skype API :
skypekit
Using Twilio :
libraries
Announcing the .NET, C# Helper Library for Twilio
Adventures in Twilio and C#
Using Asterix :
Step 1 - Get a server install Asterix on it. http://www.asterisk.org. It's open source.
Step 2 - Get supported hardware e.g. http://www.asterisk.org/hardware
Step 3 - Communicate to it with http://sourceforge.net/projects/asterisk-dotnet/ (open source c# to asterisk library.
If the reply help you mark it as your answer. thanks!!
您可以尝试这样的事情.... C#Win32应用程序
You could try something like this....C# Win32 application
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.IO.Ports;
namespace WindowsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
SerialPort sp = new SerialPort();
sp.PortName = "COM10";
sp.BaudRate = 9600;
sp.Parity = Parity.None;
sp.DataBits = 8;
sp.StopBits = StopBits.One;
sp.Handshake = Handshake.XOnXOff;
sp.DtrEnable = true;
sp.RtsEnable = true;
sp.Open();
if (!sp.IsOpen)
{
MessageBox.Show("Serial port is not opened");
return;
}
sp.WriteLine("AT" + Environment.NewLine);
sp.WriteLine("ATD=\"" + "Destination Number;" + "\"" + Environment.NewLine);
}
}
}
这篇关于如何使用C#程序拨打电话?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文