Index: apps/app_queue.c =================================================================== --- apps/app_queue.c (revision 74163) +++ apps/app_queue.c (working copy) @@ -1878,9 +1878,11 @@ char membername[80] = ""; long starttime = 0; long endtime = 0; + struct timeval begin; starttime = (long) time(NULL); - + begin = ast_tvnow(); + while (*to && !peer) { int numlines, retry, pos = 1; struct ast_channel *watchers[AST_MAX_WATCHERS]; @@ -2089,8 +2091,12 @@ } ast_frfree(f); } - if (!*to) + if (!*to) { + ast_log(LOG_DEBUG, "No answer after specified timeout '%d' ms ... " + " time calculation says it was about '%d' ms\n", orig, + ast_tvdiff_ms(ast_tvnow(), begin)); rna(orig, qe, on, membername); + } } return peer; Index: main/channel.c =================================================================== --- main/channel.c (revision 74163) +++ main/channel.c (working copy) @@ -1928,6 +1928,7 @@ } } if (res == 0) { /* no fd ready, reset timeout and done */ + ast_log(LOG_DEBUG, "poll indicated a timeout. setting ms to 0\n"); *ms = 0; /* XXX use 0 since we may not have an exact timeout. */ return winner; }