Пример #1
0
        /// <summary>
        /// 执行方法
        /// </summary>
        /// <param name="sql"></param>
        /// <param name="callmode"></param>
        /// <returns></returns>
        public object Call(Action <Parameter, StringBuilder> sql, CallMode callmode = CallMode.ExecuteScalar | CallMode.CommandText)
        {
            var sb = new StringBuilder();

            sql(this.parameter.Object, sb);
            return(this.Call(sb.ToString(), callmode));
        }
Пример #2
0
        public CustomEventArgs(int id, string outstring, byte[] buf, int length, bool parseOK, string errorMsg, CallMode callmode, object callSrc, Exception e = null)
        {
            var src = callSrc as SerialPort;

            DataBufferLength = length;
            Ex = e;
            if (callmode == CallMode.DataMode && src != null)//串口转发
            {
                if (length > 0)
                {
                    DataBuffer = new byte[length + 4];
                    UInt16 uid = 0xEE01; //与网络包格式一致
                    Buffer.BlockCopy(BitConverter.GetBytes(uid), 0, DataBuffer, 0, 2);
                    Buffer.BlockCopy(BitConverter.GetBytes(length), 0, DataBuffer, 2, 2);
                    Buffer.BlockCopy(buf, 0, DataBuffer, 4, length); //包头长度4,包括ID和长度
                    DataBufferLength = DataBuffer.Length;
                }
            }
            else
            {
                if (length > 0)
                {
                    DataBuffer = new byte[length];
                    Buffer.BlockCopy(buf, 0, DataBuffer, 0, length);
                }
            }
            ID        = id;
            Outstring = outstring;

            ParseOK  = parseOK;
            ErrorMsg = errorMsg;
            Mode     = callmode;
            CallSrc  = callSrc;
        }
Пример #3
0
        /// <summary>
        /// 呼叫
        /// </summary>
        /// <param name="dialUri">被呼叫方Uri</param>
        /// <param name="callType">呼叫模式 默认:VIDEO</param>
        public void DialCall(string dialUri, CallMode callMode = CallMode.VIDEO)
        {
            if (null != CurrentCall && CurrentCall.IsActive())
            {
                var msg = string.Format("确定要呼叫{0}吗?", dialUri);

                var callStateText = CurrentCall.CallStateText();
                if (!string.IsNullOrEmpty(callStateText))
                {
                    msg += '\n' + callStateText;
                    msg += '\n' + "接听将挂断当前通话。";
                }
                Action okpAction = () =>
                {
                    log.Info(string.Format("挂断呼叫{0}", CurrentCall.CallName));
                    CurrentCall.HangUpCall();
                    diallCallDiret(dialUri, callMode);
                };
                callView.ShowMessage(true, msg, MessageBoxButtonsType.OKCancel, MessageBoxIcon.Question
                                     , okpAction);
            }
            else
            {
                diallCallDiret(dialUri, callMode);
            }
        }
Пример #4
0
        public override bool Build(ref CodeNode _this, int expressionDepth, Dictionary <string, VariableDescriptor> variables, CodeContext codeContext, InternalCompilerMessageCallback message, FunctionInfo stats, Options opts)
        {
            if (stats != null)
            {
                stats.UseCall = true;
            }

            this._codeContext = codeContext;

            var super = _left as Super;

            if (super != null)
            {
                super.ctorMode = true;
                _callMode      = CallMode.Super;
            }

            for (var i = 0; i < _arguments.Length; i++)
            {
                Parser.Build(ref _arguments[i], expressionDepth + 1, variables, codeContext | CodeContext.InExpression, message, stats, opts);
            }

            base.Build(ref _this, expressionDepth, variables, codeContext, message, stats, opts);
            if (_left is Variable)
            {
                var name = _left.ToString();
                if (name == "eval" && stats != null)
                {
                    stats.ContainsEval = true;
                    foreach (var variable in variables)
                    {
                        variable.Value.captured = true;
                    }
                }
                VariableDescriptor f = null;
                if (variables.TryGetValue(name, out f))
                {
                    var func = f.initializer as FunctionDefinition;
                    if (func != null)
                    {
                        for (var i = 0; i < func.parameters.Length; i++)
                        {
                            if (i >= _arguments.Length)
                            {
                                break;
                            }
                            if (func.parameters[i].lastPredictedType == PredictedType.Unknown)
                            {
                                func.parameters[i].lastPredictedType = _arguments[i].ResultType;
                            }
                            else if (Tools.CompareWithMask(func.parameters[i].lastPredictedType, _arguments[i].ResultType, PredictedType.Group) != 0)
                            {
                                func.parameters[i].lastPredictedType = PredictedType.Ambiguous;
                            }
                        }
                    }
                }
            }
            return(false);
        }
