aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authormnicholson <mnicholson@f38db490-d61c-443f-a65b-d21fe96a405b>2009-04-17 15:43:09 +0000
committermnicholson <mnicholson@f38db490-d61c-443f-a65b-d21fe96a405b>2009-04-17 15:43:09 +0000
commiteaf5a970a3cdfb54715d957d2dc071e3ae000211 (patch)
tree1037415cfc275ea7196cab7df63c520fc04bd8e1 /main
parent6e51f98867f5a9f5e1985240dd438c38006e3e52 (diff)
Make Busy() application set the CDR disposition to BUSY.
(closes issue #14306) Reported by: cristiandimache git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@189009 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r--main/pbx.c4
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;
}