Журнал лабораторных работ

Содержание

Журнал

Понедельник (11/24/14)

/dev/pts/8
16:30:11
#asterisk -rx 'sip show peers'
Name/username              Host                                    Dyn Forcerport ACL Port     Status
2201/2201                  192.168.50.100                           D   N             5060     Unmonitored
2202                       (Unspecified)                            D   N             0        Unmonitored
2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 1 online, 1 offline]
16:31:02
#ЦФÐÐWATCH 'sk -rx 'sip show peers' '
bash: WATCH: command not found
16:32:40
#No such command 'sip' (type 'core show help sip' for other possible comma

16:33:21
#No such command 'sip' (type 'core show help sip' for other possible comma
Usage:
 watch [options] command
Options:
  -b, --beep             beep if command has a non-zero exit
  -c, --color            interpret ANSI color sequences
  -d, --differences[=<permanent>]
                         highlight changes between updates
  -e, --errexit          exit if command has a non-zero exit
  -g, --chgexit          exit when output from command changes
  -n, --interval <secs>  seconds to wait between updates
  -p, --precise          attempt run command in precise intervals
  -t, --no-title         turn off header
  -x, --exec             pass command to exec instead of "sh -c"
 -h, --help     display this help and exit
 -v, --version  output version information and exit
For more details see watch(1).
16:42:28
#less /etc/dhcp/dhcpd.conf
16:47:10
#/etc/init.d/asterisk restart

16:47:10
#vim /etc/default/isc-dhcp-server
16:48:17
#/etc/init.d/asterisk restart
                  /etc/init.d/isc-dhcp-server restart
Stopping ISC DHCP server: dhcpd.
Starting ISC DHCP server: dhcpd.
прошло 13 минут
17:01:32
#мÑvim /etc/asterisk/extentions.conf
[default]
exten => _22xx,1,Dial(SIP/${EXTEN})
~
~
~
~
~
~
~
~
...
~
~
~
~
~
~
~
~
~
"/etc/asterisk/extentions.conf" [New] 5L, 49C written
17:07:22
#asterisk -rvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13187)
Verbosity was 0 and is now 2
  == Using SIP RTP CoS mark 5
[Nov 24 18:07:45] NOTICE[13225]: chan_sip.c:22753 handle_request_invite: Call from '2202' (192.168.50.101:55282) to extension '2201' rejected because extension not found in context 'default'.
debian5*CLI> exit
Executing last minute cleanups
17:08:49
#asterisk -rvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13296)
Verbosity was 0 and is now 2
  == Using SIP RTP CoS mark 5
[Nov 24 18:09:05] NOTICE[13334]: chan_sip.c:22753 handle_request_invite: Call from '2202' (192.168.50.101:55282) to extension '2201' rejected because extension not found in context 'default'.
debian5*CLI> exit
Executing last minute cleanups
17:11:00
#[ ]
# [] -  название секции на каждый номер телефона
context=default
[2201]
type=friend
# направление разрешеного звонка friend в оба направления
secret=1234
# пароль подключения
~
~
~
...
~
~
~
~
~
~
~
~
~
"/etc/asterisk/sip.conf" 16L, 379C written
17:11:58
#asterisk -r
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517)
debian5*CLI> con
config   console
[Nov 24 18:12:35] NOTICE[13555]: chan_sip.c:22753 handle_request_invite: Call from '2202' (192.168.50.101:55282) to extension '2201' rejected because extension not found in context 'default'.
debian5*CLI> -rvv
No such command '-rvv' (type 'core show help -rvv' for other possible commands)
debian5*CLI> exit
17:12:47
#asterisk -rvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517)
Verbosity was 0 and is now 2
  == Using SIP RTP CoS mark 5
[Nov 24 18:12:57] NOTICE[13555]: chan_sip.c:22753 handle_request_invite: Call from '2202' (192.168.50.101:55282) to extension '2201' rejected because extension not found in context 'default'.
debian5*CLI> exit
Executing last minute cleanups
17:13:20
#vim /etc/asterisk/extentions.conf
17:14:04
#[ ]
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517)
Verbosity is at least 2
debian5*CLI> dialplan reload
Dialplan reloaded.
debian5*CLI> asterisk -rvv
No such command 'asterisk -rvv' (type 'core show help asterisk -rvv' for other possible commands)
debian5*CLI> exit
17:14:28
#asterisk -rvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517)
Verbosity is at least 2
  == Using SIP RTP CoS mark 5
[Nov 24 18:14:39] NOTICE[13555]: chan_sip.c:22753 handle_request_invite: Call from '2202' (192.168.50.101:55282) to extension '2201' rejected because extension not found in context 'default'.
debian5*CLI> exit
Executing last minute cleanups
17:16:36
#vim /etc/asterisk/exten
17:16:36
#vim /etc/asterisk/extensions
17:16:36
#vim /etc/asterisk/extensions.
17:16:36
#vim /etc/asterisk/extensions.
17:16:36
#vim /etc/asterisk/extensions.conf.bak .
17:16:36
#vim /etc/asterisk/extensions.conf
17:17:22
#~
4 -rw-r--r-- 1 root root 49 Nov 24 18:07 /etc/asterisk/extentions.conf
17:17:31
#ls -ls /etc/asterisk/ | grep ext
 4 -rw-r----- 1 asterisk asterisk  3397 Jan  4  2014 extconfig.conf
