Add FreeSWITCH password to bbb-resync-freeswitch

This commit is contained in:
Fred Dixon 2020-06-13 06:39:46 -05:00
parent 87ea96b386
commit 97d3fc9020

View File

@ -1,3 +1,3 @@
#!/bin/bash
/opt/freeswitch/bin/fs_cli -x 'fsctl sync_clock_when_idle' > /var/log/freeswitch_sync_clock.log 2>&1
/opt/freeswitch/bin/fs_cli -x 'fsctl sync_clock_when_idle' -p $(xmlstarlet sel -t -m 'configuration/settings/param[@name="password"]' -v @value /opt/freeswitch/etc/freeswitch/autoload_configs/event_socket.conf.xml) > /var/log/freeswitch_sync_clock.log 2>&1