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

Содержание

Журнал

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

/dev/pts/2
14:01:39
#l3-agent
l3-agent is already running: pid=3902; pidfile=/root/.lilalo/l3-agent.pid
/dev/pts/3
14:01:39
#l3-agent
l3-agent is already running: pid=3902; pidfile=/root/.lilalo/l3-agent.pid
/dev/pts/2
14:01:47
#date
Пнд Июн 27 16:06:09 MSD 2011
/dev/pts/3
14:01:47
#date
Пнд Июн 27 16:06:09 MSD 2011
/dev/pts/2
14:06:09
#apt-get install asterisk
Настройка пакета
 ┌──────────────────────┤ Настраивается пакет libvpb0 ├──────────────────────┐
 │ Здесь задаётся код региона вашей телефонной системы (например, 61 --      │
 │ Австралия, 7 -- Россия). Он используется для настройки региональных       │
 │ стандартов по умолчанию, которые должно соблюдать оборудование телефонии  │
 │ Voicetronix.                                                              │
 │                                                                           │
 │ Телефонный код, согласно ITU-T:                                           │
 │                                                                           │
 │ 7________________________________________________________________________ │
...
Настраивается пакет unixodbc (2.2.14p2-1) ...
Настраивается пакет asterisk (1:1.6.2.9-2+squeeze2) ...
Adding system user for Asterisk
Добавляется пользователь «asterisk» в группу «dialout» ...
Добавление пользователя asterisk в группу dialout
Готово.
Добавляется пользователь «asterisk» в группу «audio» ...
Добавление пользователя asterisk в группу audio
Готово.
Starting Asterisk PBX: asterisk.
/dev/pts/3
14:06:09
#apt-get install asterisk
Чтение списков пакетов... Готово
Построение дерева зависимостей
Чтение информации о состоянии... Готово
Будут установлены следующие дополнительные пакеты:
  asterisk-config asterisk-core-sounds-en-gsm autopoint dahdi dahdi-linux
  debhelper fancontrol freetds-common fxload gettext git html2text
  intltool-debian libc-client2007e libcorosync4 libcurl3 liberror-perl
