[SR-Users] ser avp question

Alex Balashov abalashov at evaristesys.com
Mon Mar 29 15:32:38 CEST 2010


Perhaps $(avp(fd.attr)[$var(i)])

?

On 03/29/2010 09:31 AM, Juha Heinanen wrote:

> Daniel-Constantin Mierla writes:
>
>   >  using PV style should work:
>   >
>   >  $var(attr) = $(avp(fd.attr[$var(i)]);
>
> daniel,
>
> thanks for trying to help.  however,
>
>      if (defined($(avp(fd.attr[$var(i)])))) {
>
> produces
>
>   0(7761) ERROR:<core>  [usr_avp.c:994]: Invalid AVP index '$var(i)'
>   0(7761) ERROR: pv [pv_core.c:2112]: bad avp name [attr[$var(i)]]
>   0(7761) ERROR:<core>  [pvapi.c:553]: pvar "avp" has an invalid name param [attr[$var(i)]]
>   0(7761) ERROR:<core>  [pvapi.c:708]: wrong char [)/41] in [$(avp(fd.attr[$var(i)]))] at [22 (2)]
>   0(7761) :<core>  [cfg.y:3379]: parse error in config file /etc/sip-proxy/sip-proxy.cfg, line 3174, column 17-40: unknown script pseudo variable $(avp(fd.attr[$var(i)]))
>
> -- juha
>
> _______________________________________________
> sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


-- 
Alex Balashov - Principal
Evariste Systems LLC

Tel    : +1 678-954-0670
Direct : +1 678-954-0671
Web    : http://www.evaristesys.com/




More information about the sr-users mailing list