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

Содержание

Журнал

Понедельник (06/20/11)

/dev/pts/1
15:40:54
#rm /etc/asterisk/extensions.conf

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

/dev/pts/2
08:01:50
#cat /etc/asterisk/extensions.conf
[default]
exten => 8000,1,Playback(demo-congrats)
exten => _23XX,1,Dial(SIP/${EXTEN},10)
exten => _23XX,n,Playback(demo-congrats)
/dev/pts/1
08:01:50
#cat /etc/asterisk/extensions.conf
[default]
exten => 8000,1,Playback(demo-congrats)
exten => _23XX,1,Dial(SIP/${EXTEN},10)
exten => _23XX,n,Playback(demo-congrats)
/dev/pts/2
08:02:20
#cat /etc/init.d/dhcpd.conf
cat: /etc/init.d/dhcpd.conf: Нет такого файла или каталога
/dev/pts/1
08:02:20
#cat /etc/init.d/dhcpd.conf
cat: /etc/init.d/dhcpd.conf: Нет такого файла или каталога
/dev/pts/2
08:03:13
#cat /etc/init.d/
acpid                  .depend.start          mountall-bootclean.sh  rsyslog
alsa-utils             .depend.stop           mountall.sh            saned
anacron                exim4                  mountdevsubfs.sh       screen-cleanup
asterisk               fancontrol             mountkernfs.sh         sendsigs
atd                    fuse                   mountnfs-bootclean.sh  single
avahi-daemon           gdm3                   mountnfs.sh            skeleton
binfmt-support         halt                   mountoverflowtmp       ssh
bluetooth              hdparm                 mtab.sh                stop-bootlogd
bootlogd               hostname.sh            networking             stop-bootlogd-single
bootlogs               hwclockfirst.sh        network-manager        sudo
bootmisc.sh            hwclock.sh             nfs-common             udev
checkfs.sh             ifupdown               portmap                udev-mtab
checkroot.sh           ifupdown-clean         pppd-dns               umountfs
console-cyrillic       isc-dhcp-server        procps                 umountnfs.sh
console-setup          kbd                    rc                     umountroot
cpufrequtils           kerneloops             rc.local               unattended-upgrades
cron                   keyboard-setup         rcS                    urandom
cups                   killprocs              README                 x11-common
dahdi                  lm-sensors             reboot
dbus                   loadcpufreq            rmnologin
.depend.boot           module-init-tools      rsync
08:03:13
#cat /etc/init.d/
acpid                  .depend.start          mountall-bootclean.sh  rsyslog
alsa-utils             .depend.stop           mountall.sh            saned
anacron                exim4                  mountdevsubfs.sh       screen-cleanup
asterisk               fancontrol             mountkernfs.sh         sendsigs
atd                    fuse                   mountnfs-bootclean.sh  single
avahi-daemon           gdm3                   mountnfs.sh            skeleton
binfmt-support         halt                   mountoverflowtmp       ssh
bluetooth              hdparm                 mtab.sh                stop-bootlogd
bootlogd               hostname.sh            networking             stop-bootlogd-single
bootlogs               hwclockfirst.sh        network-manager        sudo
bootmisc.sh            hwclock.sh             nfs-common             udev
checkfs.sh             ifupdown               portmap                udev-mtab
checkroot.sh           ifupdown-clean         pppd-dns               umountfs
console-cyrillic       isc-dhcp-server        procps                 umountnfs.sh
console-setup          kbd                    rc                     umountroot
cpufrequtils           kerneloops             rc.local               unattended-upgrades
cron                   keyboard-setup         rcS                    urandom
cups                   killprocs              README                 x11-common
dahdi                  lm-sensors             reboot
dbus                   loadcpufreq            rmnologin
.depend.boot           module-init-tools      rsync
/dev/pts/1
08:03:13
#cat /etc/init.d/
acpid                  .depend.start          mountall-bootclean.sh  rsyslog
alsa-utils             .depend.stop           mountall.sh            saned
anacron                exim4                  mountdevsubfs.sh       screen-cleanup
asterisk               fancontrol             mountkernfs.sh         sendsigs
atd                    fuse                   mountnfs-bootclean.sh  single
avahi-daemon           gdm3                   mountnfs.sh            skeleton
binfmt-support         halt                   mountoverflowtmp       ssh
bluetooth              hdparm                 mtab.sh                stop-bootlogd
bootlogd               hostname.sh            networking             stop-bootlogd-single
bootlogs               hwclockfirst.sh        network-manager        sudo
bootmisc.sh            hwclock.sh             nfs-common             udev
checkfs.sh             ifupdown               portmap                udev-mtab
checkroot.sh           ifupdown-clean         pppd-dns               umountfs
console-cyrillic       isc-dhcp-server        procps                 umountnfs.sh
console-setup          kbd                    rc                     umountroot
cpufrequtils           kerneloops             rc.local               unattended-upgrades
cron                   keyboard-setup         rcS                    urandom
cups                   killprocs              README                 x11-common
dahdi                  lm-sensors             reboot
dbus                   loadcpufreq            rmnologin
.depend.boot           module-init-tools      rsync
08:03:13
#cat /etc/init.d/
acpid                  .depend.start          mountall-bootclean.sh  rsyslog
alsa-utils             .depend.stop           mountall.sh            saned
anacron                exim4                  mountdevsubfs.sh       screen-cleanup
asterisk               fancontrol             mountkernfs.sh         sendsigs
atd                    fuse                   mountnfs-bootclean.sh  single
avahi-daemon           gdm3                   mountnfs.sh            skeleton
binfmt-support         halt                   mountoverflowtmp       ssh
bluetooth              hdparm                 mtab.sh                stop-bootlogd
bootlogd               hostname.sh            networking             stop-bootlogd-single
bootlogs               hwclockfirst.sh        network-manager        sudo
bootmisc.sh            hwclock.sh             nfs-common             udev
checkfs.sh             ifupdown               portmap                udev-mtab
checkroot.sh           ifupdown-clean         pppd-dns               umountfs
console-cyrillic       isc-dhcp-server        procps                 umountnfs.sh
console-setup          kbd                    rc                     umountroot
cpufrequtils           kerneloops             rc.local               unattended-upgrades
cron                   keyboard-setup         rcS                    urandom
cups                   killprocs              README                 x11-common
dahdi                  lm-sensors             reboot
dbus                   loadcpufreq            rmnologin
.depend.boot           module-init-tools      rsync
/dev/pts/2
08:07:12
#~

