Hi folks,
Little help?
The flow:
- Incoming call
- AGI script checks destination numbers (the result is more than one)
- Dial the first destination and when it answers to require some DTMF input.
- If the dialed number entered that DTMF, connect the incoming call to that person and exit.
4.1. If the destination do not enter the DTMF, hangup the channel and dial the next person.
I’m making an “originate to extention” (meanwhile I’m PlayTones(ring) and then Wait(300) to the incoming channel), when the destination answered it’s redirected to a “Read” application and if it press something the channels are bridged (application “Bridge”). Everything is OK, except for 4.1. Can’t figure it out how to hangup the channel and dial the next person without exiting the dialplan.
Thanks.