/l3/users/sasha-minsk/sl-voip-2016-03/asterisk3.unix.sl/user :1 :2 :3 |
|
$sudo asterisk -r
Asterisk 11.13.1~dfsg-2+b1, Copyright (C) 1999 - 2013 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> 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 11.13.1~dfsg-2+b1 currently running on asterisk3 (pid = 5681) asterisk3*CLI> asterisk3*CLI> ... asterisk3*CLI> sip show press No such command 'sip show press' (type 'core show help sip show press' for other possible commands) asterisk3*CLI> sip show pres No such command 'sip show pres' (type 'core show help sip show pres' for other possible commands) asterisk3*CLI> pirs No such command 'pirs' (type 'core show help pirs' for other possible commands) asterisk3*CLI> Disconnected from Asterisk server Asterisk cleanly ending (0). Executing last minute cleanups |
$sudo asterisk -r
Asterisk 11.13.1~dfsg-2+b1, Copyright (C) 1999 - 2013 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> 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 11.13.1~dfsg-2+b1 currently running on asterisk3 (pid = 5681) asterisk3*CLI> asterisk3*CLI> ... asterisk3*CLI> sip show press No such command 'sip show press' (type 'core show help sip show press' for other possible commands) asterisk3*CLI> sip show pres No such command 'sip show pres' (type 'core show help sip show pres' for other possible commands) asterisk3*CLI> pirs No such command 'pirs' (type 'core show help pirs' for other possible commands) asterisk3*CLI> Disconnected from Asterisk server Asterisk cleanly ending (0). Executing last minute cleanups |
$sudo asterisk -r
Asterisk 11.13.1~dfsg-2+b1, Copyright (C) 1999 - 2013 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> 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 11.13.1~dfsg-2+b1 currently running on asterisk3 (pid = 5681) asterisk3*CLI> asterisk3*CLI> ... asterisk3*CLI> sip show press No such command 'sip show press' (type 'core show help sip show press' for other possible commands) asterisk3*CLI> sip show pres No such command 'sip show pres' (type 'core show help sip show pres' for other possible commands) asterisk3*CLI> pirs No such command 'pirs' (type 'core show help pirs' for other possible commands) asterisk3*CLI> Disconnected from Asterisk server Asterisk cleanly ending (0). Executing last minute cleanups |
$sudo asterisk -r
Asterisk 11.13.1~dfsg-2+b1, Copyright (C) 1999 - 2013 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> 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 11.13.1~dfsg-2+b1 currently running on asterisk3 (pid = 5681) asterisk3*CLI> sip show peers Name/username Host Dyn Forcerport Comedia ACL Port Status Description ... Name/username Host Dyn Forcerport Comedia ACL Port Status Description 1301/1301 192.168.30.101 D Auto (No) No 5060 Unmonitored 1302/1302 192.168.30.100 D Auto (No) No 47623 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 2 online, 0 offline] [Mar 29 14:52:12] NOTICE[5698][C-00000003]: chan_sip.c:25628 handle_request_invite: Call from '1302' (192.168.30.100:47623) to extension '1301' rejected because extension not found in context 'default'. [Mar 29 14:54:14] NOTICE[5698][C-00000004]: chan_sip.c:25628 handle_request_invite: Call from '1302' (192.168.30.100:47623) to extension '1302' rejected because extension not found in context 'default'. asterisk3*CLI> Disconnected from Asterisk server Asterisk cleanly ending (0). Executing last minute cleanups |
$sudo asterisk -r
Asterisk 11.13.1~dfsg-2+b1, Copyright (C) 1999 - 2013 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> 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 11.13.1~dfsg-2+b1 currently running on asterisk3 (pid = 5681) asterisk3*CLI> sip show peers Name/username Host Dyn Forcerport Comedia ACL Port Status Description ... Name/username Host Dyn Forcerport Comedia ACL Port Status Description 1301/1301 192.168.30.101 D Auto (No) No 5060 Unmonitored 1302/1302 192.168.30.100 D Auto (No) No 47623 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 2 online, 0 offline] [Mar 29 14:52:12] NOTICE[5698][C-00000003]: chan_sip.c:25628 handle_request_invite: Call from '1302' (192.168.30.100:47623) to extension '1301' rejected because extension not found in context 'default'. [Mar 29 14:54:14] NOTICE[5698][C-00000004]: chan_sip.c:25628 handle_request_invite: Call from '1302' (192.168.30.100:47623) to extension '1302' rejected because extension not found in context 'default'. asterisk3*CLI> Disconnected from Asterisk server Asterisk cleanly ending (0). Executing last minute cleanups |
$sudo asterisk -r
Asterisk 11.13.1~dfsg-2+b1, Copyright (C) 1999 - 2013 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> 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 11.13.1~dfsg-2+b1 currently running on asterisk3 (pid = 5681) asterisk3*CLI> sip show peers Name/username Host Dyn Forcerport Comedia ACL Port Status Description ... Name/username Host Dyn Forcerport Comedia ACL Port Status Description 1301/1301 192.168.30.101 D Auto (No) No 5060 Unmonitored 1302/1302 192.168.30.100 D Auto (No) No 47623 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 2 online, 0 offline] [Mar 29 14:52:12] NOTICE[5698][C-00000003]: chan_sip.c:25628 handle_request_invite: Call from '1302' (192.168.30.100:47623) to extension '1301' rejected because extension not found in context 'default'. [Mar 29 14:54:14] NOTICE[5698][C-00000004]: chan_sip.c:25628 handle_request_invite: Call from '1302' (192.168.30.100:47623) to extension '1302' rejected because extension not found in context 'default'. asterisk3*CLI> Disconnected from Asterisk server Asterisk cleanly ending (0). Executing last minute cleanups |
$sudo asterisk -r
Asterisk 11.13.1~dfsg-2+b1, Copyright (C) 1999 - 2013 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> 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 11.13.1~dfsg-2+b1 currently running on asterisk3 (pid = 5681) asterisk3*CLI> dialplan reload Dialplan reloaded. [Mar 29 15:02:38] NOTICE[5698][C-00000005]: chan_sip.c:25628 handle_request_invite: Call from '1302' (192.168.30.100:47623) to extension '4000' rejected because extension not found in context 'default'. [Mar 29 15:02:58] NOTICE[5698][C-00000006]: chan_sip.c:25628 handle_request_invite: Call from '1301' (192.168.30.101:5060) to extension '4000' rejected because extension not found in context 'default'. asterisk3*CLI> dialplan reload Dialplan reloaded. asterisk3*CLI> Disconnected from Asterisk server Asterisk cleanly ending (0). Executing last minute cleanups |
$sudo asterisk -r
Asterisk 11.13.1~dfsg-2+b1, Copyright (C) 1999 - 2013 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> 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 11.13.1~dfsg-2+b1 currently running on asterisk3 (pid = 5681) asterisk3*CLI> dialplan reload Dialplan reloaded. [Mar 29 15:02:38] NOTICE[5698][C-00000005]: chan_sip.c:25628 handle_request_invite: Call from '1302' (192.168.30.100:47623) to extension '4000' rejected because extension not found in context 'default'. [Mar 29 15:02:58] NOTICE[5698][C-00000006]: chan_sip.c:25628 handle_request_invite: Call from '1301' (192.168.30.101:5060) to extension '4000' rejected because extension not found in context 'default'. asterisk3*CLI> dialplan reload Dialplan reloaded. asterisk3*CLI> Disconnected from Asterisk server Asterisk cleanly ending (0). Executing last minute cleanups |
$sudo asterisk -r
Asterisk 11.13.1~dfsg-2+b1, Copyright (C) 1999 - 2013 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> 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 11.13.1~dfsg-2+b1 currently running on asterisk3 (pid = 5681) asterisk3*CLI> dialplan reload Dialplan reloaded. [Mar 29 15:02:38] NOTICE[5698][C-00000005]: chan_sip.c:25628 handle_request_invite: Call from '1302' (192.168.30.100:47623) to extension '4000' rejected because extension not found in context 'default'. [Mar 29 15:02:58] NOTICE[5698][C-00000006]: chan_sip.c:25628 handle_request_invite: Call from '1301' (192.168.30.101:5060) to extension '4000' rejected because extension not found in context 'default'. asterisk3*CLI> dialplan reload Dialplan reloaded. asterisk3*CLI> Disconnected from Asterisk server Asterisk cleanly ending (0). Executing last minute cleanups |
$sudo asterisk -r
Asterisk 11.13.1~dfsg-2+b1, Copyright (C) 1999 - 2013 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> 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 11.13.1~dfsg-2+b1 currently running on asterisk3 (pid = 5681) asterisk3*CLI> dialplan reload Dialplan reloaded. [Mar 29 15:04:38] NOTICE[7087][C-00000008]: channel.c:4301 __ast_read: Dropping incompatible voice frame on SIP/1302-00000001 of format ulaw since our native format has changed to (gsm) asterisk3*CLI> Disconnected from Asterisk server Asterisk cleanly ending (0). Executing last minute cleanups |
$sudo asterisk -r
Asterisk 11.13.1~dfsg-2+b1, Copyright (C) 1999 - 2013 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> 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 11.13.1~dfsg-2+b1 currently running on asterisk3 (pid = 5681) asterisk3*CLI> dialplan reload Dialplan reloaded. [Mar 29 15:04:38] NOTICE[7087][C-00000008]: channel.c:4301 __ast_read: Dropping incompatible voice frame on SIP/1302-00000001 of format ulaw since our native format has changed to (gsm) asterisk3*CLI> Disconnected from Asterisk server Asterisk cleanly ending (0). Executing last minute cleanups |
$sudo asterisk -r
Asterisk 11.13.1~dfsg-2+b1, Copyright (C) 1999 - 2013 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> 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 11.13.1~dfsg-2+b1 currently running on asterisk3 (pid = 5681) asterisk3*CLI> dialplan reload Dialplan reloaded. [Mar 29 15:04:38] NOTICE[7087][C-00000008]: channel.c:4301 __ast_read: Dropping incompatible voice frame on SIP/1302-00000001 of format ulaw since our native format has changed to (gsm) asterisk3*CLI> Disconnected from Asterisk server Asterisk cleanly ending (0). Executing last minute cleanups |
$chown asterisk:asterisk /var/tmp/asterisk
chown: changing ownership of ‘/var/tmp/asterisk’: Operation not permitted |
$chown asterisk:asterisk /var/tmp/asterisk
chown: changing ownership of ‘/var/tmp/asterisk’: Operation not permitted |
$chown asterisk:asterisk /var/tmp/asterisk
chown: changing ownership of ‘/var/tmp/asterisk’: Operation not permitted |
$sudo asterisk -r
Asterisk 11.13.1~dfsg-2+b1, Copyright (C) 1999 - 2013 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> 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 11.13.1~dfsg-2+b1 currently running on asterisk3 (pid = 5681) asterisk3*CLI> dialplan re reload remove asterisk3*CLI> dialplan re reload remove asterisk3*CLI> dialplan reload Dialplan reloaded. asterisk3*CLI> Disconnected from Asterisk server Asterisk cleanly ending (0). Executing last minute cleanups |
$sudo asterisk -r
Asterisk 11.13.1~dfsg-2+b1, Copyright (C) 1999 - 2013 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> 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 11.13.1~dfsg-2+b1 currently running on asterisk3 (pid = 5681) asterisk3*CLI> dialplan re reload remove asterisk3*CLI> dialplan re reload remove asterisk3*CLI> dialplan reload Dialplan reloaded. asterisk3*CLI> Disconnected from Asterisk server Asterisk cleanly ending (0). Executing last minute cleanups |
$sudo asterisk -r
Asterisk 11.13.1~dfsg-2+b1, Copyright (C) 1999 - 2013 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> 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 11.13.1~dfsg-2+b1 currently running on asterisk3 (pid = 5681) asterisk3*CLI> dialplan re reload remove asterisk3*CLI> dialplan re reload remove asterisk3*CLI> dialplan reload Dialplan reloaded. asterisk3*CLI> Disconnected from Asterisk server Asterisk cleanly ending (0). Executing last minute cleanups |
$sudo asterisk -r
Asterisk 11.13.1~dfsg-2+b1, Copyright (C) 1999 - 2013 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> 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 11.13.1~dfsg-2+b1 currently running on asterisk3 (pid = 5681) asterisk3*CLI> sip reload asterisk3*CLI> sip show peers Name/username Host Dyn Forcerport Comedia ACL Port Status Description 1301/1301 192.168.30.101 D Auto (No) No 5060 Unmonitored 1302/1302 192.168.30.100 D Auto (No) No 47623 Unmonitored vitebsk/minsk 192.168.30.1 D Auto (No) No 5060 Unmonitored 3 sip peers [Monitored: 0 online, 0 offline Unmonitored: 3 online, 0 offline] asterisk3*CLI> Disconnected from Asterisk server Asterisk cleanly ending (0). Executing last minute cleanups |
$sudo asterisk -r
Asterisk 11.13.1~dfsg-2+b1, Copyright (C) 1999 - 2013 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> 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 11.13.1~dfsg-2+b1 currently running on asterisk3 (pid = 5681) asterisk3*CLI> sip reload asterisk3*CLI> sip show peers Name/username Host Dyn Forcerport Comedia ACL Port Status Description 1301/1301 192.168.30.101 D Auto (No) No 5060 Unmonitored 1302/1302 192.168.30.100 D Auto (No) No 47623 Unmonitored vitebsk/minsk 192.168.30.1 D Auto (No) No 5060 Unmonitored 3 sip peers [Monitored: 0 online, 0 offline Unmonitored: 3 online, 0 offline] asterisk3*CLI> Disconnected from Asterisk server Asterisk cleanly ending (0). Executing last minute cleanups |
$sudo asterisk -r
Asterisk 11.13.1~dfsg-2+b1, Copyright (C) 1999 - 2013 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> 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 11.13.1~dfsg-2+b1 currently running on asterisk3 (pid = 5681) asterisk3*CLI> sip reload asterisk3*CLI> sip show peers Name/username Host Dyn Forcerport Comedia ACL Port Status Description 1301/1301 192.168.30.101 D Auto (No) No 5060 Unmonitored 1302/1302 192.168.30.100 D Auto (No) No 47623 Unmonitored vitebsk/minsk 192.168.30.1 D Auto (No) No 5060 Unmonitored 3 sip peers [Monitored: 0 online, 0 offline Unmonitored: 3 online, 0 offline] asterisk3*CLI> Disconnected from Asterisk server Asterisk cleanly ending (0). Executing last minute cleanups |
$ssh user@192.168.30.1
user@192.168.30.1's password: The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. You have mail. Last login: Wed Mar 30 10:03:35 2016 from m6 vipicoeevimnanol3-agent is already running: pid=27049; pidfile=/home/user/.lilalo/l3-agent.pid |
$screen -x
|
$sudo asterisk -r
Asterisk 11.13.1~dfsg-2+b1, Copyright (C) 1999 - 2013 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> 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 11.13.1~dfsg-2+b1 currently running on asterisk3 (pid = 5681) asterisk3*CLI> sip notify prune qualify reload set show ... asterisk3*CLI> asterisk3*CLI> asterisk3*CLI> asterisk3*CLI> asterisk3*CLI> asterisk3*CLI> asterisk3*CLI> Disconnected from Asterisk server Asterisk cleanly ending (0). Executing last minute cleanups |
$sudo vim /etc/asterisk/sip.conf
|
$type=friend
[ ] [vitebsk] "/etc/asterisk/sip.conf" 46L, 597C type=friend secret=1234 host=dynamic [1301] [1301]invaite=no directmedia=no ;username=minsk defaultuser=minsk [warsaw] type=friend secret=1234 host=dynamic ;canreinvaite=no directmedia=no ;username=minsk defaultuser=minsk [kiev] type=friend 13,0-1 Top |
$sudo vim /etc/asterisk/sip.conf
|
$sudo asterisk -r
Asterisk 11.13.1~dfsg-2+b1, Copyright (C) 1999 - 2013 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> 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 11.13.1~dfsg-2+b1 currently running on asterisk3 (pid = 5681) asterisk3*CLI> sip reload asterisk3*CLI> dialplan reload Dialplan reloaded. [Mar 30 10:48:25] NOTICE[5698][C-00000036]: chan_sip.c:25628 handle_request_invite: Call from '1302' (192.168.30.100:47623) to extension '2302' rejected because extension not found in context 'gr2'. [Mar 30 10:49:05] NOTICE[5698][C-0000003a]: chan_sip.c:25628 handle_request_invite: Call from '1302' (192.168.30.100:47623) to extension '1401' rejected because extension not found in context 'gr2'. asterisk3*CLI> Disconnected from Asterisk server Asterisk cleanly ending (0). Executing last minute cleanups |
$sudo vim /etc/asterisk/sip.conf
|
$[ ]
"/etc/asterisk/sip.conf" 47L, 605C [vitebsk] type=friend secret=1234 [1301] [1301]ynamic ;canreinvaite=no [1302]media=no [1302] ;username=minsk ... [ ] [warsaw]] type=friend secret=1234 host=dynamic ;canreinvaite=no directmedia=no ;username=minsk defaultuser=minsk "/etc/asterisk/sip.conf" 47L, 607C written |
$sudo asterisk -r
Asterisk 11.13.1~dfsg-2+b1, Copyright (C) 1999 - 2013 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> 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 11.13.1~dfsg-2+b1 currently running on asterisk3 (pid = 5681) asterisk3*CLI> dialplan reload Dialplan reloaded. asterisk3*CLI> sip reload asterisk3*CLI> Disconnected from Asterisk server Asterisk cleanly ending (0). Executing last minute cleanups |
$sudo vim /etc/asterisk/sip.conf
|
$sudo vim /etc/asterisk/extensions.conf
|
$sudo asterisk -r
Asterisk 11.13.1~dfsg-2+b1, Copyright (C) 1999 - 2013 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> 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 11.13.1~dfsg-2+b1 currently running on asterisk3 (pid = 5681) asterisk3*CLI> sip reload asterisk3*CLI> dialplan reload Dialplan reloaded. [Mar 30 12:47:06] NOTICE[5698][C-00000047]: chan_sip.c:25628 handle_request_invite: Call from '1301' (192.168.30.101:5060) to extension '4200' rejected because extension not found in context 'gr1'. [Mar 30 12:47:15] NOTICE[5698][C-00000048]: chan_sip.c:25628 handle_request_invite: Call from '1301' (192.168.30.101:5060) to extension '4200' rejected because extension not found in context 'gr1'. [Mar 30 12:47:20] NOTICE[5698][C-00000049]: chan_sip.c:25628 handle_request_invite: Call from '1301' (192.168.30.101:5060) to extension '4201' rejected because extension not found in context 'gr1'. asterisk3*CLI> Disconnected from Asterisk server Asterisk cleanly ending (0). Executing last minute cleanups |
$sudo vim /etc/asterisk/extensions.conf
|
$sudo vim /etc/asterisk/extensions.conf
|
$[ ]
; ; The arguments passed to this script are <mailbox> <context> <old pw> <new pw>. ; ; The script should print "VALID" to stdout to indicate that the new passworr d ; is acceptable. If the password is considered too weak, the script should print ; "INVALID" to stdout. ; ... have a new voicemail.|emailbody=Click on the attachment to listen.|rip=20100 -06-04 ;4110 => 3443,Rob Flynn,rflynn@blueridge.net ;4235 => 1234,Jim Holmes,jim@astricon.ips,,Tz=european ; ; Mailboxes may be organized into multiple contexts for ; voicemail virtualhosting ;[acme] [other] "/etc/asterisk/voicemail.conf" 459L, 23811C written |
$sudo vim /etc/asterisk/extensions.conf
|
$sudo vim /etc/asterisk/extensions.conf
|
$[1302]
exten => _13XX,1,Macro(call) ;exten => _13XX,1,dial(SIP/${EXTEN}) exten => 4000,1,playback(demo-thanks) exten => _40XX,1,record(/var/tmp/asterisk/message${EXTEN:2}:gsm) "/etc/asterisk/extensions.conf" 38L, 1119C exten => _40XX,n,playback(/var/tmp/asterisk/message${EXTEN:2}) exten => _41XX,1,playback(/var/tmp/asterisk/message${EXTEN:2}cro-call]) [default] ;exten => _13XX,1,Macro(call) ;exten => _13XX,1,dial(SIP/${EXTEN}) ... [gr2] [gr2] [gr1] [gr1] [gr2] [gr2] ~ ~ ~ "/etc/asterisk/extensions.conf" 33L, 1083C written |
$sudo asterisk -r
Asterisk 11.13.1~dfsg-2+b1, Copyright (C) 1999 - 2013 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> 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 11.13.1~dfsg-2+b1 currently running on asterisk3 (pid = 5681) asterisk3*CLI> dialplan reload Dialplan reloaded. ... [Mar 30 13:05:37] WARNING[8600]: pbx.c:12279 ast_context_verify_includes: Context 'gr2' tries to include nonexistent context 'local' [Mar 30 13:05:37] WARNING[8600]: pbx.c:12279 ast_context_verify_includes: Context 'gr1' tries to include nonexistent context 'local' asterisk3*CLI> dialplan reload Dialplan reloaded. [Mar 30 13:05:44] WARNING[8600]: pbx.c:12279 ast_context_verify_includes: Context 'gr2' tries to include nonexistent context 'local' [Mar 30 13:05:44] WARNING[8600]: pbx.c:12279 ast_context_verify_includes: Context 'gr1' tries to include nonexistent context 'local' asterisk3*CLI> Disconnected from Asterisk server Asterisk cleanly ending (0). Executing last minute cleanups |
$sudo vim /etc/asterisk/extensions.conf
|
$sudo vim /etc/asterisk/extensions.conf
|
$sudo asterisk -rvvv
Asterisk 11.13.1~dfsg-2+b1, Copyright (C) 1999 - 2013 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> 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 11.13.1~dfsg-2+b1 currently running on asterisk3 (pid = 5681) == Using SIP RTP CoS mark 5 -- Executing [1302@gr1:1] Macro("SIP/1301-00000079", "call") in new stack ... -- SIP/1302-0000007a is ringing -- Nobody picked up in 10000 ms -- Executing [s@macro-call:3] GotoIf("SIP/1301-00000079", "0?label1") in new stack -- Executing [s@macro-call:4] Hangup("SIP/1301-00000079", "") in new stack == Spawn extension (macro-call, s, 4) exited non-zero on 'SIP/1301-00000079' in macro 'call' == Spawn extension (gr1, 1302, 1) exited non-zero on 'SIP/1301-00000079' asterisk3*CLI> Disconnected from Asterisk server Asterisk cleanly ending (0). Executing last minute cleanups |
$sudo vim /etc/asterisk/extensions.conf
|
$mail
bash: mail: command not found |
$sudo apt-get install bsd-mailx
[sudo] password for user: Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: exim4-base exim4-config exim4-daemon-light Suggested packages: eximon4 exim4-doc-html exim4-doc-info spf-tools-perl swaks Recommended packages: mailx ... Processing triggers for man-db (2.7.0.2-5) ... Processing triggers for systemd (215-17+deb8u3) ... Setting up exim4-config (4.84.2-1) ... Adding system-user for exim (v4) Setting up exim4-base (4.84.2-1) ... exim: DB upgrade, deleting hints-db Setting up exim4-daemon-light (4.84.2-1) ... Setting up bsd-mailx (8.1.2-0.20141216cvs-2) ... update-alternatives: using /usr/bin/bsd-mailx to provide /usr/bin/mailx (mailx) in auto mode Processing triggers for systemd (215-17+deb8u3) ... |
$mail
No mail for user |
$mail
No mail for user |
Время первой команды журнала | 13:30:16 2016- 3-29 | ||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 13:06:48 2016- 3-30 | ||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 4.95 | ||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 14.85 | ||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 3.50 | ||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.48 | ||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.
Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
$ l s-l bash: l: command not found |
Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
$ test 5 -lt 4 |
Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
$ find / -name abc find: /home/devi-orig/.gnome2: Keine Berechtigung find: /home/devi-orig/.gnome2_private: Keine Berechtigung find: /home/devi-orig/.nautilus/metafiles: Keine Berechtigung find: /home/devi-orig/.metacity: Keine Berechtigung find: /home/devi-orig/.inkscape: Keine Berechtigung ^C |
Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
# id uid=0(root) gid=0(root) Gruppen=0(root) |
Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
$ vi ~/.bashrc
|
Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
$ patch ~/.bashrc |
Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.
Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.
Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.
Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора
Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.
Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.
Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:
$ whoami
user
$ #^ Интересно, кто я?в журнале это будет выглядеть так:
$ whoami
user
Интересно, кто я? |
Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:
$ whoami
user
$ cat > /dev/null #^ Интересно, кто я?
Программа whoami выводит имя пользователя, под которым мы зарегистрировались в системе. - Она не может ответить на вопрос о нашем назначении в этом мире.В журнале это будет выглядеть так:
$ whoami user
|
Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=
1 2 3 4Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.
LiLaLo (L3) расшифровывается как Live Lab Log.
Программа разработана для повышения эффективности обучения Unix/Linux-системам.
(c) Игорь Чубин, 2004-2008