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

Содержание

Журнал

Четверг (10/20/11)

/dev/pts/8
10:55:37
#cd /usr/lib/d
dbus-1.0/       directfb-1.2-9/ dri/
deskbar-applet/ dpkg/
/dev/pts/7
10:55:37
#cd /var/spool/db
bash: cd: /var/spool/db: Нет такого файла или каталога
/dev/pts/8
10:55:37
#cd /var/spool/db
bash: cd: /var/spool/db: Нет такого файла или каталога
/dev/pts/7
10:55:57
#cd /var/spool/

/dev/pts/8
10:55:57
#cd /var/spool/

/dev/pts/7
10:56:00
#ls
anacron  asterisk  cron  exim4  mail  mqueue  mqueue-client  pop  samba
/dev/pts/8
10:56:00
#ls
anacron  asterisk  cron  exim4  mail  mqueue  mqueue-client  pop  samba
/dev/pts/7
10:56:01
#cd ..

/dev/pts/8
10:56:01
#cd ..

/dev/pts/7
10:56:05
#ls
backups  cache  games  lib  local  lock  log  mail  opt  run  spool  tmp
/dev/pts/8
10:56:05
#ls
backups  cache  games  lib  local  lock  log  mail  opt  run  spool  tmp
/dev/pts/7
10:56:06
#cd cache/
apt/                 fontconfig/          modass/
apt-xapian-index/    gdm/                 pm-utils/
binfmts/             git/                 samba/
debconf/             ldconfig/            software-center/
dictionaries-common/ man/
10:56:06
#cd cache/db
bash: cd: cache/db: Нет такого файла или каталога
/dev/pts/8
10:56:06
#cd cache/
apt/                 fontconfig/          modass/
apt-xapian-index/    gdm/                 pm-utils/
binfmts/             git/                 samba/
debconf/             ldconfig/            software-center/
dictionaries-common/ man/
10:56:06
#cd cache/db
bash: cd: cache/db: Нет такого файла или каталога
/dev/pts/7
10:56:13
#cd cache/
apt/                 fontconfig/          modass/
apt-xapian-index/    gdm/                 pm-utils/
binfmts/             git/                 samba/
debconf/             ldconfig/            software-center/
dictionaries-common/ man/
/dev/pts/8
10:56:13
#cd cache/
apt/                 fontconfig/          modass/
apt-xapian-index/    gdm/                 pm-utils/
binfmts/             git/                 samba/
debconf/             ldconfig/            software-center/
dictionaries-common/ man/
/dev/pts/7
10:56:13
#ls
backups  cache  games  lib  local  lock  log  mail  opt  run  spool  tmp
/dev/pts/8
10:56:13
#ls
backups  cache  games  lib  local  lock  log  mail  opt  run  spool  tmp
/dev/pts/7
10:56:25
#cd run/

/dev/pts/8
10:56:25
#cd run/

/dev/pts/7
10:56:28
#ls
acpid.pid               crond.pid     inetd.pid           samba
acpid.socket            crond.reboot  motd                sendmail
asterisk                dbus          NetworkManager.pid  sm-notify.pid
atd.pid                 dhcpd.pid     pm-utils            sshd
avahi-daemon            exim4         portmap_mapping     sshd.pid
console                 gdm3          portmap.pid         utmp
ConsoleKit              gdm3.pid      rpc.statd.pid
console-kit-daemon.pid  gpm.pid       rsyslogd.pid
/dev/pts/8
10:56:28
#ls
acpid.pid               crond.pid     inetd.pid           samba
acpid.socket            crond.reboot  motd                sendmail
asterisk                dbus          NetworkManager.pid  sm-notify.pid
atd.pid                 dhcpd.pid     pm-utils            sshd
avahi-daemon            exim4         portmap_mapping     sshd.pid
console                 gdm3          portmap.pid         utmp
ConsoleKit              gdm3.pid      rpc.statd.pid
console-kit-daemon.pid  gpm.pid       rsyslogd.pid
/dev/pts/7
10:56:29
#cd ..

/dev/pts/8
10:56:29
#cd ..

