, , Asterisk 14.3.0 , , Asterisk .

, Asterisk , , :

[root@localhost ~]# asterisk -r
Asterisk 14.3.0, Copyright (C) 1999 - 2016, Digium, Inc. and others.
Created by Mark Spencer 
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 14.3.0 currently running on localhost (pid = 1887)
localhost*CLI>
-R , Asterisk, - , .

Asterisk, Ctrl+C

Asterisk:

  • core stop now - ,
  • core stop gracefully - Asterisk, . , Asterisk
  • core stop when convenient - , Asterisk. , , -

Asterisk , , , Asterisk, :

  • core restart now
  • core restart gracefully
  • core restart when convenient

, , :

  • core abort shutdown

Asterisk root, :

[root@localhost ~]# asterisk -c
Asterisk 14.3.0, Copyright (C) 1999 - 2016, Digium, Inc. and others.
Created by Mark Spencer 
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for detail                                                                                                                                                             s.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
[ Initializing Custom Configuration Options ]
*CLI> Asterisk Ready.

Asterisk root, , Asterisk.


Asterisk

, Asterisk, -v. v VERBOSE .

, 2:

# asterisk r v -v

,

# asterisk -rvv

Asterisk :

# asterisk U asteriskuser

, , . :

# sudo chown -R asteriskuser:asteriskuser /usr/lib/asterisk
# sudo chown -R asteriskuser:asteriskuser /var/lib/asterisk
# sudo chown -R asteriskuser:asteriskuser /var/spool/asterisk
# sudo chown -R asteriskuser:asteriskuser /var/log/asterisk
# sudo chown -R asteriskuser:asteriskuser /var/run/asterisk
# sudo chown asteriskuser:asteriskuser /usr/sbin/asterisk
IP - Asterisk FreePBX. , AdminAsterisk CLI
  Asterisk CLI

, Asterisk, , :

# asterisk h

Asterisk :

:

# service asterisk start
Starting asterisk (via systemctl):                         [  OK  ]

:

# service asterisk stop
Stopping asterisk (via systemctl):                         [  OK  ]

:

# service asterisk restart
Stopping asterisk (via systemctl):                         [  OK  ]
Starting asterisk (via systemctl):                           [  OK  ]

:

# service asterisk status
? asterisk.service - LSB: Asterisk PBX
   Loaded: loaded (/etc/rc.d/init.d/asterisk; bad; vendor preset: disabled)
   Active: active (running) since Wed 2017-03-01 15:59:26 MSK; 2s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 11611 ExecStop=/etc/rc.d/init.d/asterisk stop (code=exited, status=0/SUCCESS)
  Process: 11672 ExecStart=/etc/rc.d/init.d/asterisk start (code=exited, status=0/SUCCESS)
 Main PID: 11697 (asterisk)
   CGroup: /system.slice/asterisk.service
           +-11695 /bin/sh /usr/sbin/safe_asterisk
           L-11697 /usr/sbin/asterisk -f -vvvg -c

Mar 01 15:59:26 localhost.localdomain systemd[1]: Starting LSB: Asterisk PBX...
Mar 01 15:59:26 localhost.localdomain asterisk[11672]: Starting asterisk:
Mar 01 15:59:26 localhost.localdomain systemd[1]: PID file /var/run/asterisk/...
Mar 01 15:59:26 localhost.localdomain systemd[1]: asterisk.service: Supervisi...
Mar 01 15:59:26 localhost.localdomain systemd[1]: Started LSB: Asterisk PBX.
Hint: Some lines were ellipsized, use -l to show in full.

?

 .

P.S. , :)

"",