]> git.ipfire.org Git - thirdparty/asterisk.git/commit
app_confbridge: Enable sending events to participants
authorGeorge Joseph <gjoseph@digium.com>
Thu, 31 May 2018 21:22:13 +0000 (15:22 -0600)
committerGeorge Joseph <gjoseph@digium.com>
Wed, 13 Jun 2018 15:11:25 +0000 (09:11 -0600)
commit8d08b115c547b30c08029c20428c95f4ac951bea
tree800f60d6de0be3a9e16ca62a5477c3fcfaca7cc1
parentdf4d0909671ca33e803b8f58a56fd6f260bf3543
app_confbridge:  Enable sending events to participants

ConfBridge can now send events to participants via in-dialog MESSAGEs.
All current Confbridge events are supported, such as ConfbridgeJoin,
ConfbridgeLeave, etc.  In addition to those events, a new event
ConfbridgeWelcome has been added that will send a list of all
current participants to a new participant.

For all but the ConfbridgeWelcome event, the JSON message contains
information about the bridge, such as its id and name, and information
about the channel that triggered the event such as channel name,
callerid info, mute status, and the MSID labels for their audio and
video tracks. You can use the labels to correlate callerid and mute
status to specific video elements in a webrtc client.

To control this behavior, the following options have been added to
confbridge.conf:

bridge_profile/enable_events:  This must be enabled on any bridge where
events are desired.

user_profile/send_events:  This must be set for a user profile to send
events.  Different user profiles connected to the same bridge can have
different settings.  This allows admins to get events but not normal
users for instance.

user_profile/echo_events:  In some cases, you might not want the user
triggering the event to get the event sent back to them.  To prevent it,
set this to false.

A change was also made to res_pjsip_sdp_rtp to save the generated msid
to the stream so it can be re-used.  This allows participant A's video
stream to appear as the same label to all other participants.

Change-Id: I26420aa9f101f0b2387dc9e2fd10733197f1318e
CHANGES
apps/app_confbridge.c
apps/confbridge/conf_config_parser.c
apps/confbridge/confbridge_manager.c
apps/confbridge/include/confbridge.h
configs/samples/confbridge.conf.sample
res/res_pjsip_sdp_rtp.c