Example #1
0
        /***
         * mute/unmute the mirophone
         * @para mute: true-mute the microphone; false-unmute the mircophone
         * @return true: successful; false-fail
         * */
        public static bool MuteMic(Call call, bool isMute)
        {
            log.Debug("[muteMic]");
            if (null == call)
            {
                log.Error("unmute/mute a NULL call.");
                return(false);
            }
            var errno = WrapperProxy.MuteMic(call.CallHandle, isMute);

            if (errno != ErrorNumberEnum.PLCM_SAMPLE_OK)
            {
                log.Error("mute a Call failed. ErrorNum = " + errno.ToString());
                return(false);
            }
            call.IsMute = isMute;
            return(true);
        }