aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main/pbx.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/main/pbx.c b/main/pbx.c
index da48d9e1a..63b37b585 100644
--- a/main/pbx.c
+++ b/main/pbx.c
@@ -7601,8 +7601,10 @@ static int pbx_builtin_busy(struct ast_channel *chan, void *data)
ast_indicate(chan, AST_CONTROL_BUSY);
/* Don't change state of an UP channel, just indicate
busy in audio */
- if (chan->_state != AST_STATE_UP)
+ if (chan->_state != AST_STATE_UP) {
ast_setstate(chan, AST_STATE_BUSY);
+ ast_cdr_busy(chan->cdr);
+ }
wait_for_hangup(chan, data);
return -1;
}