Настройка пакета
 ┌──────────────────────┤ Настраивается пакет libvpb0 ├──────────────────────┐
 │ Здесь задаётся код региона вашей телефонной системы (например, 61 --      │
...
Настраивается пакет unixodbc (2.2.14p2-1) ...
Настраивается пакет asterisk (1:1.6.2.9-2+squeeze2) ...
Adding system user for Asterisk
Добавляется пользователь «asterisk» в группу «dialout» ...
Добавление пользователя asterisk в группу dialout
Готово.
Добавляется пользователь «asterisk» в группу «audio» ...
Добавление пользователя asterisk в группу audio
Готово.
Starting Asterisk PBX: asterisk.
/dev/pts/0
14:10:53
#apt-get install elinks
Чтение списков пакетов... Готово
Построение дерева зависимостей
Чтение информации о состоянии... Готово
Будут установлены следующие дополнительные пакеты:
  elinks-data libfsplib0 liblua50 liblualib50 libmozjs2d libreadline5
  libruby1.8 libtre5
Предлагаемые пакеты:
  elinks-doc tre-agrep
НОВЫЕ пакеты, которые будут установлены:
  elinks elinks-data libfsplib0 liblua50 liblualib50 libmozjs2d libreadline5
...
Настраивается пакет libfsplib0 (0.11-1) ...
Настраивается пакет liblua50 (5.0.3-4) ...
Настраивается пакет liblualib50 (5.0.3-4) ...
Настраивается пакет libmozjs2d (1.9.1.16-7) ...
Настраивается пакет libreadline5 (5.2-7) ...
Настраивается пакет libruby1.8 (1.8.7.302-2squeeze1) ...
Настраивается пакет libtre5 (0.8.0-2) ...
Настраивается пакет elinks-data (0.12~pre5-2) ...
Настраивается пакет elinks (0.12~pre5-2) ...
Обрабатываются триггеры для menu ...
/dev/pts/5
14:10:53
#apt-get install elinks
Чтение списков пакетов... Готово
Построение дерева зависимостей
Чтение информации о состоянии... Готово
Будут установлены следующие дополнительные пакеты:
  elinks-data libfsplib0 liblua50 liblualib50 libmozjs2d libreadline5
  libruby1.8 libtre5
Предлагаемые пакеты:
  elinks-doc tre-agrep
НОВЫЕ пакеты, которые будут установлены:
  elinks elinks-data libfsplib0 liblua50 liblualib50 libmozjs2d libreadline5
...
Настраивается пакет libfsplib0 (0.11-1) ...
Настраивается пакет liblua50 (5.0.3-4) ...
Настраивается пакет liblualib50 (5.0.3-4) ...
Настраивается пакет libmozjs2d (1.9.1.16-7) ...
Настраивается пакет libreadline5 (5.2-7) ...
Настраивается пакет libruby1.8 (1.8.7.302-2squeeze1) ...
Настраивается пакет libtre5 (0.8.0-2) ...
Настраивается пакет elinks-data (0.12~pre5-2) ...
Настраивается пакет elinks (0.12~pre5-2) ...
Обрабатываются триггеры для menu ...
прошло 12 минут
/dev/pts/2
14:23:15
#apt-cache search asterisk
asterisk-mobile - bluetooth mobile devices support for Asterisk
asterisk-mp3 - MP3 format support (format_mp3) for the Asterisk PBX
asterisk-mysql - MySQL support for the Asterisk PBX (cdr mainly)
asterisk-ooh323c - H.323 protocol support for Asterisk (ooh323c stack)
asterisk-chan-capi - Common ISDN API 2.0 implementation for Asterisk
asterisk-core-sounds-en-g722 - asterisk PBX sound files - English/g722
asterisk-core-sounds-en-gsm - asterisk PBX sound files - English/gsm
asterisk-core-sounds-en-wav - asterisk PBX sound files - English/wav
asterisk-core-sounds-es-g722 - asterisk PBX sound files - Spanish/g722
asterisk-core-sounds-es-gsm - asterisk PBX sound files - Spanish/gsm
...
dahdi-linux - DAHDI telephony interface - Linux userspace parts
dahdi-source - DAHDI telephony interface - source code for kernel driver
dahdi - utilities for using the DAHDI kernel modules
iaxmodem - software modem with IAX2 connectivity
libasterisk-agi-perl - Collections of Perl modules to be used with Asterisk PBX AGI
libnetsds-perl - Service Delivery Suite framework
op-panel - switchboard type application for the Asterisk PBX
libopenr2-3 - MFC/R2 (telephony) call setup library
asterisk - телефонная станция для учреждений (PBX)
python-asterisk - управление Asterisk из сценариев Python
/dev/pts/3
14:23:15
#apt-cache search asterisk
asterisk-mobile - bluetooth mobile devices support for Asterisk
asterisk-mp3 - MP3 format support (format_mp3) for the Asterisk PBX
asterisk-mysql - MySQL support for the Asterisk PBX (cdr mainly)
asterisk-ooh323c - H.323 protocol support for Asterisk (ooh323c stack)
asterisk-chan-capi - Common ISDN API 2.0 implementation for Asterisk
asterisk-core-sounds-en-g722 - asterisk PBX sound files - English/g722
asterisk-core-sounds-en-gsm - asterisk PBX sound files - English/gsm
asterisk-core-sounds-en-wav - asterisk PBX sound files - English/wav
asterisk-core-sounds-es-g722 - asterisk PBX sound files - Spanish/g722
asterisk-core-sounds-es-gsm - asterisk PBX sound files - Spanish/gsm
...
dahdi-linux - DAHDI telephony interface - Linux userspace parts
dahdi-source - DAHDI telephony interface - source code for kernel driver
dahdi - utilities for using the DAHDI kernel modules
iaxmodem - software modem with IAX2 connectivity
libasterisk-agi-perl - Collections of Perl modules to be used with Asterisk PBX AGI
libnetsds-perl - Service Delivery Suite framework
op-panel - switchboard type application for the Asterisk PBX
libopenr2-3 - MFC/R2 (telephony) call setup library
asterisk - телефонная станция для учреждений (PBX)
python-asterisk - управление Asterisk из сценариев Python
/dev/pts/2
14:25:48
#apt-get install asterisk-sounds-extra
Чтение списков пакетов... Готово
Построение дерева зависимостей
Чтение информации о состоянии... Готово
НОВЫЕ пакеты, которые будут установлены:
  asterisk-sounds-extra
обновлено 0, установлено 1 новых пакетов, для удаления отмечено 0 пакетов, и 0 пакетов не обновлено.
Необходимо скачать 3 419 kБ архивов.
После данной операции, объём занятого дискового пространства возрастёт на 6 562 kB.
Получено:1 http://192.168.15.253/debian/ squeeze/main asterisk-sounds-extra all 1.4.9-1 [3 419 kB]
Получено 3 419 kБ за 0с (10,8 MБ/c)
Выбор ранее не выбранного пакета asterisk-sounds-extra.
(Чтение базы данных ... на данный момент установлено 109887 файлов и каталогов.)
Распаковывается пакет asterisk-sounds-extra (из файла .../asterisk-sounds-extra_1.4.9-1_all.deb)...
Настраивается пакет asterisk-sounds-extra (1.4.9-1) ...
/dev/pts/3
14:25:48
#apt-get install asterisk-sounds-extra
Чтение списков пакетов... Готово
Построение дерева зависимостей
Чтение информации о состоянии... Готово
НОВЫЕ пакеты, которые будут установлены:
  asterisk-sounds-extra
обновлено 0, установлено 1 новых пакетов, для удаления отмечено 0 пакетов, и 0 пакетов не обновлено.
Необходимо скачать 3 419 kБ архивов.
После данной операции, объём занятого дискового пространства возрастёт на 6 562 kB.
Получено:1 http://192.168.15.253/debian/ squeeze/main asterisk-sounds-extra all 1.4.9-1 [3 419 kB]
Получено 3 419 kБ за 0с (10,8 MБ/c)
Выбор ранее не выбранного пакета asterisk-sounds-extra.
(Чтение базы данных ... на данный момент установлено 109887 файлов и каталогов.)
Распаковывается пакет asterisk-sounds-extra (из файла .../asterisk-sounds-extra_1.4.9-1_all.deb)...
Настраивается пакет asterisk-sounds-extra (1.4.9-1) ...
/dev/pts/2
14:26:33
#dpkg -L asterisk | less
/dev/pts/3
14:26:33
#dpkg -L asterisk | less
/dev/pts/2
14:27:27
#ls /usr/share/a
abiword-2.8/          alsa/                 aptitude/
aclocal/              alsa-base/            apt-xapian-index/
acpi-support/         app-install/          aspell/
adduser/              application-registry/ asterisk/
aiksaurus/            applications/         avahi/
alacarte/             apps/
14:27:27
#ls /usr/share/a
abiword-2.8/          alsa/                 aptitude/
aclocal/              alsa-base/            apt-xapian-index/
acpi-support/         app-install/          aspell/
adduser/              application-registry/ asterisk/
aiksaurus/            applications/         avahi/
alacarte/             apps/
14:27:27
#ls /usr/share/a
abiword-2.8/          alsa/                 aptitude/
aclocal/              alsa-base/            apt-xapian-index/
acpi-support/         app-install/          aspell/
adduser/              application-registry/ asterisk/
aiksaurus/            applications/         avahi/
alacarte/             apps/
14:27:27
#ls /usr/share/as
aspell/   asterisk/
/dev/pts/3
14:27:27
#ls /usr/share/a
abiword-2.8/          alsa/                 aptitude/
aclocal/              alsa-base/            apt-xapian-index/
acpi-support/         app-install/          aspell/
adduser/              application-registry/ asterisk/
aiksaurus/            applications/         avahi/
alacarte/             apps/
14:27:27
#ls /usr/share/a
abiword-2.8/          alsa/                 aptitude/
aclocal/              alsa-base/            apt-xapian-index/
acpi-support/         app-install/          aspell/
adduser/              application-registry/ asterisk/
aiksaurus/            applications/         avahi/
alacarte/             apps/
14:27:27
#ls /usr/share/a
abiword-2.8/          alsa/                 aptitude/
aclocal/              alsa-base/            apt-xapian-index/
acpi-support/         app-install/          aspell/
adduser/              application-registry/ asterisk/
aiksaurus/            applications/         avahi/
alacarte/             apps/
14:27:27
#ls /usr/share/as
aspell/   asterisk/
/dev/pts/2
14:27:27
#ls /usr/share/asterisk/modules
ls: невозможно получить доступ к /usr/share/asterisk/modules: Нет такого файла или каталога
/dev/pts/3
14:27:27
#ls /usr/share/asterisk/modules
ls: невозможно получить доступ к /usr/share/asterisk/modules: Нет такого файла или каталога
/dev/pts/2
14:31:28
#cd /etc/a
acpi/         adjtime       anacrontab    apm/          asterisk/
adduser.conf  alternatives/ apache2/      apt/          avahi/
14:31:28
#cd /etc/asterisk/

/dev/pts/3
14:31:28
#cd /etc/a
acpi/         adjtime       anacrontab    apm/          asterisk/
adduser.conf  alternatives/ apache2/      apt/          avahi/
14:31:28
#cd /etc/asterisk/

прошло 10 минут
/dev/pts/2
14:41:33
#mv sip.conf sip.conf.SAVE

/dev/pts/3
14:41:33
#mv sip.conf sip.conf.SAVE

/dev/pts/2
14:42:32
#vim sip.conf
/dev/pts/3
14:42:32
#vim sip.conf
--- /dev/null	2011-06-27 13:10:39.343505026 +0400
+++ sip.conf	2011-06-27 16:48:53.000000000 +0400
@@ -0,0 +1,8 @@
+context=default
+
+[2101]
+type=friend
+secret=1234
+host=dynami
+canreinvite=no
+
/dev/pts/2
14:48:53
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
/dev/pts/3
14:48:53
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
/dev/pts/2
14:53:06
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
/dev/pts/3
14:53:06
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
/dev/pts/2
14:53:11
#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 linux3 (pid = 7430)
...
[Jun 27 17:24:32] ERROR[7458]: chan_sip.c:13206 register_verify: Peer '2101' is trying to register, but not configured as host=dynamic
[Jun 27 17:24:32] NOTICE[7458]: chan_sip.c:21768 handle_request_register: Registration from '"2101" <sip:2101@191.168.15.3>' failed for '192.168.15.226' - Peer is not supposed to register
[Jun 27 17:24:32] ERROR[7458]: chan_sip.c:13206 register_verify: Peer '2101' is trying to register, but not configured as host=dynamic
[Jun 27 17:24:32] NOTICE[7458]: chan_sip.c:21768 handle_request_register: Registration from '"2101" <sip:2101@191.168.15.3>' failed for '192.168.15.226' - Peer is not supposed to register
[Jun 27 17:24:50] ERROR[7458]: chan_sip.c:13206 register_verify: Peer '2101' is trying to register, but not configured as host=dynamic
[Jun 27 17:24:50] NOTICE[7458]: chan_sip.c:21768 handle_request_register: Registration from '"2101" <sip:2101@191.168.15.3>' failed for '192.168.15.226' - Peer is not supposed to register
    -- Executing [s@default:6] BackGround("SIP/192.168.15.6-00000001", "demo-instruct") in new stack
    -- <SIP/192.168.15.6-00000001> Playing 'demo-instruct.gsm' (language 'en')
linux3*CLI> quit
Executing last minute cleanups
/dev/pts/3
14:53:11
#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 linux3 (pid = 7430)
...
[Jun 27 17:24:32] ERROR[7458]: chan_sip.c:13206 register_verify: Peer '2101' is trying to register, but not configured as host=dynamic
[Jun 27 17:24:32] NOTICE[7458]: chan_sip.c:21768 handle_request_register: Registration from '"2101" <sip:2101@191.168.15.3>' failed for '192.168.15.226' - Peer is not supposed to register
[Jun 27 17:24:32] ERROR[7458]: chan_sip.c:13206 register_verify: Peer '2101' is trying to register, but not configured as host=dynamic
[Jun 27 17:24:32] NOTICE[7458]: chan_sip.c:21768 handle_request_register: Registration from '"2101" <sip:2101@191.168.15.3>' failed for '192.168.15.226' - Peer is not supposed to register
[Jun 27 17:24:50] ERROR[7458]: chan_sip.c:13206 register_verify: Peer '2101' is trying to register, but not configured as host=dynamic
[Jun 27 17:24:50] NOTICE[7458]: chan_sip.c:21768 handle_request_register: Registration from '"2101" <sip:2101@191.168.15.3>' failed for '192.168.15.226' - Peer is not supposed to register
    -- Executing [s@default:6] BackGround("SIP/192.168.15.6-00000001", "demo-instruct") in new stack
    -- <SIP/192.168.15.6-00000001> Playing 'demo-instruct.gsm' (language 'en')
linux3*CLI> quit
Executing last minute cleanups
прошло 54 минуты
/dev/pts/2
15:47:43
#asterisk restart
Asterisk already running on /var/run/asterisk/asterisk.ctl.  Use 'asterisk -r' to connect.
/dev/pts/3
15:47:43
#asterisk restart
Asterisk already running on /var/run/asterisk/asterisk.ctl.  Use 'asterisk -r' to connect.
/dev/pts/2
15:47:51
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
/dev/pts/3
15:47:51
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.

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

/dev/pts/2
08:30:46
#[2101]
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 linux3 (pid = 7737)
...
    -- Registered SIP '2102' at 192.168.15.238 port 23430
[Jun 28 10:35:10] NOTICE[7765]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2102
linux3*CLI> sip show peers
Name/username              Host            Dyn Nat ACL Port     Status
2101/2101                  192.168.15.226   D          49964    Unmonitored
2102/2102                  192.168.15.238   D          23430    Unmonitored
2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 2 online, 0 offline]
[Jun 28 10:36:11] NOTICE[7765]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2102
linux3*CLI> exit
Executing last minute cleanups
/dev/pts/3
08:30:46
#[2101]
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 linux3 (pid = 7737)
...
    -- Registered SIP '2102' at 192.168.15.238 port 23430
