<br><font size=2 face="sans-serif">Hi Bogdan,</font>
<br>
<br><font size=2 face="sans-serif">The proposed 'workaround' does perfectly
the job indeed :-)</font>
<br>
<br><font size=2 face="sans-serif">Thx again !</font>
<br>
<br><font size=2 face="sans-serif">Kindly regards,</font>
<br>
<br><font size=2 face="sans-serif">Erwan.</font>
<br>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Bogdan-Andrei Iancu <bogdan@voice-system.ro></b>
</font>
<p><font size=1 face="sans-serif">12/09/2008 11:50</font>
<td width=59%>
<table width=100%>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">A</font></div>
<td valign=top><font size=1 face="sans-serif">erwan.humez@orange-ftgroup.com</font>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td valign=top><font size=1 face="sans-serif">users@lists.opensips.org</font>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">Objet</font></div>
<td valign=top><font size=1 face="sans-serif">Re: [OpenSIPS-Users] Module
GROUP / is_user_in</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=2><tt>Hi Erwan,<br>
<br>
Indeed, the group name cannot be a PV (for the group functions). You can
<br>
open a feature request on the tracker to point out that there is a need
<br>
for such functionality.<br>
<br>
In the mean while, I can suggest a trick :) - use avpops module, the <br>
avp_query() function to run a raw query against the grp table"<br>
avp_query("select grp from grp where username='$fu'
and domain='$fd' <br>
and grp='$avp(my_grp)' ","$avp(i:1)");<br>
<br>
this is exactly the query run by the group module - if $avp(i:1) is set,
<br>
it means that the user is in the group (if the select returns a record).<br>
<br>
Regards,<br>
Bogdan<br>
<br>
erwan.humez@orange-ftgroup.com wrote:<br>
><br>
> Hi,<br>
><br>
> Using opensips 1.4.2 along with MySQL db, I would like to use a pseudo
<br>
> variable (ideally $fu) or even a script variable as the 'group' <br>
> parameter to be given to the group function is_user_in(). But <br>
> apparently, only a static string has to be used instead...<br>
><br>
> Has anyone faced this issue and this need before ? And maybe worked
<br>
> out this ?<br>
><br>
> Thx a lot for any helpful feedback,<br>
><br>
> Erwan.<br>
> *********************************<br>
> This message and any attachments (the "message") are confidential
and <br>
> intended solely for the addressees.<br>
> Any unauthorised use or dissemination is prohibited.<br>
> Messages are susceptible to alteration.<br>
> France Telecom Group shall not be liable for the message if altered,
<br>
> changed or falsified.<br>
> If you are not the intended addressee of this message, please cancel
<br>
> it immediately and inform the sender.<br>
> ********************************<br>
><br>
> ------------------------------------------------------------------------<br>
><br>
> _______________________________________________<br>
> Users mailing list<br>
> Users@lists.opensips.org<br>
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users<br>
> <br>
<br>
<br>
</tt></font>
<br>
<table><tr><td bgcolor=#ffffff><font color=#000000>*********************************<br>
This message and any attachments (the "message") are confidential and intended solely for the addressees. <br>
Any unauthorised use or dissemination is prohibited.<br>
Messages are susceptible to alteration. <br>
France Telecom Group shall not be liable for the message if altered, changed or falsified.<br>
If you are not the intended addressee of this message, please cancel it immediately and inform the sender.<br>
********************************<br>
</font></td></tr></table>