Perfect. I&#39;ll have it documented by the end of the day.<br>-MC<br><br><div class="gmail_quote">On Wed, Nov 11, 2009 at 10:32 AM, Anthony Minessale <span dir="ltr">&lt;<a href="mailto:anthony.minessale@gmail.com">anthony.minessale@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">see conf/autoload_configs/distributor.conf.xml<br><br>&lt;configuration name=&quot;distributor.conf&quot; description=&quot;Distributor Configuration&quot;&gt;<br>
  &lt;lists&gt;<br>    &lt;!-- every 10 calls to test you will get foo1 once and foo2 9 times...yes NINE TIMES! --&gt;<br>
    &lt;!-- this is not the same as 100 with 10 and 90 that would do foo1 10 times in a row then foo2 90 times in a row --&gt;<br>    &lt;list name=&quot;test&quot; total-weight=&quot;10&quot;&gt;<br>      &lt;node name=&quot;foo1&quot; weight=&quot;1&quot;/&gt;<br>

      &lt;node name=&quot;foo2&quot; weight=&quot;9&quot;/&gt;<br>    &lt;/list&gt;<br>  &lt;/lists&gt;<br>&lt;/configuration&gt;<br><br><br>in your dialplan you can use <br><br>${distributor(test)} which will cycle expanding to foo1 1/10 times and foo2 the other 9<br>

<br>so imagine if foo1 or foo2 were the names of gateways, or hosts of a remote box <br><br>basic jist is to set total-weight to a number of arbitrary units then set several nodes with weight elements that add up to that number to break down how many times that node text should be returned out of the total.<br>

<br>Remember to use the most simplified reduced value for your fractions to get the most variety.<br><br>Setting total weight to 1000 and then 2 nodes with 100 and 900 would result in foo1 100 times in a row, then foo2 900 times in a row.<br>
</blockquote></div><br>