当前位置:编程学习 > C#/ASP.NET >>

tapi32.dll 中的 tapiRequestMakeCall函数问题

我用tapi32.dll 中的 tapiRequestMakeCall函数,接上modem实现pc拨打电话.出现以下连个问题:

1.只能拨内线,我们公司拨外线要先拨 0 我试过 0,844123456 拨不了,但是在windows自带的电话拨号程序却可以.我该怎样把
0,844123456 传到 tapiRequestMakeCall 函数实现拨外线.

2.拨内线拨通后能听对方声音,对方却不能听到我的声音.(怀疑是modem问题.modem是笔记本自带的.)

附上源代码:

public partial class Form2 : Form
    {
        public Form2()
        {
            InitializeComponent();
        }

        [DllImport("tapi32.dll")]
        public static extern void tapiRequestMakeCall(string strNumber,string a,string b,string c);  

        private void button1_Click(object sender, EventArgs e)
        {
            string strnumber=this.txtPhoneNumber.Text;


            if(strnumber.Length<1)


            return;


            try
            {
                tapiRequestMakeCall(strnumber,"拨号",strnumber,"");
            }
            catch(Exception Err)
            {
                MessageBox.Show("拨号失败:" + Err.Message,"信息提示",MessageBoxButtons.OK,MessageBoxIcon.Information);
            }

        }
    } --------------------编程问答-------------------- --------------------编程问答-------------------- 没有人做过相关的项目吗?......... --------------------编程问答-------------------- http://blog.csdn.net/mmzsyx/archive/2008/08/04/2767906.aspx
http://www.1230.com.ru/api/T/tapiRequestMakeCall/ --------------------编程问答-------------------- 谢谢 gisyellow 的回复,不过对于问题1.拨外线问题还是没有解决方法 --------------------编程问答-------------------- 查看相关说明。
http://msdn.microsoft.com/en-us/library/ms737210(VS.85).aspx --------------------编程问答-------------------- 延时再长一些试试

0,,844123456
补充:.NET技术 ,  C#
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,