From: Matthew Nicholson Date: Fri, 17 Apr 2009 15:43:09 +0000 (+0000) Subject: Make Busy() application set the CDR disposition to BUSY. X-Git-Tag: 1.4.25-rc1~52 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f870165dbe34233ff6ea54d258a8994f834f382c;p=thirdparty%2Fasterisk.git Make Busy() application set the CDR disposition to BUSY. (closes issue #14306) Reported by: cristiandimache git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@189009 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/pbx.c b/main/pbx.c index 78b200940a..0f970b85e1 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; }