Example #1
0
        private void StopListenDTFM(object o)
        {
            Debug.Assert(_listen);
            DTMFFacilityRequestParameter dtfmParam = new DTMFFacilityRequestParameter();
            FacilityRequest request = new FacilityRequest(dtfmParam);

            request.FacilitySelector   = FacilitySelector.DTMF;
            dtfmParam.FacilityFunction = FacilityFunction.StopListen;
            request.Identifier.Value   = _plci;
            RequestDTFM(request);
            _listen = false;
        }
Example #2
0
        private void StartListenDTFM(object o)
        {
            Debug.Assert(!_listen);
            DTMFFacilityRequestParameter dtfmParam = new DTMFFacilityRequestParameter();
            FacilityRequest request = new FacilityRequest(dtfmParam);

            request.FacilitySelector   = FacilitySelector.DTMF;
            dtfmParam.FacilityFunction = FacilityFunction.StartListen;
            dtfmParam.ToneDuration     = _dtfmPause;
            dtfmParam.GapDuration      = _dtfmPause;
            request.Identifier.Value   = _plci;
            RequestDTFM(request);
            _listen = true;
        }
Example #3
0
        public void SendDTFMTone(string digits)
        {
            if (_status != ConnectionStatus.Connected)
            {
                throw Error.NotSupported();
            }

            DTMFFacilityRequestParameter dtfmParam = new DTMFFacilityRequestParameter();
            FacilityRequest request = new FacilityRequest(dtfmParam);

            request.FacilitySelector   = FacilitySelector.DTMF;
            dtfmParam.FacilityFunction = FacilityFunction.Send;
            dtfmParam.ToneDuration     = _dtfmDuration;
            dtfmParam.GapDuration      = _dtfmPause;
            dtfmParam.Digits           = digits;
            request.Identifier.Value   = _plci;
            RequestDTFM(request);
        }
Example #4
0
        private void StopListenDTFM(object o) {
            Debug.Assert(_listen);
            DTMFFacilityRequestParameter dtfmParam = new DTMFFacilityRequestParameter();
            FacilityRequest request = new FacilityRequest(dtfmParam);

            request.FacilitySelector = FacilitySelector.DTMF;
            dtfmParam.FacilityFunction = FacilityFunction.StopListen;
            request.Identifier.Value = _plci;
            RequestDTFM(request);
            _listen = false;
        }
Example #5
0
        private void StartListenDTFM(object o) {
            Debug.Assert(!_listen);
            DTMFFacilityRequestParameter dtfmParam = new DTMFFacilityRequestParameter();
            FacilityRequest request = new FacilityRequest(dtfmParam);

            request.FacilitySelector = FacilitySelector.DTMF;
            dtfmParam.FacilityFunction = FacilityFunction.StartListen;
            dtfmParam.ToneDuration = _dtfmPause;
            dtfmParam.GapDuration = _dtfmPause;
            request.Identifier.Value = _plci;
            RequestDTFM(request);
            _listen = true;
        }
Example #6
0
        public void SendDTFMTone(string digits) {
            if (_status != ConnectionStatus.Connected)
                throw Error.NotSupported();

            DTMFFacilityRequestParameter dtfmParam = new DTMFFacilityRequestParameter();
            FacilityRequest request = new FacilityRequest(dtfmParam);

            request.FacilitySelector = FacilitySelector.DTMF;
            dtfmParam.FacilityFunction = FacilityFunction.Send;
            dtfmParam.ToneDuration = _dtfmDuration;
            dtfmParam.GapDuration = _dtfmPause;
            dtfmParam.Digits = digits;
            request.Identifier.Value = _plci;
            RequestDTFM(request);
        }