[Users] avp_check and AVP's with index's?

Daniel-Constantin Mierla daniel at voice-system.ro
Mon Mar 5 17:38:49 CET 2007


Hello,

avp_*() functions do not take the first parameter as avp with index. By 
default, the check functions goes over all values of first parameter.

You can do in 1.2.0 via:

if($avp(i:1[1]) == 5)
{
}

Cheers,
Daniel


On 03/04/07 18:11, Brandon Armstead wrote:
> Hello,
>
>     Can I simply do something like so? if(avp_check("$avp(i:1[1])", 
> "eq/s:5/g")) { # true } else { # false } ?? I seem to get an error 
> when I try to check the value against an AVP with index's, is there an 
> easier way then copying the index's value into a full AVP, can't I 
> just use the index's like normal AVP's?
>
> Thanks, all help is appreciated!
>
> -- 
> Brandon Armstead
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at openser.org
> http://openser.org/cgi-bin/mailman/listinfo/users
>   




More information about the Users mailing list