[Users] auth_db and load_credentials question

Klaus Darilion klaus.mailinglists at pernau.at
Tue Mar 13 17:10:38 CET 2007


Hi!

When I load AVPs during authentication - what type is the content of the 
AVP? string? integer? Is it automatically derived from the column type 
(like avp_db_query)?

My problem is: I want to load an integer value and compare it against an 
integer:

modparam("auth_db", "load_credentials", "s:maxcalls=maxcalls")
...
if(avp_check("$avp(i:40)", "ge/$avp(s:maxcalls)/g") {

Does this work? What happens if I compare an integer with a string - 
will there be a conversion?

thanks
klaus

-- 
Klaus Darilion
nic.at





More information about the sr-users mailing list