I am developing a custom application to control an Asterisk based pbx using ami/agi interface. What I have to do is:
- receive a call from a pstn external line
- answer the call
- play a welcome message
- transfer the call to a specific extension
- park the call
- reconnect to the call from a different extension
Everything should be done using ami/agi interfaces. I succesfully developed everything up to point 5) but I am unable to understand how to transfer (using ami/agi) the parked call to a runtime-defined extension.
Can someone give me an idea on how to do it ?