No.<br><br>The reason it must be defined before the bridge is it keeps state information inbetween the bridges so it knows how many times the current node has been returned, before moving onto returning the next node. That&#39;s how the weighting&#39;s implemented.<br>

<br>-Steve<br><br><br><br><div class="gmail_quote">On 10 February 2011 20:15, 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;">

Hello Guys,<br>
<br>
The was I use bridgeis like the following from a lua script:<br>
<br>
session:execute(&quot;bridge&quot;,&quot;{sip_auth_username=1234,sip_auth_password=1234}sofia/external/<a href="http://5551234566@1.2.3.4:5060" target="_blank">5551234566@1.2.3.4:5060</a>&quot;)<br>
<br>
This is because i don&#39;t want tothe xml files, i want to do it programmatically.<br>
<br>
<br>
<br>
Lets say i have 3 different gateways i want to use in a round-robin basis.<br>
<br>
Normally, i would need to DEFINE 3 gateways in the xml profiles, then<br>
define mod_distributor by creating a &quot;list&quot; and then use it like:<br>
<br>
session:execute(&quot;bridge&quot;,&quot;sofia/external/${destination_number}@${distributor(distributor_list)}&quot;)<br>
<br>
but i would like to define the &quot;distributor_list&quot; when creating the<br>
bridge, is this possible?<br>
<br>
<br>
Thanks all<br>
<br>
<br>
David<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>
</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>