]> 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:12:18 +0000 (09:12 -0600)
commite7a7506f9ca0dfbf81384bd869e6ebf518710580
treed4b9f9694264fa33ba2fe15cab86ef3ab5d90143
parenta6a22debf12c44f5f3c9a7bc221e35b43374e245
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