Exemplo n.º 1
0
 private void EVSdkWrapper_EventCallEnd(EVCallInfoCli callInfo)
 {
     _log.InfoFormat("EventCallEnd: {0}", GetCallInfoString(callInfo));
     WorkerThreadManager.Instance.EVSdkWorkDispatcher.InvokeAsync(() => {
         EventCallEnd?.Invoke(callInfo);
     });
 }
Exemplo n.º 2
0
 private void EVSdkWrapper_EventJoinConferenceIndication(EVCallInfoCli callInfo)
 {
     _log.InfoFormat("EventJoinConferenceIndication: {0}", GetCallInfoString(callInfo));
     WorkerThreadManager.Instance.EVSdkWorkDispatcher.InvokeAsync(() => {
         EventJoinConferenceIndication?.Invoke(callInfo);
     });
 }
Exemplo n.º 3
0
        private string GetCallInfoString(EVCallInfoCli callInfo)
        {
            if (null == callInfo)
            {
                return("");
            }

            StringBuilder sb = new StringBuilder();

            sb.Append("conference_number: ")
            .Append(callInfo.conference_number)
            .Append(", contentEnabled: ")
            .Append(callInfo.contentEnabled)
            .Append(", isAudioOnly: ")
            .Append(callInfo.isAudioOnly)
            .Append(", isBigConference: ")
            .Append(callInfo.isBigConference)
            .Append(", isRemoteMuted: ")
            .Append(callInfo.isRemoteMuted)
            .Append(", peer: ")
            .Append(callInfo.peer)
            .Append(", svcCallType: ")
            .Append(callInfo.svcCallType)
            .Append(", svcCallAction: ")
            .Append(callInfo.svcCallAction);
            if (null != callInfo.err)
            {
                sb.Append(", err.type: ")
                .Append(callInfo.err.type)
                .Append(", err.code: ")
                .Append(callInfo.err.code);
            }

            return(sb.ToString());
        }