Commit f79af79a authored by ulif's avatar ulif 🐻

Enable hold-music on session startup.

When a local file 'hold_music.wav' is placed in the local directory it
will be used as background music at beginning of conferences, when there
is only one attendant in the room.
parent f0dd0089
......@@ -63,3 +63,33 @@
path: /usr/share/bbb-web/WEB-INF/classes/bigbluebutton.properties
regexp: '^disableRecordingDefault=.*'
line: 'disableRecordingDefault=true'
#
# hold-the-line sound
#
- name: copy over hold-the-line sound
copy:
src: "hold_music.wav"
dest: "/opt/freeswitch/hold_music.wav"
when: "'hold_music.wav' is file"
- name: check if we got a sound file
stat:
path: "/opt/freeswitch/hold_music.wav"
register: hold_sound
- name: set path of hold-the-line sound
lineinfile:
path: /opt/freeswitch/conf/vars.xml
regexp: '<X-PRE-PROCESS cmd="set" data="hold_music=.*'
line: ' <X-PRE-PROCESS cmd="set" data="hold_music=/opt/freeswitch/hold_music.wav"/>'
when: hold_sound.stat.exists
- name: enable music-on-hold sound
xml:
path: /opt/freeswitch/conf/autoload_configs/conference.conf.xml
xpath: '/configuration/profiles/profile[@name="cdquality"]/param[@name="moh-sound"]'
attribute: value
value: '$${hold_music}'
backup: no
when: hold_sound.stat.exists
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment