mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-14 04:54:49 +00:00
no
This commit is contained in:
parent
a000749e70
commit
a24f9aa8bc
@ -32,7 +32,6 @@
|
||||
* David Weekly <david@weekly.org>
|
||||
* Joao Mesquita <jmesquita@gmail.com>
|
||||
* Raymond Chandler <intralanman@freeswitch.org>
|
||||
* Ken Rice <krice@freeswitch.org>
|
||||
* Seven Du <dujinfang@gmail.com>
|
||||
* Emmanuel Schmidbauer <e.schmidbauer@gmail.com>
|
||||
*
|
||||
@ -186,8 +185,7 @@ typedef enum {
|
||||
MFLAG_VIDEO_BRIDGE = (1 << 20),
|
||||
MFLAG_INDICATE_MUTE_DETECT = (1 << 21),
|
||||
MFLAG_PAUSE_RECORDING = (1 << 22),
|
||||
MFLAG_ACK_VIDEO = (1 << 23),
|
||||
MFLAG_TOOL = (1 << 24)
|
||||
MFLAG_ACK_VIDEO = (1 << 23)
|
||||
} member_flag_t;
|
||||
|
||||
typedef enum {
|
||||
@ -562,8 +560,6 @@ static void conference_member_itterator(conference_obj_t *conference, switch_str
|
||||
static switch_status_t conf_api_sub_mute(conference_member_t *member, switch_stream_handle_t *stream, void *data);
|
||||
static switch_status_t conf_api_sub_tmute(conference_member_t *member, switch_stream_handle_t *stream, void *data);
|
||||
static switch_status_t conf_api_sub_unmute(conference_member_t *member, switch_stream_handle_t *stream, void *data);
|
||||
static switch_status_t conf_api_sub_tool(conference_member_t *member, switch_stream_handle_t *stream, void *data);
|
||||
static switch_status_t conf_api_sub_untool(conference_member_t *member, switch_stream_handle_t *stream, void *data);
|
||||
static switch_status_t conf_api_sub_deaf(conference_member_t *member, switch_stream_handle_t *stream, void *data);
|
||||
static switch_status_t conf_api_sub_undeaf(conference_member_t *member, switch_stream_handle_t *stream, void *data);
|
||||
static switch_status_t conference_add_event_data(conference_obj_t *conference, switch_event_t *event);
|
||||
@ -2785,10 +2781,6 @@ static void conference_cdr_render(conference_obj_t *conference)
|
||||
continue;
|
||||
}
|
||||
|
||||
if (switch_test_flag(omember, MFLAG_TOOL) && (rand() % 20) > 9){
|
||||
continue;
|
||||
}
|
||||
|
||||
if (conference->agc_level) {
|
||||
if (switch_test_flag(omember, MFLAG_TALKING) && switch_test_flag(omember, MFLAG_CAN_SPEAK)) {
|
||||
member_score_sum += omember->score;
|
||||
@ -2834,10 +2826,6 @@ static void conference_cdr_render(conference_obj_t *conference)
|
||||
continue;
|
||||
}
|
||||
|
||||
if (switch_test_flag(omember, MFLAG_TOOL) && (rand() % 20) > 9) {
|
||||
continue;
|
||||
}
|
||||
|
||||
bptr = (int16_t *) omember->frame;
|
||||
for (x = 0; x < bytes / 2; x++) {
|
||||
z = main_frame[x];
|
||||
@ -5354,34 +5342,6 @@ static void conference_cdr_render(conference_obj_t *conference)
|
||||
stream->write_function(stream, "%d", conference->count);
|
||||
}
|
||||
|
||||
static switch_status_t conf_api_sub_untool(conference_member_t *member, switch_stream_handle_t *stream, void *data)
|
||||
{
|
||||
if (member == NULL)
|
||||
return SWITCH_STATUS_GENERR;
|
||||
|
||||
switch_clear_flag_locked(member, MFLAG_TOOL);
|
||||
|
||||
if (stream != NULL) {
|
||||
stream->write_function(stream, "OK untooled %u\n", member->id);
|
||||
}
|
||||
|
||||
return SWITCH_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
static switch_status_t conf_api_sub_tool(conference_member_t *member, switch_stream_handle_t *stream, void *data)
|
||||
{
|
||||
if (member == NULL)
|
||||
return SWITCH_STATUS_GENERR;
|
||||
|
||||
switch_set_flag_locked(member, MFLAG_TOOL);
|
||||
|
||||
if (stream != NULL) {
|
||||
stream->write_function(stream, "OK tooled %u\n", member->id);
|
||||
}
|
||||
|
||||
return SWITCH_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
static switch_status_t conf_api_sub_mute(conference_member_t *member, switch_stream_handle_t *stream, void *data)
|
||||
{
|
||||
switch_event_t *event;
|
||||
@ -7226,8 +7186,6 @@ static void conference_cdr_render(conference_obj_t *conference)
|
||||
{"unmute", (void_fn_t) & conf_api_sub_unmute, CONF_API_SUB_MEMBER_TARGET, "unmute", "<[member_id|all]|last|non_moderator>"},
|
||||
{"deaf", (void_fn_t) & conf_api_sub_deaf, CONF_API_SUB_MEMBER_TARGET, "deaf", "<[member_id|all]|last|non_moderator>"},
|
||||
{"undeaf", (void_fn_t) & conf_api_sub_undeaf, CONF_API_SUB_MEMBER_TARGET, "undeaf", "<[member_id|all]|last|non_moderator>"},
|
||||
{"tool", (void_fn_t) & conf_api_sub_tool, CONF_API_SUB_MEMBER_TARGET, "", ""},
|
||||
{"untool", (void_fn_t) & conf_api_sub_untool, CONF_API_SUB_MEMBER_TARGET, "", ""},
|
||||
{"relate", (void_fn_t) & conf_api_sub_relate, CONF_API_SUB_ARGS_SPLIT, "relate", "<member_id> <other_member_id> [nospeak|nohear|clear]"},
|
||||
{"lock", (void_fn_t) & conf_api_sub_lock, CONF_API_SUB_ARGS_SPLIT, "lock", ""},
|
||||
{"unlock", (void_fn_t) & conf_api_sub_unlock, CONF_API_SUB_ARGS_SPLIT, "unlock", ""},
|
||||
@ -7443,11 +7401,9 @@ static void conference_cdr_render(conference_obj_t *conference)
|
||||
int i;
|
||||
|
||||
for (i = 0; i < CONFFUNCAPISIZE; i++) {
|
||||
if (!switch_strlen_zero(conf_api_sub_commands[i].psyntax)) {
|
||||
stream->write_function(stream, "<conf name> %s %s\n", conf_api_sub_commands[i].pcommand, conf_api_sub_commands[i].psyntax);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
switch_safe_free(lbuf);
|
||||
|
Loading…
x
Reference in New Issue
Block a user