/dev/pts/7
10:56:34
#ls
backups  cache  games  lib  local  lock  log  mail  opt  run  spool  tmp
/dev/pts/8
10:56:34
#ls
backups  cache  games  lib  local  lock  log  mail  opt  run  spool  tmp
10:56:35
#ls -l
итого 48
drwxr-xr-x  2 root root  4096 Окт 20 09:38 backups
drwxr-xr-x 16 root root  4096 Окт 19 10:26 cache
drwxr-xr-x  2 root root  4096 Окт 17 12:15 games
drwxr-xr-x 53 root root  4096 Окт 19 10:26 lib
drwxrwsr-x  2 root staff 4096 Июн 19 17:45 local
drwxrwxrwt  2 root root  4096 Окт 20 09:38 lock
drwxr-xr-x 12 root root  4096 Окт 20 09:38 log
drwxrwsrwt  2 root mail  4096 Окт 20 11:49 mail
drwxr-xr-x  2 root root  4096 Окт 17 10:40 opt
drwxr-xr-x 13 root root  4096 Окт 20 11:53 run
drwxr-xr-x 10 root root  4096 Окт 19 10:26 spool
drwxrwxrwt  2 root root  4096 Окт 20 09:35 tmp
/dev/pts/7
10:56:35
#ls -l
итого 48
drwxr-xr-x  2 root root  4096 Окт 20 09:38 backups
drwxr-xr-x 16 root root  4096 Окт 19 10:26 cache
drwxr-xr-x  2 root root  4096 Окт 17 12:15 games
drwxr-xr-x 53 root root  4096 Окт 19 10:26 lib
drwxrwsr-x  2 root staff 4096 Июн 19 17:45 local
drwxrwxrwt  2 root root  4096 Окт 20 09:38 lock
drwxr-xr-x 12 root root  4096 Окт 20 09:38 log
drwxrwsrwt  2 root mail  4096 Окт 20 11:49 mail
drwxr-xr-x  2 root root  4096 Окт 17 10:40 opt
drwxr-xr-x 13 root root  4096 Окт 20 11:53 run
drwxr-xr-x 10 root root  4096 Окт 19 10:26 spool
drwxrwxrwt  2 root root  4096 Окт 20 09:35 tmp
10:56:36
#cd opt/

/dev/pts/8
10:56:36
#cd opt/

/dev/pts/7
10:56:44
#ls

/dev/pts/8
10:56:44
#ls

/dev/pts/7
10:56:45
#find / -name *leases* -print
/proc/sys/fs/leases-enable
/usr/share/man/man5/dhcpd.leases.5.gz
/usr/share/man/man5/dhclient.leases.5.gz
/usr/share/man/ja/man5/dhclient.leases.5.gz
/var/lib/dhcp/dhcpd.leases
/var/lib/dhcp/dhclient.leases
/var/lib/dhcp/dhcpd.leases~
/dev/pts/8
10:56:45
#find / -name *leases* -print
/proc/sys/fs/leases-enable
/usr/share/man/man5/dhcpd.leases.5.gz
/usr/share/man/man5/dhclient.leases.5.gz
/usr/share/man/ja/man5/dhclient.leases.5.gz
/var/lib/dhcp/dhcpd.leases
/var/lib/dhcp/dhclient.leases
/var/lib/dhcp/dhcpd.leases~
/dev/pts/7
10:57:33
#less /var/lib/dhcp/dhcpd.leases
/dev/pts/8
10:57:33
#less /var/lib/dhcp/dhcpd.leases
/dev/pts/7
10:57:54
#tcpdump host 192.168.10.202
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes
11:58:36.318163 IP 192.168.10.202.ntp > 255.255.255.255.ntp: NTPv3, Client, length 48
11:59:00.286155 IP 192.168.10.202.bootpc > linux1.unix.nt.bootps: BOOTP/DHCP, Request from 00:13:80:78:1c:a2 (oui Unknown), length 321
11:59:00.287185 IP linux1.unix.nt.bootps > 192.168.10.202.bootpc: BOOTP/DHCP, Reply, length 300
11:59:05.286692 ARP, Request who-has 192.168.10.202 tell linux1.unix.nt, length 28
11:59:05.289286 ARP, Reply 192.168.10.202 is-at 00:13:80:78:1c:a2 (oui Unknown), length 46
12:00:25.522088 ARP, Request who-has 192.168.10.202 tell 192.168.10.202, length 46
12:00:25.522576 ARP, Request who-has gw1.unix.nt tell 192.168.10.202, length 46
12:00:25.523030 ARP, Request who-has linux1.unix.nt tell 192.168.10.202, length 46
...
14:21:16.787982 IP 192.168.10.202.bootpc > linux1.unix.nt.bootps: BOOTP/DHCP, Request from 00:13:80:78:1c:a2 (oui Unknown), length 321
14:21:16.788841 IP linux1.unix.nt.bootps > 192.168.10.202.bootpc: BOOTP/DHCP, Reply, length 300
14:21:21.785710 ARP, Request who-has 192.168.10.202 tell linux1.unix.nt, length 28
14:21:21.788226 ARP, Reply 192.168.10.202 is-at 00:13:80:78:1c:a2 (oui Unknown), length 46
14:22:58.883448 IP 192.168.10.202.ntp > 255.255.255.255.ntp: NTPv3, Client, length 48
14:25:28.863514 IP 192.168.10.202.ntp > 255.255.255.255.ntp: NTPv3, Client, length 48
^C
36935 packets captured
36935 packets received by filter
0 packets dropped by kernel
/dev/pts/8
10:57:54
#tcpdump host 192.168.10.202
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes
11:58:36.318163 IP 192.168.10.202.ntp > 255.255.255.255.ntp: NTPv3, Client, length 48
11:59:00.286155 IP 192.168.10.202.bootpc > linux1.unix.nt.bootps: BOOTP/DHCP, Request from 00:13:80:78:1c:a2 (oui Unknown), length 321
11:59:00.287185 IP linux1.unix.nt.bootps > 192.168.10.202.bootpc: BOOTP/DHCP, Reply, length 300
11:59:05.286692 ARP, Request who-has 192.168.10.202 tell linux1.unix.nt, length 28
11:59:05.289286 ARP, Reply 192.168.10.202 is-at 00:13:80:78:1c:a2 (oui Unknown), length 46
12:00:25.522088 ARP, Request who-has 192.168.10.202 tell 192.168.10.202, length 46
12:00:25.522576 ARP, Request who-has gw1.unix.nt tell 192.168.10.202, length 46
12:00:25.523030 ARP, Request who-has linux1.unix.nt tell 192.168.10.202, length 46
...
14:21:16.787982 IP 192.168.10.202.bootpc > linux1.unix.nt.bootps: BOOTP/DHCP, Request from 00:13:80:78:1c:a2 (oui Unknown), length 321
14:21:16.788841 IP linux1.unix.nt.bootps > 192.168.10.202.bootpc: BOOTP/DHCP, Reply, length 300
14:21:21.785710 ARP, Request who-has 192.168.10.202 tell linux1.unix.nt, length 28
14:21:21.788226 ARP, Reply 192.168.10.202 is-at 00:13:80:78:1c:a2 (oui Unknown), length 46
14:22:58.883448 IP 192.168.10.202.ntp > 255.255.255.255.ntp: NTPv3, Client, length 48
14:25:28.863514 IP 192.168.10.202.ntp > 255.255.255.255.ntp: NTPv3, Client, length 48
^C
36935 packets captured
36935 packets received by filter
0 packets dropped by kernel
/dev/pts/2
11:07:37
#cd /etc/asterisk/

