private void IncomingSession(object sender, SessionEventArgs e) { //TODO: if ( null != activeSession ) //{ // statusBar.Text = "Incoming Session ignored"; // e.Session.Terminate( TerminationReason.Busy ); //} // else RtcDlg dlg = new RtcDlg(rtcClient, e.Session); dlg.Show(); }
public void StartConversation(string sipAddress, string firstName, string lastName, string subject, string context) { if (sipAddress != null && sipAddress.StartsWith("sip:")) { RtcDlg dlg = new RtcDlg(rtcClient, sipAddress, firstName, lastName, subject, context); if (!RtcDlg.ExistingRequest) { // v1.01 made this a ShowDialog() but that is broken because the // agent needs to handle IM and other things at the same time. Using // a modal dialog here is incorrect. This was fixed again in v1.02 dlg.Show(); } else { MessageBox.Show(localize.RTCLIB_TEXTMSG_UNABLE, Application.ProductName); } } }