[Jun 28 10:35:10] NOTICE[7765]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2102
linux3*CLI> sip show peers
Name/username              Host            Dyn Nat ACL Port     Status
2101/2101                  192.168.15.226   D          49964    Unmonitored
2102/2102                  192.168.15.238   D          23430    Unmonitored
2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 2 online, 0 offline]
[Jun 28 10:36:11] NOTICE[7765]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2102
linux3*CLI> exit
Executing last minute cleanups
/dev/pts/2
08:36:35
#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 linux3 (pid = 7737)
Verbosity is at least 3
linux3*CLI> sip show peers
Name/username              Host            Dyn Nat ACL Port     Status
2101/2101                  192.168.15.226   D          49964    Unmonitored
2102/2102                  192.168.15.238   D          23430    Unmonitored
2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 2 online, 0 offline]
[Jun 28 10:38:12] NOTICE[7765]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2102
linux3*CLI> exit
Executing last minute cleanups
/dev/pts/3
08:36:35
#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 linux3 (pid = 7737)
Verbosity is at least 3
linux3*CLI> sip show peers
Name/username              Host            Dyn Nat ACL Port     Status
2101/2101                  192.168.15.226   D          49964    Unmonitored
2102/2102                  192.168.15.238   D          23430    Unmonitored
2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 2 online, 0 offline]
[Jun 28 10:38:12] NOTICE[7765]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2102
linux3*CLI> exit
Executing last minute cleanups
/dev/pts/2
08:38:35
#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 linux3 (pid = 7737)
Verbosity is at least 3
linux3*CLI> quit
Executing last minute cleanups
/dev/pts/3
08:38:35
#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 linux3 (pid = 7737)
Verbosity is at least 3
linux3*CLI> quit
Executing last minute cleanups
/dev/pts/2
08:39:07
#asterisk -rx 'sip show peers'
Name/username              Host            Dyn Nat ACL Port     Status
2101/2101                  192.168.15.226   D          49964    Unmonitored
2102/2102                  192.168.15.238   D          23430    Unmonitored
2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 2 online, 0 offline]
/dev/pts/3
08:39:07
#asterisk -rx 'sip show peers'
Name/username              Host            Dyn Nat ACL Port     Status
2101/2101                  192.168.15.226   D          49964    Unmonitored
2102/2102                  192.168.15.238   D          23430    Unmonitored
2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 2 online, 0 offline]
/dev/pts/2
08:39:15
#asterisk -rx 'sip show peers'
Name/username              Host            Dyn Nat ACL Port     Status
2101/2101                  192.168.15.226   D          49964    Unmonitored
2102/2102                  192.168.15.238   D          23430    Unmonitored
2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 2 online, 0 offline]
/dev/pts/3
08:39:15
#asterisk -rx 'sip show peers'
Name/username              Host            Dyn Nat ACL Port     Status
2101/2101                  192.168.15.226   D          49964    Unmonitored
2102/2102                  192.168.15.238   D          23430    Unmonitored
2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 2 online, 0 offline]
/dev/pts/2
08:39:21
#asterisk -rx 'sip show peers' | cat
Name/username              Host            Dyn Nat ACL Port     Status
2101/2101                  192.168.15.226   D          49964    Unmonitored
2102/2102                  192.168.15.238   D          23430    Unmonitored
2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 2 online, 0 offline]
/dev/pts/3
08:39:21
#asterisk -rx 'sip show peers' | cat
Name/username              Host            Dyn Nat ACL Port     Status
2101/2101                  192.168.15.226   D          49964    Unmonitored
2102/2102                  192.168.15.238   D          23430    Unmonitored
2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 2 online, 0 offline]
/dev/pts/2
08:39:42
#asterisk -rx 'sip show peers'
Name/username              Host            Dyn Nat ACL Port     Status
2101/2101                  192.168.15.226   D          49964    Unmonitored
2102/2102                  192.168.15.238   D          23430    Unmonitored
2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 2 online, 0 offline]
/dev/pts/3
08:39:42
#asterisk -rx 'sip show peers'
Name/username              Host            Dyn Nat ACL Port     Status
2101/2101                  192.168.15.226   D          49964    Unmonitored
2102/2102                  192.168.15.238   D          23430    Unmonitored
2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 2 online, 0 offline]
прошло 26 минут
/dev/pts/2
09:05:44
#cd /etc/asterisk/

