]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-5605 --resolve
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 4 Sep 2013 16:00:26 +0000 (21:00 +0500)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 4 Sep 2013 16:00:26 +0000 (21:00 +0500)
src/mod/applications/mod_fifo/mod_fifo.c

index d2cefcfea4f697a42f2e9878a21742cca945dc2a..d795e8e48b7e3c9266701332ba4acb4649241ffe 100644 (file)
@@ -1689,6 +1689,9 @@ static void *SWITCH_THREAD_FUNC o_thread_run(switch_thread_t *thread, void *obj)
        switch_channel_set_state(channel, CS_EXECUTE);
        switch_core_session_rwunlock(session);
 
+       sql = switch_mprintf("update fifo_outbound set ring_count=ring_count-1 where uuid='%q' and ring_count > 0", h->uuid);
+       fifo_execute_sql_queued(&sql, SWITCH_TRUE, SWITCH_TRUE);
+
   end:
 
        switch_event_destroy(&ovars);