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

Содержание

Журнал

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

/dev/tty4
13:54:23
#tail -f /var/log/mail.log
Jun 21 14:48:52 linux1 in.qpopper[11741]: (v4.0.9) Unable to get canonical name of client 192.168.101.2: Name or service not known (-2) [pop_init.c:1250]
Jun 21 14:48:52 linux1 in.qpopper[11741]: (v4.0.9) Servicing request from "192.168.101.2" at 192.168.101.2 [pop_init.c:1408]
Jun 21 14:48:52 linux1 in.qpopper[11741]: Unable to open bulletin directory '/var/spool/popbull': No such file or directory (2) [pop_bull.c:386]
Jun 21 14:48:52 linux1 in.qpopper[11741]: (v4.0.9) POP login by user "user" at (192.168.101.2) 192.168.101.2 [pop_log.c:244]
Jun 21 14:49:17 linux1 in.qpopper[11742]: (v4.0.9) Unable to get canonical name of client 192.168.102.2: Name or service not known (-2) [pop_init.c:1250]
Jun 21 14:49:17 linux1 in.qpopper[11742]: (v4.0.9) Servicing request from "192.168.102.2" at 192.168.102.2 [pop_init.c:1408]
Jun 21 14:49:27 linux1 in.qpopper[11742]: user@spb.unix.nt at 192.168.102.2 (192.168.102.2): -ERR [AUTH] Password supplied for "user@spb.unix.nt" is incorrect. [pop_pass.c:1173]
Jun 21 14:49:45 linux1 in.qpopper[11743]: (v4.0.9) Unable to get canonical name of client 192.168.102.2: Name or service not known (-2) [pop_init.c:1250]
Jun 21 14:49:45 linux1 in.qpopper[11743]: (v4.0.9) Servicing request from "192.168.102.2" at 192.168.102.2 [pop_init.c:1408]
Jun 21 14:49:55 linux1 in.qpopper[11743]: user@spb.unix.nt at 192.168.102.2 (192.168.102.2): -ERR [AUTH] Password supplied for "user@spb.unix.nt" is incorrect. [pop_pass.c:1173]
^C
13:54:33
#tail -f /var/log/mail.log ^C

прошло 55 минут
/dev/tty2
14:50:06
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-1741.16646.1479	2011-06-21 15:50:24.000000000 +0300
+++ /etc/asterisk/extensions.conf	2011-06-21 15:51:12.000000000 +0300
@@ -13,6 +13,7 @@
 [local]
 exten => _8XXX,1,Playback(demo-congrats)
 exten => _11XX,1,Dial(SIP/${EXTEN},5)
+exten => _11XX,n,VoiceMail()
 
 [national]
 exten => _12XX,1,Dial(SIP/spb/${EXTEN},5)
14:51:12
#vim /etc/asterisk/voicemail.conf
14:51:48
#cd /etc/asterisk/

14:51:52
#ls
adsi.conf                extconfig.conf          osp.conf
adtranvofr.conf          extensions.ael          oss.conf
agents.conf              extensions.conf         phone.conf
ais.conf                 extensions.conf.save    phoneprov.conf
alarmreceiver.conf       extensions.lua          queuerules.conf
alsa.conf                extensions_minivm.conf  queues.conf
amd.conf                 features.conf           res_config_sqlite.conf
asterisk.adsi            festival.conf           res_ldap.conf
asterisk.conf            followme.conf           res_odbc.conf
cdr_adaptive_odbc.conf   func_odbc.conf          res_pgsql.conf
...
cli_aliases.conf         logger.conf             sla.conf
cli.conf                 manager.conf            smdi.conf
cli_permissions.conf     manager.d               telcordia-1.adsi
codecs.conf              meetme.conf             udptl.conf
console.conf             mgcp.conf               unistim.conf
dbsep.conf               minivm.conf             usbradio.conf
dnsmgr.conf              misdn.conf              users.conf
dsp.conf                 modules.conf            voicemail.conf
dundi.conf               musiconhold.conf        voicemail.conf.save
enum.conf                muted.conf              vpb.conf
14:51:53
#vim voicemail.conf
14:52:33
#; things may happen to your users while they are retrieving and
Чтение списков пакетов... Готово
Построение дерева зависимостей
Чтение информации о состоянии... Готово
Следующие пакеты устанавливались автоматически и больше не требуются:
  libmysqlclient16 mysql-common