Пример #5
0
        private void diallCallDiret(string dialUri, CallMode callMode = CallMode.VIDEO)
        {
            int callHandle = -1;

            qlConfig.SetProperty(PropertyKey.CalleeAddr, dialUri, true);
            var errno = PlcmProxy.PlaceCall(dialUri, ref callHandle, callMode);

            if (ErrorNumber.OK == errno)
            {
                var call = new QLCall(callHandle)
                {
                    CallHandle      = callHandle,
                    CallName        = dialUri,
                    CallMode        = callMode,
                    ActiveSpeakerId = 0,
                    CallState       = CallState.SIP_UNKNOWN,
                    CallType        = CallType.UNKNOWN,
                    StartTime       = DateTime.Now,
                };
                this.AddCall(call);
                this.CurrentCall = call;
                log.Info("呼叫成功!");
            }
            else
            {
                var msg = "呼叫失败,ErrorNo=" + errno;
                callView.ShowMessage(false, msg, MessageBoxButtonsType.OK, MessageBoxIcon.Error);
                throw new Exception(msg);
            }
        }
Пример #6
0
        public static ErrorNumber AnswerCall(QLCall call, CallMode callMode)
        {
            string cryptoSuiteType = QLConfigManager.GetInstance().GetProperty(PropertyKey.CryptoSuiteType);
            string srtpKey         = QLConfigManager.GetInstance().GetProperty(PropertyKey.SRTPKey);
            var    authToken       = QLConfigManager.GetInstance().GetProperty(PropertyKey.AuthToken);

            return(AnswerCall(call.CallHandle, callMode, authToken, cryptoSuiteType, srtpKey, true));
        }
Пример #7
0
        public void JobProcessMixedStress_6([Values] CallMode call, [Values] ProcessMode mode, [Values(0, 1, 1000)] int entityCount)
        {
            var archetype = m_Manager.CreateArchetype(typeof(EcsIntElement), typeof(EcsIntElement2), typeof(EcsIntElement3), typeof(EcsTestData), typeof(EcsTestData2), typeof(EcsTestData3));

            var entities = new NativeArray <Entity>(entityCount, Allocator.Temp);

            m_Manager.CreateEntity(archetype, entities);

            if (call == CallMode.System)
            {
                if (mode == ProcessMode.Parallel)
                {
                    (new Process6Mixed()).Schedule(EmptySystem).Complete();
                }
                else if (mode == ProcessMode.Run)
                {
                    (new Process6Mixed()).Run(EmptySystem);
                }
                else
                {
                    (new Process6Mixed()).ScheduleSingle(EmptySystem).Complete();
                }
            }
            else
            {
                var query = m_Manager.CreateEntityQuery(typeof(EcsIntElement), typeof(EcsIntElement2), typeof(EcsIntElement3), typeof(EcsTestData), typeof(EcsTestData2), typeof(EcsTestData3));
                if (mode == ProcessMode.Parallel)
                {
                    (new Process6Mixed()).Schedule(query).Complete();
                }
                else if (mode == ProcessMode.Run)
                {
                    (new Process6Mixed()).Run(query);
                }
                else
                {
                    (new Process6Mixed()).ScheduleSingle(query).Complete();
                }
            }

            for (int i = 0; i < entities.Length; i++)
            {
                {
                    var expectedResult = 1;
                    Assert.AreEqual(expectedResult, m_Manager.GetBuffer <EcsIntElement>(entities[i]).Length);
                    Assert.AreEqual(expectedResult, m_Manager.GetBuffer <EcsIntElement2>(entities[i]).Length);
                    Assert.AreEqual(expectedResult, m_Manager.GetBuffer <EcsIntElement3>(entities[i]).Length);
                }

                {
                    var expectedResult = entities[i].Index + i;
                    Assert.AreEqual(expectedResult, m_Manager.GetComponentData <EcsTestData>(entities[i]).value);
                    Assert.AreEqual(expectedResult, m_Manager.GetComponentData <EcsTestData2>(entities[i]).value1);
                    Assert.AreEqual(expectedResult, m_Manager.GetComponentData <EcsTestData3>(entities[i]).value2);
                }
            }
            entities.Dispose();
        }
