/l3/users/piton/SET-YOUR-FIRSTLAB-NAME-HERE/linux1.linux.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 |
|
#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 |
#tail -f /var/log/mail.log ^C
|
#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) |
#vim /etc/asterisk/voicemail.conf
|
#cd /etc/asterisk/
|
#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 |
#vim voicemail.conf
|
#; 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. |
#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% |
#vim voicemail.conf
|
#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 |
#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 |
#vim voicemail.conf
![]() |
#vim voicemail.conf
![]() |
#apt-get install gpm
![]() |
#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) |
#vim /etc/asterisk/users.conf
|
#vim /etc/asterisk/users.conf
|
#;
; 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 Наверху |
#vim voicemail.conf
![]() |
#vim voicemail.conf
![]() |
#apt-get install gpm
![]() |
#d /etc/asterisk/
![]() |
#vim /etc/asterisk/voicemail.conf
|
#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 |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#[allerid]"SoftPhone <1102>"
|
#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 ; |
#cd /tmp/
|
#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 |
#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) |
#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 |
#ls
asterisk-sounds-ru-gsm-2010-04-28.tar.gz mc-root sound |
#cd sound/
|
#ls
|
#cd /tmp/sound/
|
#ls
|
#cd /tmp/
|
#ls
asterisk-sounds-ru-gsm-2010-04-28.tar.gz mc-root sound |
#cd /tmp/sound/
|
#ls
convert.py digits.txt letters.txt phonetic.txt ru.txt dictate.txt followme.txt pbdirectory.txt ru |
#mv /tmp/sound/ /usr/share/asterisk/sounds/
|
#mv /tmp^Cound/ /usr/share/asterisk/sounds/
![]() |
#cd /usr/share/assou
![]() bash: cd: /usr/share/assou: Нет такого файла или каталога |
#cd /usr/share/asterisk/sounds/
|
#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 |
#ls | less
|
#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 |
#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 |
#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 |
#mc -as
![]() |
#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) ... |
#apt-get install mc
Чтение списков пакетов... Готово Построение дерева зависимостей Чтение информации о состоянии... Готово Уже установлена самая новая версия mc. Следующие пакеты устанавливались автоматически и больше не требуются: libmysqlclient16 mysql-common Для их удаления используйте 'apt-get autoremove'. обновлено 0, установлено 0 новых пакетов, для удаления отмечено 0 пакетов, и 0 пакетов не обновлено. |
#apt-get reinstall mc
![]() E: Неверная операция reinstall |
#apt-get ^C
![]() |
#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 |
#cd /tmp/
|
#mc
![]() |
#dir
custom |
#cd custom/
|
#dir
|
#cd /var/lib/asterisk
|
#cd /var/lib/asterisk/
|
|