Merge "ChanIsAvail() generates a CDR when unanswered=yes in cdr.conf." into 16

This commit is contained in:
Joshua Colp 2019-09-11 09:26:59 -05:00 committed by Gerrit Code Review
commit cb90d1cd7c
1 changed files with 3 additions and 0 deletions

View File

@ -178,6 +178,9 @@ static int chanavail_exec(struct ast_channel *chan, const char *data)
snprintf(tmp, sizeof(tmp), "%d", status);
ast_str_append(&tmp_availcause, 0, "%s%s", ast_str_strlen(tmp_availcause) ? "&" : "", tmp);
/* Disable CDR for this temporary channel. */
ast_cdr_set_property(ast_channel_name(tempchan), AST_CDR_FLAG_DISABLE_ALL);
ast_hangup(tempchan);
tempchan = NULL;