<div dir="ltr">Thanks i got that....<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 27, 2017 at 2:03 PM, Răzvan Crainea <span dir="ltr"><<a href="mailto:razvan@opensips.org" target="_blank">razvan@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 text="#000000" bgcolor="#FFFFFF">
<tt>Hi, </tt><tt>Vishal!</tt><tt><br>
</tt><tt><br>
</tt><tt>You can find the answer to your question in the function's
documentation</tt><tt>[1]: </tt><tt><tt><span style="color:rgb(0,0,0);font-size:12px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:justify;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;display:inline!important;float:none"><span></span>If the result gives many
rows, then multiple AVPs with corresponding name will be
added.<br>
<br>
Consider the following query:<br>
avp_db_query("select group where username='$tu'",
"$avp(group)");<br>
<br>
The first line of the result can be accessed using $avp(group)
(or $(avp(group)[0])), the second line $(avp(group)[1]), and
so on.<br>
<br>
</span></tt>[1]
<a class="m_4295305695167424644moz-txt-link-freetext" href="http://www.opensips.org/html/docs/modules/2.4.x/avpops.html#idp3469424" target="_blank">http://www.opensips.org/html/<wbr>docs/modules/2.4.x/avpops.<wbr>html#idp3469424</a><br>
<br>
Best regards,<br>
</tt>
<pre class="m_4295305695167424644moz-signature" cols="72">Răzvan Crainea
OpenSIPS Developer
<a class="m_4295305695167424644moz-txt-link-abbreviated" href="http://www.opensips-solutions.com" target="_blank">www.opensips-solutions.com</a></pre><div><div class="h5">
<div class="m_4295305695167424644moz-cite-prefix">On 11/24/2017 08:56 PM, Vishal Pai
wrote:<br>
</div>
</div></div><blockquote type="cite"><div><div class="h5">
<div dir="auto">Hi Everyone </div>
<div dir="auto"><br>
</div>
<div dir="auto">I just want to know what is correct to fetch all
the row from database using avp_db_query. Currently I am getting
only first row in result.</div>
<div dir="auto"><br>
</div>
<div dir="auto">One more think I want to know is it possible to
get array of for variable in Opensips configuration file.</div>
<div dir="auto"><br>
</div>
<div dir="auto"><br>
</div>
<div dir="auto">Thanks</div>
<div dir="auto"><br>
</div>
<div dir="auto">Vishal Pai </div>
<br>
<fieldset class="m_4295305695167424644mimeAttachmentHeader"></fieldset>
<br>
</div></div><pre>______________________________<wbr>_________________
Users mailing list
<a class="m_4295305695167424644moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a class="m_4295305695167424644moz-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>
<br>______________________________<wbr>_________________<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" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>