16 -rw-r----- 1 asterisk asterisk 12776 Jan  4  2014 extensions.ael
32 -rw-r----- 1 asterisk asterisk 30823 Jan  4  2014 extensions.conf.bak
 8 -rw-r----- 1 asterisk asterisk  5253 Jan  4  2014 extensions.lua
 8 -rw-r----- 1 asterisk asterisk  7480 Jan  4  2014 extensions_minivm.conf
 4 -rw-r--r-- 1 root     root        49 Nov 24 18:07 extentions.conf
17:18:45
#ls -ls /etc/asterisk/ | grep ext
 4 -rw-r----- 1 asterisk asterisk  3397 Jan  4  2014 extconfig.conf
 4 -rw-r--r-- 1 root     root        49 Nov 24 18:07 extension.conf
16 -rw-r----- 1 asterisk asterisk 12776 Jan  4  2014 extensions.ael
32 -rw-r----- 1 asterisk asterisk 30823 Jan  4  2014 extensions.conf.bak
 8 -rw-r----- 1 asterisk asterisk  5253 Jan  4  2014 extensions.lua
 8 -rw-r----- 1 asterisk asterisk  7480 Jan  4  2014 extensions_minivm.conf
17:18:47
#ls -ls /etc/asterisk/ | grep ext
exten => _22XX,1,Dial(SIP/${EXTEN})
~
~
~
~
~
~
~
~
~
...
~
~
~
~
~
~
~
~
~
"/etc/asterisk/extensions.conf" [New] 5L, 49C written
17:20:38
#asterisk -rvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517)
Verbosity is at least 2
  == Using SIP RTP CoS mark 5
  == Using SIP RTP CoS mark 5
  == Spawn extension (default, 2201, 1) exited non-zero on 'SIP/2202-00000002'
debian5*CLI> exit
Executing last minute cleanups
17:21:04
#asterisk -r
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517)
Verbosity is at least 2
  == Using SIP RTP CoS mark 5
  == Using SIP RTP CoS mark 5
  == Spawn extension (default, 2201, 1) exited non-zero on 'SIP/2202-00000004'
  == Using SIP RTP CoS mark 5
  == Using SIP RTP CoS mark 5
  == Spawn extension (default, 2201, 1) exited non-zero on 'SIP/2202-00000006'
debian5*CLI> exit
17:23:07
#asterisk -r
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517)
Verbosity is at least 2
debian5*CLI> exit
/dev/pts/4
17:28:15
#quit
bash: quit: command not found

Вторник (11/25/14)

/dev/pts/11
08:31:42
#фыÐasterisk -r
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517)
Verbosity is at least 2
debian5*CLI> sip show pee
peers  peer
debian5*CLI> sip show peers
Name/username              Host                                    Dyn Forcerport ACL Port     Status
2201/2201                  192.168.50.100                           D   N             5060     Unmonitored
2202/2202                  192.168.50.101                           D   N             61523    Unmonitored
2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 2 online, 0 offline]
debian5*CLI> exit
/dev/pts/10
08:31:42
#фыÐasterisk -r
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517)
Verbosity is at least 2
debian5*CLI> sip show pee
peers  peer
debian5*CLI> sip show peers
Name/username              Host                                    Dyn Forcerport ACL Port     Status
2201/2201                  192.168.50.100                           D   N             5060     Unmonitored
2202/2202                  192.168.50.101                           D   N             61523    Unmonitored
2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 2 online, 0 offline]
debian5*CLI> exit
прошло 14 минут
/dev/pts/13
08:46:09
#screen -x
/dev/pts/11
08:51:41
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-15112.16336.6886	2014-11-25 09:51:54.515469325 +0200
+++ /etc/asterisk/sip.conf	2014-11-25 09:52:35.775469804 +0200
@@ -1,6 +1,7 @@
 [general]
 ; [] - 	название секции на каждый номер телефона
 context=default
+qualify=yes
 
 [2201]
 type=friend
/dev/pts/10
08:51:41
#vim /etc/asterisk/sip.conf
/dev/pts/11
08:52:35
#sip reload
bash: sip: command not found
/dev/pts/10
08:52:35
#sip reload
bash: sip: command not found
/dev/pts/11
08:52:39
#asterisk -r
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517)
Verbosity is at least 2
debian5*CLI> sip reload
...
  == Using SIP CoS mark 4
  == Parsing '/etc/asterisk/sip_notify.conf':   == Found