/dev/pts/1
08:07:12
#~

/dev/pts/2
08:07:18
#apt-get strace
E: Неверная операция strace
/dev/pts/1
08:07:18
#apt-get strace
E: Неверная операция strace
/dev/pts/2
08:12:47
#apt-get install strace
Чтение списков пакетов... Готово
Построение дерева зависимостей
Чтение информации о состоянии... Готово
НОВЫЕ пакеты, которые будут установлены:
  strace
обновлено 0, установлено 1 новых пакетов, для удаления отмечено 0 пакетов, и 4 пакетов не обновлено.
Необходимо скачать 140 kБ архивов.
После данной операции, объём занятого дискового пространства возрастёт на 406 kB.
Получено:1 http://10.0.35.1/debian/ squeeze/main strace amd64 4.5.20-2 [140 kB]
Получено 140 kБ за 0с (7.023 kБ/c)
Выбор ранее не выбранного пакета strace.
(Чтение базы данных ... на данный момент установлено 130669 файлов и каталогов.)
Распаковывается пакет strace (из файла .../strace_4.5.20-2_amd64.deb)...
Обрабатываются триггеры для man-db ...
Настраивается пакет strace (4.5.20-2) ...
/dev/pts/1
08:12:47
#apt-get install strace
Чтение списков пакетов... Готово
Построение дерева зависимостей
Чтение информации о состоянии... Готово
НОВЫЕ пакеты, которые будут установлены:
  strace
обновлено 0, установлено 1 новых пакетов, для удаления отмечено 0 пакетов, и 4 пакетов не обновлено.
Необходимо скачать 140 kБ архивов.
После данной операции, объём занятого дискового пространства возрастёт на 406 kB.
Получено:1 http://10.0.35.1/debian/ squeeze/main strace amd64 4.5.20-2 [140 kB]
Получено 140 kБ за 0с (7.023 kБ/c)
Выбор ранее не выбранного пакета strace.
(Чтение базы данных ... на данный момент установлено 130669 файлов и каталогов.)
Распаковывается пакет strace (из файла .../strace_4.5.20-2_amd64.deb)...
Обрабатываются триггеры для man-db ...
Настраивается пакет strace (4.5.20-2) ...
/dev/pts/2
08:12:55
#strace route
execve("/sbin/route", ["route"], [/* 22 vars */]) = 0
brk(0)                                  = 0x168b000
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f09b3935000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=63057, ...}) = 0
mmap(NULL, 63057, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f09b3925000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
...
read(4,
 "-15 Timeout reached\n", 4096)  = 20
close(4)                                = 0
munmap(0x7f09b3932000, 4096)            = 0
write(1, "default         192.168.107.253 "..., 77default         192.168.107.253 0.0.0.0         UG    0      0        0 eth0
) = 77
read(3, "", 1024)                       = 0
close(3)                                = 0
munmap(0x7f09b3933000, 4096)            = 0
exit_group(0)                           = ?
/dev/pts/1
08:12:55
#strace route
execve("/sbin/route", ["route"], [/* 22 vars */]) = 0
brk(0)                                  = 0x168b000
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f09b3935000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=63057, ...}) = 0
mmap(NULL, 63057, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f09b3925000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
...
read(4,
 "-15 Timeout reached\n", 4096)  = 20
close(4)                                = 0
munmap(0x7f09b3932000, 4096)            = 0
write(1, "default         192.168.107.253 "..., 77default         192.168.107.253 0.0.0.0         UG    0      0        0 eth0
) = 77
read(3, "", 1024)                       = 0
close(3)                                = 0
munmap(0x7f09b3933000, 4096)            = 0
exit_group(0)                           = ?
/dev/pts/2
08:13:26
#strace -p
strace: option requires an argument -- 'p'
usage: strace [-dffhiqrtttTvVxx] [-a column] [-e expr] ... [-o file]
              [-p pid] ... [-s strsize] [-u username] [-E var=val] ...
              [command [arg ...]]
   or: strace -c -D [-e expr] ... [-O overhead] [-S sortby] [-E var=val] ...
              [command [arg ...]]
-c -- count time, calls, and errors for each syscall and report summary
-f -- follow forks, -ff -- with output into separate files
-F -- attempt to follow vforks, -h -- print help message
-i -- print instruction pointer at time of syscall
...
   options: trace, abbrev, verbose, raw, signal, read, or write
-o file -- send trace output to FILE instead of stderr
-O overhead -- set overhead for tracing syscalls to OVERHEAD usecs
-p pid -- trace process with process id PID, may be repeated
-D -- run tracer process as a detached grandchild, not as parent
-s strsize -- limit length of print strings to STRSIZE chars (default 32)
-S sortby -- sort syscall counts by: time, calls, name, nothing (default time)
-u username -- run command as username handling setuid and/or setgid
-E var=val -- put var=val in the environment for command
-E var -- remove var from the environment for command
/dev/pts/1
08:13:26
#strace -p
strace: option requires an argument -- 'p'
usage: strace [-dffhiqrtttTvVxx] [-a column] [-e expr] ... [-o file]
              [-p pid] ... [-s strsize] [-u username] [-E var=val] ...
              [command [arg ...]]
   or: strace -c -D [-e expr] ... [-O overhead] [-S sortby] [-E var=val] ...
              [command [arg ...]]
-c -- count time, calls, and errors for each syscall and report summary
-f -- follow forks, -ff -- with output into separate files
-F -- attempt to follow vforks, -h -- print help message
-i -- print instruction pointer at time of syscall
...
   options: trace, abbrev, verbose, raw, signal, read, or write
-o file -- send trace output to FILE instead of stderr
-O overhead -- set overhead for tracing syscalls to OVERHEAD usecs
-p pid -- trace process with process id PID, may be repeated
-D -- run tracer process as a detached grandchild, not as parent
-s strsize -- limit length of print strings to STRSIZE chars (default 32)
-S sortby -- sort syscall counts by: time, calls, name, nothing (default time)
-u username -- run command as username handling setuid and/or setgid
-E var=val -- put var=val in the environment for command
-E var -- remove var from the environment for command
/dev/pts/2
08:13:41
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-7959.6988.20418	2011-06-21 09:15:24.000000000 +0300
+++ /etc/asterisk/sip.conf	2011-06-21 09:17:10.000000000 +0300
@@ -11,9 +11,11 @@
 secret=password
 host=dynamic
 user=2303
+callerid="VOIP Phone <2303>"
 
 [2304]
 type=friend
 secret=password
 host=dynamic
 user=2304
+callerid="Softphone <2304>"
/dev/pts/1
08:13:41
#vim /etc/asterisk/sip.conf
/dev/pts/2
08:17:10
#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)
Verbosity is at least 3
linux7*CLI> sip reload
 Reloading SIP
  == Parsing '/etc/asterisk/sip.conf':   == Found
  == Parsing '/etc/asterisk/users.conf':   == Found
  == Parsing '/etc/asterisk/sip_notify.conf':   == Found
linux7*CLI> exit
Executing last minute cleanups
/dev/pts/1
08:17:10
#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)
Verbosity is at least 3
linux7*CLI> sip reload
 Reloading SIP
  == Parsing '/etc/asterisk/sip.conf':   == Found
  == Parsing '/etc/asterisk/users.conf':   == Found
  == Parsing '/etc/asterisk/sip_notify.conf':   == Found
linux7*CLI> exit
Executing last minute cleanups
/dev/pts/2
08:17: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)
...
    -- Called 2303
    -- SIP/2303-00000007 is ringing