Пример #8
0
 public CallInfo()
 {
     this.CallIndex = -1;
     this.Dir = CallDir.unknown;
     this.Status = CallState.unknown;
     this.CallMode = CallMode.unknownn;
     this.IsMultipartyConferenceCall = false;
     this.Number = this.EntryInPhonebook = "-1";
     this.NumberType = CallNumberType.unknown;
 }
Пример #9
0
        /// <summary>
        /// 切换音频视频模式
        /// </summary>
        /// <param name="call">呼叫处理器,为空时为当前呼叫</param>
        /// <param name="callMode">呼叫类型</param>
        public void ChangeCallType(CallMode callMode)
        {
            var errno = PlcmProxy.ChangeCallMode(this.CallHandle, callMode);

            if (ErrorNumber.OK != errno)
            {
                throw new Exception("切换音频视频模式失败,ErrorNo=" + errno);
            }
            log.Info(string.Format("呼叫{0}改变模式{1}", CallName, callMode));
        }
Пример #10
0
        /// <summary>
        ///
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="callId"></param>
        /// <param name="parameter"></param>
        /// <param name="callmode"></param>
        /// <returns></returns>
        public object Call <T>(string callId, EasySqlParameter <T> parameter, CallMode callmode)
        {
            var tag = this.GetSqlTag(callId);

            if (tag == null)
            {
                throw new KeyNotExistedException(callId, "the sql tag '{0}' not found in the sql files", callId);
            }

            return(this.Call <T>(tag, parameter, callmode));
        }
Пример #11
0
        /// <summary>
        /// 接听/应答呼叫
        /// </summary>
        /// <param name="callMode">响应呼叫类型  默认 VIDEO</param>
        public void AnswerCall(CallMode callMode = CallMode.VIDEO)
        {
            var errno = PlcmProxy.AnswerCall(this, callMode);

            if (ErrorNumber.OK != errno)
            {
                var errMsg = "接听应答呼叫失败,ErrorNo=" + errno;
                log.Error(errMsg);
                throw new Exception(errMsg);
            }
            log.Info(string.Format("呼叫{0}接听成功。{1}", CallName, callMode));
        }
Пример #12
0
        /// <summary>
        /// 执行存储更新
        /// </summary>
        /// <param name="callId"></param>
        /// <param name="callmode"></param>
        /// <returns></returns>
        public object Call(string callId, CallMode callmode)
        {
            if (this.dao.CurrentSession != null)
            {
                return(this.dao.Call(callId, this.parameter, callmode));
            }

            using (this.dao)
            {
                return(this.dao.Call(callId, this.parameter, callmode));
            }
        }
Пример #13
0
        private FunctionCall(CallMode mode,
                             IExpression callee, IEnumerable <FunctionArgument> arguments, NameReference requestedOutcomeType)
            : base()
        {
            this.mode                     = mode;
            this.callee                   = callee;
            this.UserArguments            = (arguments ?? Enumerable.Empty <FunctionArgument>()).Indexed().StoreReadOnlyList();
            this.RequestedOutcomeTypeName = requestedOutcomeType;

            this.closures = new List <TypeDefinition>();

            this.attachPostConstructor();

            this.flow = Later.Create(() => ExecutionFlow.CreatePath(UserArguments));
        }
Пример #14
0
        public static void Dial(string callAddr, CallMode callMode)
        {
            log.Info("place call: callername:" + callAddr);
            int callHandleReference = 0;

            propertyManager.SetProperty(PropertyKey.CalleeAddr, callAddr);
            var errno = WrapperProxy.PlaceCall(callAddr, ref callHandleReference, callMode);

            if (errno != ErrorNumber.OK)
            {
                var errMsg = "Dial a Call failed. ErrorNum = " + errno;
                log.Error(errMsg);
                throw new Exception(errMsg);
            }
        }