/dev/pts/3
09:05:44
#cd /etc/asterisk/

/dev/pts/2
09:05:58
#mv extensions.conf extensions.conf SAVE
mv: указанная цель «SAVE» не является каталогом
/dev/pts/3
09:05:58
#mv extensions.conf extensions.conf SAVE
mv: указанная цель «SAVE» не является каталогом
/dev/pts/2
09:06:54
#mv extensions.conf extensions.conf.SAVE

/dev/pts/3
09:06:54
#mv extensions.conf extensions.conf.SAVE

/dev/pts/2
09:07:07
#vim extensions.
09:07:07
#vim extensions.
/dev/pts/3
09:07:07
#vim extensions.
09:07:07
#vim extensions.
/dev/pts/2
09:07:07
#vim extensions.conf
/dev/pts/3
09:07:07
#vim extensions.conf
--- /dev/null	2011-06-27 13:10:39.343505026 +0400
+++ extensions.conf	2011-06-28 11:11:10.000000000 +0400
@@ -0,0 +1,5 @@
+[default]
+
+exten => 8000,1,Playback(welkom)
+:w
+
/dev/pts/2
09:14:19
#vim extensions.conf
/dev/pts/3
09:14:19
#vim extensions.conf
--- /tmp/l3-saved-8181.8012.27858	2011-06-28 11:14:23.000000000 +0400
+++ extensions.conf	2011-06-28 11:15:04.000000000 +0400
@@ -1,5 +1,5 @@
 [default]
 
