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

Содержание

Журнал

Вторник (06/21/11)

/dev/pts/5
13:45:54
#netstat -lnp | grep :110
tcp        0      0 0.0.0.0:110             0.0.0.0:*               LISTEN      17201/inetd
/dev/pts/2
13:45:54
#netstat -lnp | grep :110
tcp        0      0 0.0.0.0:110             0.0.0.0:*               LISTEN      17201/inetd
/dev/pts/4
13:45:54
#netstat -lnp | grep :110
tcp        0      0 0.0.0.0:110             0.0.0.0:*               LISTEN      17201/inetd
/dev/pts/1
13:45:54
#netstat -lnp | grep :110
tcp        0      0 0.0.0.0:110             0.0.0.0:*               LISTEN      17201/inetd
/dev/pts/3
13:45:54
#netstat -lnp | grep :110
tcp        0      0 0.0.0.0:110             0.0.0.0:*               LISTEN      17201/inetd
прошло 14 минут
/dev/pts/7
14:00:17
#cd /etc/mail

/dev/pts/6
14:00:17
#cd /etc/mail

/dev/pts/8
14:00:17
#cd /etc/mail

/dev/pts/5
14:00:17
#cd /etc/mail

/dev/pts/2
14:00:17
#cd /etc/mail

/dev/pts/4
14:00:17
#cd /etc/mail

/dev/pts/1
14:00:17
#cd /etc/mail

/dev/pts/3
14:00:17
#cd /etc/mail

/dev/pts/7
14:00:27
#vim access
/dev/pts/6
14:00:27
#vim access
/dev/pts/8
14:00:27
#vim access
--- /tmp/l3-saved-17024.9892.5891	2011-06-21 15:00:34.000000000 +0300
+++ access	2011-06-21 15:01:13.000000000 +0300
@@ -97,7 +97,7 @@
 #Connect:172.29			RELAY
 #Connect:172.30			RELAY
 #Connect:172.31			RELAY
-#Connect:192.168			RELAY
+Connect:192.168.107		RELAY
 GreetPause:192.168.107		0
 ClientRate:192.168.107		0
 ClientConn:192.168.107		0
/dev/pts/5
14:00:27
#vim access
/dev/pts/2
14:00:27
#vim access
/dev/pts/4
14:00:27
#vim access
/dev/pts/1
14:00:27
#vim access
/dev/pts/3
14:00:27
#vim access
/dev/pts/7
14:01:13
#/etc/init.d/sendmail restart
Restarting Mail Transport Agent (MTA): sendmail.
/dev/pts/6
14:01:13
#/etc/init.d/sendmail restart
Restarting Mail Transport Agent (MTA): sendmail.
/dev/pts/8
14:01:13
#/etc/init.d/sendmail restart
Restarting Mail Transport Agent (MTA): sendmail.
/dev/pts/5
14:01:13
#/etc/init.d/sendmail restart
Restarting Mail Transport Agent (MTA): sendmail.
/dev/pts/2
14:01:13
#/etc/init.d/sendmail restart
Restarting Mail Transport Agent (MTA): sendmail.
/dev/pts/4
14:01:13
#/etc/init.d/sendmail restart
Restarting Mail Transport Agent (MTA): sendmail.
/dev/pts/1
14:01:13
#/etc/init.d/sendmail restart
Restarting Mail Transport Agent (MTA): sendmail.
/dev/pts/3
14:01:13
#/etc/init.d/sendmail restart
Restarting Mail Transport Agent (MTA): sendmail.
/dev/pts/1
14:01:38
#vim /etc/asterisk/extensions.conf
/dev/pts/3
14:01:38
#vim /etc/asterisk/extensions.conf
/dev/pts/7
14:01:38
#vim /etc/asterisk/extensions.conf
/dev/pts/6
14:01:38
#vim /etc/asterisk/extensions.conf
/dev/pts/8
14:01:38
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-17024.30313.6310	2011-06-21 15:47:22.000000000 +0300
+++ /etc/asterisk/extensions.conf	2011-06-21 15:50:29.000000000 +0300
@@ -8,6 +8,7 @@
 
 [local]
 exten => _23XX,1,Dial(SIP/${EXTEN},10)
+exten => _23XX,n,Voicemail(${EXTEN}@default)
 exten => _23XX,n,Playback(demo-congrats)
 exten => 2310,1,Dial(SIP/2303&SIP/2304.10)
 
