Help with Custom Extension on Freepbx 16.

There’s a method outlined here where you can branch a call based on the device state of a single extension

If you have a list of extensions, you would modify the Asterisk expression to check them all.