[Users] avp_check() replacement? Openser 1.2?
Daniel-Constantin Mierla
daniel at voice-system.ro
Wed Apr 18 13:49:36 CEST 2007
Hello,
On 04/17/07 20:39, Brandon Armstead wrote:
> Hello,
>
> I'm wondering if in OpenSER 1.2 if there is a replacement method
> to check if a value is inside an avp list, as follows:
>
> if($avp(some_avp_value) == "$avp(some_avp_list_value)/g"){
> # do something
> }
>
> avp check equivlent:
> if(avp_check("$avp(some_avp_value)",
> "eq/$avp(some_avp_list_value)/g"){
> # do something
> }
>
you have to stick to avp_check() for 1.2. For next release is planned
kind of:
foreach($var(x) as $avp(some_avp_value)) {...}
Cheers,
Daniel
> Does anyone know if this is implemented or being planned for
> implementation, what are everyone else's thoughts on something like
> this? Thanks!
>
> --
> Brandon Armstead
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at openser.org
> http://openser.org/cgi-bin/mailman/listinfo/users
>
More information about the sr-users
mailing list