[Freeswitch-svn] [commit] r10441 - freeswitch/trunk/src

FreeSWITCH SVN anthm at freeswitch.org
Tue Nov 18 08:13:04 PST 2008


Author: anthm
Date: Tue Nov 18 11:13:03 2008
New Revision: 10441

Log:
coding blind is annoying

Modified:
   freeswitch/trunk/src/switch_ivr_async.c

Modified: freeswitch/trunk/src/switch_ivr_async.c
==============================================================================
--- freeswitch/trunk/src/switch_ivr_async.c	(original)
+++ freeswitch/trunk/src/switch_ivr_async.c	Tue Nov 18 11:13:03 2008
@@ -1226,7 +1226,7 @@
 			}
 
 			for (i = 0; i < cont->index; i++) {
-				if (cont->list[i].expires && cont->list[i].expires > switch_timestamp(NULL)) {
+				if (cont->list[i].expires && cont->list[i].expires < switch_timestamp(NULL)) {
 					cont->list[i].hits = 0;
 					cont->list[i].sleep = 0;
 					cont->list[i].expires = 0;
@@ -1244,7 +1244,7 @@
 					cont->list[i].expires = switch_timestamp(NULL) + 5;
 					teletone_multi_tone_init(&cont->list[i].mt, &cont->list[i].map);
 					switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "TONE %s HIT %d/%d\n", 
-									  cont->list[i].key, cont->list[i].up, cont->list[i].total_hits);
+									  cont->list[i].key, cont->list[i].up, cont->list[i].hits);
 					
 
 					if (cont->list[i].hits >= cont->list[i].total_hits) {



More information about the Freeswitch-svn mailing list