/dev/pts/1
11:07:37
#cd /etc/asterisk/

/dev/pts/2
11:07:46
#vi extensions.conf
--- /tmp/l3-saved-5894.889.15463	2011-10-20 12:07:50.000000000 +0300
+++ extensions.conf	2011-10-20 12:09:04.000000000 +0300
@@ -43,6 +43,10 @@
 exten => _99XX,n,Record(${FILENAME}:gsm)
 exten => _99XX,n,Playback(${FILENAME})
 
+exten => _98XX,1,Answer
+exten => _98XX,n,Set(FILENAME=/var/spool/asterisk/sounds/menu/${EXTEN:2})
+exten => _98XX,n,Playback(${FILENAME}.gsm)
+
 exten => _117X,1,AgentLogin(${EXTEN:3})
 
 exten => _118X,1,GotoIf($[ "${CALLERID(num)}" != "110${EXTEN:3}" ]?password)
/dev/pts/1
11:07:46
#vi extensions.conf
/dev/pts/2
11:09:04
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, 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.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1514)
Verbosity is at least 17
linux1*CLI> dialplan reload
...
    -- Executing [9801@gr3:1] Answer("SIP/1101-0000002d", "") in new stack
    -- Executing [9801@gr3:2] Set("SIP/1101-0000002d", "FILENAME=/var/spool/asterisk/sounds/menu/01") in new stack
    -- Executing [9801@gr3:3] Playback("SIP/1101-0000002d", "/var/spool/asterisk/sounds/menu/01.gsm") in new stack
[Oct 20 12:09:31] WARNING[6318]: file.c:650 ast_openstream_full: File /var/spool/asterisk/sounds/menu/01.gsm does not exist in any format
[Oct 20 12:09:31] WARNING[6318]: file.c:953 ast_streamfile: Unable to open /var/spool/asterisk/sounds/menu/01.gsm (format 0x2 (gsm)): No such file or directory
[Oct 20 12:09:31] WARNING[6318]: app_playback.c:471 playback_exec: ast_streamfile failed on SIP/1101-0000002d for /var/spool/asterisk/sounds/menu/01.gsm
    -- Auto fallthrough, channel 'SIP/1101-0000002d' status is 'UNKNOWN'
linux1*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/1
11:09:04
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, 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.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1514)
Verbosity is at least 17
linux1*CLI> dialplan reload
...
    -- Executing [9801@gr3:1] Answer("SIP/1101-0000002d", "") in new stack
    -- Executing [9801@gr3:2] Set("SIP/1101-0000002d", "FILENAME=/var/spool/asterisk/sounds/menu/01") in new stack
    -- Executing [9801@gr3:3] Playback("SIP/1101-0000002d", "/var/spool/asterisk/sounds/menu/01.gsm") in new stack
[Oct 20 12:09:31] WARNING[6318]: file.c:650 ast_openstream_full: File /var/spool/asterisk/sounds/menu/01.gsm does not exist in any format
[Oct 20 12:09:31] WARNING[6318]: file.c:953 ast_streamfile: Unable to open /var/spool/asterisk/sounds/menu/01.gsm (format 0x2 (gsm)): No such file or directory
[Oct 20 12:09:31] WARNING[6318]: app_playback.c:471 playback_exec: ast_streamfile failed on SIP/1101-0000002d for /var/spool/asterisk/sounds/menu/01.gsm
    -- Auto fallthrough, channel 'SIP/1101-0000002d' status is 'UNKNOWN'
