[Users] openser: group module
klaus.mailinglists at pernau.at
klaus.mailinglists at pernau.at
Fri Apr 27 13:56:20 CEST 2007
avps are parsed as strings, thus try (without guarantee):
is_user_in("$avp(status)", "r")
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi,
>
> today I tried to use is_user_in like this:
>
> if(is_user_in($avp(status), "r"))
> {
>
> }
>
> I get this error on openser console:
>
> 0(6852) parse error (479,23-35): syntax error
> 0(6852) parse error (479,39-40): bad arguments
>
> Line 479 is the if(is_user_in... line
>
> regards
> helmut
>
>
> Helmut Kuper schrieb:
>>
>> Helmut Kuper schrieb:
>>> Hello,
>>
>>> I tried to call is_user_in funktion with a variable as group name. I
>>> want to create the group name on the fly, when a INVITE arrives.
>>
>>> if(is_user_in("To", $var(a)))
>>> {
>>> ...
>>> }
>>
>>
>>> I got this error message:
>>
>>> 0(27274) xl_parse_svname: parsing [$var(a)]
>>> 0(27274) xl_lookup_spec_name: found [fu] [18]
>>> 0(27274) find_cmd_export_t: found <xlog>(2) in module xlog
>>> [/home/hk/openser//lib/openser/modules/]
>>> 0(27274) parse error (479,27-34): syntax error
>>> 0(27274) parse error (479,34-35): bad arguments
>>
>>
>>
>> wrong -> > Is there a way to do dynamic group names für is_user_id?
>>
>> correct: Is there a way to do dynamic group names for is_user_in?
>>
>>
>>
>>> regards
>>> helmut
>>
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at openser.org
>> http://openser.org/cgi-bin/mailman/listinfo/users
>>
>>
>
> _______________________________________________
> Users mailing list
> Users at openser.org
> http://openser.org/cgi-bin/mailman/listinfo/users
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.5 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFGMZl74tZeNddg3dwRAmsbAJ9YBWuY85dxxWQ7WLkI6iouAmG3dQCgv+Z4
> zbIUozWtbGYLdf9jCJxUCG4=
> =7F7d
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> Users mailing list
> Users at openser.org
> http://openser.org/cgi-bin/mailman/listinfo/users
>
More information about the Users
mailing list