[OpenSER-Users] Is possible to store various values in an AVP?

Iñaki Baz Castillo ibc at aliax.net
Sat Jan 26 21:49:36 CET 2008


El Sábado, 26 de Enero de 2008, escribió:
> Hello,
>
>     Why not just make allowed_from_numbers a regex, and feed it directly?
> I.e.
>
> $avp(allowed_from_numbers) = "(100|200|300|400)";
>
> if($avp(allowed_from_numbers) =~ $fU){
> # allowed
> } else {
> # not allowed
> }
>
>
> Hope this helps!

Yes, sure, it's a good idea ;)
Thanks.


-- 
Iñaki Baz Castillo




More information about the Users mailing list