[asterisk-commits] mmichelson: branch 1.4 r81713 - /branches/1.4/apps/app_queue.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Sep 6 11:25:41 CDT 2007


Author: mmichelson
Date: Thu Sep  6 11:25:40 2007
New Revision: 81713

URL: http://svn.digium.com/view/asterisk?view=rev&rev=81713
Log:
Fixes an issue where valid DTMF had to be pressed twice to exit a queue if a member's phone
was ringing.

(closes issue #10655, reported by strider2k, patched by me)


Modified:
    branches/1.4/apps/app_queue.c

Modified: branches/1.4/apps/app_queue.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/apps/app_queue.c?view=diff&rev=81713&r1=81712&r2=81713
==============================================================================
--- branches/1.4/apps/app_queue.c (original)
+++ branches/1.4/apps/app_queue.c Thu Sep  6 11:25:40 2007
@@ -2507,11 +2507,10 @@
 			/* Must gotten hung up */
 			res = -1;
 		} else {
+			/* User exited by pressing a digit */
 			res = digit;
-			if (res > 0 && !valid_exit(qe, res))
-				res = 0;
-		}
-		if (option_debug)
+		}
+		if (option_debug && res == -1)
 			ast_log(LOG_DEBUG, "%s: Nobody answered.\n", qe->chan->name);
 	} else { /* peer is valid */
 		/* Ah ha!  Someone answered within the desired timeframe.  Of course after this




More information about the asterisk-commits mailing list