<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <tt>Hello John,<br>
      <br>
      Do you use partitions ? Is the use_partition enabled ? If not, the
      use_next_gw() should be used like:<br>
          use_next_gw( "$avp(rules_attributes)","$avp(gw_attributes)")<br>
      <br>
      (the first param, the partition, is not to be provided)<br>
      <br>
      Could you check if this solves the problem ?<br>
          <br>
      Best regards,<br>
    </tt>
    <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  <a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a>

OpenSIPS Summit May 2017 Amsterdam
  <a class="moz-txt-link-freetext" href="http://www.opensips.org/events/Summit-2017Amsterdam.html">http://www.opensips.org/events/Summit-2017Amsterdam.html</a>
</pre>
    <div class="moz-cite-prefix">On 03/23/2017 09:19 AM, John Nash
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAA4rGPzFo7YmU7bmr8_Oe85UO+hRCJg4WBa_WsZg_LQoDbmGQw@mail.gmail.com"
      type="cite">
      <div dir="ltr">I am using drouting and recently tried to use
        gateway attribute. I call ...
        <div><br>
        </div>
        <div>do_routing("$avp(int_grp_id)","WF","$avp(gw_whitelist)" ,
          "$avp(rules_attributes)","$avp(gw_attributes)"))</div>
        <div><br>
        </div>
        <div>After this call I can see $avp(gw_attributes) is populated
          frp, attr column of dr_gateways table.</div>
        <div><br>
        </div>
        <div>but when i call following ...</div>
        <div>use_next_gw(,"$avp(rules_attributes)","$avp(gw_attributes)")<br>
        </div>
        <div><br>
        </div>
        <div>$avp(gw_attributes) becomes empty<br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>If i call next_routing() instead of use_next_gw then
          $avp(gw_attributes) retains old value but does not populate
          new value</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
      </div>
      <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>