aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormnicholson <mnicholson@f38db490-d61c-443f-a65b-d21fe96a405b>2009-04-17 17:33:27 +0000
committermnicholson <mnicholson@f38db490-d61c-443f-a65b-d21fe96a405b>2009-04-17 17:33:27 +0000
commit69e7f1c5d6876d5300d48d6762b857703466366f (patch)
treeeb23a2643e8601ea9f6e503750093912e797535e
parent891750f3199d628ce0fb2f767f9c4ea2be7c39f6 (diff)
Merged revisions 189010 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ................ r189010 | mnicholson | 2009-04-17 10:44:18 -0500 (Fri, 17 Apr 2009) | 12 lines Merged revisions 189009 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r189009 | mnicholson | 2009-04-17 10:43:09 -0500 (Fri, 17 Apr 2009) | 5 lines 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.6.1@189069 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--main/pbx.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/main/pbx.c b/main/pbx.c
index 59e4a3697..99fd47899 100644
--- a/main/pbx.c
+++ b/main/pbx.c
@@ -7859,8 +7859,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;
}