Some Originate simultaneously

Hi, I need to perform some originate simultaneously, when one of them is answered, I have to cancel the other ones…
Any ideas to do that?
I’m working with AMI from PHP.
Thanks in advance…

Can you go back a step and explain the application.

If it is the party A for which you want to select the first answer, and the party B side is the same, you might be better using a single originate, to a local channel, dialing an extensions using the “&” operator in the dial command.