[Serusers] Need help proper way to see avpops value

reza shah rshah0385 at yahoo.com
Tue Oct 10 02:42:48 CEST 2006


Hi,

I just try avpops to get a value from usr_preferences.
I have followed the onsip.org article, and some of
previous email in this list. 
Still have trouble to see the value inside avpops
variable. May be i missed something. i`m using ser
0.9.6 with freebsd.
Did i do the right way?

my codes are:
loadmodule "/usr/local/lib/ser/modules/avpops.so"
loadmodule "/usr/local/lib/ser/modules/xlog.so"

modparam("avpops","avp_url","mysql://ser:heslo@localhost/ser")
modparam("avpops","avp_table","usr_preferences")
modparam("avpops","username_column","username")
modparam("avpops","domain_column","domain")
modparam("avpops","value_column","value")
modparam("avpops","type_column","type")
modparam("avpops","attribute_column","attribute")

#inside register method
avp_db_load("$from/domain","s:mapnumber");
xlog("L_NOTICE","value = $avp(s:mapnumber)\n");


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



More information about the sr-users mailing list