/// <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)); }