Yes you can route the calls to a different IP address based on the DID that is received from the E1 line. You just need to create the static route as you mentioned in your message. The sroute should be based on the DID. The ANI will be passed along with it.
But if you are looking to route the call based on the ANI, this cannot be done.