Arto's Notes re: Asterisk

$ apt install asterisk

$ asterisk -c        # start Asterisk in the foreground
$ asterisk -cvvv     # start Asterisk in the foreground, verbosely

$ asterisk -r        # connect to daemonized Asterisk

$ asterisk -rx 'core show channels'
$ asterisk -rx 'sip reload'
$ asterisk -rx 'iax2 reload'
$ asterisk -rx 'dialplan reload'

*CLI> exit           # exit the CLI
*CLI> core stop now  # terminate Asterisk

iax2 show peers
iax2 show users

Reference

See Also