linux1*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/2
11:09:35
#less /var/spool/asterisk/sounds/menu/
/dev/pts/1
11:09:35
#less /var/spool/asterisk/sounds/menu/
/dev/pts/2
11:09:35
#less /var/spool/asterisk/sounds/menu/
/dev/pts/1
11:09:35
#less /var/spool/asterisk/sounds/menu/
/dev/pts/2
11:09:54
#ls -l !$
ls -l /var/spool/asterisk/sounds/menu/
итого 24
-rw-rw---- 1 asterisk asterisk 10362 Окт 19 17:12 01.gsm
-rw-rw---- 1 asterisk asterisk  4719 Окт 19 17:13 10.gsm
-rw-rw---- 1 asterisk asterisk  2772 Окт 19 17:13 20.gsm
/dev/pts/1
11:09:54
#ls -l !$
ls -l /var/spool/asterisk/sounds/menu/
итого 24
-rw-rw---- 1 asterisk asterisk 10362 Окт 19 17:12 01.gsm
-rw-rw---- 1 asterisk asterisk  4719 Окт 19 17:13 10.gsm
-rw-rw---- 1 asterisk asterisk  2772 Окт 19 17:13 20.gsm
/dev/pts/2
11:10:51
#ls -l /var/spool/asterisk/sounds/menu/20.gsm
-rw-rw---- 1 asterisk asterisk 2772 Окт 19 17:13 /var/spool/asterisk/sounds/menu/20.gsm
/dev/pts/1
11:10:51
#ls -l /var/spool/asterisk/sounds/menu/20.gsm
-rw-rw---- 1 asterisk asterisk 2772 Окт 19 17:13 /var/spool/asterisk/sounds/menu/20.gsm
/dev/pts/2
11:11:00
#ls -l /var/spool/asterisk/sounds/menu/*
-rw-rw---- 1 asterisk asterisk 10362 Окт 19 17:12 /var/spool/asterisk/sounds/menu/01.gsm
-rw-rw---- 1 asterisk asterisk  4719 Окт 19 17:13 /var/spool/asterisk/sounds/menu/10.gsm
-rw-rw---- 1 asterisk asterisk  2772 Окт 19 17:13 /var/spool/asterisk/sounds/menu/20.gsm
/dev/pts/1
11:11:00
#ls -l /var/spool/asterisk/sounds/menu/*
-rw-rw---- 1 asterisk asterisk 10362 Окт 19 17:12 /var/spool/asterisk/sounds/menu/01.gsm
-rw-rw---- 1 asterisk asterisk  4719 Окт 19 17:13 /var/spool/asterisk/sounds/menu/10.gsm
-rw-rw---- 1 asterisk asterisk  2772 Окт 19 17:13 /var/spool/asterisk/sounds/menu/20.gsm
/dev/pts/2
11:11:18
#ls -l /var/spool/asterisk/sounds/menu/*
-rw-rw---- 1 asterisk asterisk  3663 Окт 20 12:11 /var/spool/asterisk/sounds/menu/00.gsm
-rw-rw---- 1 asterisk asterisk 10362 Окт 19 17:12 /var/spool/asterisk/sounds/menu/01.gsm
-rw-rw---- 1 asterisk asterisk  4719 Окт 19 17:13 /var/spool/asterisk/sounds/menu/10.gsm
-rw-rw---- 1 asterisk asterisk  2772 Окт 19 17:13 /var/spool/asterisk/sounds/menu/20.gsm
/dev/pts/1
11:11:18
#ls -l /var/spool/asterisk/sounds/menu/*
-rw-rw---- 1 asterisk asterisk  3663 Окт 20 12:11 /var/spool/asterisk/sounds/menu/00.gsm
-rw-rw---- 1 asterisk asterisk 10362 Окт 19 17:12 /var/spool/asterisk/sounds/menu/01.gsm
-rw-rw---- 1 asterisk asterisk  4719 Окт 19 17:13 /var/spool/asterisk/sounds/menu/10.gsm
-rw-rw---- 1 asterisk asterisk  2772 Окт 19 17:13 /var/spool/asterisk/sounds/menu/20.gsm
/dev/pts/2
11:12:28
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, 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.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1514)
Verbosity is at least 17
linux1*CLI> dialplan reload
...
  Reg. Contact : sip:1101@192.168.10.201:2048;line=pzqjb65r
  Qualify Freq : 60000 ms
  Sess-Timers  : Accept
  Sess-Refresh : uas
  Sess-Expires : 1800 secs
  Min-Sess     : 90 secs
  Parkinglot   :
linux1*CLI>
linux1*CLI> exit
Executing last minute cleanups
/dev/pts/1
11:12:28
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, 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.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1514)
Verbosity is at least 17
linux1*CLI> dialplan reload
...
  Reg. Contact : sip:1101@192.168.10.201:2048;line=pzqjb65r
  Qualify Freq : 60000 ms
  Sess-Timers  : Accept
  Sess-Refresh : uas
  Sess-Expires : 1800 secs
  Min-Sess     : 90 secs
  Parkinglot   :
