/// <summary> /// Sends DTMF response. /// </summary> /// <param name="response">DTMF response type.</param> /// <exception cref="InvalidOperationException">Thrown when method failed due to invalid operation.</exception> public void SendDtmfResponse(DtmfResponseType response) { int ret = Interop.CallManager.SendDtmfResponse(_handle, response); if (ret != (int)CmError.None) { Log.Error(CmUtility.LogTag, "Failed to send DTMF response, Error: " + (CmError)ret); CmUtility.ThrowCmException(ret, _handle); } }
internal static extern int SendDtmfResponse(IntPtr handle, DtmfResponseType respType);