[asterisk-users] Bitwise operations in dialplan ?

Antony Stone 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:

> Hello,
> I'm thinking about using a single (long) integer value as a compact way to
> store user privileges.
> Do bitwise operations as in [1], 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.

> [1] 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 mailing list