2021-08-13 18:53:18 +08:00
|
|
|
#!/bin/bash
|
|
|
|
|
2021-10-13 05:26:41 +08:00
|
|
|
# "$@" is placed at the end of the command so it can be used as "fs_clibbb -x 'show channels as json'"
|
|
|
|
# @ will be replaced by the arguments you pass in the command line.
|
|
|
|
/opt/freeswitch/bin/fs_cli -p $(xmlstarlet sel -t -m 'configuration/settings/param[@name="password"]' -v @value /opt/freeswitch/etc/freeswitch/autoload_configs/event_socket.conf.xml) "$@"
|