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.