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

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to