<div>That would be really difficult to do, to keep track of all three channel events while they are originating and to hangup the failed ones . </div>
<div> </div>
<div>Easy solution in asterisk for this would be to originate using Local channel and in dialplan use Dial command to make call to all the operators using &#39;&amp;&#39; operator. And dial command automatically hangups rest of the channels if one channel succeeds.</div>

<div> </div>
<div><a href="http://blog.godson.in/2010/10/asterisk-vs-freeswitch-channel-tracking.html">http://blog.godson.in/2010/10/asterisk-vs-freeswitch-channel-tracking.html</a></div>
<div> </div>
<div><br><br> </div>
<div class="gmail_quote">On Thu, Oct 21, 2010 at 6:19 AM, Valter Nogueira <span dir="ltr">&lt;<a href="mailto:vgnogueira@gmail.com">vgnogueira@gmail.com</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">My application fires several calls thru AMI ORIGINATE command.<br><br>For example if I have 3 operators I do 3 ORIGINATEs. <br>
<br>My trouble is when one operator quit for some reason, I should kill the corresponding ORIGINATE.<br><br>Of course, I could let the call ring and hangup after the customer pick-up.<br><br>But this is not the case, I do have to kill the corresponding ORIGINATE.<br>
<br>I could execute a soft hangup, but I am not aware the channel that ORIGINATE is using until customer either pick-up or not answer - generating a OriginateResponse event.<br><br>I have tried to send a STATUS command on the ActionId, but the answer is assync and I can&#39;t trust on it.<br>
<br>I would appreciate any help.<br><br>Thanks,<br><font color="#888888"><br>Valter<br></font><br>--<br>_____________________________________________________________________<br>-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com/" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>              <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br>
  <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div>
<div><br><br clear="all"><br>-- <br>Thanks &amp; Regards,<br>Godson Gera<br><a href="http://godson.in/">http://godson.in</a></div>
<div> </div>
<div><br> </div>