Thank Bogdan,<br><br> I did it with an avp query :S<br><br> When routing is done, it seems to that routing ro the gwlist (comma separated) is done as load balance... is this correct?<br> 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'm sure I'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"><<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>></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>
I've been testing drouting, and as always with "new" modules, it works great. I've got a question: dr_groups has a "username" and "domain" 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>
if ($rd=="my_domain")<br>
$avp(i:10) = "1"; #use group 1<br>
else ......<br>
......<br>
do_routing("$avp(i:10)");<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>