[OpenSIPS-Users] Regarding avp_db_query
razvan at opensips.org
Mon Nov 27 03:33:08 EST 2017
You can find the answer to your question in the function's
documentation: If the result gives many rows, then multiple AVPs with
corresponding name will be added.
Consider the following query:
avp_db_query("select group where username='$tu'", "$avp(group)");
The first line of the result can be accessed using $avp(group) (or
$(avp(group))), the second line $(avp(group)), and so on.
On 11/24/2017 08:56 PM, Vishal Pai wrote:
> Hi Everyone
> 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.
> One more think I want to know is it possible to get array of for
> variable in Opensips configuration file.
> Vishal Pai
> Users mailing list
> Users at lists.opensips.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Users