CID Lookup source --- dynamic link customers with agents?

I have small problem when deploy a call center …

I try this scenario:

Incoming call —> CID Lookup source
----> If found ----> Assigned Agent
----> If not found ----> Queue

This is possible ?

Thanks all !

Try one of these 3rd party modules:
http://www.voipsupport.it/pmwiki/pmwiki.php?n=Freepbx.DynamicRouting
or
http://www.qualityansweringservice.com/anatomy-oscc/freepbx/smartroutes

Thanks you. DynamicRouting is the best!