<div>Ok I know am talking to myself here but perhaps this useful to someone.</div>
<div> </div>
<div>As I see it this dialplan should work:</div>
<div> </div>
<div>&lt;extension name=&quot;public_did&quot;&gt;<br>    &lt;condition field=&quot;destination_number&quot; expression=&quot;^(3475559995)$&quot;&gt;<br>    &lt;action application=&quot;answer&quot;/&gt;<br>    &lt;action application=&quot;set&quot; data=&quot;ringback=%(2000,4000,440.0,480.0)&quot;/&gt;<br>
     &lt;action application=&quot;set&quot; data=&quot;fail_on_single_reject=true&quot;/&gt;<br>     &lt;action application=&quot;set&quot; data=&quot;continue_on_fail=false&quot;/&gt;<br>     &lt;action application=&quot;set&quot; data=&quot;group_confirm_cancel_timeout=1&quot;/&gt;<br>
     &lt;action application=&quot;bridge&quot; data=&quot;{group_confirm_file=prompts\press-1-to-accept-call-from.wav,group_confirm_key=1} sofia/gateway/quest/2125556599|sofia/gateway/broadvox1/2125556599|sofia/gateway/broadvox2/2125556599&quot;/&gt;<br>
      &lt;action application=&quot;voicemail&quot; data=&quot;default $${domain} 1000&quot;/&gt;<br> &lt;/condition&gt;<br>  &lt;/extension&gt;</div>
<div> </div>
<div>The idea here is that it should only call 2125556599 once. This works if you answer the call and let it timeout (don&#39;t press 1 or hangup). The next gateway is not tried.</div>
<div> </div>
<div>But if you answer and then hangup - without pressing 1, then the next gateway is tried and you get the call again. fail_on_single_reject would seem to apply here, but does not have the desired effect.</div>
<div> </div>
<div>Also setting a leg_timeout as follows:</div>
<div> </div>
<div>&lt;action application=&quot;bridge&quot; data=&quot;{group_confirm_file=prompts\press-1-to-accept-call-from.wav,group_confirm_key=1, leg_timeout=10} sofia/g.......<br></div>
<div>will cause the next gateway to be tried when the timeout is triggered, again undesirable in this use case.</div>
<div> </div>
<div>If a call_timeout and hangup were considered a &#39;reject&#39; so that fail_on_single_reject applied, then this would do it no?</div>
<div> </div>
<div>This is today GIT head.</div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div><br><br> </div>
<div class="gmail_quote">On Wed, Aug 11, 2010 at 6:41 PM, Phillip Jones <span dir="ltr">&lt;<a href="mailto:pjintheusa@gmail.com">pjintheusa@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">
<div>Hi there,</div>
<div> </div>
<div>I have the following dialplan which uses enterprise originate and group_confirm:</div>
<div> </div>
<div>The plan is that two numbers are called simutanuously, each number has several gateway to use, incase a gateway fails.</div>
<div> </div>
<div><br>&lt;action application=&quot;ring_ready&quot; data=&quot;&quot;/&gt;<br>&lt;action application=&quot;set&quot; data=&quot;group_confirm_cancel_timeout=1&quot;/&gt;<br>&lt;action application=&quot;set&quot; data=&quot;hangup_after_bridge=true&quot;/&gt;<br>
&lt;action application=&quot;set&quot; data=&quot;continue_on_fail=<font color="#008000">NORMAL_TEMPORARY_FAILURE,NO_ROUTE_DESTINATION,INCOMPATIBLE_DESTINATION,UNALLOCATED_NUMBER</font>&quot;/&gt;<br>&lt;action application=&quot;bridge&quot; data=&quot;{ignore_early_media=true,origination_caller_id_number=2155556240,group_confirm_file=prompts\press-1-to-accept-call-from.wav,group_confirm_key=1}</div>

<div>[leg_timeout=25]sofia/gateway/quest/6095553828|[leg_timeout=25]sofia/gateway/broadvox1/6095553828<br>:_:{ignore_early_media=true,origination_caller_id_number=2155556240,group_confirm_file=prompts\press-1-to-accept-call-from.wav,group_confirm_key=1}</div>

<div>[leg_timeout=25]sofia/gateway/quest/2155554374|[leg_timeout=25]sofia/gateway/broadvox1/2155554374&quot;/&gt;<br>&lt;action application=&quot;managed&quot; data=&quot;PPNSystem.Telephony.LeaveVoicemailHandler&quot;/&gt;<br>
&lt;action application=&quot;hangup&quot; data=&quot;NORMAL_CLEARING&quot;/&gt;</div>
<div><font color="#008000" size="2"><font color="#008000" size="2"></font></font> </div>
<div> </div>
<div>Every thing works great in terms of mutiple legs ringing, bridging, hanging up etc.</div>
<div> </div>
<div>I have one issue though:</div>
<div> </div>
<div>When either of the numbers, 6095553828 for example, answers the call but does not accept it (i.e. does not press 1) and hangs up, the dialplan tries the next gateway for the same number and therefore 6095553828 ends up getting another call even though he has rejected it. I was expecting that once the call is answered and rejected (not bridged) then that part of the dialplan would stop.</div>

<div> </div>
<div>Any help appreciated.</div>
<div> </div>
<div>Thanks</div>
<div> </div><font color="#888888">
<div>Pj</div>
<div> </div>
<div> </div></font></blockquote></div><br>