Browse Source

Modifications to recording metadata start/end time lines

In the call recording metadata file, start and end timestamps for the
call are now "key: value" formatted so you can tell what they are just
by reading the metadata file.
pull/245/head
Dylan Mikus 10 years ago
committed by Eric Green
parent
commit
209cb7ab32
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      daemon/recording.c

+ 2
- 2
daemon/recording.c View File

@ -241,10 +241,10 @@ int meta_finish_file(struct call *call) {
struct tm *timeinfo;
timeinfo = localtime(&start);
strftime(timebuffer, 20, "%FT%T", timeinfo);
fprintf(recording->meta_fp, "\n\n%s\n", timebuffer);
fprintf(recording->meta_fp, "\n\ncall start time: %s\n", timebuffer);
timeinfo = localtime(&end);
strftime(timebuffer, 20, "%FT%T", timeinfo);
fprintf(recording->meta_fp, "%s\n", timebuffer);
fprintf(recording->meta_fp, "call end time: %s\n", timebuffer);
// Print metadata
fprintf(recording->meta_fp, "\n\n%s\n", recording->metadata->s);


Loading…
Cancel
Save