[OpenSER-Users] avp_db_query() problem

Iñaki Baz Castillo ibc at aliax.net
Wed Dec 26 23:09:09 CET 2007


El Miércoles, 26 de Diciembre de 2007, Jeremy George escribió:

> Dec 26 14:16:28 [25226] ERROR:core:parse_avp_name: invalid ID <1[1]> not a
> number Dec 26 14:16:28 [25226] ERROR:core:pv_parse_avp_name: bad avp name
> [1[1]] Dec 26 14:16:28 [25226] ERROR:core:pv_parse_spec: pvar "avp" has an
> invalid name param [1[1]] Dec 26 14:16:28 [25226] ERROR:core:pv_parse_spec:
> wrong char [)/41] in [$avp(i:1[1]) avp(i:2[1])=$avp(i:2[1]) ] at [11 (5)]
> Dec 26 14:16:28 [25226] ERROR:xlog:xdbg_fixup: ERROR: wrong
> format[avp(i:1[1])=$avp(i:1[1]) avp(i:2[1])=$avp(i:2[1]) ]
> Dec 26 14:16:28 [25226] ERROR:core:fix_actions: fixing failed (code=-1) at
> cfg line 288 Dec 26 14:16:28 [25226] ERROR:core:main: failed to fix
> configuration with err code -1

http://www.openser.org/dokuwiki/doku.php/install:1.2.2-to-1.3.0#changes_in_pseudo-variables

1.2 syntax: 
 $avp(id[N])

1.3 syntax: 
 $(avp(id)[N]) 


So instead of:
  $avp(i:1[1])
use:
  $(avp(i:1)[1])


;)



-- 
Iñaki Baz Castillo




More information about the Users mailing list