-exten => 8000,1,Playback(welkom)
-:w
+exten => 8000,1,Playback(welcome)
+
 
/dev/pts/2
09:15:09
#exten => 8000,1,Playback(welcome)
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 linux3 (pid = 7737)
...
  == Using SIP RTP CoS mark 5
    -- Executing [8000@default:1] Playback("SIP/2101-0000000d", "welcome") in new stack
[Jun 28 11:19:25] NOTICE[7765]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2101
    -- <SIP/2101-0000000d> Playing 'welcome.gsm' (language 'en')
    -- Auto fallthrough, channel 'SIP/2101-0000000d' status is 'UNKNOWN'
[Jun 28 11:19:27] NOTICE[7765]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2101
linux3*CLI> exi
No such command 'exi' (type 'core show help exi' for other possible commands)
linux3*CLI> exit
Executing last minute cleanups
/dev/pts/3
09:15:09
#exten => 8000,1,Playback(welcome)
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 linux3 (pid = 7737)
...
  == Using SIP RTP CoS mark 5
    -- Executing [8000@default:1] Playback("SIP/2101-0000000d", "welcome") in new stack
[Jun 28 11:19:25] NOTICE[7765]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2101
    -- <SIP/2101-0000000d> Playing 'welcome.gsm' (language 'en')
    -- Auto fallthrough, channel 'SIP/2101-0000000d' status is 'UNKNOWN'
