Conference media control. This class defines several parameters that let you fine-tune the behaviour of your conference.
The argument ringback_tone defines the audio played to the party while waiting to enter the conference room. Valid options for ringback_tone are listed in the ToneManager resource; or the argument can be left at its default value.
This class exposes the public properties OnEntryMedia, OnExitMedia and PrefixMedia which are classes of the type PlayableMedia. Use the functions provided by PlayableMedia to set some audio to play on entering and leaving the conference room. The audio can be either some text to say as TTS or the name of a file. The audio provided by PrefixMedia will be played before OnEntryMedia and after OnExitMedia.
This class exposes the public property MuteOnDTMFDigits to optionally set DTMF digits for muting and unmuting a party when the corresponding digit is pressed.
Usage example:
conf_media_settings = channel.ConferencePartyMediaSettings(exit_on_dtmf_digit='#', start_muted=True)
conf_media_settings.MuteOnDTMFDigits.set_digits(mute='0', unmute='1')
conf_media_settings.PrefixMedia.text_to_say('george')
conf_media_settings.OnEntryMedia.text_to_say('has joined')
conf_media_settings.OnExitMedia.text_to_say('has left')
conf_lifetime_settings = channel.ConferenceLifetimeControl(start_on_entry=True, destroy_on_exit=True)
if channel.transfer_to_conference_room(other_call, conference_room_name,
conference_lifetime_control=conf_lifetime_settings,
conference_party_media_settings=conf_media_settings) != channel.State.TRANSFERRED:
print("could not transfer the call to the conference")
Conference mute control. Allows the user to set the DTMF digits that will mute or unmute the party.
Two DTMF characters can be supplied. The set of individual DTMF digits permitted is: 1234567890*#. If unmute is not supplied, it will be the same digit as mute.