Abstract: An automatic gain control apparatus, employed in a communication system having a circuit that interfaces a two-wire line to a four-wire line, measures the echo return loss occurring at the interface, calculates a gain from the echo return loss, and amplifies an incoming signal on the four-wire line by the calculated gain before transmission through the interface, to compensate for the echo return loss. If the communication system uses an echo canceler to cancel the echo, the echo canceler is preferably shielded from the effects of automatic gain control, by attenuation of the outgoing signal on the four-wire line, for example.