ARI: report duration values in LiveRecording objects

This patch adds three new fields to the LiveRecording model:
 - total_duration: the total length of the live recording
 - talking_duration: optional. The duration of talking energy that was
   detected while the recording was made.
 - silence_duration: optional. The duration of silence that was detected while
   the recording was made.

These values are reported in the RecordingFinished ARI event.

When a DSP is enabled on the channel during the recording - which occurs when
the recording is created with max_silence_seconds (indicating that the user
actually cares about how much silence is in the file), we will report the
talking_duration and silence_duration in addition to the total_duration.

Review: https://reviewboard.asterisk.org/r/3770/

ASTERISK-24037 #close
Reported by: Samuel Galarneau


git-svn-id: http://svn.asterisk.org/svn/asterisk/branches/12@419565 f38db490-d61c-443f-a65b-d21fe96a405b
Update CHANGES for r419565

git-svn-id: http://svn.asterisk.org/svn/asterisk/branches/12@419566 f38db490-d61c-443f-a65b-d21fe96a405b