linux1*CLI>
linux1*CLI> exit
Executing last minute cleanups
/dev/pts/2
11:18:06
#vi /etc/asterisk/sip.conf
--- /tmp/l3-saved-5894.18612.21814	2011-10-20 12:18:11.000000000 +0300
+++ /etc/asterisk/sip.conf	2011-10-20 12:18:35.000000000 +0300
@@ -23,6 +23,7 @@
 mailbox=1101@default
 callgroup=1
 pickupgroup=1
+vmexten=1801
 
 [1102]
 type=friend
/dev/pts/1
11:18:06
#vi /etc/asterisk/sip.conf
/dev/pts/2
11:18:35
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, 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.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1514)
Verbosity is at least 17
linux1*CLI> sip reload
...
    -- Auto fallthrough, channel 'SIP/1100-00000046' status is 'NOANSWER'
  == Using SIP RTP CoS mark 5
  == Using SIP VRTP CoS mark 6
[Oct 20 12:20:56] NOTICE[1611]: chan_sip.c:20276 handle_request_invite: Call from '1101' to extension '1801' rejected because extension not found in context 'gr3'.
  == Using SIP RTP CoS mark 5
  == Using SIP VRTP CoS mark 6
[Oct 20 12:21:05] NOTICE[1611]: chan_sip.c:20276 handle_request_invite: Call from '1101' to extension '1801' rejected because extension not found in context 'gr3'.
linux1*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/1
11:18:35
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, 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.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1514)
Verbosity is at least 17
linux1*CLI> sip reload
...
    -- Auto fallthrough, channel 'SIP/1100-00000046' status is 'NOANSWER'
  == Using SIP RTP CoS mark 5
  == Using SIP VRTP CoS mark 6
[Oct 20 12:20:56] NOTICE[1611]: chan_sip.c:20276 handle_request_invite: Call from '1101' to extension '1801' rejected because extension not found in context 'gr3'.
  == Using SIP RTP CoS mark 5
  == Using SIP VRTP CoS mark 6
[Oct 20 12:21:05] NOTICE[1611]: chan_sip.c:20276 handle_request_invite: Call from '1101' to extension '1801' rejected because extension not found in context 'gr3'.
linux1*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/2
11:21:17
#vi extensions.conf
/dev/pts/1
11:21:17
#vi extensions.conf
/dev/pts/2
11:21:32
#{EXTEN})
Asterisk 1.6.2.9-2+squeeze3, 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.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1514)
Verbosity is at least 17
linux1*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/1
11:21:32
#{EXTEN})
Asterisk 1.6.2.9-2+squeeze3, 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.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1514)
Verbosity is at least 17
linux1*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/2
11:21:33
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, 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.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1514)
Verbosity is at least 17
linux1*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/1
11:21:33
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, 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.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1514)
Verbosity is at least 17
linux1*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/2
11:21:38
#vi sip.conf
--- /tmp/l3-saved-5894.9363.15928	2011-10-20 12:21:42.000000000 +0300
+++ sip.conf	2011-10-20 12:21:50.000000000 +0300
@@ -23,7 +23,7 @@
 mailbox=1101@default
 callgroup=1
 pickupgroup=1
-vmexten=1801
+vmexten=1181
 
 [1102]
 type=friend
/dev/pts/1
11:21:38
#vi sip.conf
/dev/pts/2
11:21:50
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, 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.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1514)
Verbosity is at least 17
linux1*CLI> sip reload
...
    -- Executing [1181@gr3:2] VoiceMailMain("SIP/1101-0000004e", "1101,s") in new stack
    -- <SIP/1101-0000004e> Playing 'vm-youhave.gsm' (language 'ru')
[Oct 20 12:24:21] NOTICE[6594]: channel.c:3066 __ast_read: Dropping incompatible voice frame on SIP/1101-0000004e of format ulaw since our native format has changed to 0x2 (gsm)
    -- <SIP/1101-0000004e> Playing 'digits/1n.gsm' (language 'ru')
    -- <SIP/1101-0000004e> Playing 'vm-newn.gsm' (language 'ru')
    -- <SIP/1101-0000004e> Playing 'vm-message.gsm' (language 'ru')
  == Spawn extension (gr3, 1181, 2) exited non-zero on 'SIP/1101-0000004e'
linux1*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/1
11:21:50
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, 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.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1514)
Verbosity is at least 17
linux1*CLI> sip reload
...
    -- Executing [1181@gr3:2] VoiceMailMain("SIP/1101-0000004e", "1101,s") in new stack
    -- <SIP/1101-0000004e> Playing 'vm-youhave.gsm' (language 'ru')
[Oct 20 12:24:21] NOTICE[6594]: channel.c:3066 __ast_read: Dropping incompatible voice frame on SIP/1101-0000004e of format ulaw since our native format has changed to 0x2 (gsm)
    -- <SIP/1101-0000004e> Playing 'digits/1n.gsm' (language 'ru')
    -- <SIP/1101-0000004e> Playing 'vm-newn.gsm' (language 'ru')
    -- <SIP/1101-0000004e> Playing 'vm-message.gsm' (language 'ru')
  == Spawn extension (gr3, 1181, 2) exited non-zero on 'SIP/1101-0000004e'
