internal bool SendDTMFTone(char tone, int duration)
        {
            this.DebugTrace("Inside BaseUMconnectivityTester SendDTMFTone", new object[0]);
            bool result;

            lock (this)
            {
                if (this.IsCallGone())
                {
                    this.Error = new TUC_RemoteEndDisconnected();
                    result     = false;
                }
                else
                {
                    ToneId?toneId = BaseUMconnectivityTester.CharToToneId(tone);
                    if (toneId != null)
                    {
                        this.AudioCall.Flow.ToneController.Send(toneId.Value, 17f);
                        Thread.Sleep(duration);
                        result = true;
                    }
                    else
                    {
                        this.Error = new TUC_SendSequenceError(Strings.InvalidDtmfChar(tone));
                        result     = false;
                    }
                }
            }
            return(result);
        }
        internal bool Initialize(int sipPort, bool secured, bool mediaSecured, string certificateThumbprint)
        {
            this.DebugTrace("Inside BaseUMconnectivityTester Initialize with port ={0}, isSecured={1}, isMediaSecured={2}", new object[]
            {
                sipPort,
                secured,
                mediaSecured
            });
            bool result;

            lock (this)
            {
                try
                {
                    this.runSecured   = secured;
                    this.mediaSecured = mediaSecured;
                    if (!secured)
                    {
                        this.endPoint = BaseUMconnectivityTester.SipPlatformConnectionManager.GetTcpEndPoint(sipPort);
                    }
                    else
                    {
                        this.endPoint = BaseUMconnectivityTester.SipPlatformConnectionManager.GetTlsEndPoint(sipPort, certificateThumbprint);
                    }
                    this.isInitialized = true;
                    result             = true;
                }
                catch (TUC_CertNotFound tuc_CertNotFound)
                {
                    this.error = tuc_CertNotFound;
                    this.ErrorTrace("Inside BaseUMconnectivityTester Initialize, error ={0}", new object[]
                    {
                        tuc_CertNotFound
                    });
                    result = false;
                }
                catch (TlsFailureException ex)
                {
                    this.error = new TUC_InitializeError(BaseUMconnectivityTester.GetTlsError(ex), ex);
                    this.ErrorTrace("Inside BaseUMconnectivityTester Initialize, error ={0}", new object[]
                    {
                        ex
                    });
                    result = false;
                }
                catch (RealTimeException ex2)
                {
                    this.error = new TUC_InitializeError(ex2.Message, ex2);
                    this.ErrorTrace("Inside BaseUMconnectivityTester Initialize, error ={0}", new object[]
                    {
                        ex2
                    });
                    result = false;
                }
                catch (SocketException ex3)
                {
                    this.error = new TUC_InitializeError(ex3.Message, ex3);
                    this.ErrorTrace("Inside BaseUMconnectivityTester Initialize, error ={0}", new object[]
                    {
                        ex3
                    });
                    result = false;
                }
                catch (ObjectDisposedException ex4)
                {
                    this.error = new TUC_InitializeError(ex4.Message, ex4);
                    this.ErrorTrace("Inside BaseUMconnectivityTester Initialize, error ={0}", new object[]
                    {
                        ex4
                    });
                    result = false;
                }
                catch (InvalidOperationException ex5)
                {
                    this.error = new TUC_InitializeError(ex5.Message, ex5);
                    this.ErrorTrace("Inside BaseUMconnectivityTester Initialize, error ={0}", new object[]
                    {
                        ex5
                    });
                    result = false;
                }
            }
            return(result);
        }