The easiest way to configure a Cisco phone is to use the Better Voice provisioning server.
Steps:
Admin Login
Advanced
Provisioning
http://www.bettervoice.com/cisco/$MAC.xml
Profile Rule