[asterisk-users] Bitwise AND

Alex Balashov abalashov at evaristesys.com
Tue Jun 9 03:20:50 CDT 2009


Sorry, didn't carefully read my own link.  :-)

I guess it should be:

   ${MATH(HANGUPCAUSE AND bit)}

Alex Balashov wrote:

> Give this a whirl:
> 
>   ${MATH(HANGUPCAUSE&bit)}
> 
> Got it here:
> 
>   https://issues.asterisk.org/view.php?id=9891
> 
> Alex Hermann wrote:
> 
>> Hello,
>>
>>
>> How can I do bitwise AND operations on a variable? I want to check the 
>> bits set in the HANGUPCAUSE, but can't find a way to do it.
> 
> 


-- 
Alex Balashov
Evariste Systems
Web    : http://www.evaristesys.com/
Tel    : (+1) (678) 954-0670
Direct : (+1) (678) 954-0671
Mobile : (+1) (678) 237-1775



More information about the asterisk-users mailing list