Reg: Levaing_Message_Automated_Answering_Machine

Hello all,

I have to develop an application where I need to call a number and leave a message to that number.
and I have two cases like:

Case I: when the callee answers the call, I will leave him the message.

Case II: the callee will not lift the call and it goes to the automated answering machine and here I need to leave him the message when we hear a beep sound.

I was able to do the Case I. When it comes to Case II I am unable to find the way to find a solution or a dialplan for it.

Can any one please suggest me in finding the solution for this.

Thanks in advance,
Amaresh Manthena