[Nov 25 09:52:47] NOTICE[13555]: chan_sip.c:20886 handle_response_peerpoke: Peer '2201' is now Reachable. (37ms / 2000ms)
[Nov 25 09:52:47] NOTICE[13555]: chan_sip.c:20886 handle_response_peerpoke: Peer '2202' is now Reachable. (108ms / 2000ms)
debian5*CLI> sip show peers
Name/username              Host                                    Dyn Forcerport ACL Port     Status
2201/2201                  192.168.50.100                           D   N             5060     OK (37 ms)
2202/2202                  192.168.50.101                           D   N             61523    OK (108 ms)
2 sip peers [Monitored: 2 online, 0 offline Unmonitored: 0 online, 0 offline]
debian5*CLI> quit
/dev/pts/10
08:52:39
#asterisk -r
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517)
Verbosity is at least 2
debian5*CLI> sip reload
...
  == Using SIP CoS mark 4
  == Parsing '/etc/asterisk/sip_notify.conf':   == Found
[Nov 25 09:52:47] NOTICE[13555]: chan_sip.c:20886 handle_response_peerpoke: Peer '2201' is now Reachable. (37ms / 2000ms)
[Nov 25 09:52:47] NOTICE[13555]: chan_sip.c:20886 handle_response_peerpoke: Peer '2202' is now Reachable. (108ms / 2000ms)
debian5*CLI> sip show peers
Name/username              Host                                    Dyn Forcerport ACL Port     Status
2201/2201                  192.168.50.100                           D   N             5060     OK (37 ms)
2202/2202                  192.168.50.101                           D   N             61523    OK (108 ms)
2 sip peers [Monitored: 2 online, 0 offline Unmonitored: 0 online, 0 offline]
debian5*CLI> quit
прошло 34 минуты
/dev/pts/11
09:27:29
#asterisk 'sip reload'
Privilege escalation protection disabled!
See https://wiki.asterisk.org/wiki/x/1gKfAQ for more details.
Asterisk already running on /var/run/asterisk/asterisk.ctl.  Use 'asterisk -r' to connect.
/dev/pts/10
09:27:29
#asterisk 'sip reload'
Privilege escalation protection disabled!
See https://wiki.asterisk.org/wiki/x/1gKfAQ for more details.
Asterisk already running on /var/run/asterisk/asterisk.ctl.  Use 'asterisk -r' to connect.
/dev/pts/11
09:27:46
#asterisk -r
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517)
Verbosity is at least 2
debian5*CLI> sip reload
 Reloading SIP
  == Parsing '/etc/asterisk/sip.conf':   == Found
[Nov 25 10:27:58] WARNING[13555]: config.c:1354 process_text_line: No '=' (equal sign) in line 23 of /etc/asterisk/sip.conf
  == Parsing '/etc/asterisk/users.conf':   == Found
  == Using SIP CoS mark 4
  == Parsing '/etc/asterisk/sip_notify.conf':   == Found
debian5*CLI> exit
/dev/pts/10
09:27:46
#asterisk -r
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517)
Verbosity is at least 2
debian5*CLI> sip reload
 Reloading SIP
  == Parsing '/etc/asterisk/sip.conf':   == Found
[Nov 25 10:27:58] WARNING[13555]: config.c:1354 process_text_line: No '=' (equal sign) in line 23 of /etc/asterisk/sip.conf
  == Parsing '/etc/asterisk/users.conf':   == Found
  == Using SIP CoS mark 4
  == Parsing '/etc/asterisk/sip_notify.conf':   == Found
debian5*CLI> exit
/dev/pts/11
09:29:06
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-15112.23887.7703	2014-11-25 10:29:09.179495793 +0200
+++ /etc/asterisk/sip.conf	2014-11-25 10:31:57.771497765 +0200
@@ -3,6 +3,10 @@
 context=default
 qualify=yes
 
+#include "/etc/asterisk/sip.conf.kiev"
+#include "/etc/asterisk/sip.conf.kharkov"
+#include "/etc/asterisk/sip.conf.odessa"
+
 [2201]
 type=friend
 ; направление разрешеного звонка friend в оба направления
/dev/pts/10
09:29:06
#vim /etc/asterisk/sip.conf
/dev/pts/11
09:31:57
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-15112.31092.18777	2014-11-25 10:32:07.075497876 +0200
+++ /etc/asterisk/sip.conf	2014-11-25 10:34:59.523499919 +0200
@@ -3,9 +3,9 @@
 context=default
 qualify=yes
 
-#include "/etc/asterisk/sip.conf.kiev"
-#include "/etc/asterisk/sip.conf.kharkov"
-#include "/etc/asterisk/sip.conf.odessa"
+;#include "/etc/asterisk/sip.conf.kiev"
+;#include "/etc/asterisk/sip.conf.kharkov"
+;#include "/etc/asterisk/sip.conf.odessa"
 
 [2201]
 type=friend
/dev/pts/10
09:31:57
#vim /etc/asterisk/sip.conf
/dev/pts/11
09:34:59
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-15112.6949.8607	2014-11-25 10:35:26.779500241 +0200
+++ /etc/asterisk/sip.conf	2014-11-25 10:36:03.095500659 +0200
@@ -29,12 +29,12 @@
 secret=password
 
 
-[softphone](!)
+;[softphone](!)
 ;....
-qualify=no
+;qualify=no
 
-[smartphone](!,softphone)
+;[smartphone](!,softphone)
 ;....
-quialify=yes
+;quialify=yes
 
 [2203](phone)
/dev/pts/10
09:34:59
#vim /etc/asterisk/sip.conf
/dev/pts/11
09:36:03
#vim /etc/asterisk/sip.conf
/dev/pts/10
09:36:03
#vim /etc/asterisk/sip.conf
/dev/pts/11
09:40:42
#ls -l /etc/asterisk/extension.*
-rw-r--r-- 1 root root 49 Nov 24 18:07 /etc/asterisk/extension.conf
/dev/pts/10
09:40:42
#ls -l /etc/asterisk/extension.*
-rw-r--r-- 1 root root 49 Nov 24 18:07 /etc/asterisk/extension.conf
/dev/pts/11
09:40:51
#vim /etc/asterisk/extension.conf
--- /tmp/l3-saved-15112.13890.15807	2014-11-25 10:41:50.271504782 +0200
+++ /etc/asterisk/extension.conf	2014-11-25 11:04:12.187520666 +0200
@@ -1,5 +1,22 @@
+[default]
 
+                                                                                     
+exten => 2201,1,NoOp(Starting call processing)
+exten => 2201,2,NoOp(to extension 2201)
+exten => 2201,3,Dial(SIP/2201)
 
-[default]
+exten => 2202,1,NoOp(Starting call processing)
+exten => 2202,2,NoOp(to extension 2202)
+exten => 2202,3,Dial(SIP/2202)
+
+; using ${EXTEN}
+
+exten => _22XX,1,NoOp(Starting call processing)
+exten => _22XX,n,NoOp(to extension {EXTEN})
+exten => _22XX,n,Dial(SIP/${EXTEN})
+
+; using same
 
-exten => _22xx,1,Dial(SIP/${EXTEN})
+exten => _22XX,1,NoOp(Starting call processing)
+ same =>       n,NoOp(to extension {EXTEN})
+ same =>       n,Dial(SIP/${EXTEN})   [default]
/dev/pts/10
09:40:51
#vim /etc/asterisk/extension.conf
прошла 41 минута
/dev/pts/11
10:22:45
#[ ]
; ÐÑÐÐÑÑи ÐÑÐо п ÑÐп н 1101
; Dial приложение (
; SIP/ ÐÐÐÐÐÐи ÐÐÐÐÐа ÐÑд Ðг ÐÑÐн ÐÐÑÐÐÐÐÑÐÐÐть
exten => 2201,1,NoOp(Starting call processing)
exten => 2201,2,NoOp(to extension 2201)
exten => 2201,3,Dial(SIP/2201)
         {EXTEN}
exten => _81XX,n,Record(/var/tmp/asterisk/record${EXTEN:2}:gsm)
                         (                         {       })
; using ${EXTEN}
...
; same =>       n,NoOp(to extension {EXTEN})
; same =>       n,Dial(SIP/${EXTEN})   [default]
~
~
~
~
~
~
~
"/etc/asterisk/extension.conf" 28L, 945C written
/dev/pts/10
10:22:45
#[ ]
; ÐÑÐÐÑÑи ÐÑÐо п ÑÐп н 1101
; Dial приложение (
; SIP/ ÐÐÐÐÐÐи ÐÐÐÐÐа ÐÑд Ðг ÐÑÐн ÐÐÑÐÐÐÐÑÐÐÐть
exten => 2201,1,NoOp(Starting call processing)
exten => 2201,2,NoOp(to extension 2201)
exten => 2201,3,Dial(SIP/2201)
         {EXTEN}
exten => _81XX,n,Record(/var/tmp/asterisk/record${EXTEN:2}:gsm)
                         (                         {       })
; using ${EXTEN}
...
; same =>       n,NoOp(to extension {EXTEN})
; same =>       n,Dial(SIP/${EXTEN})   [default]
~
~
~
~
~
~
~
"/etc/asterisk/extension.conf" 28L, 945C written
прошло 35 минут
/dev/pts/11
10:58:19
#mkdir /var/tmp/asterisk

/dev/pts/10
10:58:19
#mkdir /var/tmp/asterisk

/dev/pts/11
10:58:43
#chown asterisk:asterisk /var/tmp/asterisk/

/dev/pts/10
10:58:43
#chown asterisk:asterisk /var/tmp/asterisk/

/dev/pts/11
10:59:04
#asterisk -r
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517)
Verbosity is at least 2
debian5*CLI> sip  reload
 Reloading SIP
  == Parsing '/etc/asterisk/sip.conf':   == Found
  == Parsing '/etc/asterisk/users.conf':   == Found
  == Using SIP CoS mark 4
  == Parsing '/etc/asterisk/sip_notify.conf':   == Found
  == Using SIP RTP CoS mark 5
[Nov 25 12:00:04] NOTICE[13555]: chan_sip.c:22753 handle_request_invite: Call from '2201' (192.168.50.100:5060) to extension '8100' rejected because extension not found in context 'default'.
debian5*CLI> exit
/dev/pts/10
10:59:04
#asterisk -r
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517)
Verbosity is at least 2
debian5*CLI> sip  reload
 Reloading SIP
  == Parsing '/etc/asterisk/sip.conf':   == Found
  == Parsing '/etc/asterisk/users.conf':   == Found
  == Using SIP CoS mark 4
  == Parsing '/etc/asterisk/sip_notify.conf':   == Found
  == Using SIP RTP CoS mark 5
[Nov 25 12:00:04] NOTICE[13555]: chan_sip.c:22753 handle_request_invite: Call from '2201' (192.168.50.100:5060) to extension '8100' rejected because extension not found in context 'default'.
debian5*CLI> exit
/dev/pts/11
11:00:10
#asterisk -rvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517)
Verbosity is at least 2
  == Using SIP RTP CoS mark 5
[Nov 25 12:00:18] NOTICE[13555]: chan_sip.c:22753 handle_request_invite: Call from '2201' (192.168.50.100:5060) to extension '81100' rejected because extension not found in context 'default'.
debian5*CLI> exit
Executing last minute cleanups
/dev/pts/10
11:00:10
#asterisk -rvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517)
Verbosity is at least 2
  == Using SIP RTP CoS mark 5
[Nov 25 12:00:18] NOTICE[13555]: chan_sip.c:22753 handle_request_invite: Call from '2201' (192.168.50.100:5060) to extension '81100' rejected because extension not found in context 'default'.
debian5*CLI> exit
Executing last minute cleanups
11:01:19
#[ ]
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517)
Verbosity was 2 and is now 3
  == Using SIP RTP CoS mark 5
[Nov 25 12:01:40] NOTICE[13555]: chan_sip.c:22753 handle_request_invite: Call from '2201' (192.168.50.100:5060) to extension '8110' rejected because extension not found in context 'default'.
  == Using SIP RTP CoS mark 5
[Nov 25 12:02:07] NOTICE[13555]: chan_sip.c:22753 handle_request_invite: Call from '2201' (192.168.50.100:5060) to extension '8199' rejected because extension not found in context 'default'.
debian5*CLI> exit
Executing last minute cleanups
/dev/pts/11
11:01:19
#[ ]
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517)
Verbosity was 2 and is now 3
  == Using SIP RTP CoS mark 5
[Nov 25 12:01:40] NOTICE[13555]: chan_sip.c:22753 handle_request_invite: Call from '2201' (192.168.50.100:5060) to extension '8110' rejected because extension not found in context 'default'.
  == Using SIP RTP CoS mark 5
[Nov 25 12:02:07] NOTICE[13555]: chan_sip.c:22753 handle_request_invite: Call from '2201' (192.168.50.100:5060) to extension '8199' rejected because extension not found in context 'default'.
debian5*CLI> exit
Executing last minute cleanups
11:02:13
#vim /etc/asterisk/extension.conf
--- /tmp/l3-saved-15112.19579.23057	2014-11-25 12:02:17.327561916 +0200
+++ /etc/asterisk/extension.conf	2014-11-25 12:02:35.279562128 +0200
@@ -12,8 +12,8 @@
 exten => 2202,2,NoOp(to extension 2202)
 exten => 2202,3,Dial(SIP/2202)
 
-exten => _81XX,n,Record(/var/tmp/asterisk/record${EXTEN:2}:gsm)
-exten => _82XX,n,Playback(/var/tmp/asterisk/record${EXTEN:2})
+exten => _81XX,1,Record(/var/tmp/asterisk/record${EXTEN:2}:gsm)
+exten => _82XX,1,Playback(/var/tmp/asterisk/record${EXTEN:2})
 
 ; using ${EXTEN}
 
/dev/pts/10
11:02:13
#vim /etc/asterisk/extension.conf
/dev/pts/11
11:02:35
#asterisk -r
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517)
Verbosity is at least 3
debian5*CLI> sip reload
 Reloading SIP
  == Using SIP RTP CoS mark 5
[Nov 25 12:02:52] NOTICE[13555]: chan_sip.c:22753 handle_request_invite: Call from '2201' (192.168.50.100:5060) to extension '8199' rejected because extension not found in context 'default'.
debian5*CLI> exit
/dev/pts/10
11:02:35
#asterisk -r
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517)
Verbosity is at least 3
debian5*CLI> sip reload
 Reloading SIP
  == Using SIP RTP CoS mark 5
