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.
Hi Iñaki,
Just to have in mind, there are no restrictions about the information you can put in the AVPs or VARs - it is up to you how to interpret the stored information in the script.
Regards, Bogdan
Iñaki Baz Castillo wrote:
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.