Пример #15
0
        /// <summary>
        ///
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="tag"></param>
        /// <param name="parameter"></param>
        /// <param name="callmode"></param>
        /// <returns></returns>
        public virtual object Call <T>(SqlTag tag, EasySqlParameter <T> parameter, CallMode callmode)
        {
            var format = tag.Format(parameter);

            if ((callmode & CallMode.ExecuteScalar) == CallMode.ExecuteScalar)
            {
                if ((callmode & CallMode.CommandText) == CallMode.CommandText)
                {
                    return(this.SqlExecuter.ExecuteScalar(format.ToString(), CommandType.Text, format.Parameters.ToArray()));
                }

                if ((callmode & CallMode.CommandStoredProcedure) == CallMode.CommandStoredProcedure)
                {
                    return(this.SqlExecuter.ExecuteScalar(format.ToString(), CommandType.StoredProcedure, format.Parameters.ToArray()));
                }

                if ((callmode & CallMode.CommandTableDirect) == CallMode.CommandTableDirect)
                {
                    return(this.SqlExecuter.ExecuteScalar(format.ToString(), CommandType.TableDirect, format.Parameters.ToArray()));
                }

                return(this.SqlExecuter.ExecuteScalar(format.ToString(), CommandType.Text, format.Parameters.ToArray()));
            }

            if ((callmode & CallMode.ExecuteNonQuery) == CallMode.ExecuteNonQuery)
            {
                if ((callmode & CallMode.CommandText) == CallMode.CommandText)
                {
                    return(this.SqlExecuter.ExecuteNonQuery(format.ToString(), CommandType.Text, format.Parameters.ToArray()));
                }

                if ((callmode & CallMode.CommandStoredProcedure) == CallMode.CommandStoredProcedure)
                {
                    return(this.SqlExecuter.ExecuteNonQuery(format.ToString(), CommandType.StoredProcedure, format.Parameters.ToArray()));
                }

                if ((callmode & CallMode.CommandTableDirect) == CallMode.CommandTableDirect)
                {
                    return(this.SqlExecuter.ExecuteNonQuery(format.ToString(), CommandType.TableDirect, format.Parameters.ToArray()));
                }

                return(this.SqlExecuter.ExecuteNonQuery(format.ToString(), CommandType.Text, format.Parameters.ToArray()));
            }

            return(this.SqlExecuter.ExecuteScalar(format.ToString(), CommandType.Text, format.Parameters.ToArray()));
        }
Пример #16
0
        public void JobProcessStress_1_WithEntity([Values] CallMode call, [Values] ProcessMode mode, [Values(0, 1, 1000)] int entityCount)
        {
            var archetype = m_Manager.CreateArchetype(typeof(EcsTestData));
            var entities  = new NativeArray <Entity>(entityCount, Allocator.Temp);

            m_Manager.CreateEntity(archetype, entities);

            if (call == CallMode.System)
            {
                if (mode == ProcessMode.Parallel)
                {
                    (new Process1Entity()).Schedule(EmptySystem).Complete();
                }
                else if (mode == ProcessMode.Run)
                {
                    (new Process1Entity()).Run(EmptySystem);
                }
                else
                {
                    (new Process1Entity()).ScheduleSingle(EmptySystem).Complete();
                }
            }
            else
            {
                var query = PrepareQuery(1);
                if (mode == ProcessMode.Parallel)
                {
                    (new Process1Entity()).Schedule(query).Complete();
                }
                else if (mode == ProcessMode.Run)
                {
                    (new Process1Entity()).Run(query);
                }
                else
                {
                    (new Process1Entity()).ScheduleSingle(query).Complete();
                }
            }

            for (int i = 0; i < entities.Length; i++)
            {
                Assert.AreEqual(i + entities[i].Index, m_Manager.GetComponentData <EcsTestData>(entities[i]).value);
            }

            entities.Dispose();
        }
Пример #17
0
        protected override void ListensenUDP()
        {
            var remoteIpEndPoint = new IPEndPoint(IPAddress.Any, 0);

            flag = true;
            _recvQueue.Clear();
            byte[]   buffer = null;
            string   error  = string.Empty;
            CallMode mode   = CallMode.GPS;

            while (flag)
            {
                try
                {
                    buffer = _udpClient.Receive(ref remoteIpEndPoint);
                    _recvQueue.AddRange(buffer);

                    CheckQueue(ref _recvQueue, remoteIpEndPoint);
                }
                catch (SocketException exception)
                {
                    if (exception.ErrorCode != 0x2714) //程序关闭
                    {
                        error = exception.Message;
                        mode  = CallMode.ErrMode;
                        flag  = false;
                    }
                    else
                    {
                        flag = false;
                        return;
                    }
                }
                catch (Exception ex)
                {
                    if (ex != null)
                    {
                        flag = false;
                        return;
                    }
                }
            }
        }
