Debian Codegraph @

configs/samples/confbridge.conf.sample

raw
1 [general]
2 ; The general section of this config
3 ; is not currently used, but reserved
4 ; for future use.
5
6 ;
7 ; --- Default Information ---
8 ; The default_user and default_bridge sections are applied
9 ; automatically to all ConfBridge instances invoked without
10 ; a user, or bridge argument. No menu is applied by default.
11 ;
12 ; Note that while properties of the default_user or default_bridge
13 ; profile can be overridden, if removed, they will be automatically
14 ; added and made available to the dialplan upon module load.
15 ;
16
17 ; --- ConfBridge User Profile Options ---
18 [default_user]
19 type=user
20 ;admin=yes ; Sets if the user is an admin or not. Off by default.
21
22 ;send_events=no ; If events are enabled for this bridge and this option is
23 ; set, users will receive events like join, leave, talking,
24 ; etc. via text messages. For users accessing the bridge
25 ; via chan_pjsip, this means in-dialog MESSAGE messages.
26 ; This is most useful for WebRTC participants where the
27 ; browser application can use the messages to alter the user
28 ; interface.
29 ;echo_events=yes ; If events are enabled for this user and this option is set,
30 ; the user will receive events they trigger, talking, mute, etc.
31 ; If not set, they will not receive their own events.
32
33 ;marked=yes ; Sets if this is a marked user or not. Off by default.
34 ;startmuted=yes; Sets if all users should start out muted. Off by default
35 ;music_on_hold_when_empty=yes ; Sets whether MOH should be played when only
36 ; one person is in the conference or when the
37 ; the user is waiting on a marked user to enter
38 ; the conference. Off by default.
39 ;music_on_hold_class=default ; The MOH class to use for this user.
40 ;quiet=yes ; When enabled enter/leave prompts and user intros are not played.
41 ; There are some prompts, such as the prompt to enter a PIN number,
42 ; that must be played regardless of what this option is set to.
43 ; Off by default
44 ;hear_own_join_sound=yes ; Sets if a user joining the conference should hear the sound_join
45 ; audio sound when they enter the conference. If set to 'no' the
46 ; user will not hear the sound_join audio but the other participants
47 ; in the conference will still hear the audio. If set to 'yes'
48 ; everyone hears the sound_join audio when this user enters the conference.
49 ; On by default
50 ;announce_user_count=yes ; Sets if the number of users should be announced to the
51 ; caller. Off by default.
52 ;announce_user_count_all=yes ; Sets if the number of users should be announced to
53 ; all the other users in the conference when someone joins.
54 ; This option can be either set to 'yes' or a number.
55 ; When set to a number, the announcement will only occur
56 ; once the user count is above the specified number.
57 ;announce_only_user=yes ; Sets if the only user announcement should be played
58 ; when a channel enters a empty conference. On by default.
59 ;wait_marked=yes ; Sets if the user must wait for a marked user to enter before
60 ; joining the conference. Off by default.
61 ;end_marked=yes ; This option will kick every non-marked user with this option set in their
62 ; user profile after the last marked user exits the conference.
63 ;end_marked_any=no ; This option will kick every user with this option set in
64 ; their user profile after any marked user exits the conference.
65 ; Additionally, note that unlike end_marked, this includes marked users.
66
67 ;dsp_drop_silence=yes ; This option drops what Asterisk detects as silence from
68 ; entering into the bridge. Enabling this option will drastically
69 ; improve performance and help remove the buildup of background
70 ; noise from the conference. Highly recommended for large conferences
71 ; due to its performance enhancements.
72
73 ;dsp_talking_threshold=128 ; Average magnitude threshold to determine talking.
74 ;
75 ; The minimum average magnitude per sample in a frame for the
76 ; DSP to consider talking/noise present. A value below this
77 ; level is considered silence. This value affects several
78 ; operations and should not be changed unless the impact on
79 ; call quality is fully understood.
80 ;
81 ; What this value affects internally:
82 ;
83 ; 1. Audio is only mixed out of a user's incoming audio
84 ; stream if talking is detected. If this value is set too
85 ; high the user will hear himself talking.
86 ;
87 ; 2. When talk detection AMI events are enabled, this value
88 ; determines when talking has begun which results in an
89 ; AMI event to fire. If this value is set too low AMI
90 ; events may be falsely triggered by variants in room
91 ; noise.
92 ;
93 ; 3. The 'drop_silence' option depends on this value to
94 ; determine when the user's audio should be mixed into the
95 ; bridge after periods of silence. If this value is too
96 ; high the user's speech will get discarded as they will
97 ; be considered silent.
98 ;
99 ; Valid values are 1 through 2^15.
100 ; By default this value is 160.
101
102 ;dsp_silence_threshold=2000 ; The number of milliseconds of silence necessary to declare
103 ; talking stopped.
104 ;
105 ; The time in milliseconds of sound falling below the
106 ; 'dsp_talking_threshold' option when a user is considered to
107 ; stop talking. This value affects several operations and
108 ; should not be changed unless the impact on call quality is
109 ; fully understood.
110 ;
111 ; What this value affects internally:
112 ;
113 ; 1. When talk detection AMI events are enabled, this value
114 ; determines when the user has stopped talking after a
115 ; period of talking. If this value is set too low AMI
116 ; events indicating the user has stopped talking may get
117 ; falsely sent out when the user briefly pauses during mid
118 ; sentence.
119 ;
120 ; 2. The 'drop_silence' option depends on this value to
121 ; determine when the user's audio should begin to be
122 ; dropped from the conference bridge after the user stops
123 ; talking. If this value is set too low the user's audio
124 ; stream may sound choppy to the other participants. This
125 ; is caused by the user transitioning constantly from
126 ; silence to talking during mid sentence.
127 ;
128 ; The best way to approach this option is to set it slightly
129 ; above the maximum amount of milliseconds of silence a user
130 ; may generate during natural speech.
131 ;
132 ; Valid values are 1 through 2^31.
133 ; By default this value is 2500ms.
134
135 ;talk_detection_events=yes ; This option sets whether or not notifications of when a user
136 ; begins and ends talking should be sent out as events over AMI.
137 ; By default this option is off.
138
139 ;denoise=yes ; Sets whether or not a denoise filter should be applied
140 ; to the audio before mixing or not. Off by default. Requires
141 ; func_speex to be built and installed. Do not confuse this option
142 ; with drop_silence. Denoise is useful if there is a lot of background
143 ; noise for a user as it attempts to remove the noise while preserving
144 ; the speech. This option does NOT remove silence from being mixed into
145 ; the conference and does come at the cost of a slight performance hit.
146
147 ;jitterbuffer=yes ; Enabling this option places a jitterbuffer on the user's audio stream
148 ; before audio mixing is performed. This is highly recommended but will
149 ; add a slight delay to the audio. This option is using the JITTERBUFFER
150 ; dialplan function's default adaptive jitterbuffer. For a more fine tuned
151 ; jitterbuffer, disable this option and use the JITTERBUFFER dialplan function
152 ; on the user before entering the ConfBridge application.
153
154 ;pin=1234 ; Sets if this user must enter a PIN number before entering
155 ; the conference. The PIN will be prompted for.
156 ;announce_join_leave=yes ; When enabled, this option will prompt the user for a
157 ; name when entering the conference. After the name is
158 ; recorded, it will be played as the user enters and exists
159 ; the conference. This option is off by default.
160 ;announce_join_leave_review=yes ; When enabled, implies announce_join_leave, but the user
161 ; will be prompted to review their recording before
162 ; entering the conference. During this phase, the recording
163 ; may be listened to, re-recorded, or accepted as is. This
164 ; option is off by default.
165 ;dtmf_passthrough=yes ; Sets whether or not DTMF should pass through the conference.
166 ; This option is off by default.
167 ;announcement=</path/to/file> ; Play a sound file to the user when they join the conference.
168
169 ;timeout=3600 ; When set non-zero, this specifies the number of seconds that the participant
170 ; may stay in the conference before being automatically ejected. When the user
171 ; is ejected from the conference, the user's channel will have the CONFBRIDGE_RESULT
172 ; variable set to "TIMEOUT". A value of 0 indicates that there is no timeout.
173 ; Default: 0
174 ;text_messaging=yes ; When set to yes text messages will be sent to this user. Text messages
175 ; may occur as a result of events or can be received from other participants.
176 ; When set to no text messages will not be sent to this user.
177 ;answer_channel=yes ; Sets if the channel should be answered if it hasn't been already.
178 ; On by default.
179
180 ; --- ConfBridge Bridge Profile Options ---
181 [default_bridge]
182 type=bridge
183 ;max_members=50 ; This option limits the number of participants for a single
184 ; conference to a specific number. By default conferences
185 ; have no participant limit. After the limit is reached, the
186 ; conference will be locked until someone leaves. Note however
187 ; that an Admin user will always be alowed to join the conference
188 ; regardless if this limit is reached or not.
189
190 ;record_conference=yes ; Records the conference call starting when the first user
191 ; enters the room, and ending when the last user exits the room.
192 ; The default recorded filename is
193 ; 'confbridge-<name of conference bridge>-<start time>.wav
194 ; and the default format is 8khz slinear. This file will be
195 ; located in the configured monitoring directory in asterisk.conf.
196
197 ;record_file=</path/to/file> ; When record_conference is set to yes, the specific name of the
198 ; record file can be set using this option. Note that since multiple
199 ; conferences may use the same bridge profile, this may cause issues
200 ; depending on the configuration. It is recommended to only use this
201 ; option dynamically with the CONFBRIDGE() dialplan function. This
202 ; allows the record name to be specified and a unique name to be chosen.
203 ; By default, the record_file is stored in Asterisk's spool/monitor directory
204 ; with a unique filename starting with the 'confbridge' prefix.
205
206 ;record_file_append=yes ; Append record file when starting/stopping on same conference recording.
207 ;record_file_timestamp=yes ; Append the start time to the record file name.
208
209 ;record_options= ; Pass additional options to MixMonitor.
210 ;record_command=</path/to/command> ; Command to execute when recording finishes.
211
212 ;internal_sample_rate=auto ; Sets the internal native sample rate the
213 ; conference is mixed at. This is set to automatically
214 ; adjust the sample rate to the best quality by default.
215 ; Other values can be anything from 8000-192000. If a
216 ; sample rate is set that Asterisk does not support, the
217 ; closest sample rate Asterisk does support to the one requested
218 ; will be used.
219
220 ;maximum_sample_rate=none ; Sets the maximum sample rate the conference
221 ; is mixed at. This is set to no maximum by default.
222 ; Values can be anything from 8000-192000.
223
224 ;mixing_interval=40 ; Sets the internal mixing interval in milliseconds for the bridge. This
225 ; number reflects how tight or loose the mixing will be for the conference.
226 ; In order to improve performance a larger mixing interval such as 40ms may
227 ; be chosen. Using a larger mixing interval comes at the cost of introducing
228 ; larger amounts of delay into the bridge. Valid values here are 10, 20, 40,
229 ; or 80. By default 20ms is used.
230
231 ;video_mode = follow_talker; Sets how confbridge handles video distribution to the conference participants.
232 ; Note that participants wanting to view and be the source of a video feed
233 ; _MUST_ be sharing the same video codec. Also, using video in conjunction with
234 ; with the jitterbuffer currently results in the audio being slightly out of sync
235 ; with the video. This is a result of the jitterbuffer only working on the audio
236 ; stream. It is recommended to disable the jitterbuffer when video is used.
237 ;
238 ; --- MODES ---
239 ; none: No video sources are set by default in the conference. It is still
240 ; possible for a user to be set as a video source via AMI or DTMF action
241 ; at any time.
242 ;
243 ; follow_talker: The video feed will follow whoever is talking and providing video.
244 ;
245 ; last_marked: The last marked user to join the conference with video capabilities
246 ; will be the single source of video distributed to all participants.
247 ; If multiple marked users are capable of video, the last one to join
248 ; is always the source, when that user leaves it goes to the one who
249 ; joined before them.
250 ;
251 ; first_marked: The first marked user to join the conference with video capabilities
252 ; is the single source of video distribution among all participants. If
253 ; that user leaves, the marked user to join after them becomes the source.
254 ;
255 ; sfu: Selective Forwarding Unit - Sets multi-stream operation
256 ; for a multi-party video conference.
257
258 ;language=en ; Set the language used for announcements to the conference.
259 ; Default is en (English).
260
261 ;regcontext=conferences ; The name of the context into which to register conference names as extensions.
262 ;video_update_discard=2000 ; Amount of time (in milliseconds) to discard video update requests after sending a video
263 ; update request. Default is 2000. A video update request is a request for a full video
264 ; intra-frame. Clients can request this if they require a full frame in order to decode
265 ; the video stream. Since a full frame can be large limiting how often they occur can
266 ; reduce bandwidth usage at the cost of increasing how long it may take a newly joined
267 ; channel to receive the video stream.
268 ;remb_send_interval=1000 ; Interval (in milliseconds) at which a combined REMB frame will be sent to sources of video.
269 ; A REMB frame contains receiver estimated maximum bitrate information. By creating a combined
270 ; frame and sending it to the sources of video the sender can be influenced on what bitrate
271 ; they choose allowing a better experience for the receivers. This defaults to 0, or disabled.
272 ;remb_behavior=average ; How the combined REMB report for an SFU video bridge is constructed. If set to "average" then
273 ; the estimated maximum bitrate of each receiver is used to construct an average bitrate. If
274 ; set to "lowest" the lowest maximum bitrate is forwarded to the sender. If set to "highest"
275 ; the highest maximum bitrate is forwarded to the sender. If set to "average_all" a single average
276 ; is generated from every receiver and the same value is sent to every sender. If set to
277 ; "lowest_all" the lowest maximum bitrate of all receivers is sent to every sender. If set to
278 ; "highest_all" the highest maximum bitrate of all receivers is sent to every sender.
279 ; When set to "force", the value set in remb_estimated_bitrate is sent to every sender.
280 ; This defaults to "average".
281 ;remb_estimated_bitrate=0 ; When remb_behavior is set to 'force', this options sets the estimated bitrate
282 ; (in bits per second) sent to each participant in REMB reports.
283
284 ;enable_events=no ; If enabled, recipients who joined the bridge via a channel driver
285 ; that supports Enhanced Messaging (currently only chan_pjsip) will
286 ; receive in-dialog messages containing a JSON body describing the
287 ; event. The Content-Type header will be
288 ; "text/x-ast-confbridge-event".
289 ; This feature must also be enabled in user profiles.
290
291 ; All sounds in the conference are customizable using the bridge profile options below.
292 ; Simply state the option followed by the filename or full path of the filename after
293 ; the option. Example: sound_had_joined=conf-hasjoin This will play the conf-hasjoin
294 ; sound file found in the sounds directory when announcing someone's name is joining the
295 ; conference.
296
297 ;sound_join ; The sound played to everyone when someone enters the conference.
298 ;sound_leave ; The sound played to everyone when someone leaves the conference.
299 ;sound_has_joined ; The sound played before announcing someone's name has
300 ; joined the conference. This is used for user intros.
301 ; Example "_____ has joined the conference"
302 ;sound_has_left ; The sound played when announcing someone's name has
303 ; left the conference. This is used for user intros.
304 ; Example "_____ has left the conference"
305 ;sound_kicked ; The sound played to a user who has been kicked from the conference.
306 ;sound_muted ; The sound played when the mute option is toggled on using DTMF menu.
307 ;sound_unmuted ; The sound played when the mute option is toggled off using DTMF menu.
308 ;sound_only_person ; The sound played when the user is the only person in the conference.
309 ;sound_only_one ; The sound played to a user when there is only one other
310 ; person is in the conference.
311 ;sound_there_are ; The sound played when announcing how many users there
312 ; are in a conference.
313 ;sound_other_in_party; ; This file is used in conjunction with 'sound_there_are"
314 ; when announcing how many users there are in the conference.
315 ; The sounds are stringed together like this.
316 ; "sound_there_are" <number of participants> "sound_other_in_party"
317 ;sound_place_into_conference ; The sound played when someone is placed into the conference
318 ; after waiting for a marked user. This sound is now deprecated
319 ; since it was only ever used improperly and correcting that bug
320 ; made it completely unused.
321 ;sound_wait_for_leader ; The sound played when a user is placed into a conference that
322 ; can not start until a marked user enters.
323 ;sound_leader_has_left ; The sound played when the last marked user leaves the conference.
324 ;sound_get_pin ; The sound played when prompting for a conference pin number.
325 ;sound_invalid_pin ; The sound played when an invalid pin is entered too many times.
326 ;sound_locked ; The sound played to a user trying to join a locked conference.
327 ;sound_locked_now ; The sound played to an admin after toggling the conference to locked mode.
328 ;sound_unlocked_now; The sound played to an admin after toggling the conference to unlocked mode.
329 ;sound_error_menu ; The sound played when an invalid menu option is entered.
330 ;sound_begin ; The sound played to the conference when the first marked user enters the conference.
331 ;sound_binaural_on ; The sound played when binaural audio is turned on
332 ;sound_binaural_off ; The sound played when binaural audio is turned off
333
334 ; --- ConfBridge Menu Options ---
335 ; The ConfBridge application also has the ability to
336 ; apply custom DTMF menus to each channel using the
337 ; application. Like the User and Bridge profiles
338 ; a menu is passed in to ConfBridge as an argument in
339 ; the dialplan.
340 ;
341 ; Below is a list of menu actions that can be assigned
342 ; to a DTMF sequence.
343 ;
344 ; To have the first DTMF digit in a sequence be the '#' character, you need to
345 ; escape it. If it is not escaped then normal config file processing will
346 ; think it is a directive like #include. For example:
347 ; \#1=toggle_mute ; Pressing #1 will toggle the mute setting.
348 ;
349 ; A single DTMF sequence can have multiple actions associated with it. This is
350 ; accomplished by stringing the actions together and using a ',' as the delimiter.
351 ; Example: Both listening and talking volume is reset when '5' is pressed.
352 ; 5=reset_talking_volume, reset_listening_volume
353 ;
354 ; playback(<name of audio file>&<name of audio file>)
355 ; Playback will play back an audio file to a channel
356 ; and then immediately return to the conference.
357 ; This file can not be interupted by DTMF.
358 ; Mutliple files can be chained together using the
359 ; '&' character.
360 ; playback_and_continue(<name of playback prompt>&<name of playback prompt>)
361 ; playback_and_continue will
362 ; play back a prompt while continuing to
363 ; collect the dtmf sequence. This is useful
364 ; when using a menu prompt that describes all
365 ; the menu options. Note however that any DTMF
366 ; during this action will terminate the prompts
367 ; playback. Prompt files can be chained together
368 ; using the '&' character as a delimiter.
369 ; toggle_mute ; Toggle turning on and off mute. Mute will make the user silent
370 ; to everyone else, but the user will still be able to listen in.
371 ; toggle_binaural ; Toggle on or off binaural audio processing.
372
373 ; no_op ; This action does nothing (No Operation). Its only real purpose exists for
374 ; being able to reserve a sequence in the config as a menu exit sequence.
375 ; decrease_listening_volume ; Decreases the channel's listening volume.
376 ; increase_listening_volume ; Increases the channel's listening volume.
377 ; reset_listening_volume ; Reset channel's listening volume to default level.
378
379 ; decrease_talking_volume ; Decreases the channel's talking volume.
380 ; increase_talking_volume ; Icreases the channel's talking volume.
381 ; reset_talking_volume ; Reset channel's talking volume to default level.
382 ;
383 ; dialplan_exec(context,exten,priority) ; The dialplan_exec action allows a user
384 ; to escape from the conference and execute
385 ; commands in the dialplan. Once the dialplan
386 ; exits the user will be put back into the
387 ; conference. The possibilities are endless!
388 ; leave_conference ; This action allows a user to exit the conference and continue
389 ; execution in the dialplan.
390 ;
391 ; admin_kick_last ; This action allows an Admin to kick the last participant from the
392 ; conference. This action will only work for admins which allows
393 ; a single menu to be used for both users and admins.
394 ;
395 ; admin_toggle_conference_lock ; This action allows an Admin to toggle locking and
396 ; unlocking the conference. Non admins can not use
397 ; this action even if it is in their menu.
398
399 ; set_as_single_video_src ; This action allows any user to set themselves as the
400 ; single video source distributed to all participants.
401 ; This will make the video feed stick to them regardless
402 ; of what the video_mode is set to.
403
404 ; release_as_single_video_src ; This action allows a user to release themselves as
405 ; the video source. If video_mode is not set to "none"
406 ; this action will result in the conference returning to
407 ; whatever video mode the bridge profile is using.
408 ;
409 ; Note that this action will have no effect if the user
410 ; is not currently the video source. Also, the user is
411 ; not guaranteed by using this action that they will not
412 ; become the video source again. The bridge will return
413 ; to whatever operation the video_mode option is set to
414 ; upon release of the video src.
415
416 ; admin_toggle_mute_participants ; This action allows an administrator to toggle the mute
417 ; state for all non-admins within a conference.
418 ; Subsequent non-admins joining a muted conference will
419 ; start muted. All admin users are unaffected by this
420 ; option. Note that all users, regardless of their admin
421 ; status, are notified that the conference is muted when
422 ; the state is toggled.
423
424 ; participant_count ; This action plays back the number of participants currently
425 ; in a conference
426
427 [sample_user_menu]
428 type=menu
429 *=playback_and_continue(conf-usermenu)
430 *1=toggle_mute
431 1=toggle_mute
432 *4=decrease_listening_volume
433 4=decrease_listening_volume
434 *6=increase_listening_volume
435 6=increase_listening_volume
436 *7=decrease_talking_volume
437 7=decrease_talking_volume
438 *8=leave_conference
439 8=leave_conference
440 *9=increase_talking_volume
441 9=increase_talking_volume
442
443 [sample_admin_menu]
444 type=menu
445 *=playback_and_continue(conf-adminmenu)
446 *1=toggle_mute
447 1=toggle_mute
448 *2=admin_toggle_conference_lock ; only applied to admin users
449 2=admin_toggle_conference_lock ; only applied to admin users
450 *3=admin_kick_last ; only applied to admin users
451 3=admin_kick_last ; only applied to admin users
452 *4=decrease_listening_volume
453 4=decrease_listening_volume
454 *6=increase_listening_volume
455 6=increase_listening_volume
456 *7=decrease_talking_volume
457 7=decrease_talking_volume
458 *8=no_op
459 8=no_op
460 *9=increase_talking_volume
461 9=increase_talking_volume