[Nov 25 12:02:52] NOTICE[13555]: chan_sip.c:22753 handle_request_invite: Call from '2201' (192.168.50.100:5060) to extension '8199' rejected because extension not found in context 'default'.
debian5*CLI> exit
/dev/pts/11
11:03:02
#vim /etc/asterisk/extension.conf
/dev/pts/10
11:03:02
#vim /etc/asterisk/extension.conf
/dev/pts/11
11:03:54
#[ ]
Privilege escalation protection disabled!
See https://wiki.asterisk.org/wiki/x/1gKfAQ for more details.
Asterisk already running on /var/run/asterisk/asterisk.ctl.  Use 'asterisk -r' to connect.
/dev/pts/10
11:03:54
#[ ]
Privilege escalation protection disabled!
See https://wiki.asterisk.org/wiki/x/1gKfAQ for more details.
Asterisk already running on /var/run/asterisk/asterisk.ctl.  Use 'asterisk -r' to connect.
/dev/pts/11
11:03:56
#asterisk -r
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517)
Verbosity is at least 3
debian5*CLI> dialplan reload
...
    -- merging incls/swits/igpats from old(ael-dundi-e164-customers) to new(ael-dundi-e164-customers) context, registrar = pbx_config
    -- Registered extension context 'ael-dundi-e164-canonical'; registrar: pbx_ael
    -- merging incls/swits/igpats from old(ael-dundi-e164-canonical) to new(ael-dundi-e164-canonical) context, registrar = pbx_config
    -- Time to scan old dialplan and merge leftovers back into the new: 0.001653 sec
    -- Time to restore hints and swap in new dialplan: 0.000005 sec
    -- Time to delete the old dialplan: 0.000069 sec
    -- Total time merge_contexts_delete: 0.001727 sec
  == Using SIP RTP CoS mark 5
[Nov 25 12:04:20] NOTICE[13555]: chan_sip.c:22753 handle_request_invite: Call from '2201' (192.168.50.100:5060) to extension '8199' rejected because extension not found in context 'default'.
debian5*CLI> exit
/dev/pts/10
11:03:56
#asterisk -r
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517)
Verbosity is at least 3
debian5*CLI> dialplan reload
...
    -- merging incls/swits/igpats from old(ael-dundi-e164-customers) to new(ael-dundi-e164-customers) context, registrar = pbx_config
    -- Registered extension context 'ael-dundi-e164-canonical'; registrar: pbx_ael
    -- merging incls/swits/igpats from old(ael-dundi-e164-canonical) to new(ael-dundi-e164-canonical) context, registrar = pbx_config
    -- Time to scan old dialplan and merge leftovers back into the new: 0.001653 sec
    -- Time to restore hints and swap in new dialplan: 0.000005 sec
    -- Time to delete the old dialplan: 0.000069 sec
    -- Total time merge_contexts_delete: 0.001727 sec
  == Using SIP RTP CoS mark 5
[Nov 25 12:04:20] NOTICE[13555]: chan_sip.c:22753 handle_request_invite: Call from '2201' (192.168.50.100:5060) to extension '8199' rejected because extension not found in context 'default'.
debian5*CLI> exit
/dev/pts/11
11:04:25
#asterisk -rvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517)
Verbosity is at least 3
  == Using SIP RTP CoS mark 5
[Nov 25 12:04:35] NOTICE[13555]: chan_sip.c:22753 handle_request_invite: Call from '2201' (192.168.50.100:5060) to extension '8100' rejected because extension not found in context 'default'.
debian5*CLI> exit
Executing last minute cleanups
/dev/pts/10
11:04:25
#asterisk -rvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517)
Verbosity is at least 3
  == Using SIP RTP CoS mark 5
[Nov 25 12:04:35] NOTICE[13555]: chan_sip.c:22753 handle_request_invite: Call from '2201' (192.168.50.100:5060) to extension '8100' rejected because extension not found in context 'default'.
debian5*CLI> exit
Executing last minute cleanups
/dev/pts/11
11:04:51
#vim /etc/asterisk/extension.conf
--- /tmp/l3-saved-15112.1531.21853	2014-11-25 12:04:56.147563794 +0200
+++ /etc/asterisk/extension.conf	2014-11-25 12:06:46.179565096 +0200
@@ -13,6 +13,7 @@
 exten => 2202,3,Dial(SIP/2202)
 
 exten => _81XX,1,Record(/var/tmp/asterisk/record${EXTEN:2}:gsm)
+
 exten => _82XX,1,Playback(/var/tmp/asterisk/record${EXTEN:2})
 
 ; using ${EXTEN}
