Rename the option to better match its usage.

pull/1278/head
Damir Nedžibović 4 years ago
parent 11128bff49
commit 92e9d7c679

@ -1753,6 +1753,9 @@ call legs, therefore all keys other than `call-id` are currently ignored.
If the chosen recording method doesn't support in-kernel packet forwarding, enabling call recording If the chosen recording method doesn't support in-kernel packet forwarding, enabling call recording
via this messages will force packet forwarding to happen in userspace only. via this messages will force packet forwarding to happen in userspace only.
If the metadata contains the 'output-file' key, then its value will be used
as an output file. Note that a filename extension will not be added.
`stop recording` Message `stop recording` Message
------------------------- -------------------------

@ -150,6 +150,7 @@ static void meta_ptime(metafile_t *mf, unsigned long mnum, int ptime)
} }
static char *get_output_path(metafile_t *mf) { static char *get_output_path(metafile_t *mf) {
static const char *of = "output-file";
char *res = NULL; char *res = NULL;
str all_meta; str all_meta;
str_init(&all_meta, mf->metadata); str_init(&all_meta, mf->metadata);
@ -162,8 +163,8 @@ static char *get_output_path(metafile_t *mf) {
// key:value separator not found, skip // key:value separator not found, skip
continue; continue;
} }
if (strncmp(key.s, "output-dir", 10) >= 0) { if (strncmp(key.s, of, strlen(of)) >= 0) {
ilog(LOG_INFO, "Metadata output-dir found token=%s", token.s); ilog(LOG_INFO, "Metadata output-file found token=%s", token.s);
res = token.s; res = token.s;
break; break;
} }

Loading…
Cancel
Save