/dev/pts/5
14:01:38
#vim /etc/asterisk/extensions.conf
/dev/pts/2
14:01:38
#vim /etc/asterisk/extensions.conf
/dev/pts/4
14:01:38
#vim /etc/asterisk/extensions.conf
прошло 48 минут
/dev/pts/5
14:50:29
#vim /etc/asterisk/voicemail.conf
/dev/pts/2
14:50:29
#vim /etc/asterisk/voicemail.conf
/dev/pts/4
14:50:29
#vim /etc/asterisk/voicemail.conf
/dev/pts/1
14:50:29
#vim /etc/asterisk/voicemail.conf
/dev/pts/3
14:50:29
#vim /etc/asterisk/voicemail.conf
/dev/pts/7
14:50:29
#vim /etc/asterisk/voicemail.conf
/dev/pts/6
14:50:29
#vim /etc/asterisk/voicemail.conf
/dev/pts/8
14:50:29
#vim /etc/asterisk/voicemail.conf
/dev/pts/5
14:51:05
#~
[general]
; Formats for writing Voicemail.  Note that when using IMAP storage for
; voicemail, only the first format specified will be used.
;format=g723sf|wav49|wav
format=wav49|gsm|wav
;
; WARNING:
; If you change the list of formats that you record voicemail in
"/etc/asterisk/voicemail.conf" 366L, 17961C
; when you have mailboxes that contain messages, you _MUST_ absolutely
...
;4235 => 1234,Jim Holmes,jim@astricon.ips,,Tz=european
;
; Mailboxes may be organized into multiple contexts for
; voicemail virtualhosting
;
[other]
;The intro can be customized on a per-context basis
;directoryintro=dir-company2
1234 => 5678,Company2 User,root@localhost
-- ВСТАВКА --                                                        333,1         95%
/dev/pts/2
14:51:05
#~
;
; Voicemail Configuration
;
;
; NOTE: Asterisk has to edit this file to change a user's password.  This does
"/etc/asterisk/voicemail.conf" 366L, 17961C
; If you would also like to enable SMDI notification then set smdienable to yes.
; You will also need to make sure smdiport is set to a valid port as specified in
; smdi.conf.
;smdienable=yes
...
;4235 => 1234,Jim Holmes,jim@astricon.ips,,Tz=european
;
; Mailboxes may be organized into multiple contexts for
; voicemail virtualhosting
;
[other]
;The intro can be customized on a per-context basis
;directoryintro=dir-company2
1234 => 5678,Company2 User,root@localhost
-- ВСТАВКА --                                                        333,1         95%
/dev/pts/4
14:51:05
#~
; If you would also like to enable SMDI notification then set smdienable to yes.
; You will also need to make sure smdiport is set to a valid port as specified in
; smdi.conf.
;smdienable=yes
;smdiport=/dev/ttyS0
; If you need to have an external program, i.e. /usr/bin/myapp
; called when a voicemail password is changed, uncomment this:
; Note: If this is set, the password will NOT be changed in voicemail.conf
; If you would like to also change the password in voicemail.conf, use
; the externpassnotify option below instead.
...
;4235 => 1234,Jim Holmes,jim@astricon.ips,,Tz=european
;
; Mailboxes may be organized into multiple contexts for
; voicemail virtualhosting
;
[other]
;The intro can be customized on a per-context basis
;directoryintro=dir-company2
1234 => 5678,Company2 User,root@localhost
-- ВСТАВКА --                                                        333,1         95%
/dev/pts/1
14:51:05
#~
; The default is no minimum.
;minsecs=3
; Maximum length of greetings in seconds
;maxgreet=60
; How many milliseconds to skip forward/back when rew/ff in message playback
skipms=3000
; How many seconds of silence before we end the recording
maxsilence=10
; Silence threshold (what we consider silence: the lower, the more sensitive)
silencethreshold=128
...
;4235 => 1234,Jim Holmes,jim@astricon.ips,,Tz=european
;
; Mailboxes may be organized into multiple contexts for
; voicemail virtualhosting
;
[other]
;The intro can be customized on a per-context basis
;directoryintro=dir-company2
1234 => 5678,Company2 User,root@localhost
-- ВСТАВКА --                                                        333,1         95%
/dev/pts/3
14:51:05
#~
; Maximum number of messages per folder.  If not specified, a default value
; Permit finding entries for forward/compose from the directory
;usedirectory=yes
; Voicemail can be stored in a database using the ODBC driver.
; The value of odbcstorage is the database connection configured
; in res_odbc.conf.
;odbcstorage=asterisk
; The default table for ODBC voicemail storage is voicemessages.
;odbctable=voicemessages
;
...
;4235 => 1234,Jim Holmes,jim@astricon.ips,,Tz=european
;
; Mailboxes may be organized into multiple contexts for
; voicemail virtualhosting
;
[other]
;The intro can be customized on a per-context basis
;directoryintro=dir-company2
1234 => 5678,Company2 User,root@localhost
-- ВСТАВКА --                                                        333,1         95%
/dev/pts/7
14:51:05
#~
; Note: If this is set, the password will NOT be changed in voicemail.conf
; If you would like to also change the password in voicemail.conf, use
; the externpassnotify option below instead.
;externpass=/usr/bin/myapp
;externpassnotify=/usr/bin/myapp
; If you need to have an external program, i.e. /usr/bin/myapp
; called when a user changes her voicemail password, uncomment this:
;externpasscheck=/usr/bin/myapp
; Arguments for this script are:
; mailbox context oldpass newpass
...
;4235 => 1234,Jim Holmes,jim@astricon.ips,,Tz=european
;
; Mailboxes may be organized into multiple contexts for
; voicemail virtualhosting
;
[other]
;The intro can be customized on a per-context basis
;directoryintro=dir-company2
1234 => 5678,Company2 User,root@localhost
-- ВСТАВКА --                                                        333,1         95%
/dev/pts/6
14:51:05
#~
; If you would also like to enable SMDI notification then set smdienable to yes.
; You will also need to make sure smdiport is set to a valid port as specified in
; smdi.conf.
; you do not specify a folder, then INBOX will be used
;greetingsfolder=INBOX
                        ;     prompt that says: "The passwords you entered and re-entered
                        ;     did not match."
