[asterisk-commits] "confbridge show profile bridge" does not output "sfu" when ... (asterisk[15])
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Apr 19 16:09:55 CDT 2018
Jenkins2 has submitted this change and it was merged. ( https://gerrit.asterisk.org/8813 )
Change subject: "confbridge show profile bridge" does not output "sfu" when video_mode is sfu
......................................................................
"confbridge show profile bridge" does not output "sfu" when video_mode is sfu
Fixes a bug on the "confbridge show profile bridge" cli command
that showed "video_mode=no video" when video_mode was set
to "sfu"
ASTERISK-27418 #close
Change-Id: I481e3172c7f872664c7ac7809879d541c9f031e9
---
M apps/confbridge/conf_config_parser.c
1 file changed, 13 insertions(+), 8 deletions(-)
Approvals:
Matthew Fredrickson: Looks good to me, but someone else must approve
Benjamin Keith Ford: Looks good to me, but someone else must approve
Richard Mudgett: Looks good to me, approved
Jenkins2: Approved for Submit
diff --git a/apps/confbridge/conf_config_parser.c b/apps/confbridge/conf_config_parser.c
index f9d7483..0718d2f 100644
--- a/apps/confbridge/conf_config_parser.c
+++ b/apps/confbridge/conf_config_parser.c
@@ -1652,8 +1652,10 @@
ast_cli(a->fd,"Registration context: %s\n", b_profile.regcontext);
switch (b_profile.flags
- & (BRIDGE_OPT_VIDEO_SRC_LAST_MARKED | BRIDGE_OPT_VIDEO_SRC_FIRST_MARKED
- | BRIDGE_OPT_VIDEO_SRC_FOLLOW_TALKER)) {
+ & (BRIDGE_OPT_VIDEO_SRC_LAST_MARKED |
+ BRIDGE_OPT_VIDEO_SRC_FIRST_MARKED |
+ BRIDGE_OPT_VIDEO_SRC_FOLLOW_TALKER |
+ BRIDGE_OPT_VIDEO_SRC_SFU)) {
case BRIDGE_OPT_VIDEO_SRC_LAST_MARKED:
ast_cli(a->fd, "Video Mode: last_marked\n");
break;
@@ -1662,6 +1664,9 @@
break;
case BRIDGE_OPT_VIDEO_SRC_FOLLOW_TALKER:
ast_cli(a->fd, "Video Mode: follow_talker\n");
+ break;
+ case BRIDGE_OPT_VIDEO_SRC_SFU:
+ ast_cli(a->fd, "Video Mode: sfu\n");
break;
case 0:
ast_cli(a->fd, "Video Mode: no video\n");
@@ -1992,12 +1997,6 @@
| BRIDGE_OPT_VIDEO_SRC_FOLLOW_TALKER
| BRIDGE_OPT_VIDEO_SRC_SFU,
BRIDGE_OPT_VIDEO_SRC_FOLLOW_TALKER);
- } else if (!strcasecmp(var->value, "none")) {
- ast_clear_flag(b_profile,
- BRIDGE_OPT_VIDEO_SRC_FIRST_MARKED
- | BRIDGE_OPT_VIDEO_SRC_LAST_MARKED
- | BRIDGE_OPT_VIDEO_SRC_FOLLOW_TALKER
- | BRIDGE_OPT_VIDEO_SRC_SFU);
} else if (!strcasecmp(var->value, "sfu")) {
ast_set_flags_to(b_profile,
BRIDGE_OPT_VIDEO_SRC_FIRST_MARKED
@@ -2005,6 +2004,12 @@
| BRIDGE_OPT_VIDEO_SRC_FOLLOW_TALKER
| BRIDGE_OPT_VIDEO_SRC_SFU,
BRIDGE_OPT_VIDEO_SRC_SFU);
+ } else if (!strcasecmp(var->value, "none")) {
+ ast_clear_flag(b_profile,
+ BRIDGE_OPT_VIDEO_SRC_FIRST_MARKED
+ | BRIDGE_OPT_VIDEO_SRC_LAST_MARKED
+ | BRIDGE_OPT_VIDEO_SRC_FOLLOW_TALKER
+ | BRIDGE_OPT_VIDEO_SRC_SFU);
} else {
return -1;
}
--
To view, visit https://gerrit.asterisk.org/8813
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: 15
Gerrit-MessageType: merged
Gerrit-Change-Id: I481e3172c7f872664c7ac7809879d541c9f031e9
Gerrit-Change-Number: 8813
Gerrit-PatchSet: 2
Gerrit-Owner: Chris Savinovich <csavinovich at digium.com>
Gerrit-Reviewer: Benjamin Keith Ford <bford at digium.com>
Gerrit-Reviewer: Jenkins2
Gerrit-Reviewer: Matthew Fredrickson <creslin at digium.com>
Gerrit-Reviewer: Richard Mudgett <rmudgett at digium.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-commits/attachments/20180419/eedd0c80/attachment.html>
More information about the asterisk-commits
mailing list