[Jun 21 09:18:30] WARNING[12135]: chan_sip.c:3912 retrans_pkt: Maximum retries exceeded on transmission 001bd40b-c492000d-05d07ecf-2ad2558d@192.168.107.200 for seqno 102 (Critical Response) -- See doc/sip-retransmit.txt.
    -- Nobody picked up in 10000 ms
    -- Executing [2303@default:2] Playback("SIP/2304-00000006", "demo-congrats") in new stack
    -- <SIP/2304-00000006> Playing 'demo-congrats.gsm' (language 'en')
  == Spawn extension (default, 2303, 2) exited non-zero on 'SIP/2304-00000006'
[Jun 21 09:19:18] NOTICE[12135]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2304
linux7*CLI> exit
Executing last minute cleanups
/dev/pts/1
08:17: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)
...
    -- Called 2303
    -- SIP/2303-00000007 is ringing
[Jun 21 09:18:30] WARNING[12135]: chan_sip.c:3912 retrans_pkt: Maximum retries exceeded on transmission 001bd40b-c492000d-05d07ecf-2ad2558d@192.168.107.200 for seqno 102 (Critical Response) -- See doc/sip-retransmit.txt.
    -- Nobody picked up in 10000 ms
    -- Executing [2303@default:2] Playback("SIP/2304-00000006", "demo-congrats") in new stack
    -- <SIP/2304-00000006> Playing 'demo-congrats.gsm' (language 'en')
  == Spawn extension (default, 2303, 2) exited non-zero on 'SIP/2304-00000006'
[Jun 21 09:19:18] NOTICE[12135]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2304
linux7*CLI> exit
Executing last minute cleanups
/dev/pts/2
08:22:54
#vim /etc/asterisk/extensions.conf
/dev/pts/1
08:22:54
#vim /etc/asterisk/extensions.conf
/dev/pts/2
08:26:27
#~
PING 192.168.108.1 (192.168.108.1) 56(84) bytes of data.
64 bytes from 192.168.108.1: icmp_req=1 ttl=63 time=0.791 ms
64 bytes from 192.168.108.1: icmp_req=2 ttl=63 time=0.620 ms
^C
--- 192.168.108.1 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 0.620/0.705/0.791/0.089 ms
/dev/pts/1
08:26:27
#~
PING 192.168.108.1 (192.168.108.1) 56(84) bytes of data.
64 bytes from 192.168.108.1: icmp_req=1 ttl=63 time=0.791 ms
64 bytes from 192.168.108.1: icmp_req=2 ttl=63 time=0.620 ms
^C
--- 192.168.108.1 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 0.620/0.705/0.791/0.089 ms
/dev/pts/2
08:34:04
#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)
...
linux7*CLI> sip reload
 Reloading SIP