; vm-invalid-password=c ;     Customize which sound file is used instead of the default
                        ;     prompt that says: ...
; vm-pls-try-again=cust ; Customize which sound file is used instead of the
...
;4235 => 1234,Jim Holmes,jim@astricon.ips,,Tz=european
;
; Mailboxes may be organized into multiple contexts for
; voicemail virtualhosting
;
[other]
;The intro can be customized on a per-context basis
;directoryintro=dir-company2
1234 => 5678,Company2 User,root@localhost
-- ВСТАВКА --                                                        333,1         95%
/dev/pts/8
14:51:05
#~
; Maximum number of messages per folder.  If not specified, a default value
; (100) is used.  Maximum value for this option is 9999.
;maxmsg=100
; Maximum length of a voicemail message in seconds
;maxsecs=180
; Minimum length of a voicemail message in seconds for the message to be kept
; The default is no minimum.
;minsecs=3
; Maximum length of greetings in seconds
;maxgreet=60
...
;4235 => 1234,Jim Holmes,jim@astricon.ips,,Tz=european
;
; Mailboxes may be organized into multiple contexts for
; voicemail virtualhosting
;
[other]
;The intro can be customized on a per-context basis
;directoryintro=dir-company2
1234 => 5678,Company2 User,root@localhost
-- ВСТАВКА --                                                        333,1         95%
/dev/pts/7
14:56:38
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, Copyright (C) 1999 - 2010 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.6.2.9-2+squeeze2 currently running on linux7 (pid = 12111)
...
    -- Registered extension context 'parkedcalls' (0x27a4cd0) in local table 0x7f4cf400e7c0; registrar: features
    -- merging incls/swits/igpats from old(parkedcalls) to new(parkedcalls) context, registrar = pbx_ael
    -- Added extension '700' priority 1 to parkedcalls (0x27a4cd0)
    -- Registered extension context 'app_dial_gosub_virtual_context' (0x27a4b40) in local table 0x7f4cf400e7c0; registrar: app_dial
    -- merging incls/swits/igpats from old(app_dial_gosub_virtual_context) to new(app_dial_gosub_virtual_context) context, registrar = pbx_ael
    -- Added extension 's' priority 1 to app_dial_gosub_virtual_context (0x27a4b40)
    -- Registered extension context 'local' (0x27a4080) in local table 0x7f4cf400e7c0; registrar: pbx_config
    -- merging incls/swits/igpats from old(local) to new(local) context, registrar = pbx_ael
linux7*CLI> exit
Executing last minute cleanups
/dev/pts/6
14:56:38
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, Copyright (C) 1999 - 2010 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.6.2.9-2+squeeze2 currently running on linux7 (pid = 12111)
...
    -- Registered extension context 'parkedcalls' (0x27a4cd0) in local table 0x7f4cf400e7c0; registrar: features
    -- merging incls/swits/igpats from old(parkedcalls) to new(parkedcalls) context, registrar = pbx_ael
    -- Added extension '700' priority 1 to parkedcalls (0x27a4cd0)
    -- Registered extension context 'app_dial_gosub_virtual_context' (0x27a4b40) in local table 0x7f4cf400e7c0; registrar: app_dial
    -- merging incls/swits/igpats from old(app_dial_gosub_virtual_context) to new(app_dial_gosub_virtual_context) context, registrar = pbx_ael
    -- Added extension 's' priority 1 to app_dial_gosub_virtual_context (0x27a4b40)
    -- Registered extension context 'local' (0x27a4080) in local table 0x7f4cf400e7c0; registrar: pbx_config
    -- merging incls/swits/igpats from old(local) to new(local) context, registrar = pbx_ael
