<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
IƱaki Baz Castillo ha scritto:
<blockquote
 cite="mid:cc1f582e0904270722xdcb271x353f484ca8874b2e@mail.gmail.com"
 type="cite">
  <pre wrap="">2009/4/27 Nick Warr <a class="moz-txt-link-rfc2396E" href="mailto:nick@mobilia.it">&lt;nick@mobilia.it&gt;</a>:
  </pre>
  <blockquote type="cite">
    <pre wrap="">When I call next_gw() will LCR use all possible gateway groups, or just
the gateway(s) in the first matching group?
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Just the gateway(s) in the first matching group. If not, it doesn't make sense.
  </pre>
</blockquote>
So, to send it to the second group, I'd need to actually have a
matching entry pointing to it with a lower priority, correct?<br>
<br>
<blockquote
 cite="mid:cc1f582e0904270722xdcb271x353f484ca8874b2e@mail.gmail.com"
 type="cite">
  <pre wrap="">

  </pre>
  <blockquote type="cite">
    <pre wrap="">The second question is tangential to the first, if it does send the
traffic to other gateway group after failing through the first, does it
regenerate the RURI, because the local provider wants a numerical prefix
on the calls I send, and the other one no (basically do I need to
account for this in my config?)
    </pre>
  </blockquote>
  <pre wrap=""><!---->
No, LCR will not add a prefix, you must do it.
  </pre>
</blockquote>
What's the prefix in the gateway table there for then?<br>
<blockquote
 cite="mid:cc1f582e0904270722xdcb271x353f484ca8874b2e@mail.gmail.com"
 type="cite">
  <pre wrap="">When ou cal "load_gw(ARG)", just the gateway goups matching the
*current* RURI prefix and the PV used as ARG will be selected. Later,
if the first result fails, "next_gw()" will take out the second
result.
  </pre>
</blockquote>
<br>
Sorry if I wasn't clear, the prefix in the LCR module is for _matching_
the prefix of a RURI, correct?<br>
The prefix in the gw Table should be added to the beginning of the RURI
before it is forwarded to the GW, but as you said, the added prefix is
discarded every time, then re added depending on the selected gateway
from the gw table, I if understand...<br>
<br>
<blockquote
 cite="mid:cc1f582e0904270722xdcb271x353f484ca8874b2e@mail.gmail.com"
 type="cite">
  <pre wrap="">

  </pre>
</blockquote>
<br>
</body>
</html>