A ringback detector determines whether ringback by comparing measurements
of a characteristic of the received signal, such as the energy of the
received signal, to a threshold. The threshold is set initially to a low
value and then updated based on the measurements of received signal. The
measurements are then compared to the threshold to determine whether
ringback is present. An output signal indicative of ringback is generated
when ringback is present.