I have a production server running asterisk ver 188.8.131.52.3 and FreePBX 184.108.40.206 and I wanted to move the mysql database from the production server to a updated server. I started it from scratch using the iso from Digium. It has asterisk ver 220.127.116.11 with FreePBX 18.104.22.168
After running a few tests, including the the cdr reports which looked just fine, I used the mysqldump function to export the asteriskcdrdb.sql database from the production server and then imported this database using the same command on the new machine. OOPS!
this is what I got:
Call Detail Record - Search Returned 1 Calls
Call Date Recording System Src Chan. Source DID App. Dest. Dst. Chan. Disposition Duration Userfield Account
D D D D D D D D D 00:00 D D
S S S S S S S S S 00:00 S S
No matter what date or date range I selected this is what I got. Now on the Graph by day I got the correct results. I figure that the database asteriskcdrdb table cdr has changed so is no longer compatable. Other than starting over fresh again, how can I fix this problem to:
- get the report cdr to display correctly
- add the data from the production machine safely.
Note: I did not want to do a backup and restore to the new machine for the production machine has a few errors (minor) that I did not want to follow to the new machine. The new machine has everything on it to go production except for the cdr records.