linux7*CLI> exit
Executing last minute cleanups
/dev/pts/8
14:56:38
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, Copyright (C) 1999 - 2010 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.6.2.9-2+squeeze2 currently running on linux7 (pid = 12111)
...
    -- Registered extension context 'parkedcalls' (0x27a4cd0) in local table 0x7f4cf400e7c0; registrar: features
    -- merging incls/swits/igpats from old(parkedcalls) to new(parkedcalls) context, registrar = pbx_ael
    -- Added extension '700' priority 1 to parkedcalls (0x27a4cd0)
    -- Registered extension context 'app_dial_gosub_virtual_context' (0x27a4b40) in local table 0x7f4cf400e7c0; registrar: app_dial
    -- merging incls/swits/igpats from old(app_dial_gosub_virtual_context) to new(app_dial_gosub_virtual_context) context, registrar = pbx_ael
    -- Added extension 's' priority 1 to app_dial_gosub_virtual_context (0x27a4b40)
    -- Registered extension context 'local' (0x27a4080) in local table 0x7f4cf400e7c0; registrar: pbx_config
    -- merging incls/swits/igpats from old(local) to new(local) context, registrar = pbx_ael
linux7*CLI> exit
Executing last minute cleanups
/dev/pts/5
14:56:38
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, Copyright (C) 1999 - 2010 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.6.2.9-2+squeeze2 currently running on linux7 (pid = 12111)
...
    -- Registered extension context 'parkedcalls' (0x27a4cd0) in local table 0x7f4cf400e7c0; registrar: features
    -- merging incls/swits/igpats from old(parkedcalls) to new(parkedcalls) context, registrar = pbx_ael
    -- Added extension '700' priority 1 to parkedcalls (0x27a4cd0)
    -- Registered extension context 'app_dial_gosub_virtual_context' (0x27a4b40) in local table 0x7f4cf400e7c0; registrar: app_dial
    -- merging incls/swits/igpats from old(app_dial_gosub_virtual_context) to new(app_dial_gosub_virtual_context) context, registrar = pbx_ael
    -- Added extension 's' priority 1 to app_dial_gosub_virtual_context (0x27a4b40)
    -- Registered extension context 'local' (0x27a4080) in local table 0x7f4cf400e7c0; registrar: pbx_config
    -- merging incls/swits/igpats from old(local) to new(local) context, registrar = pbx_ael
linux7*CLI> exit
Executing last minute cleanups
/dev/pts/2
14:56:38
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, Copyright (C) 1999 - 2010 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.6.2.9-2+squeeze2 currently running on linux7 (pid = 12111)
...
    -- Registered extension context 'parkedcalls' (0x27a4cd0) in local table 0x7f4cf400e7c0; registrar: features
    -- merging incls/swits/igpats from old(parkedcalls) to new(parkedcalls) context, registrar = pbx_ael
    -- Added extension '700' priority 1 to parkedcalls (0x27a4cd0)
    -- Registered extension context 'app_dial_gosub_virtual_context' (0x27a4b40) in local table 0x7f4cf400e7c0; registrar: app_dial
    -- merging incls/swits/igpats from old(app_dial_gosub_virtual_context) to new(app_dial_gosub_virtual_context) context, registrar = pbx_ael
    -- Added extension 's' priority 1 to app_dial_gosub_virtual_context (0x27a4b40)
    -- Registered extension context 'local' (0x27a4080) in local table 0x7f4cf400e7c0; registrar: pbx_config
    -- merging incls/swits/igpats from old(local) to new(local) context, registrar = pbx_ael
linux7*CLI> exit
Executing last minute cleanups
/dev/pts/4
14:56:38
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, Copyright (C) 1999 - 2010 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.6.2.9-2+squeeze2 currently running on linux7 (pid = 12111)
...
    -- Registered extension context 'parkedcalls' (0x27a4cd0) in local table 0x7f4cf400e7c0; registrar: features
    -- merging incls/swits/igpats from old(parkedcalls) to new(parkedcalls) context, registrar = pbx_ael
    -- Added extension '700' priority 1 to parkedcalls (0x27a4cd0)
    -- Registered extension context 'app_dial_gosub_virtual_context' (0x27a4b40) in local table 0x7f4cf400e7c0; registrar: app_dial
    -- merging incls/swits/igpats from old(app_dial_gosub_virtual_context) to new(app_dial_gosub_virtual_context) context, registrar = pbx_ael
    -- Added extension 's' priority 1 to app_dial_gosub_virtual_context (0x27a4b40)
    -- Registered extension context 'local' (0x27a4080) in local table 0x7f4cf400e7c0; registrar: pbx_config
    -- merging incls/swits/igpats from old(local) to new(local) context, registrar = pbx_ael
