<p>You are misunderstanding. He means do the line of lua code 3 times in a row. Or use a for loop with 1 line.</p>
<div class="gmail_quote">On Feb 12, 2011 11:36 AM, "David Villasmil" <<a href="mailto:david.villasmil.work@gmail.com">david.villasmil.work@gmail.com</a>> wrote:<br type="attribution">> 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>> <br>
> David<br>> <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">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>>>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
>>> <a href="http://www.freeswitch.org">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">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
>> <a href="http://www.freeswitch.org">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">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> <a href="http://www.freeswitch.org">http://www.freeswitch.org</a><br></div>