linux7*CLI> sip show peers
Name/username              Host            Dyn Nat ACL Port     Status
2303/2303                  192.168.107.200  D          5060     Unmonitored
2304/2304                  192.168.107.2    D          14684    Unmonitored
kiev/lvov                  192.168.108.1    D          5060     Unmonitored
3 sip peers [Monitored: 0 online, 0 offline Unmonitored: 3 online, 0 offline]
linux7*CLI> exit
Executing last minute cleanups
/dev/pts/1
08:34:04
#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)
...
linux7*CLI> sip reload
 Reloading SIP
linux7*CLI> sip show peers
Name/username              Host            Dyn Nat ACL Port     Status
2303/2303                  192.168.107.200  D          5060     Unmonitored
2304/2304                  192.168.107.2    D          14684    Unmonitored
kiev/lvov                  192.168.108.1    D          5060     Unmonitored
3 sip peers [Monitored: 0 online, 0 offline Unmonitored: 3 online, 0 offline]
linux7*CLI> exit
Executing last minute cleanups
/dev/pts/2
08:36:02
#vim /etc/asterisk/sip.conf
/dev/pts/1
08:36:02
#vim /etc/asterisk/sip.conf
/dev/pts/2
08:36:52
#vim /etc/asterisk/extensions.conf
/dev/pts/1
08:36:52
#vim /etc/asterisk/extensions.conf
/dev/pts/2
08:37:44
#[ ]
[       ]
type=friend
secret=password
host=dynamic
user=2303
callerid="VOIP Phone <2303>"
[2303]
[2303]
[2304]
type=friend
...
[kiev]
[kiev]
type=friend
~
~
~
~
~
~
-- ВСТАВ                                                               26,1         Весь
/dev/pts/1
08:37:44
#[ ]
[       ]
type=friend
secret=password
host=dynamic
user=2303
callerid="VOIP Phone <2303>"
[2303]
[2303]
[2304]
type=friend
...
[kiev]
[kiev]
type=friend
~
~
~
~
~
~
-- ВСТАВ                                                               26,1         Весь
/dev/pts/2
08:41:55
#vim /etc/asterisk/sip.conf
/dev/pts/1
08:41:55
#vim /etc/asterisk/sip.conf
/dev/pts/2
08:45:47
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-7959.3427.6525	2011-06-21 09:45:53.000000000 +0300
+++ /etc/asterisk/extensions.conf	2011-06-21 09:47:53.000000000 +0300
@@ -7,3 +7,6 @@
 exten => _23XX,n,Playback(demo-congrats)
 exten => 2310,1,Dila(SIP/2303&SIP/2304,10)
 
+;-------------------
+
+exten => _24XX,1,Dial(SIP/lvov/${EXTEN},10
/dev/pts/1
08:45:47
#vim /etc/asterisk/extensions.conf
/dev/pts/2
08:48:28
#[ ]
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)
...
    -- SIP/2304-0000000e answered SIP/lvov-0000000d
    -- Native bridging SIP/lvov-0000000d and SIP/2304-0000000e
[Jun 21 09:49:31] WARNING[12135]: chan_sip.c:18087 handle_response_invite: just did sched_add waitid(296) for sip_reinvite_retry for dialog 5b5fd90e20daaa43283e31de5223dc7e@192.168.108.1 in handle_response_invite
  == Spawn extension (default, 2304, 1) exited non-zero on 'SIP/lvov-0000000d'
  == Using SIP RTP CoS mark 5
[Jun 21 09:50:18] NOTICE[12135]: chan_sip.c:20281 handle_request_invite: Call from '2303' to extension '2402' rejected because extension not found in context 'default'.
  == Using SIP RTP CoS mark 5
[Jun 21 09:50:25] NOTICE[12135]: chan_sip.c:20281 handle_request_invite: Call from '2303' to extension '2401' rejected because extension not found in context 'default'.
linux7*CLI> exit
Executing last minute cleanups
/dev/pts/1
08:48:28
#[ ]
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)
...
    -- SIP/2304-0000000e answered SIP/lvov-0000000d
    -- Native bridging SIP/lvov-0000000d and SIP/2304-0000000e
[Jun 21 09:49:31] WARNING[12135]: chan_sip.c:18087 handle_response_invite: just did sched_add waitid(296) for sip_reinvite_retry for dialog 5b5fd90e20daaa43283e31de5223dc7e@192.168.108.1 in handle_response_invite
  == Spawn extension (default, 2304, 1) exited non-zero on 'SIP/lvov-0000000d'
  == Using SIP RTP CoS mark 5
[Jun 21 09:50:18] NOTICE[12135]: chan_sip.c:20281 handle_request_invite: Call from '2303' to extension '2402' rejected because extension not found in context 'default'.
  == Using SIP RTP CoS mark 5
[Jun 21 09:50:25] NOTICE[12135]: chan_sip.c:20281 handle_request_invite: Call from '2303' to extension '2401' rejected because extension not found in context 'default'.
linux7*CLI> exit
Executing last minute cleanups
/dev/pts/2
08:50:33
#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)
...
    -- Executing [2401@default:1] Dial("SIP/2303-0000000f", "SIP/lvov/2401,10") in new stack
  == Using SIP RTP CoS mark 5
    -- Called lvov/2401
    -- SIP/lvov-00000010 is ringing
    -- SIP/lvov-00000010 answered SIP/2303-0000000f
    -- Native bridging SIP/2303-0000000f and SIP/lvov-00000010
[Jun 21 09:51:09] WARNING[12135]: chan_sip.c:18087 handle_response_invite: just did sched_add waitid(351) for sip_reinvite_retry for dialog 5d65784a3e52ea780de21dc213ccb657@192.168.107.1 in handle_response_invite
  == Spawn extension (default, 2401, 1) exited non-zero on 'SIP/2303-0000000f'
