/l3/users/konva/ais-voip-2011-jun/linux3/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 :19 :20 :21 :22 :23 :24 :25 |
|
#l3-agent
l3-agent is already running: pid=3902; pidfile=/root/.lilalo/l3-agent.pid |
#l3-agent
l3-agent is already running: pid=3902; pidfile=/root/.lilalo/l3-agent.pid |
#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. |
#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. |
#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 ... |
#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 ... |
#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 |
#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 |
#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) ... |
#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) ... |
#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/ |
#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/ |
#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/ |
#ls /usr/share/as
aspell/ asterisk/ |
#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/ |
#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/ |
#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/ |
#ls /usr/share/as
aspell/ asterisk/ |
#ls /usr/share/asterisk/modules
ls: невозможно получить доступ к /usr/share/asterisk/modules: Нет такого файла или каталога |
#ls /usr/share/asterisk/modules
ls: невозможно получить доступ к /usr/share/asterisk/modules: Нет такого файла или каталога |
#cd /etc/a
acpi/ adjtime anacrontab apm/ asterisk/ adduser.conf alternatives/ apache2/ apt/ avahi/ |
#cd /etc/asterisk/
|
#cd /etc/a
acpi/ adjtime anacrontab apm/ asterisk/ adduser.conf alternatives/ apache2/ apt/ avahi/ |
#cd /etc/asterisk/
|
#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 + |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#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 |
#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 |
#asterisk restart
Asterisk already running on /var/run/asterisk/asterisk.ctl. Use 'asterisk -r' to connect. |
#asterisk restart
Asterisk already running on /var/run/asterisk/asterisk.ctl. Use 'asterisk -r' to connect. |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#[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 |
#[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 |
#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 |
#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 |
#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 |
#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 |
#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] |
#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] |
#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] |
#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] |
#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] |
#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] |
#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] |
#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] |
#mv extensions.conf extensions.conf SAVE
mv: указанная цель «SAVE» не является каталогом |
#mv extensions.conf extensions.conf SAVE
mv: указанная цель «SAVE» не является каталогом |
#vim extensions.
|
#vim extensions.
|
#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 + |
#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) + |
#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 |
#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 |
#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}) |
#[ ]
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 |
#[ ]
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 |
#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 |
#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 |
#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}) + |
#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}) |
#[ ]
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 |
#[ ]
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 |
#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 |
#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 |
#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 + |
#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 |
#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 |
#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 |
#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}) |
#[ ]
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 |
#[ ]
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 |
#~
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 |
#~
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 |
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 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.
Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
$ l s-l bash: l: command not found |
Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
$ test 5 -lt 4 |
Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
$ 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 |
Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
# id uid=0(root) gid=0(root) Gruppen=0(root) |
Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
$ vi ~/.bashrc
|
Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
$ patch ~/.bashrc |
Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.
Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.
Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.
Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора
Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.
Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.
Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:
$ whoami
user
$ #^ Интересно, кто я?в журнале это будет выглядеть так:
$ whoami
user
Интересно, кто я? |
Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:
$ whoami
user
$ cat > /dev/null #^ Интересно, кто я?
Программа whoami выводит имя пользователя, под которым мы зарегистрировались в системе. - Она не может ответить на вопрос о нашем назначении в этом мире.В журнале это будет выглядеть так:
$ whoami user
|
Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=
1 2 3 4Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.
LiLaLo (L3) расшифровывается как Live Lab Log.
Программа разработана для повышения эффективности обучения Unix/Linux-системам.
(c) Игорь Чубин, 2004-2008