aboutsummaryrefslogtreecommitdiffstats
path: root/pbx.c
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-07-15 16:02:37 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-07-15 16:02:37 +0000
commitbf3fcafdae6dadca7d2419a0e66657d61c3a8f92 (patch)
treeab0c73270f3d740e32add65fe1eb12e40c6a0d98 /pbx.c
parentc4670d0b063ba483398ec6f6c6fc943c1cd57953 (diff)
ensure that channels that are busy/congested are marked AST_STATE_BUSY (bug #4706)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6136 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx.c')
-rwxr-xr-xpbx.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pbx.c b/pbx.c
index 423d1e492..f3360babc 100755
--- 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);
+ ast_setstate(chan, AST_STATE_BUSY);
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);
+ ast_setstate(chan, AST_STATE_BUSY);
wait_for_hangup(chan, data);
return -1;
}