3

freeswitch has it's own CLI and it is possible to shut it down with shutdown command issued within this CLI.

But is it possible to shut it down bu separate command, for example, by shell script?

  • 4
    You've only accepted 2 answers on the 7 questions you've asked that got answers. Please go back and see if you can accept some valid answers. – longneck Nov 30 '12 at 13:46

2 Answers2

6

You can use the following command:

fs_cli -x "shutdown"
markus
  • 1,050
  • 5
  • 18
  • 37
  • I'm new to freeswitch and just installed it on debian (stretch). I'm unable to stop the service using this command. If I do shutdown freeswitch start with another process id. – Yasiru G Jun 07 '19 at 07:19
  • 1
    I think that is because you start freeswitch via systemd and when systemd recognized that the process is not not there it relaunches it. If that is the case, you can start/stop freeswitch via systemd by "sudo systemctl start freeswitch" and "sudo systemctl stop freeswitch". – markus Jun 16 '19 at 16:26
0
/opt/freeswitch/bin/fs_cli --execute="show channels"
Scott Pack
  • 14,717
  • 10
  • 51
  • 83