If the the lawyers have a contact center set (and have to login) you can use option 1 or 2. If the lawyers 'just have a telephone set' you can use option 3.
see below;
1) Check if any agents are available on skillset level via:
IF IDLE AGENT COUNT Init_skill < 1 THEN
..
END IF
2) Check if a specific agent is available via:
IF IDLE AGENT <Agent ID> THEN
..
END IF
3) Route the call to an (non-Contact Center) extention via:
ROUTE CALL <any_dn> CONTROLLED
CONTROLLED keyword
By default, after a call is routed, it is no longer under the control of Contact Center Manager. However, if you use the CONTROLLED keyword, the call
remains in the control of Contact Center Manager. If an error occurs, such as an invalid or busy destination, the call is returned to the queue so that it can be further treated by the system.
The CONTROLLED keyword works only if the ultimate destination (directly, or indirectly through switch features such as CALL FORWARD) is an internal DN (that is, on the same switch). If the DN is an external number that cannot be connected (for example, because it is busy), the CONTROLLED option is ignored. If this situation occurs for a call, the user receives a busy tone, and the script stops processing the call. CONTROLLED mode applies only if the destination is an internal DN that is busy or that does not exist.
CONTROLLED keyword is not currently supported for SIP.