<div dir="ltr"><div dir="ltr">Hi all<div><br></div><div>I'm using drouting and I need to route calls to various Gateway types based on $si and destination IP but it seems that $dd is not known at this point.</div><div>How can I get the IP address of the destination gateway from the drouting database and assign it to a usable variable?</div><div><br></div><div>I'm thinking something like this:</div><div><br></div><div><div>if ($si =~"^(10\.*)" && goes_to_gw("1")) {</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">              </span>$dd = ???????</div></div><div>                }</div><div><br></div><div><br></div><div>Many thanks</div><div>Mark.</div><div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature">Mark Farmer<br><a href="mailto:farmorg@gmail.com" target="_blank">farmorg@gmail.com</a></div></div></div></div>