1
Vote

Management response NO ANSWER

description

I have included the management of non-response "NO ANSWER" so that it is notified with the event OnCallEnded

region Check No Answer (NO ANSWER)

        if (response.IndexOf("NO ANSWER") > 0)
        {
            OnCallEnded(this, CallEndType.NoAnswer);
            if (isModuleBusy) isModuleBusy = false;
        }

        #endregion

public enum CallEndType
    {
        /// <summary>
        /// No dial tone was found
        /// </summary>
        NoDialTone,
        /// <summary>
        /// No carrier was found
        /// </summary>
        NoCarrier,
        /// <summary>
        /// No answer was found
        /// </summary>
        NoAnswer,
        /// <summary>
        /// Line is busy
        /// </summary>
        Busy
    }

file attachments

comments