linux7*CLI> exit
Executing last minute cleanups
/dev/pts/1
08:50:33
#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)
...
    -- Executing [2401@default:1] Dial("SIP/2303-0000000f", "SIP/lvov/2401,10") in new stack
  == Using SIP RTP CoS mark 5
    -- Called lvov/2401
    -- SIP/lvov-00000010 is ringing
    -- SIP/lvov-00000010 answered SIP/2303-0000000f
    -- Native bridging SIP/2303-0000000f and SIP/lvov-00000010
[Jun 21 09:51:09] WARNING[12135]: chan_sip.c:18087 handle_response_invite: just did sched_add waitid(351) for sip_reinvite_retry for dialog 5d65784a3e52ea780de21dc213ccb657@192.168.107.1 in handle_response_invite
  == Spawn extension (default, 2401, 1) exited non-zero on 'SIP/2303-0000000f'
linux7*CLI> exit
Executing last minute cleanups
/dev/pts/2
08:51:34
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-7959.29306.21781	2011-06-21 09:51:38.000000000 +0300
+++ /etc/asterisk/sip.conf	2011-06-21 09:51:57.000000000 +0300
@@ -27,3 +27,4 @@
 secret=password
 host=dynamic
 username=kiev
+canreinvite=no
/dev/pts/1
08:51:34
#vim /etc/asterisk/sip.conf
прошло 62 минуты
/dev/pts/2
09:54:02
#vim /etc/asterisk/extensions.conf
/dev/pts/1
09:54:02
#vim /etc/asterisk/extensions.conf
/dev/pts/2
09:54:57
#[gr4]
host=dynamic
user=2303
callerid="VOIP Phone <2303>"
[2303]
[2303]
type=friend
"/etc/asterisk/sip.conf" 30L, 511C
secret=password
context=gr2
[2304]ynamic
...
[lvov]
[lvov]
type=friend
secret=password
context=gr4
~
~
~
~
"sip.conf" 33L, 547C записано
/dev/pts/1
09:54:57
#[gr4]
host=dynamic
user=2303
callerid="VOIP Phone <2303>"
[2303]
[2303]
type=friend
"/etc/asterisk/sip.conf" 30L, 511C
secret=password
context=gr2
[2304]ynamic
...
[lvov]
[lvov]
type=friend
secret=password
context=gr4
~
~
~
~
"sip.conf" 33L, 547C записано
/dev/pts/2
09:55:52
#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)
...
  == Parsing '/etc/asterisk/cdr_adaptive_odbc.conf':   == Found
    -- Reloading module 'chan_mgcp.so' (Media Gateway Control Protocol (MGCP))
  == Parsing '/etc/asterisk/sip_notify.conf':     -- Reloading module 'chan_gtalk.so' (Gtalk Channel Driver)
    -- Reloading module 'codec_speex.so' (Speex Coder/Decoder)
  == Found
    -- Reloading module 'res_adsi.so' (ADSI Resource)
    -- Reloading module 'codec_adpcm.so' (Adaptive Differential PCM Coder/Decoder)
 Reloading MGCP
linux7*CLI> exit
Executing last minute cleanups
/dev/pts/1
09:55:52
#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)
...
  == Parsing '/etc/asterisk/cdr_adaptive_odbc.conf':   == Found
    -- Reloading module 'chan_mgcp.so' (Media Gateway Control Protocol (MGCP))
  == Parsing '/etc/asterisk/sip_notify.conf':     -- Reloading module 'chan_gtalk.so' (Gtalk Channel Driver)
    -- Reloading module 'codec_speex.so' (Speex Coder/Decoder)
  == Found
    -- Reloading module 'res_adsi.so' (ADSI Resource)
    -- Reloading module 'codec_adpcm.so' (Adaptive Differential PCM Coder/Decoder)
 Reloading MGCP
linux7*CLI> exit
Executing last minute cleanups
/dev/pts/2
09:56:05
#vim /etc/asterisk/sip.conf
/dev/pts/1
09:56:05
#vim /etc/asterisk/sip.conf
/dev/pts/2
10:00:53
#[gr4]
"/etc/asterisk/sip.conf" 33L, 547C
type=friend
[2303]
[2303]=password
register => kiev:password@192.168.101.1/msk
[2303]ynamic
[2303]
[2303]304
callerid="Softphone <2304>"
[2304]
...
[msk]
type=friend
secret=password
[msk]
[msk]dynamic
[msk]
username=kiev
username=kiev
canreinvite=no
                                                                            19,0-1      Внизу
/dev/pts/1
10:00:53
#[gr4]
[general]
context=default
allowoverlap=no
udpbindaddr=0.0.0.0
tcpenable=no
tcpbindaddr=0.0.0.0
srvlookup=yes
register => kiev:password@192.168.108.1/lvov
[2303]
type=friend
...
[msk]
type=friend
secret=password
[msk]
[msk]dynamic
[msk]
username=kiev
username=kiev
canreinvite=no
                                                                            19,0-1      Внизу
