<div dir="ltr">Yes I tried that but still same issue. I call goes_to_gw and after that attributes are filled.</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 28, 2017 at 3:25 PM, Bogdan-Andrei Iancu <span dir="ltr"><<a href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div 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)","$<wbr>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="m_7277364954382431405moz-signature" cols="72">Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  <a class="m_7277364954382431405moz-txt-link-freetext" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.<wbr>com</a>

OpenSIPS Summit May 2017 Amsterdam
  <a class="m_7277364954382431405moz-txt-link-freetext" href="http://www.opensips.org/events/Summit-2017Amsterdam.html" target="_blank">http://www.opensips.org/<wbr>events/Summit-2017Amsterdam.<wbr>html</a>
</pre><div><div class="h5">
    <div class="m_7277364954382431405moz-cite-prefix">On 03/23/2017 09:19 AM, John Nash
      wrote:<br>
    </div>
    </div></div><blockquote type="cite"><div><div class="h5">
      <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)",<wbr>"WF","$avp(gw_whitelist)" ,
          "$avp(rules_attributes)","$<wbr>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_<wbr>attributes)","$avp(gw_<wbr>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="m_7277364954382431405mimeAttachmentHeader"></fieldset>
      <br>
      </div></div><pre>______________________________<wbr>_________________
Users mailing list
<a class="m_7277364954382431405moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a class="m_7277364954382431405moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </div>

</blockquote></div><br></div>