How can i get the cdr records in CCME.
Here is where the logs are for CME;
show call history voice - Displays the call history table for voice calls.
To specify call detail record (CDR) storage time, use the dial-control-mib command, which has two sets of keyword and argument options. The max-size number option specifies the maximum size of the CDR event table. The valid range is from 0-500, and the default is 50. Setting the value to 0 disables the CDR feature.
The retain-timer number option specifies the length of time in minutes that entries will remain in the call history table. The valid range is from 0-2147483647 minutes, and the default is 15. Setting the value to 0 prevents any call history from being retained.
Call Activity Monitoring and Call History Logging
The Cisco Unified CME GUI provides call history table information so that a network administrator can monitor the call history information for unknown callers and use this information to disallow calling activities based on select calling patterns. The call history log should be configured to perform forensics and accounting and allow the administrator to track down fraudulent calling patterns. Configure the following commands to log call activity and call history:
dial-control-mib retain-timer 10080
dial-control-mib max-size 500
From this doc;
Logging CDR to External Servers
The parsing of this info is the tough part :( You might want to look into Cisco Partner "Stonevoice" that has a nice application for doing up these reports/graphs etc;
Hope this helps!