Not sure this is possible, but look at the ring strategies and penalties and you will be able to accomplish the above with queues alone.
https://wiki.freepbx.org/display/FPG/Queues+Module+User+Guide#QueuesModuleUserGuide-RingStrategy
Not sure this is possible, but look at the ring strategies and penalties and you will be able to accomplish the above with queues alone.
https://wiki.freepbx.org/display/FPG/Queues+Module+User+Guide#QueuesModuleUserGuide-RingStrategy