linux7*CLI> exit
Executing last minute cleanups
/dev/pts/1
14:56:38
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, Copyright (C) 1999 - 2010 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.6.2.9-2+squeeze2 currently running on linux7 (pid = 12111)
...
    -- Registered extension context 'parkedcalls' (0x27a4cd0) in local table 0x7f4cf400e7c0; registrar: features
    -- merging incls/swits/igpats from old(parkedcalls) to new(parkedcalls) context, registrar = pbx_ael
    -- Added extension '700' priority 1 to parkedcalls (0x27a4cd0)
    -- Registered extension context 'app_dial_gosub_virtual_context' (0x27a4b40) in local table 0x7f4cf400e7c0; registrar: app_dial
    -- merging incls/swits/igpats from old(app_dial_gosub_virtual_context) to new(app_dial_gosub_virtual_context) context, registrar = pbx_ael
    -- Added extension 's' priority 1 to app_dial_gosub_virtual_context (0x27a4b40)
    -- Registered extension context 'local' (0x27a4080) in local table 0x7f4cf400e7c0; registrar: pbx_config
    -- merging incls/swits/igpats from old(local) to new(local) context, registrar = pbx_ael
linux7*CLI> exit
Executing last minute cleanups
/dev/pts/3
14:56:38
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, Copyright (C) 1999 - 2010 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.6.2.9-2+squeeze2 currently running on linux7 (pid = 12111)
...
    -- Registered extension context 'parkedcalls' (0x27a4cd0) in local table 0x7f4cf400e7c0; registrar: features
    -- merging incls/swits/igpats from old(parkedcalls) to new(parkedcalls) context, registrar = pbx_ael
    -- Added extension '700' priority 1 to parkedcalls (0x27a4cd0)
    -- Registered extension context 'app_dial_gosub_virtual_context' (0x27a4b40) in local table 0x7f4cf400e7c0; registrar: app_dial
    -- merging incls/swits/igpats from old(app_dial_gosub_virtual_context) to new(app_dial_gosub_virtual_context) context, registrar = pbx_ael
    -- Added extension 's' priority 1 to app_dial_gosub_virtual_context (0x27a4b40)
    -- Registered extension context 'local' (0x27a4080) in local table 0x7f4cf400e7c0; registrar: pbx_config
    -- merging incls/swits/igpats from old(local) to new(local) context, registrar = pbx_ael
linux7*CLI> exit
Executing last minute cleanups
/dev/pts/8
14:59:11
#vim /etc/asterisk/voicemail.conf
--- /tmp/l3-saved-17024.27395.6558	2011-06-21 15:59:19.000000000 +0300
+++ /etc/asterisk/voicemail.conf	2011-06-21 16:04:39.000000000 +0300
@@ -131,7 +131,7 @@
 ; Note: ${IF()} strips spacing at the beginning and end of its true and false
 ; values, so a newline cannot be placed at either location.  The word 'so' is
 ; therefore duplicated, in order for the newline to be interpreted correctly.
-;emailbody=Dear ${VM_NAME}:\n\n\tjust wanted to let you know you were just ${IF($["${VM_CIDNUM}" = "${ORIG_VM_CIDNUM}"]?left:forwarded)} a ${VM_DUR} long message (number ${VM_MSGNUM})\nin mailbox ${VM_MAILBOX} from ${VM_CALLERID}, on ${VM_DATE},\n${IF($["${VM_CIDNUM}" = "${ORIG_VM_CIDNUM}"]?so:(originally sent by ${ORIG_VM_CALLERID} on ${ORIG_VM_DATE})\nso)} you might want to check it when you get a chance.  Thanks!\n\n\t\t\t\t--Asterisk\n
+;emailbody= ${VM_NAME}:\n\n\tjust wanted to let you know you were just ${IF($["${VM_CIDNUM}" = "${ORIG_VM_CIDNUM}"]?left:forwarded)} a ${VM_DUR} long message (number ${VM_MSGNUM})\nin mailbox ${VM_MAILBOX} from ${VM_CALLERID}, on ${VM_DATE},\n${IF($["${VM_CIDNUM}" = "${ORIG_VM_CIDNUM}"]?so:(originally sent by ${ORIG_VM_CALLERID} on ${ORIG_VM_DATE})\nso)} you might want to check it when you get a chance.  Thanks!\n\n\t\t\t\t--Asterisk\n
 ;
 ; You can also change the Pager From: string, the pager body and/or subject.
 ; The above defined variables also can be used here
