ensure that channels that are busy/congested are marked AST_STATE_BUSY (bug #4706)
authorKevin P. Fleming <kpfleming@digium.com>
Fri, 15 Jul 2005 16:02:37 +0000 (16:02 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Fri, 15 Jul 2005 16:02:37 +0000 (16:02 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6136 65c4cc65-6c06-0410-ace0-fbb531ad65f3

pbx.c

diff --git a/pbx.c b/pbx.c
index 423d1e4..f3360ba 100755 (executable)
--- a/pbx.c
+++ b/pbx.c
@@ -5169,6 +5169,7 @@ static int pbx_builtin_ringing(struct ast_channel *chan, void *data)
 static int pbx_builtin_busy(struct ast_channel *chan, void *data)
 {
        ast_indicate(chan, AST_CONTROL_BUSY);           
 static int pbx_builtin_busy(struct ast_channel *chan, void *data)
 {
        ast_indicate(chan, AST_CONTROL_BUSY);           
+       ast_setstate(chan, AST_STATE_BUSY);
        wait_for_hangup(chan, data);
        return -1;
 }
        wait_for_hangup(chan, data);
        return -1;
 }
@@ -5176,6 +5177,7 @@ static int pbx_builtin_busy(struct ast_channel *chan, void *data)
 static int pbx_builtin_congestion(struct ast_channel *chan, void *data)
 {
        ast_indicate(chan, AST_CONTROL_CONGESTION);
 static int pbx_builtin_congestion(struct ast_channel *chan, void *data)
 {
        ast_indicate(chan, AST_CONTROL_CONGESTION);
+       ast_setstate(chan, AST_STATE_BUSY);
        wait_for_hangup(chan, data);
        return -1;
 }
        wait_for_hangup(chan, data);
        return -1;
 }