[Jun 28 11:19:27] NOTICE[7765]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2101
linux3*CLI> exi
No such command 'exi' (type 'core show help exi' for other possible commands)
linux3*CLI> exit
Executing last minute cleanups
/dev/pts/2
09:19:47
#vim extensions.conf
/dev/pts/3
09:19:47
#vim extensions.conf
--- /tmp/l3-saved-8181.29621.28990	2011-06-28 11:19:49.000000000 +0400
+++ extensions.conf	2011-06-28 11:22:42.000000000 +0400
@@ -2,4 +2,6 @@
 
 exten => 8000,1,Playback(welcome)
 
+exten => _21xx,1,Ansver
+exten => _21xx,n,Dial(SIP/${EXTEN})
 
/dev/pts/2
09:23:42
#[ ]
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 linux3 (pid = 7737)
Verbosity is at least 3
linux3*CLI> exit
Executing last minute cleanups
/dev/pts/3
09:23:42
#[ ]
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 linux3 (pid = 7737)
Verbosity is at least 3
linux3*CLI> exit
Executing last minute cleanups
/dev/pts/2
09:24:01
#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 linux3 (pid = 7737)
Verbosity is at least 3
linux3*CLI> exit
Executing last minute cleanups
/dev/pts/3
09:24:01
#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 linux3 (pid = 7737)
Verbosity is at least 3
linux3*CLI> exit
Executing last minute cleanups
/dev/pts/2
09:24:07
#vim extensions.conf
/dev/pts/3
09:24:07
#vim extensions.conf
--- /tmp/l3-saved-8181.16179.27943	2011-06-28 11:24:10.000000000 +0400
+++ extensions.conf	2011-06-28 11:24:37.000000000 +0400
@@ -2,6 +2,7 @@
 
 exten => 8000,1,Playback(welcome)
 
-exten => _21xx,1,Ansver
-exten => _21xx,n,Dial(SIP/${EXTEN})
+exten => _21XX,1,Ansver
+exten => _21XX,n,Dial(SIP/${EXTEN})
+
 
/dev/pts/2
09:25:29
#vim extensions.conf
/dev/pts/3
09:25:29
#vim extensions.conf
--- /tmp/l3-saved-8181.19478.16690	2011-06-28 11:25:33.000000000 +0400
+++ extensions.conf	2011-06-28 11:25:51.000000000 +0400
@@ -2,7 +2,7 @@
 
 exten => 8000,1,Playback(welcome)
 
-exten => _21XX,1,Ansver
+exten => _21XX,1,Answer
 exten => _21XX,n,Dial(SIP/${EXTEN})
 
 
/dev/pts/2
09:25:54
#[ ]
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 linux3 (pid = 7737)
...
  == Spawn extension (default, 2102, 2) exited non-zero on 'SIP/2101-00000015'
