diff options
author | mnicholson <mnicholson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-04-17 15:44:18 +0000 |
---|---|---|
committer | mnicholson <mnicholson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-04-17 15:44:18 +0000 |
commit | 6d45df1b721064d8753e6114c0603813f5496e64 (patch) | |
tree | 8c11be859c6665b1a48d4e2ae1506e80a29ab08e /main/pbx.c | |
parent | 3337353cd1b15fade21c696aff92232f23c94d23 (diff) |
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/trunk@189010 f38db490-d61c-443f-a65b-d21fe96a405b
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 f7ae5cd10..ff9a162d3 100644 --- a/main/pbx.c +++ b/main/pbx.c @@ -8378,8 +8378,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; } |