This is a setting in TMS (somewhere in administrator settings, I can't remember where exactly as I'm not in front of TMS at the moment).
If you are using the in-built database with TMS, it has a 4GB limit. We had to migrate the TMS database to an external SQL server to get CDR records for more than 3 months as otherwise the internal database would grow past this size.