Merge pull request #16 from Simnol/master

Added 'asterisk' and minor update to 'tar'
This commit is contained in:
Chris Lane 2013-08-18 07:59:54 -07:00
commit 191949b45a
2 changed files with 20 additions and 0 deletions

17
.cheat/asterisk Normal file
View File

@ -0,0 +1,17 @@
To connect to a running Asterisk session:
asterisk -rvvv
To issue a command to Asterisk from the shell:
asterisk -rx "<command>"
To originate an echo call from a SIP trunk on an Asterisk server, to a specified number:
asterisk -rx "channel originate SIP/<trunk>/<number> application echo"
To print out the details of SIP accounts:
asterisk -rx "sip show peers"
To print out the passwords of SIP accounts:
asterisk -rx "sip show users"
To print out the current active channels:
asterisk -rx "core show channels"

View File

@ -1,6 +1,9 @@
To extract an uncompressed archive:
tar -xvf /path/to/foo.tar
To create an uncompressed archive:
tar -cvf /path/to/foo.tar /path/to/foo/
To extract a .gz archive:
tar -xzvf /path/to/foo.tgz