]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
res_stasis: Set a video source mode on Stasis created bridges 12/4312/1
authorMatt Jordan <mjordan@digium.com>
Fri, 4 Nov 2016 20:40:58 +0000 (15:40 -0500)
committerMatt Jordan <mjordan@digium.com>
Fri, 4 Nov 2016 20:49:32 +0000 (15:49 -0500)
When a bridge is created via ARI (through res_stasis), no video source
mode is set by default. As a result, any endpoint sending video media
won't ever see any video reflected back to it.

This patch defaults a bridge to a 'follow the talker' video mode.
Further work can be done to add routes that allow for the video mode to
be controlled through the /bridges resource.

Change-Id: I7e9d530a5d7a97a4524a9ee4e468e1a6b3443866

res/res_stasis.c

index 1183f67b8a5683d46e645cfcaefeadff9169a6bb..b7599ec0497ec341e5533df8af3997753e61e520 100644 (file)
@@ -798,6 +798,7 @@ struct ast_bridge *stasis_app_bridge_create(const char *type, const char *name,
 
        bridge = bridge_stasis_new(capabilities, flags, name, id);
        if (bridge) {
+               ast_bridge_set_talker_src_video_mode(bridge);
                if (!ao2_link(app_bridges, bridge)) {
                        ast_bridge_destroy(bridge, 0);
                        bridge = NULL;