[Kamailio-Users] Logical operators

Antonio Reale ant.reale at gmail.com
Mon Jan 11 18:27:29 CET 2010


Sorry for the question. The problem was in my head. I don't need the
OR operator, but an AND operator. So the right expression is that
reported in the previous email.
Regards,

-- 
Antonio


2010/1/11 Antonio Reale <ant.reale at gmail.com>:
> I solved in this way:
> if(is_avp_set("$avp(s:avp)") && !isflagset(1) && !isflagset(2))
> {
>     ...;
> }
>
> Anyway, I'm interested to know, why the syntax in the previous email
> doesn't work?
> Thanks. Regards.
>
> --
> Antonio
>
>
> 2010/1/11 Antonio Reale <ant.reale at gmail.com>:
>> Hi,
>> I'm trying this:
>> if(is_avp_set("$avp(s:avp)") && !isflagset(1) ||
>> is_avp_set("$avp(s:avp)") && !isflagset(2))
>> {
>>      ...;
>> }
>>
>> The first condition before OR operator is never matched. Could you
>> please suggest the correct syntax?
>> Thank you very much.
>> Regards.
>>
>> --
>> Antonio
>>
>




More information about the sr-users mailing list