/dev/pts/5
14:59:11
#vim /etc/asterisk/voicemail.conf
/dev/pts/2
14:59:11
#vim /etc/asterisk/voicemail.conf
/dev/pts/4
14:59:11
#vim /etc/asterisk/voicemail.conf
/dev/pts/1
14:59:11
#vim /etc/asterisk/voicemail.conf
/dev/pts/3
14:59:11
#vim /etc/asterisk/voicemail.conf
/dev/pts/7
14:59:11
#vim /etc/asterisk/voicemail.conf
/dev/pts/6
14:59:11
#vim /etc/asterisk/voicemail.conf
/dev/pts/1
15:04:39
#vim /etc/asterisk/voicemail.conf
/dev/pts/3
15:04:39
#vim /etc/asterisk/voicemail.conf
/dev/pts/7
15:04:39
#vim /etc/asterisk/voicemail.conf
/dev/pts/6
15:04:39
#vim /etc/asterisk/voicemail.conf
/dev/pts/8
15:04:39
#vim /etc/asterisk/voicemail.conf
/dev/pts/5
15:04:39
#vim /etc/asterisk/voicemail.conf
/dev/pts/2
15:04:39
#vim /etc/asterisk/voicemail.conf
/dev/pts/4
15:04:39
#vim /etc/asterisk/voicemail.conf
/dev/pts/7
15:04:47
#; (100) is used. Maximum value for this option is 9999.
; Note: If this is set, the password will NOT be changed in voicemail.conf
; If you would like to also change the password in voicemail.conf, use
; the externpassnotify option below instead.
;externpass=/usr/bin/myapp
;externpassnotify=/usr/bin/myapp
; If you need to have an external program, i.e. /usr/bin/myapp
; called when a user changes her voicemail password, uncomment this:
;externpasscheck=/usr/bin/myapp
; Arguments for this script are:
; mailbox context oldpass newpass
...
;4073 => 1099,Bianca Paige,bianca@biancapaige.com,,delete=1|emailsubject=You have a new voicemm
ail.|emailbody=Click on the attachment to listen.
;4110 => 3443,Rob Flynn,rflynn@blueridge.net
;4235 => 1234,Jim Holmes,jim@astricon.ips,,Tz=european
"/etc/asterisk/voicemail.conf" 368L, 18050C записано
2301 => 1234,Andrey Luchkin,user@kiev.unix.nt
central24=America/Chicago|'vm-received' q 'digits/at' H N 'hours'
2302 => 1234,Andrey Luchkin,user@kiev.unix.nt
military=Zulu|'vm-received' q 'digits/at' H N 'hours' 'phonetic/z_p'
european=Europe/Copenhagen|'vm-received' a d b 'digits/at' HM
/dev/pts/6
15:04:47
#; (100) is used. Maximum value for this option is 9999.
;
; Voicemail Configuration
;
;
; NOTE: Asterisk has to edit this file to change a user's password.  This does
; not currently work with the "#include <file>" directive for Asterisk
"/etc/asterisk/voicemail.conf" 368L, 18050C
; If you would also like to enable SMDI notification then set smdienable to yes.
; You will also need to make sure smdiport is set to a valid port as specified in
; smdi.conf.
...
;4073 => 1099,Bianca Paige,bianca@biancapaige.com,,delete=1|emailsubject=You have a new voicemm
ail.|emailbody=Click on the attachment to listen.
;4110 => 3443,Rob Flynn,rflynn@blueridge.net
;4235 => 1234,Jim Holmes,jim@astricon.ips,,Tz=european
"/etc/asterisk/voicemail.conf" 368L, 18050C записано
2301 => 1234,Andrey Luchkin,user@kiev.unix.nt
central24=America/Chicago|'vm-received' q 'digits/at' H N 'hours'
2302 => 1234,Andrey Luchkin,user@kiev.unix.nt
military=Zulu|'vm-received' q 'digits/at' H N 'hours' 'phonetic/z_p'
european=Europe/Copenhagen|'vm-received' a d b 'digits/at' HM
/dev/pts/8
15:04:47
#; (100) is used. Maximum value for this option is 9999.
;
; Voicemail Configuration
;
;
; NOTE: Asterisk has to edit this file to change a user's password.  This does
; not currently work with the "#include <file>" directive for Asterisk
; configuration files, nor when using realtime static configuration.
; Do not use them with this configuration file.
;
[general]
...
;4073 => 1099,Bianca Paige,bianca@biancapaige.com,,delete=1|emailsubject=You have a new voicemm
ail.|emailbody=Click on the attachment to listen.
;4110 => 3443,Rob Flynn,rflynn@blueridge.net
;4235 => 1234,Jim Holmes,jim@astricon.ips,,Tz=european
"/etc/asterisk/voicemail.conf" 368L, 18050C записано
2301 => 1234,Andrey Luchkin,user@kiev.unix.nt
central24=America/Chicago|'vm-received' q 'digits/at' H N 'hours'
2302 => 1234,Andrey Luchkin,user@kiev.unix.nt
military=Zulu|'vm-received' q 'digits/at' H N 'hours' 'phonetic/z_p'
european=Europe/Copenhagen|'vm-received' a d b 'digits/at' HM
/dev/pts/5
15:04:47
#; (100) is used. Maximum value for this option is 9999.
; configuration files, nor when using realtime static configuration.
; Do not use them with this configuration file.
;
[general]
; Formats for writing Voicemail.  Note that when using IMAP storage for
; voicemail, only the first format specified will be used.
;format=g723sf|wav49|wav
format=wav49|gsm|wav
;
; WARNING:
...
;4073 => 1099,Bianca Paige,bianca@biancapaige.com,,delete=1|emailsubject=You have a new voicemm
ail.|emailbody=Click on the attachment to listen.
;4110 => 3443,Rob Flynn,rflynn@blueridge.net
;4235 => 1234,Jim Holmes,jim@astricon.ips,,Tz=european
"/etc/asterisk/voicemail.conf" 368L, 18050C записано
2301 => 1234,Andrey Luchkin,user@kiev.unix.nt
central24=America/Chicago|'vm-received' q 'digits/at' H N 'hours'
2302 => 1234,Andrey Luchkin,user@kiev.unix.nt
military=Zulu|'vm-received' q 'digits/at' H N 'hours' 'phonetic/z_p'
european=Europe/Copenhagen|'vm-received' a d b 'digits/at' HM
/dev/pts/2
15:04:47
#; (100) is used. Maximum value for this option is 9999.
;
; WARNING:
; If you change the list of formats that you record voicemail in
"/etc/asterisk/voicemail.conf" 368L, 18050C
; when you have mailboxes that contain messages, you _MUST_ absolutely
; manually go through those mailboxes and convert/delete/add the
; the message files so that they appear to have been stored using
; your new format list. If you don't do this, very unpleasant
; things may happen to your users while they are retrieving and
; manipulating their voicemail.
...
;4073 => 1099,Bianca Paige,bianca@biancapaige.com,,delete=1|emailsubject=You have a new voicemm
ail.|emailbody=Click on the attachment to listen.
;4110 => 3443,Rob Flynn,rflynn@blueridge.net
;4235 => 1234,Jim Holmes,jim@astricon.ips,,Tz=european
"/etc/asterisk/voicemail.conf" 368L, 18050C записано
2301 => 1234,Andrey Luchkin,user@kiev.unix.nt
central24=America/Chicago|'vm-received' q 'digits/at' H N 'hours'
2302 => 1234,Andrey Luchkin,user@kiev.unix.nt
military=Zulu|'vm-received' q 'digits/at' H N 'hours' 'phonetic/z_p'
european=Europe/Copenhagen|'vm-received' a d b 'digits/at' HM
/dev/pts/4
15:04:47
#; (100) is used. Maximum value for this option is 9999.
; Maximum number of messages per folder.  If not specified, a default value
; (100) is used.  Maximum value for this option is 9999.
;maxmsg=100
; Maximum length of a voicemail message in seconds
;maxsecs=180
; Minimum length of a voicemail message in seconds for the message to be kept
; The default is no minimum.
;
; You can also change the Pager From: string, the pager body and/or subject.
; The above defined variables also can be used here
...
;4073 => 1099,Bianca Paige,bianca@biancapaige.com,,delete=1|emailsubject=You have a new voicemm
ail.|emailbody=Click on the attachment to listen.
;4110 => 3443,Rob Flynn,rflynn@blueridge.net
;4235 => 1234,Jim Holmes,jim@astricon.ips,,Tz=european
"/etc/asterisk/voicemail.conf" 368L, 18050C записано
2301 => 1234,Andrey Luchkin,user@kiev.unix.nt
central24=America/Chicago|'vm-received' q 'digits/at' H N 'hours'
2302 => 1234,Andrey Luchkin,user@kiev.unix.nt
military=Zulu|'vm-received' q 'digits/at' H N 'hours' 'phonetic/z_p'
european=Europe/Copenhagen|'vm-received' a d b 'digits/at' HM
/dev/pts/1
15:04:47
#; (100) is used. Maximum value for this option is 9999.
; Maximum number of messages per folder.  If not specified, a default value
; (100) is used.  Maximum value for this option is 9999.
;maxmsg=100
; Maximum length of a voicemail message in seconds
;maxsecs=180
; Minimum length of a voicemail message in seconds for the message to be kept
; The default is no minimum.
;minsecs=3
; Maximum length of greetings in seconds
;maxgreet=60
...
;4073 => 1099,Bianca Paige,bianca@biancapaige.com,,delete=1|emailsubject=You have a new voicemm
ail.|emailbody=Click on the attachment to listen.
;4110 => 3443,Rob Flynn,rflynn@blueridge.net
;4235 => 1234,Jim Holmes,jim@astricon.ips,,Tz=european
"/etc/asterisk/voicemail.conf" 368L, 18050C записано
2301 => 1234,Andrey Luchkin,user@kiev.unix.nt
central24=America/Chicago|'vm-received' q 'digits/at' H N 'hours'
2302 => 1234,Andrey Luchkin,user@kiev.unix.nt
military=Zulu|'vm-received' q 'digits/at' H N 'hours' 'phonetic/z_p'
european=Europe/Copenhagen|'vm-received' a d b 'digits/at' HM
/dev/pts/3
15:04:47
#; (100) is used. Maximum value for this option is 9999.
;minsecs=3
; Maximum length of greetings in seconds
;maxgreet=60
; How many milliseconds to skip forward/back when rew/ff in message playback
skipms=3000
; How many seconds of silence before we end the recording
maxsilence=10
; Silence threshold (what we consider silence: the lower, the more sensitive)
silencethreshold=128
; Max number of failed login attempts
...
;4073 => 1099,Bianca Paige,bianca@biancapaige.com,,delete=1|emailsubject=You have a new voicemm
ail.|emailbody=Click on the attachment to listen.
;4110 => 3443,Rob Flynn,rflynn@blueridge.net
;4235 => 1234,Jim Holmes,jim@astricon.ips,,Tz=european
"/etc/asterisk/voicemail.conf" 368L, 18050C записано
2301 => 1234,Andrey Luchkin,user@kiev.unix.nt
central24=America/Chicago|'vm-received' q 'digits/at' H N 'hours'
2302 => 1234,Andrey Luchkin,user@kiev.unix.nt
military=Zulu|'vm-received' q 'digits/at' H N 'hours' 'phonetic/z_p'
european=Europe/Copenhagen|'vm-received' a d b 'digits/at' HM
/dev/pts/7
15:08:19
#vim /etc/asterisk/sip.conf
/dev/pts/6
15:08:19
#vim /etc/asterisk/sip.conf
/dev/pts/8
15:08:19
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-17024.3214.24476	2011-06-21 16:08:26.000000000 +0300
+++ /etc/asterisk/sip.conf	2011-06-21 16:10:13.000000000 +0300
@@ -9,6 +9,13 @@
 register => kiev:password@192.168.108.1/lvov
 register => kiev:password@192.168.101.1/msk				
 
