From 6a43975e5d45e35d46ecee0d57ac717c3810edb4 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Thu, 10 Sep 2009 18:22:37 +0000 Subject: [PATCH] add fifo_position var git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14806 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/applications/mod_fifo/mod_fifo.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mod/applications/mod_fifo/mod_fifo.c b/src/mod/applications/mod_fifo/mod_fifo.c index 14b1d9e546..4353045cdf 100644 --- a/src/mod/applications/mod_fifo/mod_fifo.c +++ b/src/mod/applications/mod_fifo/mod_fifo.c @@ -888,6 +888,8 @@ SWITCH_STANDARD_APP(fifo_function) } switch_queue_push(node->fifo_list[p], (void *) strdup(uuid)); + switch_snprintf(tmp, sizeof(tmp), "%d", switch_queue_size(node->fifo_list[p])); + switch_channel_set_variable(channel, "fifo_position", tmp); if (!pri) { switch_snprintf(tmp, sizeof(tmp), "%d", p);