Echo problem

I hear a strong echo with analog or digital phones that generate an acoustic echo or a room echo (when speaker and microphone are switched on).
How is echo cancellation done?

Here is a good artlicle on echo cancellation. This might help you out.

Also, here is a link that shows you how to configure zapata.conf