We have developed an application for this feature with added value, and its not only for agent groups...
It checks all the incoming calls, compare phone number with the cdr records and find the latest extension (with talk time>0 of course), and routes the call to that extension. If the extension busy or not available, routes to designated agent group or AA, thanks to extension redirection feature.
Thanks,
Taner