linux1*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
11:24:32
#vi e
/dev/pts/2
11:24:32
#vi e
11:24:32
#vi extensions.conf
--- /tmp/l3-saved-5894.1229.16820	2011-10-20 12:24:40.000000000 +0300
+++ extensions.conf	2011-10-20 12:26:14.000000000 +0300
@@ -1,5 +1,19 @@
 [default]
 
+[menu]
+
+exten => s,1,Answer
+exten => s,n,Set(P=/var/spool/asterisk/sounds/menu/)
+exten => s,n,Background(${P}00)
+exten => s,n,Background(${P}01)
+exten => s,n,Waitexten(2)
+exten => s,n,Background(${P}02)
+exten => s,n,Background(${P}01)
+exten => s,n,Waitexten(2)
+exten => s,n,Background(${P}03)
+
+exten => 5,1,Playback(${P}04)
+
 [macro-monitor]
 exten => s,1,Set(CALLFILENAME=${EPOCH}-${STRFTIME(${EPOCH},Europe/Kiev,"%Y-%m-%d-%H-%M-%S")}-${MACRO_EXTEN}-${CALLERID(num)})
 exten => s,n,Monitor(wav,${CALLFILENAME},m)
@@ -27,6 +41,8 @@
 exten => _31XX,1,Dial(SIP/msk/${EXTEN})
 
 [internal]
+exten => 9500,1,Goto(menu,s,1)
+
 exten => 9700,1,Answer
 exten => 9700,n,System(date >> /tmp/hello-from-asterisk)
 
/dev/pts/1
11:24:32
#vi extensions.conf
/dev/pts/2
11:26:14
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, 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.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1514)
Verbosity is at least 17
linux1*CLI> dialplan reload
...
    -- Executing [s@menu:7] BackGround("SIP/1101-0000005b", "/var/spool/asterisk/sounds/menu/01") in new stack
    -- <SIP/1101-0000005b> Playing '/var/spool/asterisk/sounds/menu/01.gsm' (language 'ru')
    -- Executing [s@menu:8] WaitExten("SIP/1101-0000005b", "2") in new stack
    -- Timeout on SIP/1101-0000005b, continuing...
    -- Executing [s@menu:9] BackGround("SIP/1101-0000005b", "/var/spool/asterisk/sounds/menu/03") in new stack
    -- <SIP/1101-0000005b> Playing '/var/spool/asterisk/sounds/menu/03.gsm' (language 'ru')
    -- Auto fallthrough, channel 'SIP/1101-0000005b' status is 'UNKNOWN'
linux1*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/1
11:26:14
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, 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.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1514)
Verbosity is at least 17
linux1*CLI> dialplan reload
...
    -- Executing [s@menu:7] BackGround("SIP/1101-0000005b", "/var/spool/asterisk/sounds/menu/01") in new stack
    -- <SIP/1101-0000005b> Playing '/var/spool/asterisk/sounds/menu/01.gsm' (language 'ru')
    -- Executing [s@menu:8] WaitExten("SIP/1101-0000005b", "2") in new stack
    -- Timeout on SIP/1101-0000005b, continuing...
    -- Executing [s@menu:9] BackGround("SIP/1101-0000005b", "/var/spool/asterisk/sounds/menu/03") in new stack
    -- <SIP/1101-0000005b> Playing '/var/spool/asterisk/sounds/menu/03.gsm' (language 'ru')
    -- Auto fallthrough, channel 'SIP/1101-0000005b' status is 'UNKNOWN'
linux1*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
11:30:21
#vi extensions.conf
/dev/pts/2
11:30:21
#vi extensions.conf
--- /tmp/l3-saved-5894.8527.26237	2011-10-20 12:30:22.000000000 +0300
+++ extensions.conf	2011-10-20 12:31:06.000000000 +0300
@@ -1,17 +1,17 @@
 [default]
 
 [menu]
-
 exten => s,1,Answer
 exten => s,n,Set(P=/var/spool/asterisk/sounds/menu/)
 exten => s,n,Background(${P}00)
-exten => s,n,Background(${P}01)
+exten => s,n(menu-start),Background(${P}01)
 exten => s,n,Waitexten(2)
 exten => s,n,Background(${P}02)
 exten => s,n,Background(${P}01)
 exten => s,n,Waitexten(2)
 exten => s,n,Background(${P}03)
 
+exten => 4,1,Goto(menu,s,menu-start)
 exten => 5,1,Playback(${P}04)
 
 [macro-monitor]
