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

Содержание

Журнал

Пятница (04/12/13)

/dev/pts/1
15:33:05
#asterisk -vvr
Asterisk 11.3.0, 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.6.2.9-2+squeeze10 currently running on linux3 (pid = 8210)
linux3*CLI>
linux3*CLI>
...
[Apr 12 16:33:27] WARNING[8232]: chan_datacard.c:108 opentty: Unable to open '/dev/ttyUSB5'
[Apr 12 16:33:27] WARNING[8232]: chan_datacard.c:108 opentty: Unable to open '/dev/ttyUSB2'
[Apr 12 16:33:42] WARNING[8232]: chan_datacard.c:108 opentty: Unable to open '/dev/ttyUSB5'
[Apr 12 16:33:42] WARNING[8232]: chan_datacard.c:108 opentty: Unable to open '/dev/ttyUSB2'
[Apr 12 16:33:45] NOTICE[8247]: chan_sip.c:11726 sip_reg_timeout:    -- Registration for 'gweru@192.168.40.1' timed out, trying again (Attempt #2)
[Apr 12 16:33:57] WARNING[8232]: chan_datacard.c:108 opentty: Unable to open '/dev/ttyUSB5'
[Apr 12 16:33:57] WARNING[8232]: chan_datacard.c:108 opentty: Unable to open '/dev/ttyUSB2'
linux3*CLI> quit
Asterisk cleanly ending (0).
Executing last minute cleanups
/dev/pts/2
15:33:05
#asterisk -vvr
Asterisk 11.3.0, 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.6.2.9-2+squeeze10 currently running on linux3 (pid = 8210)
linux3*CLI>
linux3*CLI>
...
[Apr 12 16:33:27] WARNING[8232]: chan_datacard.c:108 opentty: Unable to open '/dev/ttyUSB5'
[Apr 12 16:33:27] WARNING[8232]: chan_datacard.c:108 opentty: Unable to open '/dev/ttyUSB2'
[Apr 12 16:33:42] WARNING[8232]: chan_datacard.c:108 opentty: Unable to open '/dev/ttyUSB5'
[Apr 12 16:33:42] WARNING[8232]: chan_datacard.c:108 opentty: Unable to open '/dev/ttyUSB2'
[Apr 12 16:33:45] NOTICE[8247]: chan_sip.c:11726 sip_reg_timeout:    -- Registration for 'gweru@192.168.40.1' timed out, trying again (Attempt #2)
[Apr 12 16:33:57] WARNING[8232]: chan_datacard.c:108 opentty: Unable to open '/dev/ttyUSB5'
[Apr 12 16:33:57] WARNING[8232]: chan_datacard.c:108 opentty: Unable to open '/dev/ttyUSB2'
linux3*CLI> quit
Asterisk cleanly ending (0).
Executing last minute cleanups
/dev/pts/1
15:33:59
#vim /etc/asterisk/sip.conf
/dev/pts/2
15:33:59
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-2297.7338.1720	2013-04-12 16:35:07.000000000 +0300
+++ /etc/asterisk/sip.conf	2013-04-12 16:35:41.000000000 +0300
@@ -15,7 +15,7 @@
 pickupgroup=1
 call-limit=1
 limitonpeers=yes
-
+encryption=yes
 callgroup=2
 pickupgroup=2
 
@@ -32,7 +32,7 @@
 pickupgroup=1
 call-limit=1
 limitonpeers=yes
-
+encryption=yes
 
 
 [1303]
/dev/pts/1
15:35:43
#[1302]

/dev/pts/2
15:35:43
#[1302]

/dev/pts/1
15:35:45
#asterisk -vvr
Asterisk 11.3.0, 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.6.2.9-2+squeeze10 currently running on linux3 (pid = 8210)
linux3*CLI> sip reload
 Reloading SIP
...
[Apr 12 16:38:12] WARNING[8232]: chan_datacard.c:108 opentty: Unable to open '/dev/ttyUSB2'
linux3*CLI>
linux3*CLI>
linux3*CLI>
linux3*CLI>
[Apr 12 16:38:27] WARNING[8232]: chan_datacard.c:108 opentty: Unable to open '/dev/ttyUSB5'
[Apr 12 16:38:27] WARNING[8232]: chan_datacard.c:108 opentty: Unable to open '/dev/ttyUSB2'
linux3*CLI> quit
Asterisk cleanly ending (0).
Executing last minute cleanups
/dev/pts/2
15:35:45
#asterisk -vvr
Asterisk 11.3.0, 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.6.2.9-2+squeeze10 currently running on linux3 (pid = 8210)
linux3*CLI> sip reload
 Reloading SIP
...
[Apr 12 16:38:12] WARNING[8232]: chan_datacard.c:108 opentty: Unable to open '/dev/ttyUSB2'
linux3*CLI>
linux3*CLI>
linux3*CLI>
linux3*CLI>
[Apr 12 16:38:27] WARNING[8232]: chan_datacard.c:108 opentty: Unable to open '/dev/ttyUSB5'
[Apr 12 16:38:27] WARNING[8232]: chan_datacard.c:108 opentty: Unable to open '/dev/ttyUSB2'
linux3*CLI> quit
Asterisk cleanly ending (0).
Executing last minute cleanups
/dev/pts/1
15:38:33
#vim /etc/asterisk/d
/dev/pts/2
15:38:33
#vim /etc/asterisk/d
/dev/pts/1
15:38:33
#vim /etc/asterisk/datacard.conf
/dev/pts/2
15:38:33
#vim /etc/asterisk/datacard.conf
--- /tmp/l3-saved-2297.19689.31714	2013-04-12 16:38:54.000000000 +0300
+++ /etc/asterisk/datacard.conf	2013-04-12 16:39:28.000000000 +0300
@@ -47,25 +47,25 @@
 u2diag=0			; set U2DIAG parameter (0 = disable everything except modem function)
 
 
-[datacard0](E1550_t)
-audio=/dev/ttyUSB1		; tty for audio connection
-data=/dev/ttyUSB2		; tty for AT commands
-group=1				; calling group
-context=incoming_gsm
+;[datacard0](E1550_t)
+;audio=/dev/ttyUSB1		; tty for audio connection
+;data=/dev/ttyUSB2		; tty for AT commands
+;group=1				; calling group
+;context=incoming_gsm
 
-[datacard1]
-context=incoming-datacard	; context for incoming calls
+;[datacard1]
+;context=incoming-datacard	; context for incoming calls
 ;language=de			; Use German as default language
-audio=/dev/ttyUSB4		; tty port for audio connection
-data=/dev/ttyUSB5		; tty port for AT commands
-group=2				; calling group
-rxgain=10			; increase the incoming volume
-txgain=10			; increase the outgoint volume
-autodeletesms=yes		; auto delete incoming sms
-resetdatacard=yes		; reset datacard during initialization
-u2diag=0			; set U2DIAG parameter (0 = disable everything except modem function)
-usecallingpres=yes		; use the caller ID presentation or not
-callingpres=allowed_passed_screen ; set caller ID presentation
-disablesms=yes			; chan_datacard has currently a bug with SMS reception. When a SMS gets in during a
+;audio=/dev/ttyUSB4		; tty port for audio connection
+;data=/dev/ttyUSB5		; tty port for AT commands
+;group=2				; calling group
+;rxgain=10			; increase the incoming volume
+;txgain=10			; increase the outgoint volume
+;autodeletesms=yes		; auto delete incoming sms
+;resetdatacard=yes		; reset datacard during initialization
+;u2diag=0			; set U2DIAG parameter (0 = disable everything except modem function)
+;usecallingpres=yes		; use the caller ID presentation or not
+;callingpres=allowed_passed_screen ; set caller ID presentation
+;disablesms=yes			; chan_datacard has currently a bug with SMS reception. When a SMS gets in during a
 				; call chan_datacard might crash. Enable this option to disable sms reception.
 				; Default = no
/dev/pts/1
15:39:31
#[ ]

/dev/pts/2
15:39:31
#[ ]

/dev/pts/1
15:39:31
#asterisk -vvr
Asterisk 11.3.0, 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.6.2.9-2+squeeze10 currently running on linux3 (pid = 8210)
linux3*CLI>
linux3*CLI>
linux3*CLI>
linux3*CLI>
[Apr 12 16:39:42] WARNING[8232]: chan_datacard.c:108 opentty: Unable to open '/dev/ttyUSB5'
[Apr 12 16:39:42] WARNING[8232]: chan_datacard.c:108 opentty: Unable to open '/dev/ttyUSB2'
linux3*CLI> quit
Asterisk cleanly ending (0).
Executing last minute cleanups
/dev/pts/2
15:39:31
#asterisk -vvr
Asterisk 11.3.0, 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.6.2.9-2+squeeze10 currently running on linux3 (pid = 8210)
linux3*CLI>
linux3*CLI>
linux3*CLI>
linux3*CLI>
[Apr 12 16:39:42] WARNING[8232]: chan_datacard.c:108 opentty: Unable to open '/dev/ttyUSB5'
[Apr 12 16:39:42] WARNING[8232]: chan_datacard.c:108 opentty: Unable to open '/dev/ttyUSB2'
linux3*CLI> quit
Asterisk cleanly ending (0).
Executing last minute cleanups
/dev/pts/1
15:40:03
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
/dev/pts/2
15:40:03
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
/dev/pts/1
15:40:44
#asterisk -vvvr
Asterisk 11.3.0, 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 11.3.0 currently running on linux3 (pid = 2665)
linux3*CLI>
linux3*CLI>
...
linux3*CLI>
linux3*CLI>
linux3*CLI>
linux3*CLI>
linux3*CLI>
linux3*CLI>
linux3*CLI>
linux3*CLI> quit
Asterisk cleanly ending (0).
Executing last minute cleanups
/dev/pts/2
15:40:44
#asterisk -vvvr
Asterisk 11.3.0, 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 11.3.0 currently running on linux3 (pid = 2665)
linux3*CLI>
linux3*CLI>
...
linux3*CLI>
linux3*CLI>
linux3*CLI>
linux3*CLI>
linux3*CLI>
linux3*CLI>
linux3*CLI>
linux3*CLI> quit
Asterisk cleanly ending (0).
Executing last minute cleanups
/dev/pts/1
15:42:05
#vim /etc/asterisk/sip.conf
/dev/pts/2
15:42:05
#vim /etc/asterisk/sip.conf
/dev/pts/1
15:42:23
#[1302]

/dev/pts/2
15:42:23
#[1302]

/dev/pts/1
15:42:24
#asterisk -vvvr
Asterisk 11.3.0, 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 11.3.0 currently running on linux3 (pid = 2665)
linux3*CLI> sip reload
 Reloading SIP
...
linux3*CLI>
linux3*CLI>
linux3*CLI>
linux3*CLI>
linux3*CLI>
linux3*CLI>
linux3*CLI>
linux3*CLI> quit
Asterisk cleanly ending (0).
Executing last minute cleanups
/dev/pts/2
15:42:24
#asterisk -vvvr
Asterisk 11.3.0, 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 11.3.0 currently running on linux3 (pid = 2665)
linux3*CLI> sip reload
 Reloading SIP
...
linux3*CLI>
linux3*CLI>
linux3*CLI>
linux3*CLI>
linux3*CLI>
linux3*CLI>
linux3*CLI>
linux3*CLI> quit
Asterisk cleanly ending (0).
Executing last minute cleanups
/dev/pts/1
15:42:57
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
/dev/pts/2
15:42:57
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
/dev/pts/1
15:43:11
#vim /etc/asterisk/sip.conf
/dev/pts/2
15:43:11
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-2297.22772.1329	2013-04-12 16:43:14.000000000 +0300
+++ /etc/asterisk/sip.conf	2013-04-12 16:43:27.000000000 +0300
@@ -15,7 +15,7 @@
 pickupgroup=1
 call-limit=1
 limitonpeers=yes
-encryption=yes
+;encryption=yes
 callgroup=2
 pickupgroup=2
 
@@ -32,7 +32,7 @@
 pickupgroup=1
 call-limit=1
 limitonpeers=yes
-encryption=yes
+;encryption=yes
 
 
 [1303]
/dev/pts/1
15:43:28
#[1302]

/dev/pts/2
15:43:28
#[1302]

/dev/pts/1
15:43:29
#asterisk -vvvr
Asterisk 11.3.0, 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 11.3.0 currently running on linux3 (pid = 2847)
linux3*CLI> asterisk reload
No such command 'asterisk reload' (type 'core show help asterisk reload' for other possible commands)
...
  == Parsing '/etc/asterisk/users.conf': Found
  == Using SIP CoS mark 4
  == Parsing '/etc/asterisk/sip_notify.conf': Found
linux3*CLI>
linux3*CLI>
linux3*CLI>
linux3*CLI>
linux3*CLI> quit
Asterisk cleanly ending (0).
Executing last minute cleanups
/dev/pts/2
15:43:29
#asterisk -vvvr
Asterisk 11.3.0, 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 11.3.0 currently running on linux3 (pid = 2847)
linux3*CLI> asterisk reload
No such command 'asterisk reload' (type 'core show help asterisk reload' for other possible commands)
...
  == Parsing '/etc/asterisk/users.conf': Found
  == Using SIP CoS mark 4
  == Parsing '/etc/asterisk/sip_notify.conf': Found
linux3*CLI>
linux3*CLI>
linux3*CLI>
linux3*CLI>
linux3*CLI> quit
Asterisk cleanly ending (0).
Executing last minute cleanups
/dev/pts/1
15:44:00
#rm /etc/asterisk/
adsi.conf                enum.conf                osp.conf
adtranvofr.conf          extconfig.conf           oss.conf
agents.conf              extensions.ael           phone.conf
ais.conf                 extensions.conf          phoneprov.conf
alarmreceiver.conf       extensions.conf.ORIG     queuerules.conf
alsa.conf                extensions.lua           queues.conf
amd.conf                 extensions_minivm.conf   res_config_sqlite.conf
asterisk.adsi            features.conf            res_ldap.conf
asterisk.conf            festival.conf            res_odbc.conf
cdr_adaptive_odbc.conf   followme.conf            res_pgsql.conf
...
cli_aliases.conf         logger.conf              smdi.conf
cli.conf                 manager.conf             telcordia-1.adsi
cli_permissions.conf     manager.d/               text1.wav
codecs.conf              meetme.conf              udptl.conf
console.conf             mgcp.conf                unistim.conf
datacard.conf            minivm.conf              usbradio.conf
dbsep.conf               misdn.conf               users.conf
dnsmgr.conf              modules.conf             voicemail.conf
dsp.conf                 musiconhold.conf         vpb.conf
dundi.conf               muted.conf
15:44:00
#rm /etc/asterisk/d
datacard.conf  dbsep.conf     dnsmgr.conf    dsp.conf       dundi.conf
/dev/pts/2
15:44:00
#rm /etc/asterisk/
adsi.conf                enum.conf                osp.conf
adtranvofr.conf          extconfig.conf           oss.conf
agents.conf              extensions.ael           phone.conf
ais.conf                 extensions.conf          phoneprov.conf
alarmreceiver.conf       extensions.conf.ORIG     queuerules.conf
alsa.conf                extensions.lua           queues.conf
amd.conf                 extensions_minivm.conf   res_config_sqlite.conf
asterisk.adsi            features.conf            res_ldap.conf
asterisk.conf            festival.conf            res_odbc.conf
cdr_adaptive_odbc.conf   followme.conf            res_pgsql.conf
...
cli_aliases.conf         logger.conf              smdi.conf
cli.conf                 manager.conf             telcordia-1.adsi
cli_permissions.conf     manager.d/               text1.wav
codecs.conf              meetme.conf              udptl.conf
console.conf             mgcp.conf                unistim.conf
datacard.conf            minivm.conf              usbradio.conf
dbsep.conf               misdn.conf               users.conf
dnsmgr.conf              modules.conf             voicemail.conf
dsp.conf                 musiconhold.conf         vpb.conf
dundi.conf               muted.conf
15:44:00
#rm /etc/asterisk/d
datacard.conf  dbsep.conf     dnsmgr.conf    dsp.conf       dundi.conf
/dev/pts/1
15:44:00
#rm /etc/asterisk/datacard.conf

/dev/pts/2
15:44:00
#rm /etc/asterisk/datacard.conf

/dev/pts/1
15:44:19
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
/dev/pts/2
15:44:19
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
/dev/pts/1
15:44:24
#asterisk -vvvr
Asterisk 11.3.0, 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 11.3.0 currently running on linux3 (pid = 3020)
linux3*CLI>
linux3*CLI>
linux3*CLI>
linux3*CLI>
linux3*CLI>
linux3*CLI>
linux3*CLI>
linux3*CLI>
linux3*CLI> quit
Asterisk cleanly ending (0).
Executing last minute cleanups
/dev/pts/2
15:44:24
#asterisk -vvvr
Asterisk 11.3.0, 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 11.3.0 currently running on linux3 (pid = 3020)
linux3*CLI>
linux3*CLI>
linux3*CLI>
linux3*CLI>
linux3*CLI>
linux3*CLI>
linux3*CLI>
linux3*CLI>
linux3*CLI> quit
Asterisk cleanly ending (0).
Executing last minute cleanups
/dev/pts/1
15:44:47
#asterisk -vvvr
Asterisk 11.3.0, 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 11.3.0 currently running on linux3 (pid = 3020)
linux3*CLI>
linux3*CLI>
linux3*CLI>
linux3*CLI>
linux3*CLI> sip reload
 Reloading SIP
linux3*CLI>
linux3*CLI>
linux3*CLI>
linux3*CLI>
linux3*CLI> quit
Asterisk cleanly ending (0).
Executing last minute cleanups
/dev/pts/2
15:44:47
#asterisk -vvvr
Asterisk 11.3.0, 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 11.3.0 currently running on linux3 (pid = 3020)
linux3*CLI>
linux3*CLI>
linux3*CLI>
linux3*CLI>
linux3*CLI> sip reload
 Reloading SIP
linux3*CLI>
linux3*CLI>
linux3*CLI>
linux3*CLI>
linux3*CLI> quit
Asterisk cleanly ending (0).
Executing last minute cleanups
/dev/pts/1
15:45:02
#vim /etc/asterisk/extensions.conf
/dev/pts/2
15:45:02
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2297.29768.17153	2013-04-12 16:45:16.000000000 +0300
+++ /etc/asterisk/extensions.conf	2013-04-12 16:46:20.000000000 +0300
@@ -8,10 +8,8 @@
 	exten => 8800,1,Goto(menu,s,1)
 
 [city]
-	exten => _13XX,1,System(/usr/local/bin/asterisk-jabber-send user@linux3.unix.nt You have a call from ${CALLERID(num)})
-	exten => _13XX,n,Dial(SIP/${EXTEN},10,wWtTm)
-	exten => _13XX,n,VoiceMail(${EXTEN}@default)	
-	exten => 1305,1,Answer
+	exten => _13XX,1,VoiceMail(${EXTEN}@default)	
+	exten => 1305,1,iAnswer
 	exten => 1305,n,Queue(queue1)
 	exten => _131X,1,AgentLogin(100${EXTEN:3})
 
/dev/pts/1
15:46:22
#[city]

/dev/pts/2
15:46:22
#[city]

Статистика

Время первой команды журнала15:33:05 2013- 4-12
Время последней команды журнала15:46:22 2013- 4-12
Количество командных строк в журнале50
Процент команд с ненулевым кодом завершения, % 0.00
Процент синтаксически неверно набранных команд, % 0.00
Суммарное время работы с терминалом *, час 0.22
Количество командных строк в единицу времени, команда/мин 3.76
Частота использования команд
asterisk16|================================| 32.00%
vim12|========================| 24.00%
/etc/init.d/asterisk6|============| 12.00%
rm6|============| 12.00%
[1302]6|============| 12.00%
[2|====| 4.00%
[city]2|====| 4.00%
____
*) Интервалы неактивности длительностью 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$