/l3/users/roma/nt-voip/linux3.unix.nt.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 |
|
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... -- Called 1301 -- SIP/1301-0972ec50 is ringing -- SIP/1301-0972ec50 answered SIP/1302-09737048 -- Executing [1301@group2:5] GotoIf("SIP/1302-09737048", "1?answer") in new stack -- Goto (group2,1301,10) -- Executing [1301@group2:10] StopMonitor("SIP/1302-09737048", "") in new stack [Oct 27 15:17:34] NOTICE[8239]: res_monitor.c:339 ast_monitor_stop: monitor executing ( nice -n 19 sox -m "/var/spool/asterisk/monitor/voice-1301-1302-1288181848-in.wav" "/var/spool/asterisk/monitor/voice-1301-1302-1288181848-out.wav" "/var/spool/asterisk/monitor/voice-1301-1302-1288181848.wav" && rm -f "/var/spool/asterisk/monitor/voice-1301-1302-1288181848-"* ) & -- Executing [1301@group2:11] System("SIP/1302-09737048", "lame /var/spool/asterisk/monitor/voice-1301-1302-1288181848.wav /var/spool/asterisk/monitor/voice-1301-1302-1288181848.mp3") in new stack == Auto fallthrough, channel 'SIP/1302-09737048' status is 'ANSWER' linux3*CLI> |
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... -- Called 1301 -- SIP/1301-0972ec50 is ringing -- SIP/1301-0972ec50 answered SIP/1302-09737048 -- Executing [1301@group2:5] GotoIf("SIP/1302-09737048", "1?answer") in new stack -- Goto (group2,1301,10) -- Executing [1301@group2:10] StopMonitor("SIP/1302-09737048", "") in new stack [Oct 27 15:17:34] NOTICE[8239]: res_monitor.c:339 ast_monitor_stop: monitor executing ( nice -n 19 sox -m "/var/spool/asterisk/monitor/voice-1301-1302-1288181848-in.wav" "/var/spool/asterisk/monitor/voice-1301-1302-1288181848-out.wav" "/var/spool/asterisk/monitor/voice-1301-1302-1288181848.wav" && rm -f "/var/spool/asterisk/monitor/voice-1301-1302-1288181848-"* ) & -- Executing [1301@group2:11] System("SIP/1302-09737048", "lame /var/spool/asterisk/monitor/voice-1301-1302-1288181848.wav /var/spool/asterisk/monitor/voice-1301-1302-1288181848.mp3") in new stack == Auto fallthrough, channel 'SIP/1302-09737048' status is 'ANSWER' linux3*CLI> |
#ls /var/spool/
asterisk/ cron/ cups/ exim4/ mail/ mqueue/ mqueue-client/ pop/ popbull/ |
#ls /var/spool/
asterisk/ cron/ cups/ exim4/ mail/ mqueue/ mqueue-client/ pop/ popbull/ |
#ls /var/spool/asterisk/monitor/
voice-1301-1302-1288178588-in.gsm voice-1301-1302-1288178674-out.gsm voice-1302-1402-1288178522-in.gsm voice-1302-1402-1288178549-out.gsm voice-1301-1302-1288178588-out.gsm voice-1302-1301-1288178488-in.gsm voice-1302-1402-1288178522-out.gsm voice-1302-1402-1288178683-in.gsm voice-1301-1302-1288178674-in.gsm voice-1302-1301-1288178488-out.gsm voice-1302-1402-1288178549-in.gsm voice-1302-1402-1288178683-out.gsm |
#ls /var/spool/asterisk/monitor/
voice-1301-1302-1288178588-in.gsm voice-1301-1302-1288178674-out.gsm voice-1302-1402-1288178522-in.gsm voice-1302-1402-1288178549-out.gsm voice-1301-1302-1288178588-out.gsm voice-1302-1301-1288178488-in.gsm voice-1302-1402-1288178522-out.gsm voice-1302-1402-1288178683-in.gsm voice-1301-1302-1288178674-in.gsm voice-1302-1301-1288178488-out.gsm voice-1302-1402-1288178549-in.gsm voice-1302-1402-1288178683-out.gsm |
#ls -lh /var/spool/asterisk/monitor/
итого 172K -rw-r----- 1 asterisk asterisk 7,7K Окт 27 14:23 voice-1301-1302-1288178588-in.gsm -rw-r----- 1 asterisk asterisk 8,0K Окт 27 14:23 voice-1301-1302-1288178588-out.gsm -rw-r----- 1 asterisk asterisk 3,2K Окт 27 14:24 voice-1301-1302-1288178674-in.gsm -rw-r----- 1 asterisk asterisk 3,2K Окт 27 14:24 voice-1301-1302-1288178674-out.gsm -rw-r----- 1 asterisk asterisk 12K Окт 27 14:21 voice-1302-1301-1288178488-in.gsm -rw-r----- 1 asterisk asterisk 7,5K Окт 27 14:21 voice-1302-1301-1288178488-out.gsm -rw-r----- 1 asterisk asterisk 36K Окт 27 14:22 voice-1302-1402-1288178522-in.gsm -rw-r----- 1 asterisk asterisk 7,5K Окт 27 14:22 voice-1302-1402-1288178522-out.gsm -rw-r----- 1 asterisk asterisk 17K Окт 27 14:22 voice-1302-1402-1288178549-in.gsm -rw-r----- 1 asterisk asterisk 7,5K Окт 27 14:22 voice-1302-1402-1288178549-out.gsm -rw-r----- 1 asterisk asterisk 25K Окт 27 14:24 voice-1302-1402-1288178683-in.gsm -rw-r----- 1 asterisk asterisk 25K Окт 27 14:24 voice-1302-1402-1288178683-out.gsm |
#ls -lh /var/spool/asterisk/monitor/
итого 172K -rw-r----- 1 asterisk asterisk 7,7K Окт 27 14:23 voice-1301-1302-1288178588-in.gsm -rw-r----- 1 asterisk asterisk 8,0K Окт 27 14:23 voice-1301-1302-1288178588-out.gsm -rw-r----- 1 asterisk asterisk 3,2K Окт 27 14:24 voice-1301-1302-1288178674-in.gsm -rw-r----- 1 asterisk asterisk 3,2K Окт 27 14:24 voice-1301-1302-1288178674-out.gsm -rw-r----- 1 asterisk asterisk 12K Окт 27 14:21 voice-1302-1301-1288178488-in.gsm -rw-r----- 1 asterisk asterisk 7,5K Окт 27 14:21 voice-1302-1301-1288178488-out.gsm -rw-r----- 1 asterisk asterisk 36K Окт 27 14:22 voice-1302-1402-1288178522-in.gsm -rw-r----- 1 asterisk asterisk 7,5K Окт 27 14:22 voice-1302-1402-1288178522-out.gsm -rw-r----- 1 asterisk asterisk 17K Окт 27 14:22 voice-1302-1402-1288178549-in.gsm -rw-r----- 1 asterisk asterisk 7,5K Окт 27 14:22 voice-1302-1402-1288178549-out.gsm -rw-r----- 1 asterisk asterisk 25K Окт 27 14:24 voice-1302-1402-1288178683-in.gsm -rw-r----- 1 asterisk asterisk 25K Окт 27 14:24 voice-1302-1402-1288178683-out.gsm |
#sm-a roma
smbcacls smbclient smbcquotas smbget smbpasswd smbspool smbtar smbtree smime_keys smitest sm-notify smproxy smsq |
#sm-a roma
smbcacls smbclient smbcquotas smbget smbpasswd smbspool smbtar smbtree smime_keys smitest sm-notify smproxy smsq |
#smbpasswd -a roma
New SMB password: Retype new SMB password: tdbsam_open: Converting version 0 database to version 3. account_policy_get: tdb_fetch_uint32 failed for field 1 (min password length), returning 0 account_policy_get: tdb_fetch_uint32 failed for field 2 (password history), returning 0 account_policy_get: tdb_fetch_uint32 failed for field 3 (user must logon to change password), returning 0 account_policy_get: tdb_fetch_uint32 failed for field 4 (maximum password age), returning 0 account_policy_get: tdb_fetch_uint32 failed for field 5 (minimum password age), returning 0 account_policy_get: tdb_fetch_uint32 failed for field 6 (lockout duration), returning 0 account_policy_get: tdb_fetch_uint32 failed for field 7 (reset count minutes), returning 0 account_policy_get: tdb_fetch_uint32 failed for field 8 (bad lockout attempt), returning 0 account_policy_get: tdb_fetch_uint32 failed for field 9 (disconnect time), returning 0 account_policy_get: tdb_fetch_uint32 failed for field 10 (refuse machine password change), returning 0 Added user roma. |
#smbpasswd -a roma
New SMB password: Retype new SMB password: tdbsam_open: Converting version 0 database to version 3. account_policy_get: tdb_fetch_uint32 failed for field 1 (min password length), returning 0 account_policy_get: tdb_fetch_uint32 failed for field 2 (password history), returning 0 account_policy_get: tdb_fetch_uint32 failed for field 3 (user must logon to change password), returning 0 account_policy_get: tdb_fetch_uint32 failed for field 4 (maximum password age), returning 0 account_policy_get: tdb_fetch_uint32 failed for field 5 (minimum password age), returning 0 account_policy_get: tdb_fetch_uint32 failed for field 6 (lockout duration), returning 0 account_policy_get: tdb_fetch_uint32 failed for field 7 (reset count minutes), returning 0 account_policy_get: tdb_fetch_uint32 failed for field 8 (bad lockout attempt), returning 0 account_policy_get: tdb_fetch_uint32 failed for field 9 (disconnect time), returning 0 account_policy_get: tdb_fetch_uint32 failed for field 10 (refuse machine password change), returning 0 Added user roma. |
#apt-get install samba
Чтение списков пакетов... Готово Построение дерева зависимостей Чтение информации о состоянии... Готово Предлагаемые пакеты: smbldap-tools ldb-tools НОВЫЕ пакеты, которые будут установлены: samba обновлено 0, установлено 1 новых пакетов, для удаления отмечено 0 пакетов, и 0 пакетов не обновлено. Необходимо скачать 4297kБ архивов. После данной операции, объём занятого дискового пространства возрастёт на 11,9MB. ... Предварительная настройка пакетов ... Выбор ранее не выбранного пакета samba. (Чтение базы данных... на данный момент установлено 101318 файлов и каталогов.) Распаковывается пакет samba (из файла .../samba_2%3a3.2.5-4lenny13_i386.deb)... Обрабатываются триггеры для man-db ... Настраивается пакет samba (2:3.2.5-4lenny13) ... Generating /etc/default/samba... Добавляется группа `sambashare' (GID 121) ... Готово. Starting Samba daemons: nmbd smbd. |
#apt-get install samba
Чтение списков пакетов... Готово Построение дерева зависимостей Чтение информации о состоянии... Готово Предлагаемые пакеты: smbldap-tools ldb-tools НОВЫЕ пакеты, которые будут установлены: samba обновлено 0, установлено 1 новых пакетов, для удаления отмечено 0 пакетов, и 0 пакетов не обновлено. Необходимо скачать 4297kБ архивов. После данной операции, объём занятого дискового пространства возрастёт на 11,9MB. ... Предварительная настройка пакетов ... Выбор ранее не выбранного пакета samba. (Чтение базы данных... на данный момент установлено 101318 файлов и каталогов.) Распаковывается пакет samba (из файла .../samba_2%3a3.2.5-4lenny13_i386.deb)... Обрабатываются триггеры для man-db ... Настраивается пакет samba (2:3.2.5-4lenny13) ... Generating /etc/default/samba... Добавляется группа `sambashare' (GID 121) ... Готово. Starting Samba daemons: nmbd smbd. |
#vi /etc/sa
|
#vi /etc/samba/smb.conf
--- /tmp/l3-saved-7394.28678.24046 2010-10-27 14:36:03.000000000 +0300 +++ /etc/samba/smb.conf 2010-10-27 14:37:51.000000000 +0300 @@ -323,4 +323,7 @@ # ; preexec = /bin/mount /cdrom ; postexec = /bin/umount /cdrom +[Asterisk] + path=/var/spol/asterisk + read only = yes |
#service samba start
Starting Samba daemons: nmbd smbd. |
#service samba restart
Stopping Samba daemons: nmbd smbd. Starting Samba daemons: nmbd smbd. |
#service samba restart
Stopping Samba daemons: nmbd smbd. Starting Samba daemons: nmbd smbd. |
#vi /etc/apt/sources.list
--- /tmp/l3-saved-7394.13014.24038 2010-10-27 14:47:17.000000000 +0300 +++ /etc/apt/sources.list 2010-10-27 14:47:53.000000000 +0300 @@ -6,6 +6,8 @@ deb http://10.0.35.1:9999/debian/ lenny main deb-src http://10.0.35.1:9999/debian/ lenny main +deb http://www.debian-multimedia.org/ lenny main non-free + deb http://security.debian.org/ lenny/updates main deb-src http://security.debian.org/ lenny/updates main |
#apt-get update
Получено:1 http://www.debian-multimedia.org lenny Release.gpg [198B] Игн http://www.debian-multimedia.org lenny/main Translation-ru Получено:2 http://security.debian.org lenny/updates Release.gpg [835B] Игн http://security.debian.org lenny/updates/main Translation-ru Игн http://www.debian-multimedia.org lenny/non-free Translation-ru В кеше http://10.0.35.1 lenny Release.gpg Получено:3 http://security.debian.org lenny/updates Release [40,8kB] Получено:4 http://www.debian-multimedia.org lenny Release [26,5kB] Получено:5 http://volatile.debian.org lenny/volatile Release.gpg [481B] Игн http://volatile.debian.org lenny/volatile/main Translation-ru ... Игн http://10.0.35.1 lenny/main Packages/DiffIndex Игн http://10.0.35.1 lenny/main Sources/DiffIndex Игн http://10.0.35.1 lenny/main Packages Игн http://10.0.35.1 lenny/main Sources В кеше http://10.0.35.1 lenny/main Packages В кеше http://10.0.35.1 lenny/main Sources Получено 531kБ за 7s (72,5kБ/c) Чтение списков пакетов... Готово W: GPG error: http://www.debian-multimedia.org lenny Release: Следующие подписи не могут быть проверены, так как недоступен открытый ключ: NO_PUBKEY 07DC563D1F41B907 W: Вы можете запустить 'apt-get update' для исправления этих ошибок |
#apt-get update
Получено:1 http://www.debian-multimedia.org lenny Release.gpg [198B] Игн http://www.debian-multimedia.org lenny/main Translation-ru Получено:2 http://security.debian.org lenny/updates Release.gpg [835B] Игн http://security.debian.org lenny/updates/main Translation-ru Игн http://www.debian-multimedia.org lenny/non-free Translation-ru В кеше http://10.0.35.1 lenny Release.gpg Получено:3 http://security.debian.org lenny/updates Release [40,8kB] Получено:4 http://www.debian-multimedia.org lenny Release [26,5kB] Получено:5 http://volatile.debian.org lenny/volatile Release.gpg [481B] Игн http://volatile.debian.org lenny/volatile/main Translation-ru ... Игн http://10.0.35.1 lenny/main Packages/DiffIndex Игн http://10.0.35.1 lenny/main Sources/DiffIndex Игн http://10.0.35.1 lenny/main Packages Игн http://10.0.35.1 lenny/main Sources В кеше http://10.0.35.1 lenny/main Packages В кеше http://10.0.35.1 lenny/main Sources Получено 531kБ за 7s (72,5kБ/c) Чтение списков пакетов... Готово W: GPG error: http://www.debian-multimedia.org lenny Release: Следующие подписи не могут быть проверены, так как недоступен открытый ключ: NO_PUBKEY 07DC563D1F41B907 W: Вы можете запустить 'apt-get update' для исправления этих ошибок |
#apt-get update
Получено:1 http://www.debian-multimedia.org lenny Release.gpg [198B] Игн http://www.debian-multimedia.org lenny/main Translation-ru В кеше http://security.debian.org lenny/updates Release.gpg Игн http://security.debian.org lenny/updates/main Translation-ru В кеше http://10.0.35.1 lenny Release.gpg Игн http://www.debian-multimedia.org lenny/non-free Translation-ru В кеше http://security.debian.org lenny/updates Release В кеше http://www.debian-multimedia.org lenny Release Ош http://www.debian-multimedia.org lenny Release В кеше http://volatile.debian.org lenny/volatile Release.gpg ... Игн http://10.0.35.1 lenny/main Sources/DiffIndex Игн http://10.0.35.1 lenny/main Packages Игн http://10.0.35.1 lenny/main Sources В кеше http://volatile.debian.org lenny/volatile/main Sources В кеше http://10.0.35.1 lenny/main Packages В кеше http://10.0.35.1 lenny/main Sources Получено 30,7kБ за 2s (12,7kБ/c) Чтение списков пакетов... Готово W: GPG error: http://www.debian-multimedia.org lenny Release: Следующие подписи не могут быть проверены, так как недоступен открытый ключ: NO_PUBKEY 07DC563D1F41B907 W: Вы можете запустить 'apt-get update' для исправления этих ошибок |
#apt-get update
Получено:1 http://www.debian-multimedia.org lenny Release.gpg [198B] Игн http://www.debian-multimedia.org lenny/main Translation-ru В кеше http://security.debian.org lenny/updates Release.gpg Игн http://security.debian.org lenny/updates/main Translation-ru В кеше http://10.0.35.1 lenny Release.gpg Игн http://www.debian-multimedia.org lenny/non-free Translation-ru В кеше http://security.debian.org lenny/updates Release В кеше http://www.debian-multimedia.org lenny Release Ош http://www.debian-multimedia.org lenny Release В кеше http://volatile.debian.org lenny/volatile Release.gpg ... Игн http://10.0.35.1 lenny/main Sources/DiffIndex Игн http://10.0.35.1 lenny/main Packages Игн http://10.0.35.1 lenny/main Sources В кеше http://volatile.debian.org lenny/volatile/main Sources В кеше http://10.0.35.1 lenny/main Packages В кеше http://10.0.35.1 lenny/main Sources Получено 30,7kБ за 2s (12,7kБ/c) Чтение списков пакетов... Готово W: GPG error: http://www.debian-multimedia.org lenny Release: Следующие подписи не могут быть проверены, так как недоступен открытый ключ: NO_PUBKEY 07DC563D1F41B907 W: Вы можете запустить 'apt-get update' для исправления этих ошибок |
#apt-get install lame
Чтение списков пакетов... Готово Построение дерева зависимостей Чтение информации о состоянии... Готово НОВЫЕ пакеты, которые будут установлены: lame обновлено 0, установлено 1 новых пакетов, для удаления отмечено 0 пакетов, и 5 пакетов не обновлено. Необходимо скачать 334kБ архивов. После данной операции, объём занятого дискового пространства возрастёт на 721kB. ВНИМАНИЕ: Следующие пакеты невозможно аутентифицировать! lame Установить эти пакеты без проверки [y/N]? y Получено:1 http://www.debian-multimedia.org lenny/main lame 3.98.2-0.4 [334kB] Получено 334kБ за 4s (69,5kБ/c) Выбор ранее не выбранного пакета lame. (Чтение базы данных... на данный момент установлено 101379 файлов и каталогов.) Распаковывается пакет lame (из файла .../lame_3.98.2-0.4_i386.deb)... Обрабатываются триггеры для man-db ... Обрабатываются триггеры для doc-base ... Processing 1 added doc-base file(s)... Registering documents with scrollkeeper... Настраивается пакет lame (3.98.2-0.4) ... |
#apt-get install lame
Чтение списков пакетов... Готово Построение дерева зависимостей Чтение информации о состоянии... Готово НОВЫЕ пакеты, которые будут установлены: lame обновлено 0, установлено 1 новых пакетов, для удаления отмечено 0 пакетов, и 5 пакетов не обновлено. Необходимо скачать 334kБ архивов. После данной операции, объём занятого дискового пространства возрастёт на 721kB. ВНИМАНИЕ: Следующие пакеты невозможно аутентифицировать! lame Установить эти пакеты без проверки [y/N]? y Получено:1 http://www.debian-multimedia.org lenny/main lame 3.98.2-0.4 [334kB] Получено 334kБ за 4s (69,5kБ/c) Выбор ранее не выбранного пакета lame. (Чтение базы данных... на данный момент установлено 101379 файлов и каталогов.) Распаковывается пакет lame (из файла .../lame_3.98.2-0.4_i386.deb)... Обрабатываются триггеры для man-db ... Обрабатываются триггеры для doc-base ... Processing 1 added doc-base file(s)... Registering documents with scrollkeeper... Настраивается пакет lame (3.98.2-0.4) ... |
#la
lame laptop-detect last lastb lastlog |
#la
lame laptop-detect last lastb lastlog |
#lame /var/spool/asterisk/monitor/voice-1301-1302-1288182
voice-1301-1302-1288182443.wav voice-1301-1302-1288182535.wav |
#lame /var/spool/asterisk/monitor/voice-1301-1302-1288182
voice-1301-1302-1288182443.wav voice-1301-1302-1288182535.wav |
#lame /var/spool/asterisk/monitor/voice-1301-1302-1288182
voice-1301-1302-1288182443.wav voice-1301-1302-1288182535.wav |
#lame /var/spool/asterisk/monitor/voice-1301-1302-1288182
voice-1301-1302-1288182443.wav voice-1301-1302-1288182535.wav |
#lame /var/spool/asterisk/monitor/voice-1301-1302-1288182443.wav /var/spool/asterisk/monitor/voice-1301-1302-1288182443.mp3
LAME 3.98.2 32bits (http://www.mp3dev.org/) CPU features: MMX (ASM used), SSE (ASM used), SSE2 Using polyphase lowpass filter, transition band: 3000 Hz - 3097 Hz Encoding /var/spool/asterisk/monitor/voice-1301-1302-1288182443.wav to /var/spool/asterisk/monitor/voice-1301-1302-1288182443.mp3 Encoding as 8 kHz single-ch MPEG-2.5 Layer III (16x) 8 kbps qval=3 Frame | CPU time/estim | REAL time/estim | play/CPU | ETA 0/ ( 0%)| 0:00/ : | 0:00/ : | x| : 00:05--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 0/75 ( 0%)| 0:00/ 0:00| 0:00/ 0:00| 0.0000x| 0:00 kbps % % 00:05--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 77/77 (100%)| 0:00/ 0:00| 0:00/ 0:00| 184.80x| 0:00 kbps % % -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.0 kbps mono % long switch short % 8.0 100.0 77.9 7.8 14.3 ReplayGain: -6.4dB |
#lame /var/spool/asterisk/monitor/voice-1301-1302-1288182443.wav /var/spool/asterisk/monitor/voice-1301-1302-1288182443.mp3
LAME 3.98.2 32bits (http://www.mp3dev.org/) CPU features: MMX (ASM used), SSE (ASM used), SSE2 Using polyphase lowpass filter, transition band: 3000 Hz - 3097 Hz Encoding /var/spool/asterisk/monitor/voice-1301-1302-1288182443.wav to /var/spool/asterisk/monitor/voice-1301-1302-1288182443.mp3 Encoding as 8 kHz single-ch MPEG-2.5 Layer III (16x) 8 kbps qval=3 Frame | CPU time/estim | REAL time/estim | play/CPU | ETA 0/ ( 0%)| 0:00/ : | 0:00/ : | x| : 00:05--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 0/75 ( 0%)| 0:00/ 0:00| 0:00/ 0:00| 0.0000x| 0:00 kbps % % 00:05--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 77/77 (100%)| 0:00/ 0:00| 0:00/ 0:00| 184.80x| 0:00 kbps % % -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.0 kbps mono % long switch short % 8.0 100.0 77.9 7.8 14.3 ReplayGain: -6.4dB |
#sox
sox: SoX v14.0.1 Failed: Not enough input filenames specified Usage summary: [gopts] [[fopts] infile]... [fopts] outfile [effect [effopts]]... SPECIAL FILENAMES: - stdin (infile) or stdout (outfile) -n use the null file handler; for use with e.g. synth & stat GLOBAL OPTIONS (gopts) (can be specified at any point before the first effect): --buffer BYTES set the buffer size (default 8192) --combine concatenate concatenate multiple input files (default for sox, rec) --combine sequence sequence multiple input files (default for play) ... -N, --reverse-nibbles nibble-order -X, --reverse-bits bit-order of data -B/-L force endianness to big/little -s/-u/-U/-A/ sample encoding: signed/unsigned/u-law/A-law -a/-i/-g/-f ADPCM/IMA ADPCM/GSM/floating point -1/-2/-3/-4/-8 sample size in bytes -v, --volume FACTOR volume input file volume adjustment factor (real number) SUPPORTED FILE FORMATS: 8svx aif aifc aiff aiffc al alsa au auto avr cdda cdr cvs cvsd dat dvms fssd gsm hcom ima ircam la lpc lpc10 lu m3u maud nist nul null pls prc raw s1 s2 s3 s4 sb sf sl smp snd sndt sou sph sw txw u1 u2 u3 u4 ub ul uw vms voc vox wav wavpcm wve xa SUPPORTED EFFECTS: allpass band bandpass bandreject bass chorus compand dcshift deemph dither earwax echo echos equalizer fade filter flanger highpass key ladspa lowpass mcompand mixer noiseprof noisered oops pad pan phaser polyphase rabbit repeat resample reverb reverse silence speed stat swap synth tempo treble tremolo trim vol effopts: depends on effect |
#sox
sox: SoX v14.0.1 Failed: Not enough input filenames specified Usage summary: [gopts] [[fopts] infile]... [fopts] outfile [effect [effopts]]... SPECIAL FILENAMES: - stdin (infile) or stdout (outfile) -n use the null file handler; for use with e.g. synth & stat GLOBAL OPTIONS (gopts) (can be specified at any point before the first effect): --buffer BYTES set the buffer size (default 8192) --combine concatenate concatenate multiple input files (default for sox, rec) --combine sequence sequence multiple input files (default for play) ... -N, --reverse-nibbles nibble-order -X, --reverse-bits bit-order of data -B/-L force endianness to big/little -s/-u/-U/-A/ sample encoding: signed/unsigned/u-law/A-law -a/-i/-g/-f ADPCM/IMA ADPCM/GSM/floating point -1/-2/-3/-4/-8 sample size in bytes -v, --volume FACTOR volume input file volume adjustment factor (real number) SUPPORTED FILE FORMATS: 8svx aif aifc aiff aiffc al alsa au auto avr cdda cdr cvs cvsd dat dvms fssd gsm hcom ima ircam la lpc lpc10 lu m3u maud nist nul null pls prc raw s1 s2 s3 s4 sb sf sl smp snd sndt sou sph sw txw u1 u2 u3 u4 ub ul uw vms voc vox wav wavpcm wve xa SUPPORTED EFFECTS: allpass band bandpass bandreject bass chorus compand dcshift deemph dither earwax echo echos equalizer fade filter flanger highpass key ladspa lowpass mcompand mixer noiseprof noisered oops pad pan phaser polyphase rabbit repeat resample reverb reverse silence speed stat swap synth tempo treble tremolo trim vol effopts: depends on effect |
#lame /var/spool/asterisk/monitor/voice-1301-1302-1288183164.wav /var/spool/asterisk/monitor/voice-1301-1302-1288183164.mp3 && rm /var/spool/asterisk/monitor/voice-1301-1302-1288183164.wav
LAME 3.98.2 32bits (http://www.mp3dev.org/) CPU features: MMX (ASM used), SSE (ASM used), SSE2 Using polyphase lowpass filter, transition band: 3000 Hz - 3097 Hz Encoding /var/spool/asterisk/monitor/voice-1301-1302-1288183164.wav to /var/spool/asterisk/monitor/voice-1301-1302-1288183164.mp3 Encoding as 8 kHz single-ch MPEG-2.5 Layer III (16x) 8 kbps qval=3 Frame | CPU time/estim | REAL time/estim | play/CPU | ETA 0/ ( 0%)| 0:00/ : | 0:00/ : | x| : 00:08--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 0/113 ( 0%)| 0:00/ 0:00| 0:00/ 0:00| 0.0000x| 0:00 ... 100/113 (88%)| 0:00/ 0:00| 0:00/ 0:00| 180.00x| 0:00 kbps % % ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------00:00----------------------- 115/115 (100%)| 0:00/ 0:00| 0:00/ 0:00| 207.00x| 0:00 kbps mono % long switch short % -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 8.0 100.0 90.0 6.0 4.0 kbps mono % long switch short % 8.0 100.0 87.0 7.0 6.1 ReplayGain: -2.3dB |
#lame /var/spool/asterisk/monitor/voice-1301-1302-1288183164.wav /var/spool/asterisk/monitor/voice-1301-1302-1288183164.mp3 && rm /var/spool/asterisk/monitor/voice-1301-1302-1288183164.wav
LAME 3.98.2 32bits (http://www.mp3dev.org/) CPU features: MMX (ASM used), SSE (ASM used), SSE2 Using polyphase lowpass filter, transition band: 3000 Hz - 3097 Hz Encoding /var/spool/asterisk/monitor/voice-1301-1302-1288183164.wav to /var/spool/asterisk/monitor/voice-1301-1302-1288183164.mp3 Encoding as 8 kHz single-ch MPEG-2.5 Layer III (16x) 8 kbps qval=3 Frame | CPU time/estim | REAL time/estim | play/CPU | ETA 0/ ( 0%)| 0:00/ : | 0:00/ : | x| : 00:08--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 0/113 ( 0%)| 0:00/ 0:00| 0:00/ 0:00| 0.0000x| 0:00 ... 100/113 (88%)| 0:00/ 0:00| 0:00/ 0:00| 180.00x| 0:00 kbps % % ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------00:00----------------------- 115/115 (100%)| 0:00/ 0:00| 0:00/ 0:00| 207.00x| 0:00 kbps mono % long switch short % -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 8.0 100.0 90.0 6.0 4.0 kbps mono % long switch short % 8.0 100.0 87.0 7.0 6.1 ReplayGain: -2.3dB |
#lame /var/spool/asterisk/monitor/voice-1301-1302-1288183164.wav /var/spool/asterisk/monitor/voice-1301-1302-1288183164.mp3 && rm /var/spool/asterisk/monitor/voice-1301-1302-1288183164.wa
Could not find "/var/spool/asterisk/monitor/voice-1301-1302-1288183164.wav". |
#lame /var/spool/asterisk/monitor/voice-1301-1302-1288183164.wav /var/spool/asterisk/monitor/voice-1301-1302-1288183164.mp3 && rm /var/spool/asterisk/monitor/voice-1301-1302-1288183164.wa
Could not find "/var/spool/asterisk/monitor/voice-1301-1302-1288183164.wav". |
#cat /usr/local/bin/monitor_exec
#!/bin/sh echo "$@" >> /tmp/monitor_exec.log nice -n 19 sox -m $@ \ && rm $1 $2 \ && lame $3 `echo $3|sed s/wav/mp3/` \ && rm $3 |
#cat /usr/local/bin/monitor_exec
#!/bin/sh echo "$@" >> /tmp/monitor_exec.log nice -n 19 sox -m $@ \ && rm $1 $2 \ && lame $3 `echo $3|sed s/wav/mp3/` \ && rm $3 |
#cat /
bin/ cdrom/ etc/ initrd.img lost+found/ mnt/ proc/ sbin/ srv/ tmp/ var/ boot/ dev/ home/ lib/ media/ opt/ root/ selinux/ sys/ usr/ vmlinuz |
#cat /tmp/
gconfd-roma/ l3-saved-4090.32219.11244 message-2.gsm message-5.gsm monitor_exec.log v180102/ .X11-unix/ .ICE-unix/ mapping-roma message-3.gsm message-6.gsm orbit-roma/ virtual-roma.Gs6qlH/ zdes-byl-asterisk keyring-c2loNX/ message-1.gsm message-4.gsm message-7.gsm seahorse-5jmbAC/ .X0-lock |
#cat /
bin/ cdrom/ etc/ initrd.img lost+found/ mnt/ proc/ sbin/ srv/ tmp/ var/ boot/ dev/ home/ lib/ media/ opt/ root/ selinux/ sys/ usr/ vmlinuz |
#cat /tmp/
gconfd-roma/ l3-saved-4090.32219.11244 message-2.gsm message-5.gsm monitor_exec.log v180102/ .X11-unix/ .ICE-unix/ mapping-roma message-3.gsm message-6.gsm orbit-roma/ virtual-roma.Gs6qlH/ zdes-byl-asterisk keyring-c2loNX/ message-1.gsm message-4.gsm message-7.gsm seahorse-5jmbAC/ .X0-lock |
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... -- Executing [s@macro-dial-with-callerid:1] Set("SIP/1302-08ecada8", "CALLERID(name)="Roma Krul'ko (Softphone) (Kiev)"") in new stack -- Executing [s@macro-dial-with-callerid:2] Dial("SIP/1302-08ecada8", "SIP/vn/1101") in new stack -- Called vn/1101 -- SIP/vn-08f25b08 is circuit-busy == Everyone is busy/congested at this time (1:0/1/0) == Auto fallthrough, channel 'SIP/1302-08ecada8' status is 'CONGESTION' linux3*CLI> restart now linux3*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... -- Executing [s@macro-dial-with-callerid:1] Set("SIP/1302-08ecada8", "CALLERID(name)="Roma Krul'ko (Softphone) (Kiev)"") in new stack -- Executing [s@macro-dial-with-callerid:2] Dial("SIP/1302-08ecada8", "SIP/vn/1101") in new stack -- Called vn/1101 -- SIP/vn-08f25b08 is circuit-busy == Everyone is busy/congested at this time (1:0/1/0) == Auto fallthrough, channel 'SIP/1302-08ecada8' status is 'CONGESTION' linux3*CLI> restart now linux3*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... == Spawn extension (macro-dial-with-callerid, s, 2) exited non-zero on 'SIP/1302-085bdcb0' in macro 'dial-with-callerid' == Spawn extension (macro-dial-with-callerid, s, 2) exited non-zero on 'SIP/1302-085bdcb0' -- Executing [1201@group2:1] Macro("SIP/1302-085bdcb0", "dial-with-callerid|SIP/vn/1201") in new stack -- Executing [s@macro-dial-with-callerid:1] Set("SIP/1302-085bdcb0", "CALLERID(name)="Roma Krul'ko (Softphone) (Kiev)"") in new stack -- Executing [s@macro-dial-with-callerid:2] Dial("SIP/1302-085bdcb0", "SIP/vn/1201") in new stack -- Called vn/1201 -- SIP/vn-085c1190 is circuit-busy == Everyone is busy/congested at this time (1:0/1/0) == Auto fallthrough, channel 'SIP/1302-085bdcb0' status is 'CONGESTION' linux3*CLI> |
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... == Spawn extension (macro-dial-with-callerid, s, 2) exited non-zero on 'SIP/1302-085bdcb0' in macro 'dial-with-callerid' == Spawn extension (macro-dial-with-callerid, s, 2) exited non-zero on 'SIP/1302-085bdcb0' -- Executing [1201@group2:1] Macro("SIP/1302-085bdcb0", "dial-with-callerid|SIP/vn/1201") in new stack -- Executing [s@macro-dial-with-callerid:1] Set("SIP/1302-085bdcb0", "CALLERID(name)="Roma Krul'ko (Softphone) (Kiev)"") in new stack -- Executing [s@macro-dial-with-callerid:2] Dial("SIP/1302-085bdcb0", "SIP/vn/1201") in new stack -- Called vn/1201 -- SIP/vn-085c1190 is circuit-busy == Everyone is busy/congested at this time (1:0/1/0) == Auto fallthrough, channel 'SIP/1302-085bdcb0' status is 'CONGESTION' linux3*CLI> |
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... == Parsing '/etc/asterisk/users.conf': Found -- Executing [1303@group2:1] Queue("SIP/1302-085c97b0", "queine1") in new stack [Oct 28 10:42:28] WARNING[4417]: app_queue.c:3930 queue_exec: Unable to join queue 'queine1' == Auto fallthrough, channel 'SIP/1302-085c97b0' status is 'UNKNOWN' linux3*CLI> queue show No queues.> linux3*CLI> restart now linux3*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... == Parsing '/etc/asterisk/users.conf': Found -- Executing [1303@group2:1] Queue("SIP/1302-085c97b0", "queine1") in new stack [Oct 28 10:42:28] WARNING[4417]: app_queue.c:3930 queue_exec: Unable to join queue 'queine1' == Auto fallthrough, channel 'SIP/1302-085c97b0' status is 'UNKNOWN' linux3*CLI> queue show No queues.> linux3*CLI> restart now linux3*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#apt-cache search gsm sox
libsox-fmt-gsm - SoX GSM format library sox - Swiss army knife of sound processing |
#apt-cache search gsm sox
libsox-fmt-gsm - SoX GSM format library sox - Swiss army knife of sound processing |
#ssh 192.168.108.1
The authenticity of host '192.168.108.1 (192.168.108.1)' can't be established. RSA key fingerprint is da:4a:92:81:55:fc:a8:1b:fd:c8:e4:7a:2e:68:f0:fa. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.108.1' (RSA) to the list of known hosts. root@192.168.108.1's password: Linux linux8.unix.nt 2.6.26-2-686 #1 SMP Thu Sep 16 19:35:51 UTC 2010 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Thu Oct 28 09:53:35 2010 from linux6.unix.nt l3-agent is already running: pid=22793; pidfile=/root/.lilalo/l3-agent.pid ^[[A |
#ssh 192.168.108.1
The authenticity of host '192.168.108.1 (192.168.108.1)' can't be established. RSA key fingerprint is da:4a:92:81:55:fc:a8:1b:fd:c8:e4:7a:2e:68:f0:fa. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.108.1' (RSA) to the list of known hosts. root@192.168.108.1's password: Linux linux8.unix.nt 2.6.26-2-686 #1 SMP Thu Sep 16 19:35:51 UTC 2010 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Thu Oct 28 09:53:35 2010 from linux6.unix.nt l3-agent is already running: pid=22793; pidfile=/root/.lilalo/l3-agent.pid ^[[A |
#ssh 192.168.108.1
root@192.168.108.1's password: Linux linux8.unix.nt 2.6.26-2-686 #1 SMP Thu Sep 16 19:35:51 UTC 2010 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Thu Oct 28 10:33:23 2010 from linux6.unix.nt l3-agent is already running: pid=2156; pidfile=/root/.lilalo/l3-agent.pid |
#ssh 192.168.108.1
root@192.168.108.1's password: Linux linux8.unix.nt 2.6.26-2-686 #1 SMP Thu Sep 16 19:35:51 UTC 2010 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Thu Oct 28 10:33:23 2010 from linux6.unix.nt l3-agent is already running: pid=2156; pidfile=/root/.lilalo/l3-agent.pid |
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... linux3*CLI> queue show queine1 has 0 calls (max unlimited) in 'ringall' strategy (1s holdtime), W:0, C:1, A:0, SL:0.0% within 0s Members: SIP/1301 (Not in use) has taken 1 calls (last was 213 secs ago) SIP/1302 (Not in use) has taken no calls yet No Callers linux3*CLI> restart now linux3*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... linux3*CLI> queue show queine1 has 0 calls (max unlimited) in 'ringall' strategy (1s holdtime), W:0, C:1, A:0, SL:0.0% within 0s Members: SIP/1301 (Not in use) has taken 1 calls (last was 213 secs ago) SIP/1302 (Not in use) has taken no calls yet No Callers linux3*CLI> restart now linux3*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': Found == Parsing '/etc/asterisk/extconfig.conf': Found Connected to Asterisk 1.4.21.2~dfsg-3+lenny1 currently running on linux3 (pid = 4467) Verbosity was 0 and is now 3 [Oct 28 10:52:37] NOTICE[4478]: chan_sip.c:14441 handle_request_invite: Call from '1302' to extension '12001' rejected because extension not found. linux3*CLI> restart now linux3*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': Found == Parsing '/etc/asterisk/extconfig.conf': Found Connected to Asterisk 1.4.21.2~dfsg-3+lenny1 currently running on linux3 (pid = 4467) Verbosity was 0 and is now 3 [Oct 28 10:52:37] NOTICE[4478]: chan_sip.c:14441 handle_request_invite: Call from '1302' to extension '12001' rejected because extension not found. linux3*CLI> restart now linux3*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... [Oct 28 10:56:41] WARNING[4555]: res_musiconhold.c:660 get_mohbyname: Music on Hold class 'default' not found == Spawn extension (group2, 1303, 1) exited non-zero on 'SIP/1302-08a95f30' [Oct 28 10:57:04] NOTICE[4523]: chan_sip.c:14441 handle_request_invite: Call from 'kv' to extension '1001' rejected because extension not found. [Oct 28 11:28:23] NOTICE[4523]: chan_sip.c:14441 handle_request_invite: Call from '1302' to extension 'dancer' rejected because extension not found. -- Executing [1303@group2:1] Queue("SIP/1302-08aa1be0", "queine1") in new stack [Oct 28 11:33:26] WARNING[4781]: res_musiconhold.c:660 get_mohbyname: Music on Hold class 'default' not found linux3*CLI> restart now linux3*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... [Oct 28 10:56:41] WARNING[4555]: res_musiconhold.c:660 get_mohbyname: Music on Hold class 'default' not found == Spawn extension (group2, 1303, 1) exited non-zero on 'SIP/1302-08a95f30' [Oct 28 10:57:04] NOTICE[4523]: chan_sip.c:14441 handle_request_invite: Call from 'kv' to extension '1001' rejected because extension not found. [Oct 28 11:28:23] NOTICE[4523]: chan_sip.c:14441 handle_request_invite: Call from '1302' to extension 'dancer' rejected because extension not found. -- Executing [1303@group2:1] Queue("SIP/1302-08aa1be0", "queine1") in new stack [Oct 28 11:33:26] WARNING[4781]: res_musiconhold.c:660 get_mohbyname: Music on Hold class 'default' not found linux3*CLI> restart now linux3*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#apt-get install libsox-fmt-gsm
Чтение списков пакетов... Готово Построение дерева зависимостей Чтение информации о состоянии... Готово Уже установлена самая новая версия libsox-fmt-gsm. обновлено 0, установлено 0 новых пакетов, для удаления отмечено 0 пакетов, и 5 пакетов не обновлено. |
#apt-get install libsox-fmt-gsm
Чтение списков пакетов... Готово Построение дерева зависимостей Чтение информации о состоянии... Готово Уже установлена самая новая версия libsox-fmt-gsm. обновлено 0, установлено 0 новых пакетов, для удаления отмечено 0 пакетов, и 5 пакетов не обновлено. |
#sox -t mp3 /tmp/memories.mp3 -r 8000 -c1 -t gsm /tmp/memories.gsm resample -ql
sox soxio: Can't open input file `/tmp/memories.mp3': unknown file type `mp3' |
#sox -t mp3 /tmp/memories.mp3 -r 8000 -c1 -t gsm /tmp/memories.gsm resample -ql
sox soxio: Can't open input file `/tmp/memories.mp3': unknown file type `mp3' |
#cp /tmp/memories.gsm /var/lib/asterisk/moh/
|
bin/ cdrom/ etc/ initrd.img lost+found/ mnt/ proc/ sbin/ srv/ tmp/ var/ boot/ dev/ home/ lib/ media/ opt/ root/ selinux/ sys/ usr/ vmlinuz
gconfd-roma/ l3-saved-4090.32219.11244 message-2.gsm message-5.gsm monitor_exec.log v180102/ .X11-unix/ .ICE-unix/ mapping-roma message-3.gsm message-6.gsm orbit-roma/ virtual-roma.Gs6qlH/ zdes-byl-asterisk keyring-c2loNX/ message-1.gsm message-4.gsm message-7.gsm seahorse-5jmbAC/ .X0-lock
l3-agent l3-config l3script monitor_exec
#!/bin/sh echo "$@" >> /tmp/monitor_exec.log nice -n 19 sox -m $@ \ && rm $1 $2 \ && lame $3 `echo $3|sed s/wav/mp3/` \ && rm $3
Время первой команды журнала | 11:54:04 2010-10-27 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 10:32:08 2010-10-28 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 7.92 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.00 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 2.56 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.66 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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