[OpenSER-Users] test operator]

Bogdan-Andrei Iancu bogdan at voice-system.ro
Thu Sep 20 18:41:05 CEST 2007


Klaus Darilion wrote:
> Bogdan-Andrei Iancu schrieb:
>> Hi Klaus,
>>
>> the [..] operator is used to convert generic numerical value (maybe 
>> result of arithmetic ops to logical value.
>>
>> in your example, the == is already a logical operator, so no need to 
>> any conversion.
>
> Does ($rd == "mydomain") works too?
yes, it works also.
>
> is this somewhere documented? The corebook only describes assignments,
> but not conditions/comparisons.
you can compare any pv against any pv or string

Regards,
Bogdan





More information about the Users mailing list