--- asterisk-orig/apps/app_dial.c 2005-07-14 10:02:03.579822404 +0200 +++ asterisk/apps/app_dial.c 2005-07-14 09:49:58.000000000 +0200 @@ -318,6 +318,7 @@ } if (found < 0) { if (numlines == (numbusy + numcongestion + numnochan)) { + ast_setstate(in, AST_STATE_BUSY); if (option_verbose > 2) ast_verbose( VERBOSE_PREFIX_2 "Everyone is busy/congested at this time (%d:%d/%d/%d)\n", numlines, numbusy, numcongestion, numnochan); if (numbusy) --- asterisk-orig/pbx.c 2005-07-14 09:58:57.037472129 +0200 +++ asterisk/pbx.c 2005-07-14 09:38:21.915575589 +0200 @@ -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; }