11:31:06
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, 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.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1514)
Verbosity is at least 17
linux1*CLI> dialplan reload
...
    -- Executing [s@menu:7] BackGround("SIP/1100-0000005f", "/var/spool/asterisk/sounds/menu/01") in new stack
    -- <SIP/1100-0000005f> Playing '/var/spool/asterisk/sounds/menu/01.gsm' (language 'ru')
    -- Executing [s@menu:8] WaitExten("SIP/1100-0000005f", "2") in new stack
    -- Timeout on SIP/1100-0000005f, continuing...
    -- Executing [s@menu:9] BackGround("SIP/1100-0000005f", "/var/spool/asterisk/sounds/menu/03") in new stack
    -- <SIP/1100-0000005f> Playing '/var/spool/asterisk/sounds/menu/03.gsm' (language 'ru')
    -- Auto fallthrough, channel 'SIP/1100-0000005f' status is 'UNKNOWN'
linux1*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/1
11:31:06
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, 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.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1514)
Verbosity is at least 17
linux1*CLI> dialplan reload
...
    -- Executing [s@menu:7] BackGround("SIP/1100-0000005f", "/var/spool/asterisk/sounds/menu/01") in new stack
    -- <SIP/1100-0000005f> Playing '/var/spool/asterisk/sounds/menu/01.gsm' (language 'ru')
    -- Executing [s@menu:8] WaitExten("SIP/1100-0000005f", "2") in new stack
    -- Timeout on SIP/1100-0000005f, continuing...
    -- Executing [s@menu:9] BackGround("SIP/1100-0000005f", "/var/spool/asterisk/sounds/menu/03") in new stack
    -- <SIP/1100-0000005f> Playing '/var/spool/asterisk/sounds/menu/03.gsm' (language 'ru')
    -- Auto fallthrough, channel 'SIP/1100-0000005f' status is 'UNKNOWN'
linux1*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/2
11:32:30
#vi extensions.conf
/dev/pts/1
11:32:30
#vi extensions.conf
/dev/pts/2
11:35:07
#[menu]
Asterisk 1.6.2.9-2+squeeze3, 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.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1514)
Verbosity is at least 17
linux1*CLI>
...
    -- Executing [s@menu:1] Answer("SIP/1100-00000066", "") in new stack
    -- Executing [s@menu:2] Set("SIP/1100-00000066", "P=/var/spool/asterisk/sounds/menu/") in new stack
    -- Executing [s@menu:3] BackGround("SIP/1100-00000066", "/var/spool/asterisk/sounds/menu/00") in new stack
    -- <SIP/1100-00000066> Playing '/var/spool/asterisk/sounds/menu/00.gsm' (language 'ru')
    -- Executing [5@menu:1] Playback("SIP/1100-00000066", "/var/spool/asterisk/sounds/menu/04") in new stack
    -- <SIP/1100-00000066> Playing '/var/spool/asterisk/sounds/menu/04.gsm' (language 'ru')
    -- Auto fallthrough, channel 'SIP/1100-00000066' status is 'UNKNOWN'
linux1*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/1
11:35:07
#[menu]
Asterisk 1.6.2.9-2+squeeze3, 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.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1514)
Verbosity is at least 17
linux1*CLI>
...
    -- Executing [s@menu:1] Answer("SIP/1100-00000066", "") in new stack
    -- Executing [s@menu:2] Set("SIP/1100-00000066", "P=/var/spool/asterisk/sounds/menu/") in new stack
    -- Executing [s@menu:3] BackGround("SIP/1100-00000066", "/var/spool/asterisk/sounds/menu/00") in new stack
    -- <SIP/1100-00000066> Playing '/var/spool/asterisk/sounds/menu/00.gsm' (language 'ru')
    -- Executing [5@menu:1] Playback("SIP/1100-00000066", "/var/spool/asterisk/sounds/menu/04") in new stack
    -- <SIP/1100-00000066> Playing '/var/spool/asterisk/sounds/menu/04.gsm' (language 'ru')
    -- Auto fallthrough, channel 'SIP/1100-00000066' status is 'UNKNOWN'
