Hi all,
I have a problem I can’t seem to find a solution to. What I would like to do is have Asterisk call one phone (create one channel) and then have an AGI script run when that call is answered. This is not a problem. Then depending on what happens in the AGI I want to call another phone which I can do using the DIAL cmd. However, DIAL links the 2 channels when the second call is answered.
My problem is I want to be able to run a second AGI script on this second call before linking the 2 channels/calls together.
Does anyone know how I could accomplish this? Is there a way to create 2 channels and run AGI scripts on each and then link/connect them?
I should mention that I am using asterisk-java to do all this and that there is no actual calls coming into a dialplan. I am using DefaultAsteriskManager.originateCall(Originate) to cause Asterisk to call my first number and set the AGI I want to run.
Any and all help would be much apprectaited even if you are not familiar with asterisk-java.
Thank you,
Erik