From c5862d23ce618b19ca81a0a436c20b65b7f09f70 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Sat, 26 Sep 2009 05:21:41 +0000 Subject: [PATCH] add rate for ray git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14992 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/applications/mod_conference/mod_conference.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/mod/applications/mod_conference/mod_conference.c b/src/mod/applications/mod_conference/mod_conference.c index bc590cde02..3bcf86f861 100644 --- a/src/mod/applications/mod_conference/mod_conference.c +++ b/src/mod/applications/mod_conference/mod_conference.c @@ -3389,9 +3389,12 @@ static switch_status_t conf_api_sub_list(conference_obj_t *conference, switch_st switch_hash_this(hi, NULL, NULL, &val); conference = (conference_obj_t *) val; - stream->write_function(stream, "Conference %s (%u member%s%s)\n", + stream->write_function(stream, "Conference %s (%u member%s rate: %u%s)\n", conference->name, - conference->count, conference->count == 1 ? "" : "s", switch_test_flag(conference, CFLAG_LOCKED) ? " locked" : ""); + conference->count, + conference->count == 1 ? "" : "s", + conference->rate, + switch_test_flag(conference, CFLAG_LOCKED) ? " locked" : ""); count++; if (!summary) { if (pretty) { @@ -3449,6 +3452,8 @@ static void conference_xlist(conference_obj_t *conference, switch_xml_t x_confer switch_xml_set_attr_d(x_conference, "name", conference->name); switch_snprintf(i, sizeof(i), "%d", conference->count); switch_xml_set_attr_d(x_conference, "member-count", ival); + switch_snprintf(i, sizeof(i), "%u", conference->rate); + switch_xml_set_attr_d(x_conference, "rate", ival); if (switch_test_flag(conference, CFLAG_LOCKED)) { switch_xml_set_attr_d(x_conference, "locked", "true");