[Jun 28 11:28:53] NOTICE[7765]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2101
[Jun 28 11:29:27] NOTICE[7765]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2102
linux3*CLI> sip show peers
Name/username              Host            Dyn Nat ACL Port     Status
2101/2101                  192.168.15.226   D          49964    Unmonitored
2102/2102                  192.168.15.238   D          23430    Unmonitored
2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 2 online, 0 offline]
linux3*CLI> exit
Executing last minute cleanups
/dev/pts/3
09:25:54
#[ ]
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 linux3 (pid = 7737)
...
  == Spawn extension (default, 2102, 2) exited non-zero on 'SIP/2101-00000015'
[Jun 28 11:28:53] NOTICE[7765]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2101
[Jun 28 11:29:27] NOTICE[7765]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2102
linux3*CLI> sip show peers
Name/username              Host            Dyn Nat ACL Port     Status
2101/2101                  192.168.15.226   D          49964    Unmonitored
2102/2102                  192.168.15.238   D          23430    Unmonitored
2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 2 online, 0 offline]
linux3*CLI> exit
Executing last minute cleanups
/dev/pts/2
09:31:43
#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 linux3 (pid = 7737)
...
[Jun 28 11:53:36] NOTICE[7765]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2102
[Jun 28 11:53:47] NOTICE[7765]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2101
[Jun 28 11:54:01] NOTICE[7765]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2101
  == Using SIP RTP CoS mark 5
[Jun 28 11:56:15] NOTICE[7765]: chan_sip.c:20281 handle_request_invite: Call from '2101' to extension '+79169366030' rejected because extension not found in context 'default'.
[Jun 28 11:56:15] NOTICE[7765]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2101
[Jun 28 11:56:35] WARNING[7765]: chan_sip.c:3912 retrans_pkt: Maximum retries exceeded on transmission 262608524284@192.168.15.226 for seqno 2 (Critical Response) -- See doc/sip-retransmit.txt.
[Jun 28 11:56:36] NOTICE[7765]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2102
linux3*CLI> exit
Executing last minute cleanups
/dev/pts/3
09:31:43
#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 linux3 (pid = 7737)
...
[Jun 28 11:53:36] NOTICE[7765]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2102
[Jun 28 11:53:47] NOTICE[7765]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2101
[Jun 28 11:54:01] NOTICE[7765]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2101
  == Using SIP RTP CoS mark 5
[Jun 28 11:56:15] NOTICE[7765]: chan_sip.c:20281 handle_request_invite: Call from '2101' to extension '+79169366030' rejected because extension not found in context 'default'.
[Jun 28 11:56:15] NOTICE[7765]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2101
[Jun 28 11:56:35] WARNING[7765]: chan_sip.c:3912 retrans_pkt: Maximum retries exceeded on transmission 262608524284@192.168.15.226 for seqno 2 (Critical Response) -- See doc/sip-retransmit.txt.
[Jun 28 11:56:36] NOTICE[7765]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2102
linux3*CLI> exit
Executing last minute cleanups
прошло 27 минут
/dev/pts/2
09:58:44
#vim sip.conf
/dev/pts/3
09:58:44
#vim sip.conf
--- /tmp/l3-saved-8181.25597.32639	2011-06-28 12:03:48.000000000 +0400
+++ sip.conf	2011-06-28 12:10:27.000000000 +0400
@@ -13,3 +13,12 @@
 host=dynamic
 canreinvite=no
 
+ragister => mn:1234@192.168.15.4/gr
+
+[gr]
+type=friend
+secret=1234
+host=dynamic
+canreinvite=no
+username=mn
+
прошло 13 минут
/dev/pts/2
10:12: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 linux3 (pid = 7737)
Verbosity is at least 3
linux3*CLI> exit
Executing last minute cleanups
/dev/pts/3
10:12: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 linux3 (pid = 7737)
Verbosity is at least 3
linux3*CLI> exit
Executing last minute cleanups
/dev/pts/2
10:12:06
#vim sip.conf
/dev/pts/3
10:12:06
#vim sip.conf
--- /tmp/l3-saved-8181.5947.12428	2011-06-28 12:12:10.000000000 +0400
+++ sip.conf	2011-06-28 12:13:43.000000000 +0400
@@ -1,5 +1,6 @@
 [general]
 context=default
+ragister => mn:1234@192.168.15.4/gr
 
 [2101]
 type=friend
@@ -13,7 +14,6 @@
 host=dynamic
 canreinvite=no
 
-ragister => mn:1234@192.168.15.4/gr
 
 [gr]
 type=friend
