diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2005-07-15 16:02:37 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2005-07-15 16:02:37 +0000 |
commit | 7dfba67f7df38567922411b9efeb75ccfc73c24e (patch) | |
tree | ab0c73270f3d740e32add65fe1eb12e40c6a0d98 /pbx.c | |
parent | 494d253efeae5c79a7046466b13005120325ca15 (diff) |
ensure that channels that are busy/congested are marked AST_STATE_BUSY (bug #4706)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6136 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'pbx.c')
-rwxr-xr-x | pbx.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; } |