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

Bogdan-Andrei Iancu bogdan at voice-system.ro
Mon Jan 28 12:05:24 CET 2008


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.
>
>
>   





More information about the sr-users mailing list