示例#1
0
        public static string GetVersion()
        {
            var intPtrVersion = WrapperInterface.getVersion();

            return(IntPtrHelper.IntPtrToUTF8string(intPtrVersion));
        }
示例#2
0
        public static void AddEventCallbackF(IntPtr eventHandle, int callHandle, IntPtr placeId, int eventType, IntPtr callerName,
                                             IntPtr calleeName, int userCode, IntPtr reason, int wndWidth, int wndHeight, bool plugDeviceStatus, IntPtr plugDeviceName, IntPtr deviceHandle, IntPtr ipAddress, int callMode,
                                             int streamId, int activeSpeakerStreamId, int remoteVideoChannelNum, IntPtr remoteChannelDisplayName, bool isActiveSpeaker, int isTalkingFlag, IntPtr regID, IntPtr sipCallId, IntPtr version, IntPtr serialNumber, IntPtr notBefore, IntPtr notAfter,
                                             IntPtr issuer, IntPtr subject, IntPtr signatureAlgorithm, IntPtr fingerPrintAlgorithm, IntPtr fingerPrint, IntPtr publickey, IntPtr basicContraints, IntPtr keyUsage, IntPtr rxtendedKeyUsage,
                                             IntPtr subjectAlternateNames, IntPtr pemCert, bool isCertHostNameOK, int certFailReason, int certConfirmId, IntPtr transcoderTaskId, IntPtr transcoderInputFileName, int iceStatus, IntPtr sutLiteMessage, bool isVideoOK, IntPtr mediaIPAddr, int discoveryStatus)
        {
            // add Event to EventMonitor
            var   strplaceId                  = IntPtrHelper.IntPtrTostring(placeId);
            var   strcallerName               = IntPtrHelper.IntPtrTostring(callerName);
            var   strcalleeName               = IntPtrHelper.IntPtrTostring(calleeName);
            var   strreason                   = IntPtrHelper.IntPtrTostring(reason);
            var   strplugDeviceName           = IntPtrHelper.IntPtrTostring(plugDeviceName);
            var   strdeviceHandle             = IntPtrHelper.IntPtrTostring(deviceHandle);
            var   stripAddress                = IntPtrHelper.IntPtrTostring(ipAddress);
            var   strremoteChannelDisplayName = IntPtrHelper.IntPtrTostring(remoteChannelDisplayName);
            var   strregID                   = IntPtrHelper.IntPtrTostring(regID);
            var   strsipCallId               = IntPtrHelper.IntPtrTostring(sipCallId);
            var   strVersion                 = IntPtrHelper.IntPtrTostring(version);
            var   strSerialNumber            = IntPtrHelper.IntPtrTostring(serialNumber);
            var   strNotBefore               = IntPtrHelper.IntPtrTostring(notBefore);
            var   strNotAfter                = IntPtrHelper.IntPtrTostring(notAfter);
            var   strIssuer                  = IntPtrHelper.IntPtrTostring(issuer);
            var   strSubject                 = IntPtrHelper.IntPtrTostring(subject);
            var   strSignatureAlgorithm      = IntPtrHelper.IntPtrTostring(signatureAlgorithm);
            var   strFingerPrintAlgorithm    = IntPtrHelper.IntPtrTostring(fingerPrintAlgorithm);
            var   strFingerPrint             = IntPtrHelper.IntPtrTostring(fingerPrint);
            var   strPublickey               = IntPtrHelper.IntPtrTostring(publickey);
            var   strBasicContraints         = IntPtrHelper.IntPtrTostring(basicContraints);
            var   strKeyUsage                = IntPtrHelper.IntPtrTostring(keyUsage);
            var   strExtendedKeyUsage        = IntPtrHelper.IntPtrTostring(rxtendedKeyUsage);
            var   strSubjectAlternateNames   = IntPtrHelper.IntPtrTostring(subjectAlternateNames);
            var   strPemCert                 = IntPtrHelper.IntPtrTostring(pemCert);
            var   strtranscoderInputFileName = IntPtrHelper.IntPtrTostring(transcoderInputFileName);
            var   strSUTLiteMessage          = IntPtrHelper.IntPtrTostring(sutLiteMessage);
            var   strMediaIPAddr             = IntPtrHelper.IntPtrTostring(mediaIPAddr);
            Event evt = new Event(eventHandle, callHandle, strplaceId, (EventTypeEnum)eventType, strcallerName,
                                  strcalleeName, userCode, strreason,
                                  wndWidth, wndHeight, plugDeviceStatus, strplugDeviceName, strdeviceHandle, stripAddress, (CallModeEnum)callMode,
                                  streamId, activeSpeakerStreamId, remoteVideoChannelNum, strremoteChannelDisplayName, isActiveSpeaker, isTalkingFlag, strregID, strsipCallId,
                                  strVersion,
                                  strSerialNumber,
                                  strNotBefore,
                                  strNotAfter,
                                  strIssuer,
                                  strSubject,
                                  strSignatureAlgorithm,
                                  strFingerPrintAlgorithm,
                                  strFingerPrint,
                                  strPublickey,
                                  strBasicContraints,
                                  strKeyUsage,
                                  strExtendedKeyUsage,
                                  strSubjectAlternateNames,
                                  strPemCert,
                                  isCertHostNameOK,
                                  certFailReason,
                                  certConfirmId,
                                  transcoderTaskId,
                                  strtranscoderInputFileName,
                                  (ICEStatusEnum)iceStatus,
                                  strSUTLiteMessage,
                                  isVideoOK,
                                  strMediaIPAddr,
                                  (AutoDiscoveryStatusEnum)discoveryStatus);

            eventMonitor.AddEvent(evt);
        }