See Anthony&#39;s reply... that&#39;ll produce a different call to distributor each time you do the bridge - which&#39;ll possibly return a different gateway each time, depending on your weightings and which other calls are calling distributor.<br>

<br>-Steve<br><br><br><div class="gmail_quote">On 12 February 2011 17:35, David Villasmil <span dir="ltr">&lt;<a href="mailto:david.villasmil.work@gmail.com">david.villasmil.work@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

Thanks for answering Steve,<br>
<br>
That&#39;s exactly what i don&#39;t want to do, because i wanted to use the<br>
&quot;weight&quot; feature in mod_distributor... but i gues i will end up doing<br>
it :)<br>
<br>
Thanks<br>
<font color="#888888"><br>
David<br>
</font><div><div></div><div class="h5"><br>
On Sat, Feb 12, 2011 at 6:26 PM, Steven Ayre &lt;<a href="mailto:steveayre@gmail.com">steveayre@gmail.com</a>&gt; wrote:<br>
&gt; I believe loop is specific to XML dialplan tags.<br>
&gt;<br>
&gt; Try implementing a lua loop, checking the hangup cause after the bridge and looping if it looks bad.<br>
&gt;<br>
&gt; Steve on iPhone<br>
&gt;<br>
&gt;<br>
&gt; On 12 Feb 2011, at 15:06, David Villasmil &lt;<a href="mailto:david.villasmil.work@gmail.com">david.villasmil.work@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt;&gt; Oh I forgot,<br>
&gt;&gt;<br>
&gt;&gt; I also have:<br>
&gt;&gt;<br>
&gt;&gt; session:execute(&quot;set&quot;,&quot;continue_on_fail=NORMAL_TEMPORARY_FAILURE,TIMEOUT,NO_ROUTE_DESTINATION,UNALLOCATED_NUMBER,407&quot;)<br>
&gt;&gt;<br>
&gt;&gt; thanks<br>
&gt;&gt;<br>
&gt;&gt; David<br>
&gt;&gt;<br>
&gt;&gt; On Sat, Feb 12, 2011 at 4:04 PM, David Villasmil<br>
&gt;&gt; &lt;<a href="mailto:david.villasmil.work@gmail.com">david.villasmil.work@gmail.com</a>&gt; wrote:<br>
&gt;&gt;&gt; Hello All,<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; from a lua script, i&#39;m executing the following:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; session:execute(&quot;bridge&quot;,&quot;sofia/gateway/${distributor(&quot; .. route_name<br>
&gt;&gt;&gt; .. &quot;)}&quot;.. out_number ..&quot;&quot;)<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; but the call doesn&#39;t falls to the next gw, i&#39;m trying to add the<br>
&gt;&gt;&gt; loop=&quot;3&quot; to the bridge but it doesn&#39;t work.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; I&#39;ve trued like this:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; session:execute(&quot;set&quot;,&quot;loop=\&quot;3\&quot;&quot;)<br>
&gt;&gt;&gt; session:execute(&quot;bridge&quot;,&quot;sofia/gateway/${distributor(&quot; .. route_name<br>
&gt;&gt;&gt; .. &quot;)}&quot;.. out_number ..&quot;&quot;)<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; and<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; session:execute(&quot;bridge&quot;,&quot;sofia/gateway/${distributor(&quot; .. route_name<br>
&gt;&gt;&gt; .. &quot;)}&quot;.. out_number ..&quot; loop=\&quot;3\&quot;&quot;)<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; and<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; session:execute(&quot;bridge&quot;,&quot;{loop=\&quot;3\&quot;}sofia/gateway/${distributor(&quot; ..<br>
&gt;&gt;&gt; route_name .. &quot;)}&quot;.. out_number ..&quot;&quot;)<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Still nothing...<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; any thoughts?<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Thanks<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; David<br>
&gt;&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; FreeSWITCH-users mailing list<br>
&gt;&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt;&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt;&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt;&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; FreeSWITCH-users mailing list<br>
&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
<br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">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>
</div></div></blockquote></div><br><div style="visibility: hidden; left: -5000px; position: absolute; z-index: 9999; padding: 0px; margin-left: 0px; margin-top: 0px; overflow: hidden; word-wrap: break-word; color: black; font-size: 10px; text-align: left; line-height: 130%;" id="avg_ls_inline_popup">

</div>