Wait for external Extension

I am have been racking my brain with this one. I am trying to use asterisk call files to dial out a number. Once the number answers I send the 4 digit extension through dtmf. I want to play a sound file when the party answers. The problem is that the channel has already been answered. I have tried backgrounddetect, waitforsilence and numerous wait commands with no success. Anybody else run into a situation like this? Here is what I want:

1: ASterisk call file dials external number via sip trunk.
2. Send dtmf tone to dial an extension
3. When the party answers, play a sound file.

Please note the PBX that I am dialing is not an Asterisk box, however the one I am dialing from is.

Thanks

You can use senddtmf followed by AMD.

voip-info.org/wiki/view/Aste … d+SendDTMF
voip-info.org/wiki/index.php … sk+cmd+AMD

I have already tried those, the issue is that the wav plays before the party answers

What kind of phone lines are you using ? Try using a SIP trunk.