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 5fe68b9097
commit 209cb7ab32

@ -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