El Tuesday 31 July 2007 15:37:01 Iñaki Baz Castillo escribió:
> if (avp_db_load("$ru/domain","s:trusted_ips") && avp_check("s:trusted_ips",
> "eq/$si/gi")) {
> I get this error:
>
> 0(0) ERROR:avops:parse_avp_db:: error - bad avp flags
> 0(0) ERROR:avpops:fixup_db_avp: parse failed
> 0(0) ERROR: fix_actions: fixing failed (code=-1) at cfg line 543
> 0(0) ERROR: fix_expr : fix_actions error
> ERROR: error -1 while trying to fix configuration
It works in this way:
if ( avp_db_load("$ru/domain", "$avp(s:trusted_ips)") &&
avp_check("$avp(s:trusted_ips)", "eq/$si/gi") ) {
But it doesn't work in this way that is documented in
http://www.openser.org/docs/modules/1.2.x/avpops.html#AEN226:
if ( avp_db_load("$ru/domain", "s:trusted_ips") &&
avp_check("$avp(s:trusted_ips)", "eq/$si/gi") ) {
Anyway it works now ;)
--
Iñaki Baz Castillo
[EMAIL PROTECTED]
_______________________________________________
Users mailing list
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/users