Для их удаления используйте 'apt-get autoremove'.
НОВЫЕ пакеты, которые будут установлены:
  gpm
обновлено 0, установлено 1 новых пакетов, для удаления отмечено 0 пакетов, и 0 пакетов не обновлено.
Необходимо скачать 228 kБ архивов.
...
Распаковывается пакет gpm (из файла .../gpm_1.20.4-3.3_amd64.deb)...
Обрабатываются триггеры для install-info ...
Обрабатываются триггеры для man-db ...
Настраивается пакет gpm (1.20.4-3.3) ...
Creating config file /etc/gpm.conf with new version
Ignoring install-info called from maintainer script
The package gpm should be rebuilt with new debhelper to get trigger support
Stopping mouse interface server: gpmO0o.oops(): [daemon/check_kill.c(38)]: Could not open /var/run/gpm.pid.
 failed!
Starting mouse interface server: gpm.
14:53:43
#apt-get install gpm
; Should the email contain the voicemail as an attachment
attach=yes
; Maximum number of messages per folder.  If not specified, a default value
; (100) is used.  Maximum value for this option is 9999.
;maxmsg=100
; Maximum length of a voicemail message in seconds
;maxsecs=180
; Minimum length of a voicemail message in seconds for the message to be kept
; The default is no minimum.
;minsecs=3
; Maximum length of greetings in seconds
                                                              44,1           5%
14:54:23
#vim voicemail.conf
14:54:43
#vim voicemail.conf
--- /tmp/l3-saved-1741.18403.3814	2011-06-21 15:54:45.000000000 +0300
+++ voicemail.conf	2011-06-21 15:58:08.000000000 +0300
@@ -14,6 +14,10 @@
 ; voicemail, only the first format specified will be used.
 ;format=g723sf|wav49|wav
 format=wav49|gsm|wav
+
+1101 => 1234,Pavel Timoschenkov,user@msk.unix.nt
+1102 => 1234,Pavel Timoschenkov,user@msk.unix.nt
+
 ;
 ; WARNING:
 ; If you change the list of formats that you record voicemail in
14:58:08
#asterisk -rvv
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 linux1 (pid = 5689)
Verbosity is at least 2
linux1*CLI> voicemail
reload  show
linux1*CLI> voicemail reload
Reloading voicemail configuration...
  == Parsing '/etc/asterisk/voicemail.conf':   == Found
  == Parsing '/etc/asterisk/users.conf':   == Found
linux1*CLI> voicemail reload
Disconnected from Asterisk server
Executing last minute cleanups
14:58:23
#vim voicemail.conf
14:58:23
#vim voicemail.conf
14:58:23
#apt-get install gpm

14:58:23
#vim /etc/asterisk/voicemail.conf
--- /tmp/l3-saved-1741.21632.23969	2011-06-21 15:58:30.000000000 +0300
+++ /etc/asterisk/extensions.conf	2011-06-21 15:59:31.000000000 +0300
@@ -13,7 +13,7 @@
 [local]
 exten => _8XXX,1,Playback(demo-congrats)
 exten => _11XX,1,Dial(SIP/${EXTEN},5)
-exten => _11XX,n,VoiceMail()
+exten => _11XX,n,VoiceMail(${EXTEN}@default)
 
 [national]
 exten => _12XX,1,Dial(SIP/spb/${EXTEN},5)
