[svn-commits] mnicholson: branch 1.4 r189009 - /branches/1.4/main/pbx.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri Apr 17 10:43:48 CDT 2009


Author: mnicholson
Date: Fri Apr 17 10:43:09 2009
New Revision: 189009

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=189009
Log:
Make Busy() application set the CDR disposition to BUSY.

(closes issue #14306)
Reported by: cristiandimache

Modified:
    branches/1.4/main/pbx.c

Modified: branches/1.4/main/pbx.c
URL: http://svn.digium.com/svn-view/asterisk/branches/1.4/main/pbx.c?view=diff&rev=189009&r1=189008&r2=189009
==============================================================================
--- branches/1.4/main/pbx.c (original)
+++ branches/1.4/main/pbx.c Fri Apr 17 10:43:09 2009
@@ -5412,8 +5412,10 @@
 	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;
 }




More information about the svn-commits mailing list