coding blind is annoying

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10441 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2008-11-18 16:13:03 +00:00
parent c41ba7ac4d
commit 3f5e303f4a
1 changed files with 2 additions and 2 deletions

View File

@ -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) {