Hello everyone,<br><br>&nbsp;&nbsp;&nbsp; I&#39;m trying to load an avp from the database, now from my understanding I simply use the avp_db_load() function.&nbsp; Now I previously setup my avp_table to be usr_preferences, now I&#39;m doing the following:
<br><br>route[5]<br>{<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xlog(&quot;L_INFO&quot;, &quot;time [$Tf] method &lt;$rm&gt; r-uri &lt;$ru&gt; 2nd via &lt;$hdr(via[1])&gt;\n&quot;);<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; avp_db_load(&quot;$rU/username&quot;, &quot;$avp(s:e911)&quot;);
<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xlog(&quot;L_INFO&quot;, &quot;CURRENT AVP VALUE: $avp(s:e911)&quot;);<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if(is_avp_set(&quot;$avp(s:e911)&quot;))<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xlog(&quot;L_INFO&quot;, &quot;CURRENT \$ru: $ru&quot;);
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; avp_pushto(&quot;$ru&quot;, &quot;$avp(s:e911)&quot;);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xlog(&quot;L_INFO&quot;, &quot;AFTER \$ru: $ru&quot;);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; route(1);<br>}<br><br>For route 5, and I have a AVP row for &#39;e911&#39; in the database, with the username, domain, and the attribute set, the attribute ofcourse being e911, type 0, and a value set.&nbsp; However, I keep getting NULL back for the AVP I&#39;m trying to pull, does anyone care to explain what I&#39;m doing wrong?&nbsp; Thanks.
<br clear="all"><br>-- <br>Brandon Armstead