<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.30.3">
</HEAD>
<BODY>
<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;
&nbsp; &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;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application=&quot;set&quot; data=&quot;hangup_after_bridge=true&quot;/&gt;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application=&quot;set&quot; data=&quot;call_timeout=60&quot;/&gt;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application=&quot;set&quot; data=&quot;leg_timeout=10&quot;/&gt;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application=&quot;bridge&quot; data=&quot;&quot;${group_call(group1@default+F)}&quot; loop=&quot;3&quot;/&gt;
    &lt;/condition&gt;
&nbsp; &lt;/extension&gt;

In my group i have two members only.



</PRE>
<BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<PRE>
-- 

Un cordial saludo / Best regards, 

&nbsp;_________________________

Ant&#243;nio Silva

E-mail:<A HREF="mailto:asilva@wirelessmundi.com">asilva@wirelessmundi.com</A>
</PRE>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>