[OpenSER-Users] Parse error in "avpops" module [SOLVED]

Iñaki Baz Castillo ibc at in.ilimit.es
Tue Jul 31 16:14:03 CEST 2007


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
ibc at in.ilimit.es




More information about the Users mailing list