Did you figure this out yet? Not sure exactly what you&#39;re trying to do here, but you could use the sched_hangup API and schedule a hangup or sched_transfer to schedule a transfer to a specific dialplan extension that does your cleanup work.<div>

<br></div><div><font class="Apple-style-span" size="1" face="&#39;courier new&#39;, monospace">&lt;action application=&quot;set&quot; data=&quot;api_res=${sched_transfer +60 ${uuid} handle_timeout XML handlers}&quot;/&gt;</font></div>
<div><br></div><div>Then something like this for the dp</div><div><br></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace" size="1">&lt;context name=&quot;handlers&quot;&gt;</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace" size="1">  &lt;extension name=&quot;handle loop timeouts&quot;&gt;<br>
</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace" size="1">    &lt;condition field=&quot;destination_number&quot; expression=&quot;^handle_timeout$&quot;&gt;</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace" size="1">      &lt;action application=&quot;log&quot; data=&quot;INFO OB call timed out...&quot;/&gt;</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace" size="1">      &lt;action application=&quot;foo&quot; data=&quot;bar&quot;/&gt; &lt;!-- do something useful --&gt;</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace" size="1">      &lt;action application=&quot;hangup&quot; data=&quot;pick_a_hangup_cause_if_you_wish&quot;/&gt;</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace" size="1">    &lt;/condition&gt;</font></div>

<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace" size="1">  &lt;/extensions&gt;</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace" size="1">&lt;/context&gt;</font></div>
<div><br></div><div>-MC<br><br><div class="gmail_quote">On Thu, Oct 13, 2011 at 10:09 AM, Antonio <span dir="ltr">&lt;<a href="mailto:asilva@wirelessmundi.com" target="_blank">asilva@wirelessmundi.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>


  
  

<div>
<br>
Hi,<br>
<br>
Is it possible to loop a bridge until a global call timeout (or other variable) is reached?<br>
<br>
In the wiki is this example is a fixed number of loops...<br>
<br>
&lt;extension name=&quot;3-way gateway distro&quot;&gt; 
<pre>&lt;condition field=&quot;destination_number&quot; expression=&quot;^(.*)$&quot;&gt;
      &lt;action application=&quot;set&quot; data=&quot;continue_on_fail=true&quot;/&gt;
      &lt;action application=&quot;set&quot; data=&quot;hangup_after_bridge=true&quot;/&gt;
      &lt;action application=&quot;bridge&quot; data=&quot;sofia/gateway/${distributor(3gw)}/$1&quot; loop=&quot;3&quot;/&gt;
    &lt;/condition&gt;
  &lt;/extension&gt;

My idea is to call a group sequential, but once it reaches the last member it starts over again.
so when calling a group, once the timeout for each user in the group is reach it hangups the call (the normal behavior),
it jumps again to the begin of the group until a global timeout is reached.

For example:

&lt;extension name=&quot;group&quot;&gt; 
&lt;condition field=&quot;destination_number&quot; expression=&quot;^(.*)$&quot;&gt;
      &lt;action application=&quot;set&quot; data=&quot;continue_on_fail=true&quot;/&gt;
      &lt;action application=&quot;set&quot; data=&quot;hangup_after_bridge=true&quot;/&gt;
      &lt;action application=&quot;set&quot; data=&quot;call_timeout=60&quot;/&gt;
      &lt;action application=&quot;set&quot; data=&quot;leg_timeout=10&quot;/&gt;
      &lt;action application=&quot;bridge&quot; data=&quot;&quot;${group_call(group1@default+F)}&quot; loop=&quot;3&quot;/&gt;
    &lt;/condition&gt;
  &lt;/extension&gt;

In my group i have two members only.



</pre><font color="#888888">
<br>
<table cellspacing="0" cellpadding="0" width="100%">
<tbody><tr>
<td>
<pre>-- 

Un cordial saludo / Best regards, 

 _________________________

António Silva

E-mail:<a href="mailto:asilva@wirelessmundi.com" target="_blank">asilva@wirelessmundi.com</a>
</pre>
</td>
</tr>
</tbody></table>
</font></div>

<br><br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>