提交 cbc489fe authored 作者: Michael Jerris's avatar Michael Jerris

FS-7870: [mod_conference] allow jsonapi commands to take string variant of id attr

上级 25ae4dbb
...@@ -107,7 +107,7 @@ void conference_event_mod_channel_handler(const char *event_channel, cJSON *json ...@@ -107,7 +107,7 @@ void conference_event_mod_channel_handler(const char *event_channel, cJSON *json
!strcasecmp(action, "unvmute") || !strcasecmp(action, "unvmute") ||
!strcasecmp(action, "tvmute") !strcasecmp(action, "tvmute")
) { ) {
exec = switch_mprintf("%s %s %d", conference_name, action, cid); exec = switch_mprintf("%s %s %s", conference_name, action, cid);
} else if (!strcasecmp(action, "volume_in") || } else if (!strcasecmp(action, "volume_in") ||
!strcasecmp(action, "volume_out") || !strcasecmp(action, "volume_out") ||
!strcasecmp(action, "vid-res-id") || !strcasecmp(action, "vid-res-id") ||
...@@ -116,7 +116,7 @@ void conference_event_mod_channel_handler(const char *event_channel, cJSON *json ...@@ -116,7 +116,7 @@ void conference_event_mod_channel_handler(const char *event_channel, cJSON *json
!strcasecmp(action, "vid-canvas") || !strcasecmp(action, "vid-canvas") ||
!strcasecmp(action, "vid-watching-canvas") || !strcasecmp(action, "vid-watching-canvas") ||
!strcasecmp(action, "vid-banner")) { !strcasecmp(action, "vid-banner")) {
exec = switch_mprintf("%s %s %d %s", conference_name, action, cid, argv[0]); exec = switch_mprintf("%s %s %s %s", conference_name, action, cid, argv[0]);
} else if (!strcasecmp(action, "play") || !strcasecmp(action, "stop")) { } else if (!strcasecmp(action, "play") || !strcasecmp(action, "stop")) {
exec = switch_mprintf("%s %s %s", conference_name, action, argv[0]); exec = switch_mprintf("%s %s %s", conference_name, action, argv[0]);
} else if (!strcasecmp(action, "recording") || !strcasecmp(action, "vid-layout") || !strcasecmp(action, "vid-write-png")) { } else if (!strcasecmp(action, "recording") || !strcasecmp(action, "vid-layout") || !strcasecmp(action, "vid-write-png")) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论