mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
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: https://origsvn.digium.com/svn/asterisk/trunk@189010 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user