/dev/pts/2
10:15:16
#vim extensions.conf
/dev/pts/3
10:15:16
#vim extensions.conf
--- /tmp/l3-saved-8181.29255.7641	2011-06-28 12:15:23.000000000 +0400
+++ extensions.conf	2011-06-28 12:17:57.000000000 +0400
@@ -5,4 +5,5 @@
 exten => _21XX,1,Answer
 exten => _21XX,n,Dial(SIP/${EXTEN})
 
+exten => _22XX,1,Dial(SIP/gr/${EXTEN})
 
/dev/pts/2
10:18:02
#[ ]
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 linux3 (pid = 7737)
...
  == Using SIP RTP CoS mark 5
    -- Executing [2201@default:1] Dial("SIP/2102-00000019", "SIP/gr/2201") in new stack
  == Using SIP RTP CoS mark 5
    -- Called gr/2201
    -- SIP/gr-0000001a answered SIP/2102-00000019
    -- Packet2Packet bridging SIP/2102-00000019 and SIP/gr-0000001a
  == Spawn extension (default, 2201, 1) exited non-zero on 'SIP/2102-00000019'
[Jun 28 12:20:44] NOTICE[7765]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2102
linux3*CLI> exit
Executing last minute cleanups
/dev/pts/3
10:18:02
#[ ]
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 linux3 (pid = 7737)
...
  == Using SIP RTP CoS mark 5
    -- Executing [2201@default:1] Dial("SIP/2102-00000019", "SIP/gr/2201") in new stack
  == Using SIP RTP CoS mark 5
    -- Called gr/2201
    -- SIP/gr-0000001a answered SIP/2102-00000019
    -- Packet2Packet bridging SIP/2102-00000019 and SIP/gr-0000001a
  == Spawn extension (default, 2201, 1) exited non-zero on 'SIP/2102-00000019'
[Jun 28 12:20:44] NOTICE[7765]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2102
linux3*CLI> exit
Executing last minute cleanups
/dev/pts/2
10:21:55
#vim extensions.conf
/dev/pts/3
10:21:55
#vim extensions.conf
/dev/pts/2
10:25:52
#~
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 linux3 (pid = 7737)
...
    -- Called gr/2201
    -- SIP/gr-00000022 answered SIP/2101-00000021
    -- Packet2Packet bridging SIP/2101-00000021 and SIP/gr-00000022
[Jun 28 12:28:00] NOTICE[7765]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2101
  == Spawn extension (default, 2201, 1) exited non-zero on 'SIP/2101-00000021'
[Jun 28 12:28:10] NOTICE[7765]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2101
[Jun 28 12:29:46] NOTICE[7765]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2102
[Jun 28 12:32:47] NOTICE[7765]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2102
linux3*CLI> exit
Executing last minute cleanups
/dev/pts/3
10:25:52
#~
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 linux3 (pid = 7737)
...
    -- Called gr/2201
    -- SIP/gr-00000022 answered SIP/2101-00000021
    -- Packet2Packet bridging SIP/2101-00000021 and SIP/gr-00000022
[Jun 28 12:28:00] NOTICE[7765]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2101
  == Spawn extension (default, 2201, 1) exited non-zero on 'SIP/2101-00000021'
[Jun 28 12:28:10] NOTICE[7765]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2101
[Jun 28 12:29:46] NOTICE[7765]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2102
[Jun 28 12:32:47] NOTICE[7765]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2102
linux3*CLI> exit
Executing last minute cleanups

Файлы

  • cat
  • cat
    >
    Name/username              Host            Dyn Nat ACL Port     Status
    2101/2101                  192.168.15.226   D          49964    Unmonitored
    2102/2102                  192.168.15.238   D          23430    Unmonitored
    2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 2 online, 0 offline]
    

    Статистика

    Время первой команды журнала14:01:39 2011- 6-27
    Время последней команды журнала10:25:52 2011- 6-28
    Количество командных строк в журнале100
    Процент команд с ненулевым кодом завершения, %10.00
    Процент синтаксически неверно набранных команд, % 0.00
    Суммарное время работы с терминалом *, час 2.78
    Количество командных строк в единицу времени, команда/мин 0.60
    Частота использования команд
    vim24|======================| 22.64%
    asterisk22|====================| 20.75%
    ls10|=========| 9.43%
    /etc/init.d/asterisk6|=====| 5.66%
    cd6|=====| 5.66%
    [6|=====| 5.66%
    apt-get6|=====| 5.66%
    mv6|=====| 5.66%
    dpkg2|=| 1.89%
    l3-agent2|=| 1.89%
    8000,1,Playback(welcome)2|=| 1.89%
    [2101]2|=| 1.89%
    less2|=| 1.89%
    cat2|=| 1.89%
    ~2|=| 1.89%
    exten2|=| 1.89%
    apt-cache2|=| 1.89%
    date2|=| 1.89%
    ____
    *) Интервалы неактивности длительностью 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$