<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    I have been looking at examples where load_gws() is used without
    parameters, is it customary to pass the group id ? I got that
    working by passing the group id of the gateways to load or is there
    any way to load all the gateways regardless of their group ? <br>
    <pre class="moz-signature" cols="72">Thank You
Amit Nepal
Systems Administrator
Phoenix Internet
Phone: 602-385-0731
       602-234-0917#112
<a class="moz-txt-link-freetext" href="http://www.phoenixinternet.net">http://www.phoenixinternet.net</a></pre>
    <br>
    On 2/5/2011 2:06 AM, Daniel-Constantin Mierla wrote:
    <blockquote
      cite="mid:AANLkTikeT4ta7tZdDQzMBR_r3r+BA5=M_cOJ9zx4iwBR@mail.gmail.com"
      type="cite"><br>
      <br>
      <div class="gmail_quote">On Sat, Feb 5, 2011 at 7:50 AM, Juha
        Heinanen <span dir="ltr">&lt;<a moz-do-not-send="true"
            href="mailto:jh@tutpro.com">jh@tutpro.com</a>&gt;</span>
        wrote:<br>
        <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
          0.8ex; border-left: 1px solid rgb(204, 204, 204);
          padding-left: 1ex;">
          <div class="im">Amit Nepal writes:<br>
            <br>
            &gt; modparam("lcr","db_url",DBURL)<br>
            &gt; modparam("lcr", "gw_uri_avp", "$avp(i:709)")<br>
            &gt; modparam("lcr", "ruri_user_avp", "$avp(i:500)")<br>
            &gt; modparam("lcr", "flags_avp", "$avp(i:712)")<br>
            &gt;<br>
            &gt; route[LCR]<br>
            &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{<br>
            &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if(!load_gws()){<br>
            &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;xlog("yes");<br>
            &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;};<br>
            &gt;<br>
            &gt; This gives me error : loading modules under<br>
            &gt;
            /usr/local/lib/kamailio/modules_k/:/usr/local/lib/kamailio<br>
            &gt; &nbsp; 0(1265) : &lt;core&gt; [cfg.y:3412]: parse error in
            config file<br>
            &gt; routes/route-lcr.cfg<br>
            &gt; unknown command, missing loadmodule? &nbsp;for load_gws()<br>
            &gt;<br>
            &gt; ERROR: bad config file (1 errors)<br>
            &gt;<br>
            &gt; Any guidance please ?<br>
            <br>
          </div>
          check that you have loaded lcr module with loadmodule script
          command.<br>
          <font color="#888888"><br>
          </font></blockquote>
        <br>
        most probably the error is because the function is missing
        lcr_id parameter:<br>
        <a moz-do-not-send="true"
href="http://kamailio.org/docs/modules/stable/modules/lcr.html#id2945977">http://kamailio.org/docs/modules/stable/modules/lcr.html#id2945977</a><br>
        <br>
        Cheers,<br>
        Daniel<br>
      </div>
      -- <br>
      Daniel-Constantin Mierla<br>
      &nbsp; <a moz-do-not-send="true" href="http://www.asipto.com">http://www.asipto.com</a><br>
    </blockquote>
  </body>
</html>