示例#1
0
        /// <summary>
        /// 发送DTMF key
        /// </summary>
        /// <param name="key">DTMFkey</param>
        public void SendDTMFKey(DTMFKey key)
        {
            var errno = PlcmProxy.SendDTMFKey(this.CallHandle, key);

            if (errno != ErrorNumber.OK)
            {
                var errMsg = string.Format("发送DTMF Key({0})失败,errno={1}", key, errno);
                log.Error(errMsg);
                throw new Exception(errMsg);
            }
            log.Info(string.Format("发送DTMF Key({0})成功.", key));
        }
示例#2
0
 public static ErrorNumber SendDTMFKey(int callHandle, DTMFKey key)
 {
     return((ErrorNumber)PlcmHelper.sendDTMFKey(callHandle, (int)key));
 }
示例#3
0
 public static ErrorNumber SendDTMFKey(int callHandle, DTMFKey key)
 {
     return((ErrorNumber)WrapperInterface.sendDTMFKey(callHandle, (int)key));
 }