Exemplo n.º 1
0
        /// <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);
            }
        }
Exemplo n.º 2
0
 internal static extern int SendDtmfResponse(IntPtr handle, DtmfResponseType respType);