<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p><tt>Hi Richard,</tt></p>
    <p><tt>The "gw_attrs_avp" was removed a while back ago, and replaced
        with an output parameter to do_routing() and friends.</tt></p>
    <p><tt>Thank you for reporting! I've fixed the docs where needed.</tt></p>
    <pre class="moz-signature" cols="72">Liviu Chircu
OpenSIPS Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
    <div class="moz-cite-prefix">On 09.08.2016 05:50, Richard Robson
      wrote:<br>
    </div>
    <blockquote
      cite="mid:4bbffc93-6116-c1e3-5496-203d5ea8a9d6@greenlightcrm.com"
      type="cite">
      <meta http-equiv="content-type" content="text/html;
        charset=windows-1252">
      <p><tt>Hi,</tt></p>
      <p><tt><br>
        </tt></p>
      <p><tt>I'm trying to keep a channel count per trunk and want to
          keep the value in the DB assigned to the particular trunk. I
          thought that I could use the <br>
          <code>gw_attrs_avp parameted in the DRouting module (which is
            doing the routing). <br>
          </code></tt></p>
      <p><tt><code><br>
          </code></tt></p>
      <p><tt><code>I've added this line to the module config ,</code></tt></p>
      <p><tt><code>modparam("drouting", "gw_attrs_avp",
            "$avp(trunkcalllimit)")<br>
          </code></tt></p>
      <p><tt><code>and i'm storing the call limit in the attrs field of
            the dr_gateways table<br>
          </code></tt></p>
      <p><tt><code> but i'm getting this error in the logs:</code></tt></p>
      <p><tt><code><br>
          </code></tt></p>
      <p><tt><code>Aug  9 11:08:37 gl-sip-03 opensips:
            ERROR:core:set_mod_param_regex: parameter
            &lt;gw_attrs_avp&gt; not found in module &lt;drouting&gt;<br>
            Aug  9 11:08:37 gl-sip-03 opensips: CRITICAL:core:yyerror:
            parse error in config file /etc/opensips/opensips.cfg, line
            117, column 20-21: Parameter &lt;gw_attrs_avp&gt; not found
            in module &lt;drouting&gt; - can't set<br>
            Aug  9 11:08:37 gl-sip-03 opensips: ERROR:core:main: bad
            config file (1 errors)<br>
            Aug  9 11:08:37 gl-sip-03 opensips: NOTICE:core:main:
            Exiting....<br>
          </code></tt></p>
      <p><tt><code><br>
          </code></tt></p>
      <p><tt><code>Has something changed or has the documentation not
            been updated. <br>
          </code></tt></p>
      <p><tt><code><br>
          </code></tt></p>
      <p><tt><code>It's version 2.2.1</code></tt></p>
      <p><tt><code><br>
          </code></tt></p>
      <p><tt><code>Regards,</code></tt></p>
      <p><tt><code><br>
          </code></tt></p>
      <p><code><tt>Richard</tt><br>
        </code></p>
      <br>
      <pre class="moz-signature" cols="72">-- 
Richard Robson
Greenlight Support
01382 843843
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:support@greenlightcrm.com">support@greenlightcrm.com</a></pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>