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;
 }

_______________________________________________
Asterisk-Cvs mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-cvs

Reply via email to