<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hola a todos,<div class=""><br class=""></div><div class="">Estoy usando Dynamic Routing Module to buscar el gateway a ser usado acorde el prefijo marcado</div><div class=""><br class=""></div><div class="">mi tabla dr_rules</div><div class=""><br class=""></div><div class=""><table summary="Sample dr_rules records" width="100%" border="1" style="color: rgb(51, 51, 51); font-family: Helvetica, Arial, sans-serif; width: 1273.390625px; border-collapse: collapse; border-spacing: 0px;" class=""><colgroup class=""><col class=""><col class=""><col class=""><col class=""><col class=""><col class=""><col class=""><col class=""></colgroup><thead class=""><tr class=""><th align="left" style="border: 1px solid rgb(204, 204, 204); height: 30px; background-color: rgb(243, 243, 243);" class="">ruleid</th><th align="left" style="border: 1px solid rgb(204, 204, 204); height: 30px; background-color: rgb(243, 243, 243);" class="">group</th><th align="left" style="border: 1px solid rgb(204, 204, 204); height: 30px; background-color: rgb(243, 243, 243);" class="">prefix</th><th align="left" style="border: 1px solid rgb(204, 204, 204); height: 30px; background-color: rgb(243, 243, 243);" class="">timerec</th><th align="left" style="border: 1px solid rgb(204, 204, 204); height: 30px; background-color: rgb(243, 243, 243);" class="">priority</th><th align="left" style="border: 1px solid rgb(204, 204, 204); height: 30px; background-color: rgb(243, 243, 243);" class="">routeid</th><th align="left" style="border: 1px solid rgb(204, 204, 204); height: 30px; background-color: rgb(243, 243, 243);" class="">gwlist</th><th align="left" style="border: 1px solid rgb(204, 204, 204); height: 30px; background-color: rgb(243, 243, 243);" class="">description</th></tr></thead><tbody class=""><tr class=""><td align="left" style="border: 1px solid rgb(204, 204, 204); height: 30px; background-color: rgb(250, 250, 250); background-position: initial initial; background-repeat: initial initial;" class="">1</td><td align="left" style="border: 1px solid rgb(204, 204, 204); height: 30px; background-color: rgb(250, 250, 250); background-position: initial initial; background-repeat: initial initial;" class="">2</td><td align="left" style="border: 1px solid rgb(204, 204, 204); height: 30px; background-color: rgb(250, 250, 250); background-position: initial initial; background-repeat: initial initial;" class="">54</td><td align="left" style="border: 1px solid rgb(204, 204, 204); height: 30px; background-color: rgb(250, 250, 250); background-position: initial initial; background-repeat: initial initial;" class="">NULL</td><td align="left" style="border: 1px solid rgb(204, 204, 204); height: 30px; background-color: rgb(250, 250, 250); background-position: initial initial; background-repeat: initial initial;" class="">0</td><td align="left" style="border: 1px solid rgb(204, 204, 204); height: 30px; background-color: rgb(250, 250, 250); background-position: initial initial; background-repeat: initial initial;" class="">NULL</td><td align="left" style="border: 1px solid rgb(204, 204, 204); height: 30px; background-color: rgb(250, 250, 250); background-position: initial initial; background-repeat: initial initial;" class="">1,2</td><td align="left" style="border: 1px solid rgb(204, 204, 204); height: 30px; background-color: rgb(250, 250, 250); background-position: initial initial; background-repeat: initial initial;" class="">Rule 1</td></tr></tbody></table><div class=""><br class=""></div></div><div class="">tabla dr_gateways</div><div class=""><table summary="Sample dr_gateways records" border="1" style="color: rgb(51, 51, 51); font-family: Helvetica, Arial, sans-serif; width: 1309.390625px; border-collapse: collapse; border-spacing: 0px;" class=""><thead class=""><tr class=""><th style="border: 1px solid rgb(204, 204, 204); height: 30px; background-color: rgb(243, 243, 243);" class="">gwid</th><th style="border: 1px solid rgb(204, 204, 204); height: 30px; background-color: rgb(243, 243, 243);" class="">type</th><th style="border: 1px solid rgb(204, 204, 204); height: 30px; background-color: rgb(243, 243, 243);" class="">address</th><th style="border: 1px solid rgb(204, 204, 204); height: 30px; background-color: rgb(243, 243, 243);" class="">strip</th><th style="border: 1px solid rgb(204, 204, 204); height: 30px; background-color: rgb(243, 243, 243);" class="">pri_prefix</th><th style="border: 1px solid rgb(204, 204, 204); height: 30px; background-color: rgb(243, 243, 243);" class="">description</th></tr></thead><tbody class=""><tr class=""><td style="border: 1px solid rgb(204, 204, 204); height: 30px; background-color: rgb(250, 250, 250); background-position: initial initial; background-repeat: initial initial;" class="">1</td><td style="border: 1px solid rgb(204, 204, 204); height: 30px; background-color: rgb(250, 250, 250); background-position: initial initial; background-repeat: initial initial;" class="">10</td><td style="border: 1px solid rgb(204, 204, 204); height: 30px; background-color: rgb(250, 250, 250); background-position: initial initial; background-repeat: initial initial;" class="">10.10.10.10:5060</td><td style="border: 1px solid rgb(204, 204, 204); height: 30px; background-color: rgb(250, 250, 250); background-position: initial initial; background-repeat: initial initial;" class=""><br class=""></td><td style="border: 1px solid rgb(204, 204, 204); height: 30px; background-color: rgb(250, 250, 250); background-position: initial initial; background-repeat: initial initial;" class=""><br class=""></td><td style="border: 1px solid rgb(204, 204, 204); height: 30px; background-color: rgb(250, 250, 250); background-position: initial initial; background-repeat: initial initial;" class="">Gateway 1</td></tr><tr class=""><td style="border: 1px solid rgb(204, 204, 204); height: 30px; background-color: rgb(250, 250, 250); background-position: initial initial; background-repeat: initial initial;" class="">2</td><td style="border: 1px solid rgb(204, 204, 204); height: 30px; background-color: rgb(250, 250, 250); background-position: initial initial; background-repeat: initial initial;" class="">10</td><td style="border: 1px solid rgb(204, 204, 204); height: 30px; background-color: rgb(250, 250, 250); background-position: initial initial; background-repeat: initial initial;" class="">10.10.10.11:5060</td><td style="border: 1px solid rgb(204, 204, 204); height: 30px; background-color: rgb(250, 250, 250); background-position: initial initial; background-repeat: initial initial;" class=""><br class=""></td><td style="border: 1px solid rgb(204, 204, 204); height: 30px; background-color: rgb(250, 250, 250); background-position: initial initial; background-repeat: initial initial;" class=""><br class=""></td><td style="border: 1px solid rgb(204, 204, 204); height: 30px; background-color: rgb(250, 250, 250); background-position: initial initial; background-repeat: initial initial;" class="">Gateway 2</td></tr></tbody></table><div class=""><br class=""></div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Siempre usa el gateway id 1, y si falla uso el use_next_gw() y sale por el gateway id 2</div><div class=""><br class=""></div><div class="">Como hago para que haga un balancer entre el  gateway 1 y 2? Es possible?</div><div class=""><br class=""></div><div class="">Saludos</div><div class=""><br class=""></div><div class=""><br class=""></div></body></html>