[Asterisk-cvs] asterisk pbx.c,1.259,1.260
kpfleming at lists.digium.com
kpfleming at lists.digium.com
Fri Jul 15 11:54:47 CDT 2005
Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv10644
Modified Files:
pbx.c
Log Message:
ensure that channels that are busy/congested are marked AST_STATE_BUSY (bug #4706)
Index: pbx.c
===================================================================
RCS file: /usr/cvsroot/asterisk/pbx.c,v
retrieving revision 1.259
retrieving revision 1.260
diff -u -d -r1.259 -r1.260
--- pbx.c 12 Jul 2005 01:34:05 -0000 1.259
+++ pbx.c 15 Jul 2005 16:02:37 -0000 1.260
@@ -5169,6 +5169,7 @@
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_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;
}
More information about the svn-commits
mailing list