private void btnAnswer_Click(object sender, EventArgs e) { frmInCall form = new frmInCall(m_CallID, m_AccountID, m_RemoteNumber); form.Show(); m_Phone.AnswerCall(0, m_CallID); this.Close(); }
/// <summary> /// 拨号 /// </summary> /// <param name="number">号码</param> /// <param name="video">是否视频电话</param> private void MakeCall(string number, bool video) { if (number.Length == 0) { return; } if (!m_MainForm.IsRegister) { MessageBox.Show("没有注册到服务器,不能拨打电话"); return; } /*if (m_Phone.GetCallCount() > 0) * { * MessageBox.Show("超过最大呼叫数[1]"); * return; * }*/ frmInCall form = new frmInCall(0, -1, number); form.Show(); form.MakeCall(number, video, 0); }