include line name in recording file name

This commit is contained in:
Harald Welte 2022-10-16 21:24:40 +02:00
parent 7ac9a88199
commit 1688ffc615
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-%u-%s.raw", ts->line->inst->cfg.output_path,
call_label, ts->num, suffix);
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);
rc = open(buf, O_CREAT|O_WRONLY|O_TRUNC|O_NONBLOCK, 0640);
if (rc < 0) {