See Anthony's reply... that'll produce a different call to distributor each time you do the bridge - which'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"><<a href="mailto:david.villasmil.work@gmail.com">david.villasmil.work@gmail.com</a>></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's exactly what i don't want to do, because i wanted to use the<br>
"weight" 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 <<a href="mailto:steveayre@gmail.com">steveayre@gmail.com</a>> wrote:<br>
> I believe loop is specific to XML dialplan tags.<br>
><br>
> Try implementing a lua loop, checking the hangup cause after the bridge and looping if it looks bad.<br>
><br>
> Steve on iPhone<br>
><br>
><br>
> On 12 Feb 2011, at 15:06, David Villasmil <<a href="mailto:david.villasmil.work@gmail.com">david.villasmil.work@gmail.com</a>> wrote:<br>
><br>
>> Oh I forgot,<br>
>><br>
>> I also have:<br>
>><br>
>> session:execute("set","continue_on_fail=NORMAL_TEMPORARY_FAILURE,TIMEOUT,NO_ROUTE_DESTINATION,UNALLOCATED_NUMBER,407")<br>
>><br>
>> thanks<br>
>><br>
>> David<br>
>><br>
>> On Sat, Feb 12, 2011 at 4:04 PM, David Villasmil<br>
>> <<a href="mailto:david.villasmil.work@gmail.com">david.villasmil.work@gmail.com</a>> wrote:<br>
>>> Hello All,<br>
>>><br>
>>> from a lua script, i'm executing the following:<br>
>>><br>
>>><br>
>>> session:execute("bridge","sofia/gateway/${distributor(" .. route_name<br>
>>> .. ")}".. out_number .."")<br>
>>><br>
>>> but the call doesn't falls to the next gw, i'm trying to add the<br>
>>> loop="3" to the bridge but it doesn't work.<br>
>>><br>
>>> I've trued like this:<br>
>>><br>
>>><br>
>>> session:execute("set","loop=\"3\"")<br>
>>> session:execute("bridge","sofia/gateway/${distributor(" .. route_name<br>
>>> .. ")}".. out_number .."")<br>
>>><br>
>>> and<br>
>>><br>
>>><br>
>>> session:execute("bridge","sofia/gateway/${distributor(" .. route_name<br>
>>> .. ")}".. out_number .." loop=\"3\"")<br>
>>><br>
>>> and<br>
>>><br>
>>> session:execute("bridge","{loop=\"3\"}sofia/gateway/${distributor(" ..<br>
>>> route_name .. ")}".. out_number .."")<br>
>>><br>
>>><br>
>>> Still nothing...<br>
>>><br>
>>> any thoughts?<br>
>>><br>
>>> Thanks<br>
>>><br>
>>> David<br>
>>><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>
><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>
><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>