From 9be7d1f1a6b52aed902620351732a7f74d7bad42 Mon Sep 17 00:00:00 2001 From: Simnol Date: Sun, 18 Aug 2013 15:31:09 +0100 Subject: [PATCH 1/3] Update tar Added 'To create an uncompressed archive:' for no other reason than it was missing and was annoying me. --- .cheat/tar | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.cheat/tar b/.cheat/tar index 54882b4..a0f7a41 100644 --- a/.cheat/tar +++ b/.cheat/tar @@ -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 From 3b447318196b1e08a993b07f9f3630c1658c8b4b Mon Sep 17 00:00:00 2001 From: Simnol Date: Sun, 18 Aug 2013 15:33:21 +0100 Subject: [PATCH 2/3] Create asterisk Added a few of the more basic commands for interacting with Asterisk from the shell, at the moment this does not cover actually being inside the Asterisk CLI. --- .cheat/asterisk | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .cheat/asterisk diff --git a/.cheat/asterisk b/.cheat/asterisk new file mode 100644 index 0000000..bda5f88 --- /dev/null +++ b/.cheat/asterisk @@ -0,0 +1,17 @@ +To connect to a running Asterisk session: +asterisk -rvvv + +To issue a command to Asterisk from the shell: +asterisk -rx "" + +To originate a call from a SIP trunk on an Asterisk server, to a specified number: +asterisk -rx "channel originate SIP// 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" From c78dc1a236b0725e4c93e944d822d0b56f2c559e Mon Sep 17 00:00:00 2001 From: Simnol Date: Sun, 18 Aug 2013 15:34:07 +0100 Subject: [PATCH 3/3] Update asterisk Added what 'echo' does in originate command. --- .cheat/asterisk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.cheat/asterisk b/.cheat/asterisk index bda5f88..f0cf107 100644 --- a/.cheat/asterisk +++ b/.cheat/asterisk @@ -4,7 +4,7 @@ asterisk -rvvv To issue a command to Asterisk from the shell: asterisk -rx "" -To originate a call from a SIP trunk on an Asterisk server, to a specified number: +To originate an echo call from a SIP trunk on an Asterisk server, to a specified number: asterisk -rx "channel originate SIP// application echo" To print out the details of SIP accounts: