Thank Bogdan,<br><br>&nbsp;&nbsp;&nbsp;&nbsp; I did it with an avp query :S<br><br>&nbsp;&nbsp;&nbsp;&nbsp; When routing is done, it seems to that routing ro the gwlist (comma separated) is done as load balance... is this correct?<br>&nbsp;&nbsp;&nbsp;&nbsp; On the other hand, I tried creating two rules, one higher than the other. The first rule went to a failing GW... failover was not being done. I&#39;m sure I&#39;ve done something wrong. I have no failover routes as on the doc it says it is done automatically... Is this right?<br>
<br><br>thanks<br><br>David<br><br><br><br><br><div class="gmail_quote">On Mon, Nov 17, 2008 at 9:49 AM, Bogdan-Andrei Iancu <span dir="ltr">&lt;<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</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;">Hi David,<div class="Ih2E3d"><br>
<br>
David Villasmil wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello,<br>
<br>
 &nbsp; &nbsp; I&#39;ve been testing drouting, and as always with &quot;new&quot; modules, it works great. I&#39;ve got a question: dr_groups has a &quot;username&quot; and &quot;domain&quot; field, it is my understanding that if I leave username blank and put something on domain, everything directed to that domain will be routed using the group id.<br>

</blockquote></div>
No, the username cannot mis - The table is to be used when you want to do a per user mapping of group ids.<br>
<br>
For you case (per domain mapping), you can do it without the table, directly from script:<br>
 &nbsp; if ($rd==&quot;my_domain&quot;)<br>
 &nbsp; &nbsp; &nbsp;$avp(i:10) = &quot;1&quot;; &nbsp;#use group 1<br>
 &nbsp; else ......<br>
 &nbsp; ......<br>
 &nbsp; do_routing(&quot;$avp(i:10)&quot;);<div class="Ih2E3d"><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Now, lets say I want to route based on a source IP instead of username? Say the source IP is NOT registered... what then?<br>
</blockquote></div>
you can compute the group id based on whatever information you need, from the script, and than pass it directly to the DR routing function.<br>
<br>
Regards,<br><font color="#888888">
bogdan<br>
</font></blockquote></div><br>