Hello,
On 10/14/05 15:45, jayesh nambiar wrote:
hi all, I want to account src_ips in my acc table. While using openser0.9.5 I used the following modparam syntax: modparam("acc", "db_extra", "src= avp/i:10") and when doing setflag(1), I wrote avp_write() syntax to write src_ip in i:10. But now I am using openser 0.10.x and it gives me an error saying the following:
the format of the parameter has changed to be consistent with the pseudo-variable format. The online documentation seems to be a bit back tot the development, try to use: modparam("acc", "db_extra", "src= $avp(i:10)")
You can use any pseudo-variable by its name to log into database, not only avps, as it was previously. http://www.openser.org/docs/pseudo-variables.html
Cheers, Daniel
Oct 14 12:35:43 localhost /usr/local/sbin/openser[19916]: ACC - initializing Oct 14 12:35:43 localhost /usr/local/sbin/openser[19916]: xl_parse_item: error - bad parameters Oct 14 12:35:43 localhost /usr/local/sbin/openser[19916]: ERROR:acc:parse_acc_extra: parse failed in <src= avp/i:10> around position 5 Oct 14 12:35:43 localhost /usr/local/sbin/openser[19916]: acc:parse_acc_extra: error Oct 14 12:35:43 localhost /usr/local/sbin/openser[19916]: ERROR:acc:mod_init: failed to parse db_extra param Oct 14 12:35:43 localhost /usr/local/sbin/openser[19916]: init_mod(): Error while initializing module acc Could someone pls let me know, if the syntax for adding extra column in acc table has changed. I have a column named "src" in the acc table.
thank you. jayesh
Yahoo! Music Unlimited - Access over 1 million songs. Try it free. http://pa.yahoo.com/*http://us.rd.yahoo.com/evt=36035/*http://music.yahoo.com/unlimited/
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users