linux1*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/2
11:36:20
#vi extensions.conf
/dev/pts/1
11:36:20
#vi extensions.conf
/dev/pts/2
11:41:45
#[menu]
Asterisk 1.6.2.9-2+squeeze3, 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+squeeze3 currently running on linux1 (pid = 1514)
...
manager     meetme      mfcr2       mgcp        minivm      mixmonitor
module      moh
linux1*CLI> help meetme
meetme {lock|unlock|mute|unmut Execute a command on a conference or conferee
         meetme list [concise] List all or one conference
linux1*CLI> meetme
kick    lock    mute    unlock  unmute  list
linux1*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/1
11:41:45
#[menu]
Asterisk 1.6.2.9-2+squeeze3, 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+squeeze3 currently running on linux1 (pid = 1514)
...
manager     meetme      mfcr2       mgcp        minivm      mixmonitor
module      moh
linux1*CLI> help meetme
meetme {lock|unlock|mute|unmut Execute a command on a conference or conferee
         meetme list [concise] List all or one conference
linux1*CLI> meetme
kick    lock    mute    unlock  unmute  list
linux1*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
прошло 16 минут
/dev/pts/2
11:57:59
#asterisk -rvvvvvvvvvvvvvvvvvv
Asterisk 1.6.2.9-2+squeeze3, 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+squeeze3 currently running on linux1 (pid = 1514)
...
[Oct 20 12:59:09] WARNING[6820]: file.c:953 ast_streamfile: Unable to open /var/spool/asterisk/sounds/menu/08 (format 0x4 (ulaw)): No such file or directory
[Oct 20 12:59:09] WARNING[6820]: app_playback.c:471 playback_exec: ast_streamfile failed on SIP/1100-00000076 for /var/spool/asterisk/sounds/menu/08
    -- Executing [i@menu:2] Goto("SIP/1100-00000076", "menu,s,menu-start") in new stack
    -- Goto (menu,s,4)
    -- Executing [s@menu:4] BackGround("SIP/1100-00000076", "/var/spool/asterisk/sounds/menu/01") in new stack
    -- <SIP/1100-00000076> Playing '/var/spool/asterisk/sounds/menu/01.gsm' (language 'ru')
    -- Executing [s@menu:5] WaitExten("SIP/1100-00000076", "2") in new stack
  == Spawn extension (menu, s, 5) exited non-zero on 'SIP/1100-00000076'
linux1*CLI> exit
Executing last minute cleanups
/dev/pts/1
11:57:59
#asterisk -rvvvvvvvvvvvvvvvvvv
Asterisk 1.6.2.9-2+squeeze3, 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+squeeze3 currently running on linux1 (pid = 1514)
...
[Oct 20 12:59:09] WARNING[6820]: file.c:953 ast_streamfile: Unable to open /var/spool/asterisk/sounds/menu/08 (format 0x4 (ulaw)): No such file or directory
[Oct 20 12:59:09] WARNING[6820]: app_playback.c:471 playback_exec: ast_streamfile failed on SIP/1100-00000076 for /var/spool/asterisk/sounds/menu/08
    -- Executing [i@menu:2] Goto("SIP/1100-00000076", "menu,s,menu-start") in new stack
    -- Goto (menu,s,4)
    -- Executing [s@menu:4] BackGround("SIP/1100-00000076", "/var/spool/asterisk/sounds/menu/01") in new stack
    -- <SIP/1100-00000076> Playing '/var/spool/asterisk/sounds/menu/01.gsm' (language 'ru')
    -- Executing [s@menu:5] WaitExten("SIP/1100-00000076", "2") in new stack
  == Spawn extension (menu, s, 5) exited non-zero on 'SIP/1100-00000076'
linux1*CLI> exit
Executing last minute cleanups
прошло 44 минуты
/dev/pts/2
12:42:23
#asterisk -rvvvvvvvvvvvvvvvvvv
Asterisk 1.6.2.9-2+squeeze3, 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+squeeze3 currently running on linux1 (pid = 1514)
...
linux1*CLI>
linux1*CLI>
linux1*CLI>
linux1*CLI>
linux1*CLI>
linux1*CLI>
linux1*CLI>
linux1*CLI> dialplan reload
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/1
12:42:23
#asterisk -rvvvvvvvvvvvvvvvvvv
Asterisk 1.6.2.9-2+squeeze3, 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+squeeze3 currently running on linux1 (pid = 1514)
...
linux1*CLI>
linux1*CLI>
linux1*CLI>
linux1*CLI>
linux1*CLI>
linux1*CLI>
linux1*CLI>
linux1*CLI> dialplan reload
Disconnected from Asterisk server
Executing last minute cleanups
12:45:05
#less queue
/dev/pts/2
12:45:05
#less queue
12:45:05
#less queues.conf
/dev/pts/1
12:45:05
#less queues.conf
/dev/pts/2
12:45:37
#vi queues.conf
--- /tmp/l3-saved-5894.1551.19457	2011-10-20 13:45:45.000000000 +0300
+++ queues.conf	2011-10-20 13:46:27.000000000 +0300
@@ -500,9 +500,10 @@
 
 
 [queue1]
-strategy=rrmemory
-;member => SIP/1101
-;member => SIP/1102
+strategy=ringall
+member => SIP/1101
+member => SIP/1102
 
-member => Agent/1
-member => Agent/2
+;strategy=rrmemory
+;member => Agent/1
+;member => Agent/2
/dev/pts/1
12:45:37
#vi queues.conf

Статистика

Время первой команды журнала10:55:37 2011-10-20
Время последней команды журнала12:45:37 2011-10-20
Количество командных строк в журнале101
Процент команд с ненулевым кодом завершения, % 8.91
Процент синтаксически неверно набранных команд, % 0.00
Суммарное время работы с терминалом *, час 1.09
Количество командных строк в единицу времени, команда/мин 1.54
Частота использования команд
ls22|=====================| 21.78%
cd21|====================| 20.79%
vi20|===================| 19.80%
asterisk18|=================| 17.82%
less10|=========| 9.90%
[menu]4|===| 3.96%
{EXTEN})2|=| 1.98%
tcpdump2|=| 1.98%
find2|=| 1.98%
____
*) Интервалы неактивности длительностью 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$