diff options
Diffstat (limited to 'main/pbx.c')
-rw-r--r-- | main/pbx.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/main/pbx.c b/main/pbx.c index 78b200940..0f970b85e 100644 --- a/main/pbx.c +++ b/main/pbx.c @@ -5412,8 +5412,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; } |