/dev/pts/2
10:04:30
#allowoverlap=no
"/etc/asterisk/extensions.conf" 37L, 554C
[        ]
[gr1]    ]
include => internal
[local]
[local] => local
[gr2]    ]
[        ]
include => internal
[             ]
...
[gr3]
[gr2]
[gr2]de => internal
include => local
[gr3]de => national
[gr3]
include => international
[gr4]
[gr4]
[gr4]nsions.conf" 38L, 597C записано                                37,5      Наверху
/dev/pts/1
10:04:30
#allowoverlap=no
[default]
;------------------
[internal]
exten => 8000,1,Wait(1)
exten => 8000,1,Playback(demo-congrats)
"/etc/asterisk/extensions.conf" 37L, 554C
exten => _23XX,1,Dial(SIP/${EXTEN},10)
[xten => ]23XX,n,Playback(demo-congrats)
[        ]
exten => 2310,1,Dial(SIP/2303&SIP/2304.10)
...
[gr4]
[gr4]nsions.conf" 38L, 597C записано                                37,5      Наверху
include => national
[gr3]
include => internal
include => local
include => national
include => international
[gr4]
include => local
/dev/pts/2
10:06:10
#include => local
[2303]304
[2303]
callerid="Softphone <2304>"
context=gr1
[2304]
[2304]
type=friend
secret=password
host=dynamic
[lvov]me=kiev
...
context=gr4
[msk]
[msk]
[msk]
secret=password
host=dynamic
username=kiev
canreinvite=no
                                                                            41,14       Внизу
-- ВСТАВКА --                                                        42,1        Внизу
/dev/pts/1
10:06:10
#include => local
[general]
context=default
allowoverlap=no
udpbindaddr=0.0.0.0
tcpenable=no
tcpbindaddr=0.0.0.0
srvlookup=yes
"/etc/asterisk/sip.conf" 41L, 668C
[2303]
[2303]ynamic
...
-- ВСТАВКА --                                                        42,1        Внизу
[lvov]
type=friend
secret=password
host=dynamic
username=kiev
canreinvite=no
context=gr4
[msk]
type=friend
/dev/pts/2
10:09:36
#[ ]
[2303]304
[2303]
callerid="Softphone <2304>"
context=gr1
[2304]
[2304]
type=friend
secret=password
host=dynamic
[lvov]me=kiev
[lvov]
canreinvite=no
context=gr4
[msk]
[msk]
secret=password
host=dynamic
username=kiev
canreinvite=no
                                                                            41,14         80%
/dev/pts/1
10:09:36
#[ ]
[general]
context=default
allowoverlap=no
udpbindaddr=0.0.0.0
tcpenable=no
tcpbindaddr=0.0.0.0
srvlookup=yes
register => kiev:password@192.168.108.1/lvov
register => kiev:password@192.168.101.1/msk
"/etc/asterisk/sip.conf" 42L, 680C
...
username=kiev
canreinvite=no
                                                                            41,14         80%
secret=password
host=dynamic
username=kiev
canreinvite=no
context=gr4
[msk]
type=friend
/dev/pts/2
10:12:27
#[gr4]
context=gr1
[2304]
[2304]
type=friend
secret=password
host=dynamic
[lvov]me=kiev
[lvov]
canreinvite=no
context=gr4
[msk]
[msk]
secret=password
host=dynamic
username=kiev
canreinvite=no
context=gr3
                                                                            42,11       Внизу
         r4
~
"sip.conf" 42L, 680C записано
/dev/pts/1
10:12:27
#[gr4]
[general]
context=default
allowoverlap=no
udpbindaddr=0.0.0.0
tcpenable=no
tcpbindaddr=0.0.0.0
srvlookup=yes
register => kiev:password@192.168.108.1/lvov
register => kiev:password@192.168.101.1/msk
"/etc/asterisk/sip.conf" 42L, 680C
...
                                                                            42,11       Внизу
         r4
~
"sip.conf" 42L, 680C записано
host=dynamic
username=kiev
canreinvite=no
context=gr4
[msk]
type=friend
/dev/pts/2
10:12:48
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-7959.3244.5977	2011-06-21 11:12:50.000000000 +0300
+++ /etc/asterisk/extensions.conf	2011-06-21 11:14:56.000000000 +0300
@@ -15,7 +15,10 @@
 exten => _24XX,1,Dial(SIP/lvov/${EXTEN},10
 
 [international]
-exten => _11XX,1,Dial(SIP/msk/${EXTEN},10)
+exten => _1XXX,1,Dial(SIP/msk/${EXTEN},10)
+exten => _3XXX,1,Dial(SIP/msk/${EXTEN},10)
+exten => _21XX,1,Dial(SIP/msk/${EXTEN},10)
+exten => _22XX,1,Dial(SIP/msk/${EXTEN},10)
 
 ;-------------------
 
/dev/pts/1
10:12:48
#vim /etc/asterisk/extensions.conf
/dev/pts/2
10:15:12
#include => local
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)
Verbosity is at least 3
linux7*CLI> exit
Executing last minute cleanups
/dev/pts/1
10:15:12
#include => local
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)
Verbosity is at least 3
linux7*CLI> exit
Executing last minute cleanups
10:19:31
#vim /etc/asterisk/sip.conf
/dev/pts/2
10:19:31
#vim /etc/asterisk/sip.conf
10:20:34
#[2303]
[gr1]    ]
[        ]
include => internal
[             ]
[nclude => loc]l
[gr2]
include => internal
[gr1]
[gr1]de => local
include => national
[gr2]
[gr2]
[gr3]
[gr3]de => internal
[gr3]
include => local
include => international
[gr4]
[gr4]
include => international
include => local                                                            42,1          83%
/dev/pts/1
10:20:34
#[2303]
[local]
[local]-------------
[gr1]    ]
[        ]
include => internal
[             ]
[nclude => loc]l
[gr2]
include => internal
[gr1]
...
[gr3]
[gr3]de => internal
[gr3]
include => local
include => international
                                                                            39,0-1        33%