+[2301]
+type=friend
+secret=password
+host=dynamic
+user=2301
+mailbox=2301@default
+
 [2303]
 type=friend
 secret=password
/dev/pts/5
15:08:19
#vim /etc/asterisk/sip.conf
/dev/pts/2
15:08:19
#vim /etc/asterisk/sip.conf
/dev/pts/4
15:08:19
#vim /etc/asterisk/sip.conf
/dev/pts/1
15:08:19
#vim /etc/asterisk/sip.conf
/dev/pts/3
15:08:19
#vim /etc/asterisk/sip.conf
/dev/pts/6
15:10:13
#vim /etc/asterisk/voicemail.conf
/dev/pts/8
15:10:13
#vim /etc/asterisk/voicemail.conf
--- /tmp/l3-saved-17024.2858.30878	2011-06-21 16:11:58.000000000 +0300
+++ /etc/asterisk/voicemail.conf	2011-06-21 16:13:36.000000000 +0300
@@ -330,7 +330,7 @@
 
 ;1234 => 4242,Example Mailbox,root@localhost
 2301 => 1234,Andrey Luchkin,user@kiev.unix.nt
-2302 => 1234,Andrey Luchkin,user@kiev.unix.nt
+2303 => 1234,Andrey Luchkin,user@kiev.unix.nt
 ;4200 => 9855,Mark Spencer,markster@linux-support.net,mypager@digium.com,attach=no|serveremail=myaddy@digium.com|tz=central|maxmsg=10
 ;4300 => 3456,Ben Rigas,ben@american-computer.net
 ;4310 => -5432,Sales,sales@marko.net
/dev/pts/5
15:10:13
#vim /etc/asterisk/voicemail.conf
/dev/pts/2
15:10:13
#vim /etc/asterisk/voicemail.conf
/dev/pts/4
15:10:13
#vim /etc/asterisk/voicemail.conf
/dev/pts/1
15:10:13
#vim /etc/asterisk/voicemail.conf
/dev/pts/3
15:10:13
#vim /etc/asterisk/voicemail.conf
/dev/pts/7
15:10:13
#vim /etc/asterisk/voicemail.conf

Статистика

Время первой команды журнала13:45:54 2011- 6-21
Время последней команды журнала15:10:13 2011- 6-21
Количество командных строк в журнале101
Процент команд с ненулевым кодом завершения, % 0.00
Процент синтаксически неверно набранных команд, % 0.00
Суммарное время работы с терминалом *, час 0.59
Количество командных строк в единицу времени, команда/мин 2.85
Частота использования команд
vim56|====================================================| 52.83%
/etc/init.d/sendmail8|=======| 7.55%
asterisk8|=======| 7.55%
(100)8|=======| 7.55%
cd8|=======| 7.55%
~8|=======| 7.55%
netstat5|====| 4.72%
grep5|====| 4.72%
____
*) Интервалы неактивности длительностью 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$