How to store call detail record info and how to bill calls

Hello everyone,

I am a beginer with Asterisk, now have 2 questions.

  1. How to store call detail record(CDR) information in asterisk system.
  2. Does asterisk provide some tool to bill every calls, if not, how can i do it.

Your any answer is appriciated. Thanks!