[gr4]
[gr4]
include => international
include => local                                                            42,1          83%
/dev/pts/2
10:23:10
#vim /etc/asterisk/extensions.conf
/dev/pts/1
10:23:10
#vim /etc/asterisk/extensions.conf
/dev/pts/2
10:24:02
#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)
Verbosity is at least 3
linux7*CLI> sip show peers
Name/username              Host            Dyn Nat ACL Port     Status
2303/2303                  192.168.107.200  D          5060     Unmonitored
2304/2304                  192.168.107.2    D          14684    Unmonitored
lvov/kiev                  192.168.108.1    D          5060     Unmonitored
msk/kiev                   192.168.101.1    D          5060     Unmonitored
4 sip peers [Monitored: 0 online, 0 offline Unmonitored: 4 online, 0 offline]
linux7*CLI> exit
Executing last minute cleanups
/dev/pts/1
10:24:02
#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)
Verbosity is at least 3
linux7*CLI> sip show peers
Name/username              Host            Dyn Nat ACL Port     Status
2303/2303                  192.168.107.200  D          5060     Unmonitored
2304/2304                  192.168.107.2    D          14684    Unmonitored
lvov/kiev                  192.168.108.1    D          5060     Unmonitored
msk/kiev                   192.168.101.1    D          5060     Unmonitored
4 sip peers [Monitored: 0 online, 0 offline Unmonitored: 4 online, 0 offline]
linux7*CLI> exit
Executing last minute cleanups
/dev/pts/2
10:24:17
#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)
Verbosity is at least 3
linux7*CLI> sip show peers
Name/username              Host            Dyn Nat ACL Port     Status
2303/2303                  192.168.107.200  D          5060     Unmonitored
2304/2304                  192.168.107.2    D          34730    Unmonitored
lvov/kiev                  192.168.108.1    D          5060     Unmonitored
msk/kiev                   192.168.101.1    D          5060     Unmonitored
4 sip peers [Monitored: 0 online, 0 offline Unmonitored: 4 online, 0 offline]
[Jun 21 12:03:41] NOTICE[12135]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2304
linux7*CLI> exit
Executing last minute cleanups
/dev/pts/1
10:24:17
#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)
Verbosity is at least 3
linux7*CLI> sip show peers
Name/username              Host            Dyn Nat ACL Port     Status
2303/2303                  192.168.107.200  D          5060     Unmonitored
2304/2304                  192.168.107.2    D          34730    Unmonitored
lvov/kiev                  192.168.108.1    D          5060     Unmonitored
msk/kiev                   192.168.101.1    D          5060     Unmonitored
4 sip peers [Monitored: 0 online, 0 offline Unmonitored: 4 online, 0 offline]
[Jun 21 12:03:41] NOTICE[12135]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2304
linux7*CLI> exit
Executing last minute cleanups
/dev/pts/4
10:29:09
#vim /etc/asterisk/ext
10:29:09
#vim /etc/asterisk/extensions.conf
прошло 34 минуты
/dev/pts/2
11:03:45
#apt-get install bind9
Чтение списков пакетов... Готово
Построение дерева зависимостей
Чтение информации о состоянии... Готово
Будут установлены следующие дополнительные пакеты:
  bind9utils
Предлагаемые пакеты:
  bind9-doc resolvconf ufw
НОВЫЕ пакеты, которые будут установлены:
  bind9 bind9utils
обновлено 0, установлено 2 новых пакетов, для удаления отмечено 0 пакетов, и 4 пакетов не обновлено.
...
Настраивается пакет bind9utils (1:9.7.3.dfsg-1~squeeze2) ...
Настраивается пакет bind9 (1:9.7.3.dfsg-1~squeeze2) ...
Добавляется группа «bind» (GID 118) ...
Готово.
Добавляется системный пользователь «bind» (UID 111) ...
Добавляется новый пользователь «bind» (UID 111) в группу «bind» ...
Не создаётся домашний каталог «/var/cache/bind».
wrote key file "/etc/bind/rndc.key"
#
Starting domain name service...: bind9.
/dev/pts/1
11:03:45
#apt-get install bind9
Чтение списков пакетов... Готово
Построение дерева зависимостей
Чтение информации о состоянии... Готово
Будут установлены следующие дополнительные пакеты:
  bind9utils
Предлагаемые пакеты:
  bind9-doc resolvconf ufw
НОВЫЕ пакеты, которые будут установлены:
  bind9 bind9utils
обновлено 0, установлено 2 новых пакетов, для удаления отмечено 0 пакетов, и 4 пакетов не обновлено.
...
Настраивается пакет bind9utils (1:9.7.3.dfsg-1~squeeze2) ...
Настраивается пакет bind9 (1:9.7.3.dfsg-1~squeeze2) ...
Добавляется группа «bind» (GID 118) ...
Готово.
Добавляется системный пользователь «bind» (UID 111) ...
Добавляется новый пользователь «bind» (UID 111) в группу «bind» ...
Не создаётся домашний каталог «/var/cache/bind».
wrote key file "/etc/bind/rndc.key"
#
Starting domain name service...: bind9.
прошло 12 минут
/dev/pts/2
11:16:35
#vim /etc/bind9/named.conf
/dev/pts/1
11:16:35
#vim /etc/bind9/named.conf
/dev/pts/2
11:17:32
#~

/dev/pts/1
11:17:32
#~

