Index: main/channel.c =================================================================== --- main/channel.c (revision 101575) +++ main/channel.c (working copy) @@ -1024,7 +1024,7 @@ struct ast_channel *c; const struct ast_channel *_prev = prev; - for (retries = 0; retries < 10; retries++) { + for (retries = 0; retries < 200; retries++) { int done; AST_LIST_LOCK(&channels); AST_LIST_TRAVERSE(&channels, c, chan_list) { @@ -1066,7 +1066,7 @@ if (!done) { if (option_debug) ast_log(LOG_DEBUG, "Avoiding %s for channel '%p'\n", msg, c); - if (retries == 9) { + if (retries == 199) { /* We are about to fail due to a deadlock, so report this * while we still have the list lock. */