]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
don't reset outbound_fail_count on pre-call use_count increments
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 13 Jul 2010 13:33:59 +0000 (08:33 -0500)
committerJeff Lenk <jeff@jefflenk.com>
Thu, 15 Jul 2010 14:02:56 +0000 (09:02 -0500)
src/mod/applications/mod_fifo/mod_fifo.c

index b380cc55311eb996620b0a99a31d9892dd801687..646d5d0ff10d3b76f7ab223619c9312ef03d1cca 100644 (file)
@@ -846,7 +846,7 @@ static void *SWITCH_THREAD_FUNC ringall_thread_run(switch_thread_t *thread, void
 
        for (i = 0; i < cbh->rowcount; i++) {
                struct call_helper *h = cbh->rows[i];
-               char *sql = switch_mprintf("update fifo_outbound set use_count=use_count+1,outbound_fail_count=0 where uuid='%s'", h->uuid);
+               char *sql = switch_mprintf("update fifo_outbound set use_count=use_count+1 where uuid='%s'", h->uuid);
                
                fifo_execute_sql(sql, globals.sql_mutex);
                switch_safe_free(sql);
@@ -984,7 +984,7 @@ static void *SWITCH_THREAD_FUNC o_thread_run(switch_thread_t *thread, void *obj)
        }
 
        
-       sql = switch_mprintf("update fifo_outbound set use_count=use_count+1,outbound_fail_count=0 where uuid='%s'", h->uuid);
+       sql = switch_mprintf("update fifo_outbound set use_count=use_count+1 where uuid='%s'", h->uuid);
        fifo_execute_sql(sql, globals.sql_mutex);
        switch_safe_free(sql);