/dev/pts/2
11:17:52
#~
        // If there is a firewall between you and nameservers you want
        // to talk to, you may need to fix the firewall to allow multiple
        // ports to talk.  See http://www.kb.cert.org/vuls/id/800113
        // If your ISP provided one or more IP addresses for stable
        // nameservers, you probably want to use them as forwarders.
        // Uncomment the following block, and insert the addresses replacing
        // the all-0's placeholder.
        forwarders {
                192.168.15.253
        //      0.0.0.0;
...
~
~
~
~
~
~
~
~
~
"/etc/bind/named.conf.options" 21L, 584C записано
/dev/pts/1
11:17:52
#~
        // If there is a firewall between you and nameservers you want
        // to talk to, you may need to fix the firewall to allow multiple
        // ports to talk.  See http://www.kb.cert.org/vuls/id/800113
        // If your ISP provided one or more IP addresses for stable
        // nameservers, you probably want to use them as forwarders.
        // Uncomment the following block, and insert the addresses replacing
        // the all-0's placeholder.
        forwarders {
                192.168.15.253
        //      0.0.0.0;
...
~
~
~
~
~
~
~
~
~
"/etc/bind/named.conf.options" 21L, 584C записано
/dev/pts/2
11:20:11
#vim /etc/bind/named.conf.options
/dev/pts/1
11:20:11
#vim /etc/bind/named.conf.options
/dev/pts/2
11:21:14
#~
; <<>> DiG 9.7.3 <<>> @192.168.15.253 linux1.unix.nt
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 28303
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1
;; QUESTION SECTION:
;linux1.unix.nt.                        IN      A
;; ANSWER SECTION:
linux1.unix.nt.         9600    IN      A       192.168.15.1
;; AUTHORITY SECTION:
unix.nt.                9600    IN      NS      ns.unix.nt.
;; ADDITIONAL SECTION:
ns.unix.nt.             9600    IN      A       192.168.15.253
;; Query time: 0 msec
;; SERVER: 192.168.15.253#53(192.168.15.253)
;; WHEN: Tue Jun 21 12:21:30 2011
;; MSG SIZE  rcvd: 81
/dev/pts/1
11:21:14
#~
; <<>> DiG 9.7.3 <<>> @192.168.15.253 linux1.unix.nt
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 28303
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1
;; QUESTION SECTION:
;linux1.unix.nt.                        IN      A
;; ANSWER SECTION:
linux1.unix.nt.         9600    IN      A       192.168.15.1
;; AUTHORITY SECTION:
unix.nt.                9600    IN      NS      ns.unix.nt.
;; ADDITIONAL SECTION:
ns.unix.nt.             9600    IN      A       192.168.15.253
;; Query time: 0 msec
;; SERVER: 192.168.15.253#53(192.168.15.253)
;; WHEN: Tue Jun 21 12:21:30 2011
;; MSG SIZE  rcvd: 81
/dev/pts/2
11:21:30
#cat /etc/resolf.conf
cat: /etc/resolf.conf: Нет такого файла или каталога
/dev/pts/1
11:21:30
#cat /etc/resolf.conf
cat: /etc/resolf.conf: Нет такого файла или каталога
/dev/pts/2
11:21:53
#cat /etc/resolv.conf
search unix.nt
nameserver 192.168.15.253
/dev/pts/1
11:21:53
#cat /etc/resolv.conf
search unix.nt
nameserver 192.168.15.253
11:23:26
#host ya.ru
ya.ru has address 93.158.134.3
ya.ru has address 93.158.134.203
ya.ru has address 213.180.204.3
ya.ru has address 77.88.21.3
ya.ru has address 87.250.250.3
ya.ru has address 87.250.250.203
ya.ru has address 87.250.251.3
ya.ru mail is handled by 10 mx.yandex.ru.
/dev/pts/2
11:23:26
#host ya.ru
ya.ru has address 93.158.134.3
ya.ru has address 93.158.134.203
ya.ru has address 213.180.204.3
ya.ru has address 77.88.21.3
ya.ru has address 87.250.250.3
ya.ru has address 87.250.250.203
ya.ru has address 87.250.251.3
ya.ru mail is handled by 10 mx.yandex.ru.
11:23:32
#vim /etc/bind/db.kiev.unix.nt
--- /dev/null	2011-06-20 11:55:56.325714881 +0300
+++ /etc/bind/db.kiev.unix.nt	2011-06-21 12:39:05.000000000 +0300
@@ -0,0 +1,8 @@
+@	SOA linux7.unix.nt. root 1  9600 9600 9600 9600
+	NS linux7.unix.nt.
+	
+	A 192.168.107.1
+
+asterisk A 192.168.107.1
+
+
/dev/pts/1
11:23:32
#vim /etc/bind/db.kiev.unix.nt

Файлы

  • /etc/asterisk/extensions.conf
  • /etc/resolv.conf
  • /etc/asterisk/extensions.conf
    >
    [default]
    exten => 8000,1,Playback(demo-congrats)
    exten => _23XX,1,Dial(SIP/${EXTEN},10)
    exten => _23XX,n,Playback(demo-congrats)
    
    /etc/resolv.conf
    >
    search unix.nt
    nameserver 192.168.15.253
    

    Статистика

    Время первой команды журнала15:40:54 2011- 6-20
    Время последней команды журнала11:23:32 2011- 6-21
    Количество командных строк в журнале101
    Процент команд с ненулевым кодом завершения, %17.82
    Процент синтаксически неверно набранных команд, % 0.00
    Суммарное время работы с терминалом *, час 1.74
    Количество командных строк в единицу времени, команда/мин 0.97
    Частота использования команд
    vim32|==============================| 30.48%
    asterisk14|=============| 13.33%
    cat12|===========| 11.43%
    ~10|=========| 9.52%
    [6|=====| 5.71%
    apt-get6|=====| 5.71%
    [gr4]6|=====| 5.71%
    local4|===| 3.81%
    include4|===| 3.81%
    strace4|===| 3.81%
    host2|=| 1.90%
    [2303]2|=| 1.90%
    allowoverlap=no2|=| 1.90%
    rm1|| 0.95%
    ____
    *) Интервалы неактивности длительностью 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$