<!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>
<extension name="3-way gateway distro">
<PRE>
<condition field="destination_number" expression="^(.*)$">
<action application="set" data="continue_on_fail=true"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="bridge" data="sofia/gateway/${distributor(3gw)}/$1" loop="3"/>
</condition>
</extension>
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:
<extension name="group">
<condition field="destination_number" expression="^(.*)$">
<action application="set" data="continue_on_fail=true"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="set" data="call_timeout=60"/>
<action application="set" data="leg_timeout=10"/>
<action application="bridge" data=""${group_call(group1@default+F)}" loop="3"/>
</condition>
</extension>
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,
_________________________
António Silva
E-mail:<A HREF="mailto:asilva@wirelessmundi.com">asilva@wirelessmundi.com</A>
</PRE>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>