[asterisk-users] Bitwise operations in dialplan ?
Antony.Stone at asterisk.open.source.it
Mon Dec 9 06:40:18 CST 2019
On Monday 09 December 2019 at 13:35:28, Olivier wrote:
> I'm thinking about using a single (long) integer value as a compact way to
> store user privileges.
> Do bitwise operations as in , exist in Asterisk's dialplan ?
> Any workaround ?
You can't do shifts with >> and << but you can still multiply and divide by
powers of 2.
>  https://wiki.python.org/moin/BitwiseOperators
"Measuring average network latency is about as useful as measuring the mean
temperature of patients in a hospital."
- Stéphane Bortzmeyer
Please reply to the list;
please *don't* CC me.
More information about the asterisk-users