Пример #18
0
        public void JobProcessBufferStress_1([Values] CallMode call, [Values] ProcessMode mode, [Values(0, 1, 1000)] int entityCount)
        {
            var entities = PrepareData_Buffer(entityCount);

            if (call == CallMode.System)
            {
                if (mode == ProcessMode.Parallel)
                {
                    (new Process1Buffer()).Schedule(EmptySystem).Complete();
                }
                else if (mode == ProcessMode.Run)
                {
                    (new Process1Buffer()).Run(EmptySystem);
                }
                else
                {
                    (new Process1Buffer()).ScheduleSingle(EmptySystem).Complete();
                }
            }
            else
            {
                var query = PrepareQuery_Buffer(1);
                if (mode == ProcessMode.Parallel)
                {
                    (new Process1Buffer()).Schedule(query).Complete();
                }
                else if (mode == ProcessMode.Run)
                {
                    (new Process1Buffer()).Run(query);
                }
                else
                {
                    (new Process1Buffer()).ScheduleSingle(query).Complete();
                }
            }

            for (int i = 0; i < entities.Length; i++)
            {
                Assert.AreEqual(1, m_Manager.GetBuffer <EcsIntElement>(entities[i]).Length);
            }

            entities.Dispose();
        }
Пример #19
0
        private void CheckQueue(ref List <byte> queue, IPEndPoint RemoteIpEndPoint)
        {
            var      bytes = new byte[1032];
            CallMode mode  = CallMode.GPS;

            while (queue.Count >= 1032)                                                                                       //够一次数据
            {
                if (queue[1] == 0x01 && (queue[0] == 0x28) || (queue[0] == 0x29) || (queue[0] == 0x2A) || (queue[0] == 0x2B)) //find head
                {
                    queue.CopyTo(0, bytes, 0, 1032);
                    queue.RemoveRange(0, 1032);
                }
                else
                {
                    queue.RemoveAt(0);
                    continue;
                }


                switch (BitConverter.ToInt16(bytes, 0))
                {
                case 0x0128:
                    mode = CallMode.Range;
                    break;

                case 0x0129:
                    mode = CallMode.TeleRange;
                    break;

                case 0x012A:
                    mode = CallMode.GPS;
                    break;

                case 0x012B:
                    mode = CallMode.UDPAns;
                    break;
                }
                var e = new CustomEventArgs(0, null, bytes, bytes.Length, true, null, mode, RemoteIpEndPoint.ToString().Split(':')[0]);
                OnParsed(e);
            }
        }
Пример #20
0
        public void JobProcessBufferStress_4([Values] CallMode call, [Values] ProcessMode mode, [Values(0, 1, 1000)] int entityCount)
        {
            var entities = PrepareData_Buffer(entityCount);

            if (call == CallMode.System)
            {
                if (mode == ProcessMode.Parallel)
                {
                    (new Process4Buffer()).Schedule(EmptySystem).Complete();
                }
                else if (mode == ProcessMode.Run)
                {
                    (new Process4Buffer()).Run(EmptySystem);
                }
                else
                {
                    (new Process4Buffer()).ScheduleSingle(EmptySystem).Complete();
                }
            }
            else
            {
                var query = PrepareQuery_Buffer(4);
                if (mode == ProcessMode.Parallel)
                {
                    (new Process4Buffer()).Schedule(query).Complete();
                }
                else if (mode == ProcessMode.Run)
                {
                    (new Process4Buffer()).Run(query);
                }
                else
                {
                    (new Process4Buffer()).ScheduleSingle(query).Complete();
                }
            }

            CheckResultsAndDispose_Buffer(entities, 4);

            entities.Dispose();
        }
