From: Anthony Minessale Date: Tue, 18 Nov 2008 16:13:03 +0000 (+0000) Subject: coding blind is annoying X-Git-Tag: v1.0.2~481 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f5e303f4ae43839c43ae6fc7744a54311d798d9;p=thirdparty%2Ffreeswitch.git coding blind is annoying git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10441 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/switch_ivr_async.c b/src/switch_ivr_async.c index e7816c595b..0523f5b844 100644 --- a/src/switch_ivr_async.c +++ b/src/switch_ivr_async.c @@ -1226,7 +1226,7 @@ static switch_bool_t tone_detect_callback(switch_media_bug_t *bug, void *user_da } 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 @@ static switch_bool_t tone_detect_callback(switch_media_bug_t *bug, void *user_da 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) {