fix output file name composition

This got broken in commit 1688ffc615
when I introduced including the line name in recording file name.
This commit is contained in:
Harald Welte 2022-10-17 19:27:09 +02:00
parent 82e7cc0e95
commit 8b67e4ab47
1 changed files with 2 additions and 2 deletions

View File

@ -451,8 +451,8 @@ static int isdntap_open_file(struct isdntap_ts *ts, const char *call_label, cons
char buf[PATH_MAX];
int rc;
snprintf(buf, sizeof(buf), "%s/isdntap-%s-%s-%u-%s.raw", ts->line->name,
ts->line->inst->cfg.output_path, call_label, ts->num, suffix);
snprintf(buf, sizeof(buf), "%s/isdntap-%s-%s-%u-%s.raw", ts->line->inst->cfg.output_path,
ts->line->name, call_label, ts->num, suffix);
rc = open(buf, O_CREAT|O_WRONLY|O_TRUNC|O_NONBLOCK, 0640);
if (rc < 0) {