/dev/pts/10
11:04:51
#vim /etc/asterisk/extension.conf
/dev/pts/11
11:06:46
#vim /etc/asterisk/extension.conf
/dev/pts/10
11:06:46
#vim /etc/asterisk/extension.conf
/dev/pts/11
11:07:15
#[ ]
Privilege escalation protection disabled!
See https://wiki.asterisk.org/wiki/x/1gKfAQ for more details.
Asterisk already running on /var/run/asterisk/asterisk.ctl.  Use 'asterisk -r' to connect.
/dev/pts/10
11:07:15
#[ ]
Privilege escalation protection disabled!
See https://wiki.asterisk.org/wiki/x/1gKfAQ for more details.
Asterisk already running on /var/run/asterisk/asterisk.ctl.  Use 'asterisk -r' to connect.
/dev/pts/11
11:07:19
#asterisk -r
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517)
Verbosity is at least 3
debian5*CLI> dialplan reload
...
    -- Registered extension context 'demo'; registrar: pbx_lua
    -- merging incls/swits/igpats from old(demo) to new(demo) context, registrar = pbx_config
    -- Including switch 'Lua/' in context 'demo'
    -- Time to scan old dialplan and merge leftovers back into the new: 0.001521 sec
    -- Time to restore hints and swap in new dialplan: 0.000006 sec
    -- Time to delete the old dialplan: 0.000095 sec
    -- Total time merge_contexts_delete: 0.001622 sec
  == Using SIP RTP CoS mark 5
[Nov 25 12:07:34] NOTICE[13555]: chan_sip.c:22753 handle_request_invite: Call from '2201' (192.168.50.100:5060) to extension '8100' rejected because extension not found in context 'default'.
debian5*CLI> exit
/dev/pts/10
11:07:19
#asterisk -r
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517)
Verbosity is at least 3
debian5*CLI> dialplan reload
...
    -- Registered extension context 'demo'; registrar: pbx_lua
    -- merging incls/swits/igpats from old(demo) to new(demo) context, registrar = pbx_config
    -- Including switch 'Lua/' in context 'demo'
    -- Time to scan old dialplan and merge leftovers back into the new: 0.001521 sec
    -- Time to restore hints and swap in new dialplan: 0.000006 sec
    -- Time to delete the old dialplan: 0.000095 sec
    -- Total time merge_contexts_delete: 0.001622 sec
  == Using SIP RTP CoS mark 5
[Nov 25 12:07:34] NOTICE[13555]: chan_sip.c:22753 handle_request_invite: Call from '2201' (192.168.50.100:5060) to extension '8100' rejected because extension not found in context 'default'.
debian5*CLI> exit
/dev/pts/11
11:07:39
#asterisk -rvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517)
...
    -- Including switch 'Lua/' in context 'local'
    -- Registered extension context 'demo'; registrar: pbx_lua
    -- merging incls/swits/igpats from old(demo) to new(demo) context, registrar = pbx_config
    -- Including switch 'Lua/' in context 'demo'
    -- Time to scan old dialplan and merge leftovers back into the new: 0.001559 sec
    -- Time to restore hints and swap in new dialplan: 0.000006 sec
    -- Time to delete the old dialplan: 0.000062 sec
    -- Total time merge_contexts_delete: 0.001627 sec
debian5*CLI> exit
Executing last minute cleanups
/dev/pts/10
11:07:39
#asterisk -rvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517)
...
    -- Including switch 'Lua/' in context 'local'
    -- Registered extension context 'demo'; registrar: pbx_lua
    -- merging incls/swits/igpats from old(demo) to new(demo) context, registrar = pbx_config
    -- Including switch 'Lua/' in context 'demo'
    -- Time to scan old dialplan and merge leftovers back into the new: 0.001559 sec
    -- Time to restore hints and swap in new dialplan: 0.000006 sec
    -- Time to delete the old dialplan: 0.000062 sec
    -- Total time merge_contexts_delete: 0.001627 sec
debian5*CLI> exit
Executing last minute cleanups
/dev/pts/11
11:08:25
#vim /etc/asterisk/extension.conf
/dev/pts/10
11:08:25
#vim /etc/asterisk/extension.conf
/dev/pts/11
11:08:55
#[ ]
asterisk
/dev/pts/10
11:08:55
#[ ]
asterisk
/dev/pts/11
11:09:02
#ls /var/tmp/asterisk/

/dev/pts/10
11:09:02
#ls /var/tmp/asterisk/

/dev/pts/11
11:09:12
#vim /etc/asterisk/extension.conf
/dev/pts/10
11:09:12
#vim /etc/asterisk/extension.conf
/dev/pts/11
11:11:15
#~
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517)
...
    -- Including switch 'Lua/' in context 'local'
    -- Registered extension context 'demo'; registrar: pbx_lua
    -- merging incls/swits/igpats from old(demo) to new(demo) context, registrar = pbx_config
    -- Including switch 'Lua/' in context 'demo'
    -- Time to scan old dialplan and merge leftovers back into the new: 0.001533 sec
    -- Time to restore hints and swap in new dialplan: 0.000006 sec
    -- Time to delete the old dialplan: 0.000071 sec
    -- Total time merge_contexts_delete: 0.001610 sec
