Hello Bogdan &amp; Dave,<div><br></div><div>Yes. It works!</div><div><br></div><div><div>avp_db_load(&quot;$ruri/username&quot;, &quot;s&quot;);</div><div>xlog(&quot;TEST: OFF LINE FORWARD TO: $avp(s:fwdoffline)\n&quot;);</div>
<div>xlog(&quot;TEST: BUSY FORWARD TO to: $avp(s:fwdbusy)\n&quot;);</div><div>xlog(&quot;TEST: CALL FORWARD TO : $avp(s:callfwd)\n&quot;);</div><br><div class="gmail_quote">On Tue, Aug 24, 2010 at 2:30 PM, Bogdan-Andrei Iancu <span dir="ltr">&lt;<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi Sujeev,<br>
<br>
you can try it:<br>
<br>
- avp_db_load(&quot;$ruri/username&quot;, &quot;a&quot;) (see<br>
<a href="http://www.opensips.org/html/docs/modules/1.6.x/avpops.html#id228513" target="_blank">http://www.opensips.org/html/docs/modules/1.6.x/avpops.html#id228513</a>)<br>
<br>
Regards,<br>
Bogdan<br>
<div><div></div><div class="h5"><br>
Sujeev wrote:<br>
&gt; Hello List,<br>
&gt; Please let me know how to load multiple attribute at one time. let<br>
&gt; say. my &quot;usr_preferences&quot; table has 3 attribute for single user (e.g<br>
&gt; fwdoffline,fwdbusy,callfwd). Now I load these 3 attributes at 3 times.<br>
&gt; I want to reduce DB queries :)<br>
&gt;<br>
&gt; I did this.<br>
&gt;<br>
&gt; ------&gt;8----<br>
&gt; avp_db_load(&quot;$ruri/username&quot;, &quot;$avp(s:)&quot;);<br>
&gt; xlog(&quot;TEST: OFF LINE FORWARD TO: $avp(s:fwdoffline)\n&quot;);<br>
&gt; xlog(&quot;TEST: BUSY FORWARD TO to: $avp(s:fwdbusy)\n&quot;);<br>
&gt; xlog(&quot;TEST: CALL FORWARD TO : $avp(s:callfwd)\n&quot;);<br>
&gt; ------&gt;8----<br>
&gt; and the result was<br>
&gt;<br>
&gt; TEST : OFF LINE FORWARD TO: &lt;null&gt;<br>
&gt; TEST : BUSY FORWARD TO to: &lt;null&gt;<br>
&gt; TEST : CALL FORWARD TO : &lt;null&gt;<br>
&gt;<br>
&gt; P.S I followed<br>
&gt; this <a href="http://www.mail-archive.com/users@openser.org/msg00589.html" target="_blank">http://www.mail-archive.com/users@openser.org/msg00589.html</a><br>
&gt;<br>
&gt; Thank you,<br>
&gt; Sujeev<br>
</div></div>&gt; ------------------------------------------------------------------------<br>
<div class="im">&gt;<br>
&gt; _______________________________________________<br>
&gt; Users mailing list<br>
&gt; <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
&gt; <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
&gt;<br>
<br>
<br>
</div><font color="#888888">--<br>
Bogdan-Andrei Iancu<br>
OpenSIPS Bootcamp<br>
20 - 24 September 2010, Frankfurt, Germany<br>
<a href="http://www.voice-system.ro" target="_blank">www.voice-system.ro</a><br>
</font><div><div></div><div class="h5"><br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</div></div></blockquote></div><br></div>