Outbound DID Selection from Database

I would like to speak or hire someone who can write a custom script or dialplan.

Scenario:

User dials 9 before a 10 digit US based telephone number

User dials without the US country code 1

System interrogates Area Code, and selects an oubound caller id from a database table that is matched with the area code dialed

If no matching area code found, then the script sends [UNAVAILABLE] or [RESTRICTED]

If the user does not dial 9, then the script sends [UNAVAILABLE] or [RESTRICTED]

All outbound DID’s will be owned and legal, this is not an illegal spoof script

Example A:

User dials 9-555-555-1212, script looks in database, script finds matching area code DID 555-234-1124, script makes the call outbound cid 555-234-1124

Example B:

User dials 9-321-555-1212, script looks in database, script finds NO matching area code DID, script makes the call outbound cid [UNAVAILABLE] or [RESTRICTED]

Example C:

User dials 716-555-1212, script ignores action, and the call outbound cid [UNAVAILABLE] or [RESTRICTED]

Could someone contact me to work this through, or I will pay someone to build it.

Shawn