From: Anthony Minessale Date: Thu, 10 Sep 2009 18:22:37 +0000 (+0000) Subject: add fifo_position var X-Git-Tag: v1.0.6~1922 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a43975e5d45e35d46ecee0d57ac717c3810edb4;p=thirdparty%2Ffreeswitch.git add fifo_position var git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14806 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- 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);