Skip to content
Snippets Groups Projects
Commit 7716f3d4 authored by Joshua Colp's avatar Joshua Colp Committed by Gerrit Code Review
Browse files

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

parents a3eca235 2d0eee54
Branches
Tags
No related merge requests found
...@@ -178,6 +178,9 @@ static int chanavail_exec(struct ast_channel *chan, const char *data) ...@@ -178,6 +178,9 @@ static int chanavail_exec(struct ast_channel *chan, const char *data)
snprintf(tmp, sizeof(tmp), "%d", status); snprintf(tmp, sizeof(tmp), "%d", status);
ast_str_append(&tmp_availcause, 0, "%s%s", ast_str_strlen(tmp_availcause) ? "&" : "", tmp); 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); ast_hangup(tempchan);
tempchan = NULL; tempchan = NULL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment