Voice Mail Issues

Hi Experts,

We have a problem in detecting the answering machine greeting. The voice mail from Asterisk is not waiting for the other end play the greeting. It simply plays when the other end plays the greeting.

We tried lot of options like WaitForSilence and lot of other stuffs. Is there a way to detect the silence. If yes please explain in detail.