15:00:14
#vim /etc/asterisk/users.conf
15:02:47
#vim /etc/asterisk/users.conf
15:04:42
#;
; Formats for writing Voicemail.  Note that when using IMAP storage for
; voicemail, only the first format specified will be used.
;format=g723sf|wav49|wav
format=wav49|gsm|wav
[       ]
[101 => 1234,Pavel Timoschenkov,user@msk.unix.nt
1102 => 1234,Pavel Timoschenkov,user@msk.unix.nt
;
; WARNING:
; If you change the list of formats that you record voicemail in
; when you have mailboxes that contain messages, you _MUST_ ab24,1  ly  Наверху
15:06:03
#vim voicemail.conf
15:06:03
#vim voicemail.conf
15:06:03
#apt-get install gpm

15:06:03
#d /etc/asterisk/

15:06:03
#vim /etc/asterisk/voicemail.conf
15:09:50
#asterisk -rvv
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 linux1 (pid = 12600)
...
[Jun 21 16:09:53] WARNING[12674]: pbx_config.c:1519 pbx_load_config: No closing parenthesis found? 'Dial(SIP/kiev/${EXTEN},5}' at line 22
  == Parsing '/etc/asterisk/users.conf':   == Found
linux1*CLI> dialplan reload
Dialplan reloaded.
  == Parsing '/etc/asterisk/extensions.conf':   == Found
[Jun 21 16:10:01] WARNING[12674]: pbx_config.c:1519 pbx_load_config: No closing parenthesis found? 'Dial(SIP/kiev/${EXTEN},5}' at line 22
  == Parsing '/etc/asterisk/users.conf':   == Found
linux1*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
15:10:03
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
15:20:01
#[allerid]"SoftPhone <1102>"

/dev/tty4
15:25:42
#FEATURE(`masquerade_envelope')dnl
;
; Voicemail Configuration
;
;
; NOTE: Asterisk has to edit this file to change a user's password.  This does
; not currently work with the "#include <file>" directive for Asterisk
; configuration files, nor when using realtime static configuration.
; Do not use them with this configuration file.
;
"/etc/asterisk/voicemail.conf" 369L, 17969C
...
out=fromvm|callback=fromvm|review=yes|operator=yes|envelope=yes|moveheard=yes|sa
yduration=yes|saydurationm=1
;4069 => 6522,Matt Brooks,matt@marko.net,,|tz=central|attach=yes|saycid=yes|dial
e a new voicemail.|emailbody=Click on the attachment to listen.ilsubject=You hav
;4110 => 3443,Rob Flynn,rflynn@blueridge.net
;4235 => 1234,Jim Holmes,jim@astricon.ips,,Tz=european
"/etc/asterisk/voicemail.conf" 370L, 18018C записано
; Mailboxes may be organized into multiple contexts for
; voicemail virtualhosting
;
15:32:02
#cd /tmp/

/dev/pts/3
15:35:30
#ssh-keygen -l -f /etc/ssh/
moduli                sshd_config           ssh_host_dsa_key.pub  ssh_host_rsa_key.pub
ssh_config            ssh_host_dsa_key      ssh_host_rsa_key
15:35:30
#ssh-keygen -l -f /etc/ssh/ssh_host_rsa_key.pub
2048 b4:3e:17:c1:fd:ea:88:f6:f3:00:49:f3:63:a3:af:f0 /etc/ssh/ssh_host_rsa_key.pub (RSA)
/dev/tty4
15:41:28
#ls
asterisk-sounds-ru-gsm-2010-04-28.tar.gz  mc-root
15:41:30
#tar tvfz asterisk-sounds-ru-gsm-2010-04-28.tar.gz
drwxr-xr-x alex/alex         0 2010-04-28 11:46 ./
-rw------- alex/alex      1229 2010-04-28 11:40 ./dictate.txt
-rw------- alex/alex       782 2010-04-28 11:40 ./followme.txt
-rw------- alex/alex       482 2010-04-28 11:40 ./phonetic.txt
drwxr-xr-x alex/alex         0 2010-04-28 11:47 ./ru/
-rw-r--r-- alex/alex      1815 2010-04-28 11:46 ./ru/vykljuchena.gsm
-rw-r--r-- alex/alex      4851 2010-04-28 11:47 ./ru/queue-holdtime.gsm
-rw-r--r-- alex/alex      1485 2010-04-28 11:47 ./ru/spy-sip.gsm
-rw-r--r-- alex/alex      2376 2010-04-28 11:47 ./ru/is-curntly-unavail.gsm
-rw-r--r-- alex/alex      1023 2010-04-28 11:47 ./ru/spy-agent.gsm
...
-rw-r--r-- alex/alex      1617 2010-04-28 11:47 ./ru/PM.gsm
-rw-r--r-- alex/alex      7359 2010-04-28 11:46 ./ru/vm-saveoper.gsm
-rw-r--r-- alex/alex      1188 2010-04-28 11:47 ./ru/dot.gsm
-rw-r--r-- alex/alex      6006 2010-04-28 11:46 ./ru/vm-incorrect-mailbox.gsm
-rw-r--r-- alex/alex      1221 2010-04-28 11:47 ./ru/spy-skinny.gsm
-rw------- alex/alex     34946 2010-04-28 11:41 ./ru.txt
-rwxr-xr-x alex/alex       786 2010-02-17 14:19 ./convert.py
-rw------- alex/alex       207 2010-04-28 11:40 ./pbdirectory.txt
-rw------- alex/alex      2643 2010-04-28 11:40 ./digits.txt
-rw------- alex/alex       528 2010-04-28 11:40 ./letters.txt
15:43:08
#ls
asterisk-sounds-ru-gsm-2010-04-28.tar.gz  mc-root  sound
15:43:11
#cd sound/

15:43:15
#ls

15:43:16
#cd /tmp/sound/

15:43:28
#ls

15:43:56
#cd /tmp/

15:44:04
#ls
asterisk-sounds-ru-gsm-2010-04-28.tar.gz  mc-root  sound
15:44:17
#cd /tmp/sound/

15:44:21
#ls
convert.py   digits.txt    letters.txt      phonetic.txt  ru.txt
dictate.txt  followme.txt  pbdirectory.txt  ru
15:44:22
#mv /tmp/sound/ /usr/share/asterisk/sounds/

15:44:48
#mv /tmp^Cound/ /usr/share/asterisk/sounds/

15:44:56
#cd /usr/share/assou
bash: cd: /usr/share/assou: Нет такого файла или каталога
15:45:02
#cd /usr/share/asterisk/sounds/

15:45:06
#ls
1-for-am-2-for-pm.gsm
1-yes-2-no.gsm
abandon-all-hope.gsm
abandons.gsm
academic-support.gsm
access-code.gsm
access-denied.gsm
access-granted.gsm
accessible-through-system.gsm
account-balance-is.gsm
...
your.gsm
your-msg-has-been-saved.gsm
your-msg-is-too-short.gsm
your-notifications.gsm
your-req-notification.gsm
your-temp-greeting.gsm
you-seem-impatient.gsm
you-sound-cute.gsm
you-wish-to-join.gsm
zip-code.gsm
15:45:08
#ls | less
15:45:30
#dir
1-for-am-2-for-pm.gsm
1-yes-2-no.gsm
abandon-all-hope.gsm
abandons.gsm
academic-support.gsm
access-code.gsm
access-denied.gsm
access-granted.gsm
accessible-through-system.gsm
account-balance-is.gsm
...
your.gsm
your-msg-has-been-saved.gsm
your-msg-is-too-short.gsm
your-notifications.gsm
your-req-notification.gsm
your-temp-greeting.gsm
you-seem-impatient.gsm
you-sound-cute.gsm
you-wish-to-join.gsm
zip-code.gsm
15:45:32
#dir
1-for-am-2-for-pm.gsm
1-yes-2-no.gsm
abandon-all-hope.gsm
abandons.gsm
academic-support.gsm
access-code.gsm
access-denied.gsm
access-granted.gsm
accessible-through-system.gsm
account-balance-is.gsm
...
your.gsm
your-msg-has-been-saved.gsm
your-msg-is-too-short.gsm
your-notifications.gsm
your-req-notification.gsm
your-temp-greeting.gsm
you-seem-impatient.gsm
you-sound-cute.gsm
you-wish-to-join.gsm
zip-code.gsm
15:45:36
#ls
1-for-am-2-for-pm.gsm
1-yes-2-no.gsm
abandon-all-hope.gsm
abandons.gsm
academic-support.gsm
access-code.gsm
access-denied.gsm
access-granted.gsm
accessible-through-system.gsm
account-balance-is.gsm
...
your.gsm
your-msg-has-been-saved.gsm
your-msg-is-too-short.gsm
your-notifications.gsm
your-req-notification.gsm
your-temp-greeting.gsm
you-seem-impatient.gsm
you-sound-cute.gsm
you-wish-to-join.gsm
zip-code.gsm
15:45:39
#mc -as
/dev/tty2
15:46:05
#apt-get install asterisk-prompt-fr-armelle
Чтение списков пакетов... Готово
Построение дерева зависимостей
Чтение информации о состоянии... Готово
Следующие пакеты устанавливались автоматически и больше не требуются:
  libmysqlclient16 mysql-common
Для их удаления используйте 'apt-get autoremove'.
НОВЫЕ пакеты, которые будут установлены:
  asterisk-prompt-fr-armelle
обновлено 0, установлено 1 новых пакетов, для удаления отмечено 0 пакетов, и 0 пакетов не обновлено.
Необходимо скачать 1.505 kБ архивов.
После данной операции, объём занятого дискового пространства возрастёт на 2.273 kB.
Получено:1 http://10.0.35.1/debian/ squeeze/main asterisk-prompt-fr-armelle all 20070613-2 [1.505 kB]
Получено 1.505 kБ за 3с (435 kБ/c)
Выбор ранее не выбранного пакета asterisk-prompt-fr-armelle.
(Чтение базы данных ... на данный момент установлено 37573 файла и каталога.)
Распаковывается пакет asterisk-prompt-fr-armelle (из файла .../asterisk-prompt-fr-armelle_20070613-2_all.deb)...
Настраивается пакет asterisk-prompt-fr-armelle (20070613-2) ...
15:46:33
#apt-get install mc
Чтение списков пакетов... Готово
Построение дерева зависимостей
Чтение информации о состоянии... Готово
Уже установлена самая новая версия mc.
Следующие пакеты устанавливались автоматически и больше не требуются:
  libmysqlclient16 mysql-common
Для их удаления используйте 'apt-get autoremove'.
обновлено 0, установлено 0 новых пакетов, для удаления отмечено 0 пакетов, и 0 пакетов не обновлено.
15:46:53
#apt-get reinstall mc
E: Неверная операция reinstall
15:46:58
#apt-get ^C

15:48:04
#asterisk -rvv
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 linux1 (pid = 13603)
Verbosity was 0 and is now 2
  == Using SIP RTP CoS mark 5
  == Using SIP RTP CoS mark 5
  == Spawn extension (gr3, 1102, 2) exited non-zero on 'SIP/1101-00000000'
linux1*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
15:50:17
#cd /tmp/

15:50:48
#mc
/dev/tty3
15:58:50
#killall mc

/dev/tty2
15:58:53
#cd /var/lib/asterisk/sounds/

15:59:18
#dir
custom
15:59:20
#cd custom/

15:59:24
#dir

15:59:25
#cd /var/lib/asterisk

15:59:34
#cd /var/lib/asterisk/

15:59:35