What I’m trying to do is the following and I want to make sure I go down the right path here…
I have three extensions.101, 102, and 200.
When extension 200 calls extension 101 I want 102 to ring as well. Then which ever extension (101 or 102) picks up first it is then connected to 200.
So far I’ve gotten AMI going and I’ve managed to trigger an Originate to 102 when I detect a call being made to 101 (I’m currently looking for the “Newchannel” event.
The question now is what do I do. The Originate needs an extension to connect to. I thought about creating a Bridge to do this. I could do this with ARI (since I don’t see how to do it with AMI) and then possibly pass this bridge name in to the “exten” of the Originate? Then if I see it actually pick up then send a “Redirect” to the original call from 200 to 101 to bring 200 into the bridge with 102 and hangup the call to 101?
For completeness, if 101 answers before 102 then just let things happen and don’t do anything.
Or is there a better way about going about this? To simplify this, think of the example of when someone phones a house. Every phone in that house rings. When one of the phones is picked up, the rest of the phones stop ringing. In this case each phone is different extension and they are all created dynamically on the fly.
Appreciate any feedback.