debian5*CLI> exit
Executing last minute cleanups
/dev/pts/10
11:11:15
#~
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517)
...
    -- Including switch 'Lua/' in context 'local'
    -- Registered extension context 'demo'; registrar: pbx_lua
    -- merging incls/swits/igpats from old(demo) to new(demo) context, registrar = pbx_config
    -- Including switch 'Lua/' in context 'demo'
    -- Time to scan old dialplan and merge leftovers back into the new: 0.001533 sec
    -- Time to restore hints and swap in new dialplan: 0.000006 sec
    -- Time to delete the old dialplan: 0.000071 sec
    -- Total time merge_contexts_delete: 0.001610 sec
debian5*CLI> exit
Executing last minute cleanups
/dev/pts/11
11:11:42
#asterisk -rvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517)
Verbosity is at least 3
  == Using SIP RTP CoS mark 5
[Nov 25 12:11:51] NOTICE[13555]: chan_sip.c:22753 handle_request_invite: Call from '2201' (192.168.50.100:5060) to extension '8101' rejected because extension not found in context 'default'.
debian5*CLI>
Disconnected from Asterisk server
Executing last minute cleanups

Статистика

Время первой команды журнала16:30:11 2014-11-24
Время последней команды журнала11:11:42 2014-11-25
Количество командных строк в журнале101
Процент команд с ненулевым кодом завершения, % 7.92
Процент синтаксически неверно набранных команд, % 3.96
Суммарное время работы с терминалом *, час 1.76
Количество командных строк в единицу времени, команда/мин 0.95
Частота использования команд
vim32|==============================| 30.77%
asterisk30|============================| 28.85%
[12|===========| 11.54%
ls7|======| 6.73%
~3|==| 2.88%
grep3|==| 2.88%
mkdir2|=| 1.92%
фыÐasterisk2|=| 1.92%
chown2|=| 1.92%
/etc/init.d/asterisk2|=| 1.92%
No2|=| 1.92%
sip2|=| 1.92%
screen1|| 0.96%
quit1|| 0.96%
ЦФÐÐWATCH1|| 0.96%
less1|| 0.96%
мÑvim1|| 0.96%
____
*) Интервалы неактивности длительностью 30 минут и более не учитываются

Справка

Для того чтобы использовать LiLaLo, не нужно знать ничего особенного: всё происходит само собой. Однако, чтобы ведение и последующее использование журналов было как можно более эффективным, желательно иметь в виду следующее:
  1. В журнал автоматически попадают все команды, данные в любом терминале системы.

  2. Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.

  3. Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
    $ l s-l
    bash: l: command not found
    

  4. Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
    $ test 5 -lt 4
    Обратите внимание на то, что код завершения команды может быть отличен от нуля не только в тех случаях, когда команда была выполнена с ошибкой. Многие команды используют код завершения, например, для того чтобы показать результаты проверки

  5. Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
    $ 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
    

  6. Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
    # id
    uid=0(root) gid=0(root) Gruppen=0(root)
    

  7. Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
    $ vi ~/.bashrc
    2a3,5
    >    if [ -f /usr/local/etc/bash_completion ]; then
    >         . /usr/local/etc/bash_completion
    >        fi
    

  8. Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
    $ patch ~/.bashrc
    В данном случае изменения применяются к файлу ~/.bashrc

  9. Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.

    Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.

  10. Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.

  11. Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора

  12. Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.

  13. Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.

  14. Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:

    $ whoami
    
    user
    
    $ #^ Интересно, кто я?
    
    в журнале это будет выглядеть так:
    $ whoami
    
    user
    
    Интересно, кто я?

  15. Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:

    $ whoami
    
    user
    
    $ cat > /dev/null #^ Интересно, кто я?
    
    Программа whoami выводит имя пользователя, под которым 
    мы зарегистрировались в системе.
    -
    Она не может ответить на вопрос о нашем назначении 
    в этом мире.
    
    В журнале это будет выглядеть так:
    $ whoami
    user
    
    Интересно, кто я?
    Программа whoami выводит имя пользователя, под которым
    мы зарегистрировались в системе.

    Она не может ответить на вопрос о нашем назначении
    в этом мире.
    Для разделения нескольких абзацев между собой используйте символ "-", один в строке.

  16. Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=

  17. Содержимое файла может быть показано в журнале. Для этого его нужно вывести с помощью программы cat. Если вывод команды отметить симоволами #!, содержимое файла будет показано в журнале в специально отведённой для этого секции.
  18. Для того чтобы вставить скриншот интересующего вас окна в журнал, нужно воспользоваться командой l3shot. После того как команда вызвана, нужно с помощью мыши выбрать окно, которое должно быть в журнале.
  19. Команды в журнале расположены в хронологическом порядке. Если две команды давались одна за другой, но на разных терминалах, в журнале они будут рядом, даже если они не имеют друг к другу никакого отношения.
    1
        2
    3   
        4
    
    Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.

О программе

LiLaLo (L3) расшифровывается как Live Lab Log.
Программа разработана для повышения эффективности обучения Unix/Linux-системам.
(c) Игорь Чубин, 2004-2008

$Id$