Пример #21
0
 /// <summary>
 /// 获取或创建业务总线
 /// </summary>
 /// <returns></returns>
 public static IBizBus GetBus()
 {
     if (bizbus == null)
     {
         lock (padlock)
         {
             if (bizbus == null)
             {
                 CallMode callmode = AppSettingConfig.GetCallMode();
                 if (callmode == CallMode.Local)
                 {
                     InitializeClientBus();
                 }
                 else if (callmode == CallMode.Remote)
                 {
                     InitializeRemoteBus();
                 }
             }
         }
     }
     return(bizbus);
 }
Пример #22
0
        public void JobProcessStress_3_WithEntity([Values] CallMode call, [Values] ProcessMode mode, [Values(0, 1, 1000)] int entityCount)
        {
            var entities = PrepareData(entityCount);

            if (call == CallMode.System)
            {
                if (mode == ProcessMode.Parallel)
                {
                    (new Process3Entity()).Schedule(EmptySystem).Complete();
                }
                else if (mode == ProcessMode.Run)
                {
                    (new Process3Entity()).Run(EmptySystem);
                }
                else
                {
                    (new Process3Entity()).ScheduleSingle(EmptySystem).Complete();
                }
            }
            else
            {
                var query = PrepareQuery(3);
                if (mode == ProcessMode.Parallel)
                {
                    (new Process3Entity()).Schedule(query).Complete();
                }
                else if (mode == ProcessMode.Run)
                {
                    (new Process3Entity()).Run(query);
                }
                else
                {
                    (new Process3Entity()).ScheduleSingle(query).Complete();
                }
            }

            CheckResultsAndDispose(entities, 3, true);
        }
Пример #23
0
        private void ResultReplaying(object sender, EventArgs e)
        {
            var      bytes = UnitCore.Instance.Replaylist[ReplayFileIndex];//must be 1034 bytes
            CallMode mode  = CallMode.GPS;
            var      ip    = BitConverter.ToInt16(bytes, 0);

            switch (BitConverter.ToInt16(bytes, 2))
            {
            case 0x0128:
                mode = CallMode.Range;
                break;

            case 0x0129:
                mode = CallMode.TeleRange;
                break;

            case 0x012A:
                mode = CallMode.GPS;
                break;

            case 0x012B:
                return;
            }
            var buf = new byte[1032];

            Buffer.BlockCopy(bytes, 2, buf, 0, 1032);
            var arg = new CustomEventArgs(0, null, buf, buf.Length, true, null, mode, "192.168.2." + ip.ToString());

            UnitCore.Instance.Observer.Handle(this, arg);
            ReplayFileIndex++;
            if (ReplayFileIndex == UnitCore.Instance.Replaylist.Count)
            {
                ReplayFileIndex = 0;
                replayTimer.Stop();
                ReplayState = 0;
            }
        }
Пример #24
0
        private object Call(string sql, SqlTag sqlTag, CallMode callmode)
        {
            if (this.dao.CurrentSession != null)
            {
                var baseDao = this.dao as BaseDao;
                if (baseDao != null)
                {
                    return(baseDao.Call <Parameter>(sqlTag, this.parameter, callmode));
                }

                var sqlDao = this.dao as ISqlTagDao;
                if (sqlDao != null)
                {
                    return(baseDao.Call <Parameter>(sqlTag, this.parameter, callmode));
                }

                throw new NotSupportedException("the dao must impl the ISqlTagDao interface");
            }

            using (this.dao)
            {
                var baseDao = this.dao as BaseDao;
                if (baseDao != null)
                {
                    return(baseDao.Call <Parameter>(sqlTag, this.parameter, callmode));
                }

                var sqlDao = this.dao as ISqlTagDao;
                if (sqlDao != null)
                {
                    return(baseDao.Call <Parameter>(sqlTag, this.parameter, callmode));
                }

                throw new NotSupportedException("the dao must impl the ISqlTagDao interface");
            }
        }
Пример #25
0
 public static ErrorNumber ChangeCallMode(int callHandle, CallMode callmode)
 {
     return((ErrorNumber)PlcmHelper.changeCallMode(callHandle, (int)callmode));
 }
Пример #26
0
 object IDao.Call <T>(string deleteId, EasySqlParameter <T> parameter, CallMode callmode)
 {
     return(this.dao.Call <T>(deleteId, parameter, callmode));
 }
Пример #27
0
 public static ErrorNumber PlaceCall(string callee, ref int callHandle, CallMode callMode)
 {
     return((ErrorNumber)WrapperInterface.placeCall(callee, ref callHandle, (int)callMode));
 }
