[SR-Users] How to check a bit (1/0) of a pseudo-variable?

Iñaki Baz Castillo ibc at aliax.net
Thu Jun 16 13:12:51 CEST 2011


2011/6/16 Iñaki Baz Castillo <ibc at aliax.net>:
> Now I just need to know if bit number 2 ($var(id_zone)) of
> $var(allowed_zones) is 0 or 1.
>
> Is there any function like isflagset() but for pseudo-variables?

I've found isavpflagset() right now:

  http://sip-router.org/wiki/cookbooks/core-cookbook/devel#isavpflagset

But it has no description. How is it supposed to work?

-- 
Iñaki Baz Castillo
<ibc at aliax.net>



More information about the sr-users mailing list