[Users] access control list using avps

jayesh nambiar jayesh_1017 at yahoo.com
Wed Sep 28 17:29:13 CEST 2005


hi all,
I tried going through the avp documents but I have a few doubts related to avp_db_load and avp_check functions. 
I wanted to implement the access control list. the access control values may be jus like:
1 => local calls
2 => long distance calls
3 => international calls.
 
I am using the default table usr_preferences. when I do the avp_check as:
if(!avp_check("$acl", "and/0x01"))
I get an error that it cannot be parsed and fix the avp_check. And can someone pls explain how the bitwise check "and", "or" etc works..
 
thanks,
jayesh


		
---------------------------------
Yahoo! for Good
 Click here to donate to the Hurricane Katrina relief effort. 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kamailio.org/pipermail/users/attachments/20050928/a2dd674b/attachment.htm 


More information about the Users mailing list