Пример #28
0
        internal QLEvent(IntPtr eventHandle, int callHandle, string placeId, EventType type, string callerName,
                         string calleeName, int userCode, string reason,
                         int wndWidth, int wndHeight,
                         bool plugDeviceStatus, string plugDeviceName, string deviceHandle, string ipAddr, CallMode callMode,
                         int streamId, int activeSpeakerStreamId, int remoteVideoChannelNum, string remoteChannelDisplayName, bool isActiveSpeaker, int isTalkingFlag, string regID,
                         string sipCallId, string version, string serialNumber, string notBefore, string notAfter,
                         string issuer, string subject, string signatureAlgorithm, string fingerPrintAlgorithm, string fingerPrint, string publickey, string basicContraints, string keyUsage,
                         string extendedKeyUsage, string subjectAlternateNames, string pemCert, bool isCertHostNameOK, int certFailReason,
                         int certConfirmId, IntPtr transcoderTaskId, string transcoderInputFileName, ICEStatus iceStatus, string sutLiteMessage, bool isVideoOK, string mediaIPAddr, AutoDiscoveryStatus discoveryStatus)
        {
            this._eventHandle = eventHandle;
            this._callHandle  = callHandle;

            this._placeId          = placeId;
            this._eventType        = type;
            this._callerName       = callerName;
            this._calleeName       = calleeName;
            this._userCode         = userCode;
            this._reason           = reason;
            this._wndWidth         = wndWidth;
            this._wndHeight        = wndHeight;
            this._plugDeviceStatus = plugDeviceStatus;
            this._plugDeviceName   = plugDeviceName;
            this._deviceHandle     = deviceHandle;
            this._ipAddress        = ipAddr;
            this._callMode         = callMode;

            this._streamId = streamId;
            this._activeSpeakerStreamId    = activeSpeakerStreamId;
            this._remoteVideoChannelNum    = remoteVideoChannelNum;
            this._remoteChannelDisplayName = remoteChannelDisplayName;
            this._isActiveSpeaker          = isActiveSpeaker;
            this._isTalkingFlag            = isTalkingFlag;
            this._regID                   = regID;
            this._sipCallId               = sipCallId;
            this._version                 = version;
            this._serialNumber            = serialNumber;
            this._notBefore               = notBefore;
            this._notAfter                = notAfter;
            this._issuer                  = issuer;
            this._subject                 = subject;
            this._signatureAlgorithm      = signatureAlgorithm;
            this._fingerPrintAlgorithm    = fingerPrintAlgorithm;
            this._fingerPrint             = fingerPrint;
            this._publickey               = publickey;
            this._basicContraints         = basicContraints;
            this._keyUsage                = keyUsage;
            this._extendedKeyUsage        = extendedKeyUsage;
            this._subjectAlternateNames   = subjectAlternateNames;
            this._pemCert                 = pemCert;
            this._isCertHostNameOK        = isCertHostNameOK;
            this._certFailReason          = certFailReason;
            this._certConfirmId           = certConfirmId;
            this._transcoderTaskId        = transcoderTaskId;
            this._transcoderInputFileName = transcoderInputFileName;
            this._iceStatus               = iceStatus;
            this._sutLiteMessage          = sutLiteMessage;
            this._isVideoOK               = isVideoOK;
            this._mediaIPAddr             = mediaIPAddr;
            this._discoveryStatus         = discoveryStatus;
        }
Пример #29
0
 public static ErrorNumber AnswerCall(int callHandle, CallMode callMode, string authToken, string cryptoSuiteType, string srtpKey, bool sutLiteEnable)
 {
     return((ErrorNumber)PlcmHelper.answerCall(callHandle, (int)callMode, authToken, cryptoSuiteType, srtpKey, sutLiteEnable));
 }
Пример #30
0
 public static ErrorNumber PlaceCall(string callee, ref int callHandle, CallMode callMode)
 {
     return((ErrorNumber)PlcmHelper.placeCall(callee, ref callHandle, (int)callMode));
 }
Пример #31
0
 public static ErrorNumber ChangeCallMode(int callHandle, CallMode callmode)
 {
     return((ErrorNumber)WrapperInterface.changeCallMode(callHandle, (int)callmode));
 }