/l3/users/azhun/nt-voip-2014-apr/debian/root :1 :2 :3 :4 :5 :6 :7 :8 |
|
#operator:x:37:
Stopping Samba daemons: nmbd smbd. Starting Samba daemons: nmbd smbd. |
#nano /etc/samba/smb.conf
--- /tmp/l3-saved-24351.7033.377 2014-04-24 12:16:27.573975354 +0300 +++ /etc/samba/smb.conf 2014-04-24 12:17:30.529976417 +0300 @@ -336,5 +336,5 @@ read only = yes locking = no path = /var/spool/asterisk/monitor - guest ok = no + guest ok = yes |
#hostname
debian |
#smb
smbcontrol smbd smbpasswd smbstatus smbstatus.samba3 |
#smb
smbcontrol smbd smbpasswd smbstatus smbstatus.samba3 |
#smb
smbcontrol smbd smbpasswd smbstatus smbstatus.samba3 |
#smb
smbcontrol smbd smbpasswd smbstatus smbstatus.samba3 |
#apt-get install smbclient
Reading package lists... Done Building dependency tree Reading state information... Done Suggested packages: cifs-utils The following NEW packages will be installed: smbclient 0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded. Need to get 5891 kB of archives. After this operation, 42.9 MB of additional disk space will be used. Get:1 http://192.168.12.254/debian/ wheezy/main smbclient amd64 2:3.6.6-6+deb7u2 [5891 kB] Fetched 5891 kB in 0s (48.3 MB/s) Selecting previously unselected package smbclient. (Reading database ... 133233 files and directories currently installed.) Unpacking smbclient (from .../smbclient_2%3a3.6.6-6+deb7u2_amd64.deb) ... Processing triggers for man-db ... Setting up smbclient (2:3.6.6-6+deb7u2) ... |
#/etc/init.d/samba restart^C
|
#cat /etc/asterisk/voicemail.conf
; ; 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. ; [general] ... ;111 => 7383,Pete,pete@acme-widgets.com,,tz=central ;112 => 6262,Nancy,nancy@acme-widgets.com ; ; ; When using IMAP storage, imapuser, imappassword, and imapfolder can be used to specify the ; user's credentials. ; ;[imapvm] ;4324 => 7764,Ellis Redding,red@buxton.us,,imapuser=eredding|imappassword=g3tbusy|imapfolder=notinbox ;4325 => 2392,Andrew Dufresne,andy@dufresne.info,,imapuser=adufresne|imappassword=rockh@mmer |
#/etc/init.d/samba restart^C
|
#cat /etc/asterisk/voicemail.conf^C
|
#nano /etc/asterisk/voicemail.conf
--- /tmp/l3-saved-24351.524.8702 2014-04-24 13:16:23.434036116 +0300 +++ /etc/asterisk/voicemail.conf 2014-04-24 13:19:28.090039234 +0300 @@ -381,7 +381,10 @@ [default] -1234 => 4242,Example Mailbox,root@localhost +3101 => 1234,Artem Zhun,user@localhost +3102 => 1234,Artem Zhun,user@localhost + +;1234 => 4242,Example Mailbox,root@localhost ;4200 => 9855,Mark Spencer,markster@linux-support.net,mypager@digium.com,attach=no|serveremail=myaddy@digium.com|tz=central|maxmsg=10 ;4300 => 3456,Ben Rigas,ben@american-computer.net ;4310 => -5432,Sales,sales@marko.net |
#military=Zulu|'vm-received' q 'digits/at' H N 'hours' 'phonetic/z_p'
|
#^C
|
#nano /etc/asterisk/extensions.
|
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-24351.25817.8707 2014-04-24 13:20:15.014040027 +0300 +++ /etc/asterisk/extensions.conf 2014-04-24 13:26:26.502046309 +0300 @@ -1,7 +1,6 @@ [default] - [internal] exten => _80XX,1,Answer @@ -9,6 +8,7 @@ exten => _80XX,n,Playback(/var/tmp/asterisk/message${EXTEN:2}) exten => _80XX,n,Hangup +exten => 8100,1,VoiceMailMain() ; ${VARIABLE:start:length} @@ -24,6 +24,7 @@ exten => s,n,Dial(${ARG1}) [macro-localcall] + ; ${ARG1} ; ${ARG2} @@ -33,7 +34,8 @@ exten => s,n,NoOp(Dial Status: ${DIALSTATUS}) exten => s,n,Goto(s-${DIALSTATUS},1) -exten => s-NOANSWER,1,Dial(SIP/3102) +exten => s-NOANSWER,1,NoOp(No Answer) +exten => s-NOANSWER,n,VoiceMail(${MACRO_EXTEN}@default) exten => s-CONGESTION,1,Dial(SIP/3102) exten => s-ANSWER,1,Hangup exten => s-BUSY,1,Busy |
#[default]
|
#asterisk -rv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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. ========================================================================= Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian (pid = 16994) Verbosity is at least 5 debian*CLI> dialplan reload ... == Using SIP RTP CoS mark 5 -- Executing [8001@gr1:1] Answer("SIP/3101-0000022b", "") in new stack -- Executing [8001@gr1:2] Record("SIP/3101-0000022b", "/var/tmp/asterisk/message01:gsm,10") in new stack -- <SIP/3101-0000022b> Playing 'beep.gsm' (language 'en') -- Executing [8001@gr1:3] Playback("SIP/3101-0000022b", "/var/tmp/asterisk/message01") in new stack [Apr 24 13:31:30] WARNING[31770]: file.c:483 ast_filehelper: File /var/tmp/asterisk/message01.gsm detected to have zero size. -- Executing [8001@gr1:4] Hangup("SIP/3101-0000022b", "") in new stack == Spawn extension (gr1, 8001, 4) exited non-zero on 'SIP/3101-0000022b' debian*CLI> quit Executing last minute cleanups |
#nano /etc/asterisk/extensions.conf
|
#[default]
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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. ========================================================================= Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian (pid = 16994) Verbosity is at least 5 == Using SIP RTP CoS mark 5 ... -- <SIP/3101-0000022c> Playing 'digits/1.gsm' (language 'en') -- <SIP/3101-0000022c> Playing 'digits/30.gsm' (language 'en') -- <SIP/3101-0000022c> Playing 'digits/p-m.gsm' (language 'en') -- <SIP/3101-0000022c> Playing '/var/spool/asterisk/voicemail/default/3101/INBOX/msg0000.slin' (language 'en') [Apr 24 13:34:01] WARNING[31807]: app_voicemail.c:7833 play_message: Playback of message /var/spool/asterisk/voicemail/default/3101/INBOX/msg0000 failed [Apr 24 13:34:01] WARNING[31807]: file.c:766 ast_readaudio_callback: Failed to write frame -- <SIP/3101-0000022c> Playing 'vm-advopts.gsm' (language 'en') == Spawn extension (gr1, 8100, 1) exited non-zero on 'SIP/3101-0000022c' debian*CLI> quit Executing last minute cleanups |
#mutt
|
#su -user
su: invalid option -- 'u' Usage: su [options] [LOGIN] Options: -c, --command COMMAND pass COMMAND to the invoked shell -h, --help display this help message and exit -, -l, --login make the shell a login shell -m, -p, --preserve-environment do not reset environment variables, and keep the same shell -s, --shell SHELL use SHELL instead of the default in passwd |
#su - user
-*-Mutt: /var/mail/user [Msgs:1 17K]---(threads/date)--------------------------------------------------(all)--- 1 kept, 0 deleted. user@debian:~$ exit logout |
#su - user
q:Quit d:Del u:Undel s:Save m:Mail r:Reply g:Group ?:Help I 1 <no description> [text/plain, 8bit, iso-8859-1, 0.2K] [-- Type: audio/x-WAV, Encoding: base64, Size: 16K --] [-- Attachment #2: Voicemail sound attachment. --] [-- audio/x-WAV is unsupported (use 'v' to view this part) --] - - 1/1: Asterisk PBX [PBX]: New message 1 in mailbox 3101 -- (all) ---Mutt: /var/mail/user [Msgs:1 17K]---(threads/date)--------------------------------------------------(all)--- Mailbox is unchanged. user@debian:~$ user@debian:~$ user@debian:~$ exit logout /tmp/msg0000.WAV: File Size: 12.5k Bit Rate: 13.1k Encoding: GSM Channels: 1 @ 16-bit Samplerate: 8000Hz Replaygain: off Duration: 00:00:07.68 In:100% 00:00:07.68 [00:00:00.00] Out:61.4k [ -===|===- ] Hd:3.6 Clip:0 Done. |
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-24351.32328.22804 2014-04-24 13:43:04.790063176 +0300 +++ /etc/asterisk/extensions.conf 2014-04-24 13:43:55.722064034 +0300 @@ -15,7 +15,6 @@ [macro-outgoingcall] ; ${ARG1} - outgoing channel + extension - ; EPOCH = seconds since 1.01.1970 exten => s,1,Answer @@ -66,7 +65,6 @@ include => international include => fallback - [gr1] include => internal |
#[default]
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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. ========================================================================= Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian (pid = 16994) Verbosity is at least 5 == Using SIP RTP CoS mark 5 ... -- <SIP/3101-00000232> Playing 'vm-leavemsg.gsm' (language 'en') -- <SIP/3101-00000232> Playing 'vm-starmain.gsm' (language 'en') -- <SIP/3101-00000232> Playing 'vm-toreply.gsm' (language 'en') -- <SIP/3101-00000232> Playing 'vm-tohearenv.gsm' (language 'en') -- <SIP/3101-00000232> Playing 'vm-leavemsg.gsm' (language 'en') -- <SIP/3101-00000232> Playing 'vm-starmain.gsm' (language 'en') -- <SIP/3101-00000232> Playing 'vm-toreply.gsm' (language 'en') == Spawn extension (gr1, 8100, 1) exited non-zero on 'SIP/3101-00000232' debian*CLI> quit Executing last minute cleanups |
#apt-get install ^C
|
#apt-cache search asterisk sounds
asterisk-core-sounds-en - asterisk PBX sound files - US English asterisk-core-sounds-en-g722 - asterisk PBX sound files - en-us/g722 asterisk-core-sounds-en-gsm - asterisk PBX sound files - en-us/gsm asterisk-core-sounds-en-wav - asterisk PBX sound files - en-us/wav asterisk-core-sounds-es - asterisk PBX sound files - Spanish asterisk-core-sounds-es-g722 - asterisk PBX sound files - es-mx/g722 asterisk-core-sounds-es-gsm - asterisk PBX sound files - es-mx/gsm asterisk-core-sounds-es-wav - asterisk PBX sound files - es-mx/wav asterisk-core-sounds-fr - asterisk PBX sound files - Canadian French asterisk-core-sounds-fr-g722 - asterisk PBX sound files - fr-ca/g722 asterisk-core-sounds-fr-gsm - asterisk PBX sound files - fr-ca/gsm asterisk-core-sounds-fr-wav - asterisk PBX sound files - fr-ca/wav asterisk-core-sounds-ru - asterisk PBX sound files - Russian asterisk-core-sounds-ru-g722 - asterisk PBX sound files - ru-ru/g722 asterisk-core-sounds-ru-gsm - asterisk PBX sound files - ru-ru/gsm asterisk-core-sounds-ru-wav - asterisk PBX sound files - ru-ru/wav asterisk-prompt-it-menardi - asterisk PBX Italian sound files |
#apt-get install asterisk-core-sounds-ru
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: asterisk-core-sounds-ru-gsm The following NEW packages will be installed: asterisk-core-sounds-ru asterisk-core-sounds-ru-gsm 0 upgraded, 2 newly installed, 0 to remove and 1 not upgraded. Need to get 2078 kB of archives. After this operation, 2263 kB of additional disk space will be used. ... Fetched 2078 kB in 0s (37.4 MB/s) Selecting previously unselected package asterisk-core-sounds-ru-gsm. (Reading database ... 133259 files and directories currently installed.) Unpacking asterisk-core-sounds-ru-gsm (from .../asterisk-core-sounds-ru-gsm_1.4.22-1_all.deb) ... Selecting previously unselected package asterisk-core-sounds-ru. Unpacking asterisk-core-sounds-ru (from .../asterisk-core-sounds-ru_1.4.22-1_all.deb) ... Setting up asterisk-core-sounds-ru-gsm (1.4.22-1) ... Setting up asterisk-core-sounds-ru (1.4.22-1) ... update-alternatives: using /usr/share/asterisk/sounds/ru_RU_f_IvrvoiceRU to provide /usr/share/asterisk/sounds/ru (asterisk-prompt-ru) in auto mode update-alternatives: using /usr/share/asterisk/sounds/ru_RU_f_IvrvoiceRU to provide /usr/share/asterisk/sounds/ru_RU (asterisk-prompt-ru-ru) in auto mode |
#la /usr/share/asterisk/sounds/
l3script: la: command not found |
#ls /usr/share/asterisk/sounds/
custom en en_US en_US_f_Allison recordings ru ru_RU ru_RU_f_IvrvoiceRU |
#nano /etc/asterisk/extensions.conf
|
#[default]
|
#[general]
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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. ========================================================================= Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian (pid = 16994) Verbosity is at least 5 debian*CLI> sip reload ... -- <SIP/3101-00000235> Playing 'vm-login.gsm' (language 'ru') -- <SIP/3101-00000235> Playing 'vm-password.gsm' (language 'ru') -- <SIP/3101-00000235> Playing 'vm-youhave.gsm' (language 'ru') [Apr 24 14:05:38] WARNING[32432]: file.c:663 ast_openstream_full: File digits/2n does not exist in any format [Apr 24 14:05:38] WARNING[32432]: file.c:958 ast_streamfile: Unable to open digits/2n (format 0x4 (ulaw)): No such file or directory [Apr 24 14:05:38] WARNING[32432]: file.c:663 ast_openstream_full: File vm-oldx does not exist in any format [Apr 24 14:05:38] WARNING[32432]: file.c:958 ast_streamfile: Unable to open vm-oldx (format 0x4 (ulaw)): No such file or directory == Spawn extension (gr1, 8100, 1) exited non-zero on 'SIP/3101-00000235' debian*CLI> quit Executing last minute cleanups |
#asterisk -rv^C
|
#apt-cache search asterisk promt
|
#apt-cache search asterisk^Cromt
|
#apt-get install asterisk-core-sounds-ru
Reading package lists... Done Building dependency tree Reading state information... Done asterisk-core-sounds-ru is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded. |
#apt-cache search promt
|
#apt-cache search
E: You must give at least one search pattern |
#apt-cache search asterisk promt
|
#apt-cache search asterisk
asterisk - Open Source Private Branch Exchange (PBX) asterisk-config - Configuration files for Asterisk asterisk-dahdi - DAHDI devices support for the Asterisk PBX asterisk-dbg - Debugging symbols for Asterisk asterisk-dev - Development files for Asterisk asterisk-doc - Source code documentation for Asterisk asterisk-mobile - Bluetooth phone support for the Asterisk PBX asterisk-modules - loadable modules for the Asterisk PBX asterisk-mp3 - MP3 playback support for the Asterisk PBX asterisk-mysql - MySQL database protocol support for the Asterisk PBX ... linphone-dbg - Debugging symbols for linphone and its libraries op-panel - switchboard type application for the Asterisk PBX libopenr2-3 - MFC/R2 (telephony) call setup library python-asterisk - Asterisk Manager API interface module for Python libsipwitch-dev - secure peer-to-peer SIP VoIP server - development files libsipwitch1 - secure peer-to-peer SIP VoIP server - development files libsipwitch1-dbg - secure peer-to-peer SIP VoIP server - development files sipwitch - secure peer-to-peer VoIP server for the SIP protocol sipwitch-cgi - secure peer-to-peer SIP VoIP server - CGI XML-RPC interface python-starpy - Asterisk (AMI) protocols for Twisted Python |
#wget http://downloads.asterisk.org/pub/telephony/sounds/asterisk-cor
--2014-04-24 14:11:37-- http://downloads.asterisk.org/pub/telephony/sounds/asterisk-cor Resolving downloads.asterisk.org (downloads.asterisk.org)... 76.164.171.238, 2001:470:e0d4::ee Connecting to downloads.asterisk.org (downloads.asterisk.org)|76.164.171.238|:80... connected. HTTP request sent, awaiting response... 404 Not Found 2014-04-24 14:11:37 ERROR 404: Not Found. |
#current.tar.gz
l3script: current.tar.gz: command not found |
#ls -l
total 16164 -rw-r--r-- 1 root root 16543475 Apr 24 14:13 asterisk-core-sounds-ru-wav-current.tar.gz -rw-r--r-- 1 root root 5272 Apr 22 13:54 install |
#tar -xf /root/asterisk-core-sounds-ru-wav-current.tar.gz -C /usr/share/asterisk/sounds/ru
|
#asterisk -rv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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. ========================================================================= Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian (pid = 16994) Verbosity is at least 5 -- <SIP/3101-00000236> Playing 'vm-next.slin' (language 'ru') ... -- <SIP/3101-00000236> Playing '/var/spool/asterisk/voicemail/default/3101/Old/msg0001.slin' (language 'ru') -- <SIP/3101-00000236> Playing 'vm-prev.slin' (language 'ru') -- <SIP/3101-00000236> Playing 'vm-advopts.slin' (language 'ru') -- <SIP/3101-00000236> Playing 'vm-repeat.slin' (language 'ru') -- <SIP/3101-00000236> Playing 'vm-delete.slin' (language 'ru') -- <SIP/3101-00000236> Playing 'vm-toforward.slin' (language 'ru') -- <SIP/3101-00000236> Playing 'vm-goodbye.slin' (language 'ru') -- Auto fallthrough, channel 'SIP/3101-00000236' status is 'UNKNOWN' debian*CLI> quit Executing last minute cleanups |
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-24351.7800.7528 2014-04-24 14:36:29.482117328 +0300 +++ /etc/asterisk/extensions.conf 2014-04-24 14:42:07.970123048 +0300 @@ -7,8 +7,29 @@ exten => _80XX,n,Record(/var/tmp/asterisk/message${EXTEN:2}:gsm,10) exten => _80XX,n,Playback(/var/tmp/asterisk/message${EXTEN:2}) exten => _80XX,n,Hangup +;exten => 8100,1,VoiceMailMain() + +exten => 8100,1,Answer +exten => 8100,n,Set(COUNTRY=${CALLERID(num):0:1}) +exten => 8100,n,NoOp(COUNTRY=${COUNTRY}) + +; GotoIf( $[ condition? label-true : label-false ] ) + +exten => 8100,n,GotoIf($[${COUNTRY}=1?ru]) +exten => 8100,n,GotoIf($[${COUNTRY}=2?de]) +exten => 8100,n,GotoIf($[${COUNTRY}=3?es]) + +exten => 8100,n(ru),Set(CHANNEL(language)=ru) +exten => 8100,n,Goto(vm) + +exten => 8100,n(de),Set(CHANNEL(language)=de) +exten => 8100,n,Goto(vm) + +exten => 8100,n(es),Set(CHANNEL(language)=es) +exten => 8100,n,Goto(vm) + +exten => 8100,n(vm),VoiceMailMain() -exten => 8100,1,VoiceMailMain() ; ${VARIABLE:start:length} |
#ls -l^C
|
#apt-get install asterisk-prompt-de asterisk-core-sounds-es
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: asterisk-core-sounds-es-gsm The following NEW packages will be installed: asterisk-core-sounds-es asterisk-core-sounds-es-gsm asterisk-prompt-de 0 upgraded, 3 newly installed, 0 to remove and 1 not upgraded. Need to get 4340 kB of archives. After this operation, 4611 kB of additional disk space will be used. ... Unpacking asterisk-core-sounds-es-gsm (from .../asterisk-core-sounds-es-gsm_1.4.22-1_all.deb) ... Selecting previously unselected package asterisk-core-sounds-es. Unpacking asterisk-core-sounds-es (from .../asterisk-core-sounds-es_1.4.22-1_all.deb) ... Selecting previously unselected package asterisk-prompt-de. Unpacking asterisk-prompt-de (from .../asterisk-prompt-de_2.0-1.1_all.deb) ... Setting up asterisk-core-sounds-es-gsm (1.4.22-1) ... Setting up asterisk-core-sounds-es (1.4.22-1) ... update-alternatives: using /usr/share/asterisk/sounds/es_MX_f_Allison to provide /usr/share/asterisk/sounds/es (asterisk-prompt-es) in auto mode update-alternatives: using /usr/share/asterisk/sounds/es_MX_f_Allison to provide /usr/share/asterisk/sounds/es_MX (asterisk-prompt-es-mx) in auto mode Setting up asterisk-prompt-de (2.0-1.1) ... |
#nano /etc/asterisk/extensions.conf^C
|
#asterisk -rv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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. ========================================================================= Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian (pid = 16994) Verbosity is at least 5 debian*CLI> dialplan reload ... -- Executing [3201@gr_relay:1] Macro("SIP/kiev-0000023f", "outgoingcall,SIP/santiago/3201") in new stack -- Executing [s@macro-outgoingcall:1] Answer("SIP/kiev-0000023f", "") in new stack -- Executing [s@macro-outgoingcall:2] Set("SIP/kiev-0000023f", "CALLFILENAME=3201-3301-1398340066") in new stack -- Executing [s@macro-outgoingcall:3] Monitor("SIP/kiev-0000023f", "wav,3201-3301-1398340066,m") in new stack -- Executing [s@macro-outgoingcall:4] Dial("SIP/kiev-0000023f", "SIP/santiago/3201") in new stack == Using SIP RTP CoS mark 5 -- Called SIP/santiago/3201 -- SIP/santiago-00000240 answered SIP/kiev-0000023f debian*CLI> quit Executing last minute cleanups |
#nano /etc/asterisk/extensions.conf
|
#[default]
GNU nano 2.2.6 File: /etc/asterisk/sip.conf Modified [general] context=default ; canreinvite=0 -old version asterisk directmedia=no ; register => havana:1234@192.168.12.8/santiago register => havana:1234@192.168.12.2/kiev ; peer ;3101 - 3199 all my ... context=gr_relay [kiev] type=friend secret=1234 host=dynamic username=havana context=gr_relay [ Read 40 lines ] ^G Get Help ^O WriteOut ^R Read File ^Y Prev Page ^K Cut Text ^C Cur Pos ^X Exit ^J Justify ^W Where Is ^V Next Page ^U UnCut Text ^T To Spell |
#exten => 8100,n,Goto(vm)
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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. ========================================================================= Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian (pid = 16994) Verbosity is at least 5 debian*CLI> sip reload ... -- <SIP/3101-00000243> Playing 'beep.gsm' (language 'en') -- Recording the message -- x=0, open writing: /var/spool/asterisk/voicemail/default/3102/tmp/QA8yt9 format: wav49, 0x7fd09c6a3b68 -- x=1, open writing: /var/spool/asterisk/voicemail/default/3102/tmp/QA8yt9 format: gsm, 0x7fd09c6a4ba8 -- x=2, open writing: /var/spool/asterisk/voicemail/default/3102/tmp/QA8yt9 format: wav, 0x7fd09c6974e8 -- User hung up == Spawn extension (macro-localcall, s-NOANSWER, 2) exited non-zero on 'SIP/3101-00000243' in macro 'localcall' == Spawn extension (gr1, 3102, 1) exited non-zero on 'SIP/3101-00000243' debian*CLI> quit Executing last minute cleanups |
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-24351.7423.20135 2014-04-24 14:50:07.694131155 +0300 +++ /etc/asterisk/extensions.conf 2014-04-24 14:52:08.598133201 +0300 @@ -15,9 +15,9 @@ ; GotoIf( $[ condition? label-true : label-false ] ) -exten => 8100,n,GotoIf($[${COUNTRY}=1?ru]) -exten => 8100,n,GotoIf($[${COUNTRY}=2?de]) -exten => 8100,n,GotoIf($[${COUNTRY}=3?es]) +exten => 8100,n,GotoIf($[${COUNTRY}=1]?ru) +exten => 8100,n,GotoIf($[${COUNTRY}=2]?de) +exten => 8100,n,GotoIf($[${COUNTRY}=3]?es) exten => 8100,n(ru),Set(CHANNEL(language)=ru) exten => 8100,n,Goto(vm) |
#[default]
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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. ========================================================================= Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian (pid = 16994) Verbosity is at least 5 debian*CLI> dialplan reload ... -- Executing [s@macro-outgoingcall:2] Set("SIP/kiev-00000249", "CALLFILENAME=3201-1201-1398340555") in new stack -- Executing [s@macro-outgoingcall:3] Monitor("SIP/kiev-00000249", "wav,3201-1201-1398340555,m") in new stack -- Executing [s@macro-outgoingcall:4] Dial("SIP/kiev-00000249", "SIP/santiago/3201") in new stack == Using SIP RTP CoS mark 5 -- Called SIP/santiago/3201 -- SIP/santiago-0000024a answered SIP/kiev-00000249 == Spawn extension (macro-outgoingcall, s, 4) exited non-zero on 'SIP/kiev-00000249' in macro 'outgoingcall' == Spawn extension (gr_relay, 3201, 1) exited non-zero on 'SIP/kiev-00000249' debian*CLI> quit Executing last minute cleanups |
#nano /etc/asterisk/extensions.conf
|
#exten => 8100,n,Goto(vm)
l3script: apt-cash: command not found |
#apt-cach search festival
l3script: apt-cach: command not found |
#apt-cach search festi
l3script: apt-cach: command not found |
#apt-cache search festi
brltty-flite - Access software for a blind person - Flite speech driver eflite - Festival-Lite based emacspeak speech server festival - General multi-lingual speech synthesis system festival-dev - Development kit for the Festival speech synthesis system festival-czech - Czech support for Festival speech synthesis system festival-doc - Documentation for Festival festival-freebsoft-utils - Festival extensions and utilities festival-hi - festival text to speech synthesizer for Hindi language festvox-hi-nsk - Hindi male speaker for festival festlex-ifd - Italian support for Festival ... libgnome-speech7 - GNOME text-to-speech library libperlspeak-perl - Perl Module for text to speech with festival, espeak, cepstral pidgin-festival - pidgin plugin to hear incoming messages using voice synthesis screader - Screen reader using software or hardware speech synthesizer speech-dispatcher-festival - Festival support for Speech Dispatcher speechd-up - Interface between Speech Dispatcher and SpeakUp stardict-plugin-festival - International dictionary - Festival TTS plugin plasma-widget-translatoid - translation widget for KDE Plasma writetype - application designed to help students write more easily yasr - General-purpose console screen reader |
#nano /etc/asterisk/extensions.conf^C
|
#apt-get install festival festvox-ru
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: esound-common festlex-cmu festlex-poslex festvox-kallpc16k libaudiofile1 libesd0 libestools2.1 Suggested packages: pidgin-festival festival-freebsoft-utils pulseaudio-esound-compat The following NEW packages will be installed: esound-common festival festlex-cmu festlex-poslex festvox-kallpc16k festvox-ru libaudiofile1 libesd0 libestools2.1 ... Setting up libaudiofile1:amd64 (0.3.4-2) ... Setting up esound-common (0.2.41-10) ... Setting up libesd0:amd64 (0.2.41-10+b1) ... Setting up libestools2.1:amd64 (1:2.1~release-5) ... Setting up festival (1:2.1~release-5.1) ... Processing triggers for sgml-base ... Setting up festvox-ru (0.5-5) ... Setting up festlex-cmu (1.4.0-6) ... Setting up festlex-poslex (1.4.0-5) ... Setting up festvox-kallpc16k (1.4.0-5) ... |
#cat > 1.txt Hello! Men
cat: Hello!: No such file or directory cat: Men: No such file or directory |
#mkdir /home/user/test-play
|
#cd /home/user/test-play/
|
#cd /home/user/test-play/^C
|
#cat > 1.txt
hello! men! ^C |
#cat > 1.txt | text2wave > 1.wav
^C |
#nano 1.txt
--- /tmp/l3-saved-24351.23660.24347 2014-04-24 15:35:45.646177417 +0300 +++ 1.txt 2014-04-24 15:35:54.370177567 +0300 @@ -0,0 +1 @@ +hello! men! |
#hello! men!
^C |
#ls
1.txt 1.wav |
#play 1.wav
play WARN alsa: can't encode 0-bit Unknown or not applicable 1.wav: File Size: 44 Encoding: Signed PCM Channels: 1 @ 16-bit Samplerate: 16000Hz Replaygain: off Duration: unknown In:0.00% 00:00:00.00 [00:00:00.00] Out:0 [ | ] Clip:0 Done. |
#cat 1.txt
|
#nano 1.txt
--- /tmp/l3-saved-24351.15715.23324 2014-04-24 15:36:53.334178563 +0300 +++ 1.txt 2014-04-24 15:37:02.666178717 +0300 @@ -0,0 +1 @@ +hello! men! |
#hello! men!
|
#cat 1.txt
hello! men! |
#cat 1.txt | text2wave > 1.wav
|
#play 1.wav
play WARN alsa: can't encode 0-bit Unknown or not applicable 1.wav: File Size: 67.2k Bit Rate: 256k Encoding: Signed PCM Channels: 1 @ 16-bit Samplerate: 16000Hz Replaygain: off Duration: 00:00:02.10 In:100% 00:00:02.10 [00:00:00.00] Out:33.6k [ | ] Hd:4.3 Clip:0 Done. |
#cd /home/user/
|
#ls
Desktop Documents Downloads Mail Music Pictures Public Templates Videos belka.txt test-play |
#cat belka.txt | text2wave -eval '(voice_msu_ru_nsh_clunits)' > belka.wav
|
#play belka.wav
play WARN alsa: can't encode 0-bit Unknown or not applicable belka.wav: File Size: 9.44M Bit Rate: 256k Encoding: Signed PCM Channels: 1 @ 16-bit Samplerate: 16000Hz Replaygain: off Duration: 00:04:55.03 In:9.72% 00:00:28.67 [00:04:26.36] Out:459k [ =====|===== ] Hd:5.9 Clip:0 Aborted. |
#play belka.wav
play WARN alsa: can't encode 0-bit Unknown or not applicable belka.wav: File Size: 9.44M Bit Rate: 256k Encoding: Signed PCM Channels: 1 @ 16-bit Samplerate: 16000Hz Replaygain: off Duration: 00:04:55.03 In:4.69% 00:00:13.82 [00:04:41.21] Out:221k [ -====|====- ] Clip:0 Aborted. |
#^Ct belka.txt | text2wave -eval '(voice_msu_ru_nsh_clunits)' > belka.wav
|
#^C
|
#cat burunduki.txt | text2wave -eval '(voice_msu_ru_nsh_clunits)' > burunduki.wav
|
#play burunduki.wav
play WARN alsa: can't encode 0-bit Unknown or not applicable burunduki.wav: File Size: 10.8M Bit Rate: 256k Encoding: Signed PCM Channels: 1 @ 16-bit Samplerate: 16000Hz Replaygain: off Duration: 00:05:36.46 In:7.61% 00:00:25.60 [00:05:10.86] Out:410k [ =====|===== ] Hd:4.2 Clip:0 Aborted. |
#nano /usr/bin/as
|
#nano /usr/local/bin/asterisk-festival.pl
|
#!/usr/bin/perl
var/ vmlinuz |
#mkdir -p /var/lib/asterisk/sounds/tts/
|
#chown asterisk:asterisk /var/lib/asterisk/sounds/tts/
|
#chmod +x /usr/local/bin/asterisk-festival.pl
|
#/usr/local/bin/asterisk-festival.pl
Can't locate Asterisk/AGI.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at /usr/local/bin/asterisk-festival.pl line 3. BEGIN failed--compilation aborted at /usr/local/bin/asterisk-festival.pl line 3. |
#apt-cashe search asterisk agi | grep perl
l3script: apt-cashe: command not found |
#apt-cache search asterisk agi | grep perl
libasterisk-agi-perl - Collections of Perl modules to be used with Asterisk PBX AGI |
#apt-get install libasterisk-agi-perl
Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: libasterisk-agi-perl 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 42.2 kB of archives. After this operation, 160 kB of additional disk space will be used. Get:1 http://192.168.12.254/debian/ wheezy/main libasterisk-agi-perl all 1.01-2 [42.2 kB] Fetched 42.2 kB in 0s (3937 kB/s) Selecting previously unselected package libasterisk-agi-perl. (Reading database ... 136824 files and directories currently installed.) Unpacking libasterisk-agi-perl (from .../libasterisk-agi-perl_1.01-2_all.deb) ... Processing triggers for man-db ... Setting up libasterisk-agi-perl (1.01-2) ... |
#/usr/local/bin/asterisk-festival.pl
EXEC Playback "/var/lib/asterisk/sounds/tts/tts-d41d8cd98f00b204e9800998ecf8427e" |
; ; 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. ; [general] ; 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 ; ; WARNING: ; If you change the list of formats that you record voicemail in ; when you have mailboxes that contain messages, you _MUST_ absolutely ; manually go through those mailboxes and convert/delete/add the ; the message files so that they appear to have been stored using ; your new format list. If you don't do this, very unpleasant ; things may happen to your users while they are retrieving and ; manipulating their voicemail. ; ; In other words: don't change the format list on a production system ; unless you are _VERY_ sure that you know what you are doing and are ; prepared for the consequences. ; ; Who the e-mail notification should appear to come from serveremail=asterisk ;serveremail=asterisk@linux-support.net ; 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. If set to 0, a ; mailbox will be greetings-only. ;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 ;maxgreet=60 ; How many milliseconds to skip forward/back when rew/ff in message playback skipms=3000 ; How many seconds of silence before we end the recording maxsilence=10 ; Silence threshold (what we consider silence: the lower, the more sensitive) silencethreshold=128 ; Max number of failed login attempts maxlogins=3 ; ; Move heard messages to the 'Old' folder automagically. Defaults to on. ;moveheard=yes ; ; Forward an urgent message as an urgent message. Defaults to no so ; sender can set the urgency on the envelope of the forwarded message. ;forward_urgent_auto=no ; ; User context is where entries from users.conf are registered. The ; default value is 'default' ; ;userscontext=default ; ; If you need to have an external program, i.e. /usr/bin/myapp ; called when a voicemail is left, delivered, or your voicemailbox ; is checked, uncomment this. ;externnotify=/usr/bin/myapp ; If you would also like to enable SMDI notification then set smdienable to yes. ; You will also need to make sure smdiport is set to a valid port as specified in ; smdi.conf. ;smdienable=yes ;smdiport=/dev/ttyS0 ; If you need to have an external program, i.e. /usr/bin/myapp ; called when a voicemail password is changed, uncomment this. The ; arguments passed to the application are: <context> <mailbox> <newpassword> ; Note: If this is set, the password will NOT be changed in voicemail.conf ; If you would like to also change the password in voicemail.conf, use ; the externpassnotify option below instead. ;externpass=/usr/bin/myapp ;externpassnotify=/usr/bin/myapp ; If you would like to have an external program called when a user changes the ; voicemail password for the purpose of doing validation on the new password, ; then use this option. The script can decide whether or not the new password ; meets minimum password strength requirements before the Voicemail application ; accepts the password. If the script decides that the password is not acceptable, ; the user will be informed that the new password does not meet minimum password ; requirements, and they will be asked to enter another password. ; ; The arguments passed to this script are <mailbox> <context> <old pw> <new pw>. ; ; The script should print "VALID" to stdout to indicate that the new password ; is acceptable. If the password is considered too weak, the script should print ; "INVALID" to stdout. ; ; There is an example script in the contrib/scripts/ directory, voicemailpwcheck.py, ; which implements some basic password checking, and can be used as a starting point ; for use with this option. ; ;externpasscheck=/usr/local/bin/voicemailpwcheck.py ; For the directory, you can override the intro file if you want ;directoryintro=dir-intro ; The character set for voicemail messages can be specified here ; default: ISO-8859-1 ;charset=UTF-8 ; The ADSI feature descriptor number to download to ;adsifdn=0000000F ; The ADSI security lock code ;adsisec=9BDBF7AC ; The ADSI voicemail application version number. ;adsiver=1 ; Skip the "[PBX]:" string from the message title ;pbxskip=yes ; Change the From: string ;fromstring=The Asterisk PBX ; Permit finding entries for forward/compose from the directory ;usedirectory=yes ; Voicemail can be stored in a database using the ODBC driver. ; The value of odbcstorage is the database connection configured ; in res_odbc.conf. ;odbcstorage=asterisk ; The default table for ODBC voicemail storage is voicemessages. ;odbctable=voicemessages ; ; Change the from, body and/or subject, variables: ; VM_NAME, VM_DUR, VM_MSGNUM, VM_MAILBOX, VM_CALLERID, VM_CIDNUM, ; VM_CIDNAME, VM_DATE ; Additionally, on forwarded messages, you have the variables: ; ORIG_VM_CALLERID, ORIG_VM_CIDNUM, ORIG_VM_CIDNAME, ORIG_VM_DATE ; You can select between two variables by using dialplan functions, e.g. ; ${IF(${ISNULL(${ORIG_VM_DATE})}?${VM_DATE}:${ORIG_VM_DATE})} ; ; Note: The emailbody config row can only be up to 512 characters due to a ; limitation in the Asterisk configuration subsystem. ;emailsubject=[PBX]: New message ${VM_MSGNUM} in mailbox ${VM_MAILBOX} ; The following definition is very close to the default, but the default shows ; just the CIDNAME, if it is not null, otherwise just the CIDNUM, or "an unknown ; caller", if they are both null. ;emailbody=Dear ${VM_NAME}:\n\n\tjust wanted to let you know you were just left a ${VM_DUR} long message (number ${VM_MSGNUM})\nin mailbox ${VM_MAILBOX} from ${VM_CALLERID}, on ${VM_DATE}, so you might\nwant to check it when you get a chance. Thanks!\n\n\t\t\t\t--Asterisk\n ; ; Note: ${IF()} strips spacing at the beginning and end of its true and false ; values, so a newline cannot be placed at either location. The word 'so' is ; therefore duplicated, in order for the newline to be interpreted correctly. ;emailbody=Dear ${VM_NAME}:\n\n\tjust wanted to let you know you were just ${IF($["${VM_CIDNUM}" = "${ORIG_VM_CIDNUM}"]?left:forwarded)} a ${VM_DUR} long message (number ${VM_MSGNUM})\nin mailbox ${VM_MAILBOX} from ${VM_CALLERID}, on ${VM_DATE},\n${IF($["${VM_CIDNUM}" = "${ORIG_VM_CIDNUM}"]?so:(originally sent by ${ORIG_VM_CALLERID} on ${ORIG_VM_DATE})\nso)} you might want to check it when you get ; ; You can also change the Pager From: string, the pager body and/or subject. ; The above defined variables also can be used here ;pagerfromstring=The Asterisk PBX ;pagersubject=New VM ;pagerbody=New ${VM_DUR} long msg in box ${VM_MAILBOX}\nfrom ${VM_CALLERID}, on ${VM_DATE} ; ; Set the date format on outgoing mails. Valid arguments can be found on the ; strftime(3) man page ; ; Default emaildateformat=%A, %B %d, %Y at %r ; 24h date format ;emaildateformat=%A, %d %B %Y at %H:%M:%S ; ; Default for pager use pagerdateformat=%A, %B %d, %Y at %r ; Short 24h date format for pager use ;pagerdateformat=%T %D ; ; You can override the default program to send e-mail if you wish, too ; ;mailcmd=/usr/sbin/sendmail -t ; ;pollmailboxes=no ; If mailboxes are changed anywhere outside of app_voicemail, ; ; then this option must be enabled for MWI to work. This ; ; enables polling mailboxes for changes. Normally, it will ; ; expect that changes are only made when someone called in ; ; to one of the voicemail applications. ; ; Examples of situations that would require this option are ; ; web interfaces to voicemail or an email client in the case ; ; of using IMAP storage. ; ; Default: no ;pollfreq=30 ; If the "pollmailboxes" option is enabled, this option ; ; sets the polling frequency. The default is once every ; ; 30 seconds. ; If using IMAP storage, specify whether voicemail greetings should be stored ; via IMAP. If no, then greetings are stored as if IMAP storage were not enabled ;imapgreetings=no ; If imapgreetings=yes, then specify which folder to store your greetings in. If ; you do not specify a folder, then INBOX will be used ;greetingsfolder=INBOX ; Some IMAP server implementations store folders under INBOX instead of ; using a top level folder (ex. INBOX/Friends). In this case, user ; imapparentfolder to set the parent folder. For example, Cyrus IMAP does ; NOT use INBOX as the parent. Default is to have no parent folder set. ;imapparentfolder=INBOX ; ; ; ; Each mailbox is listed in the form <mailbox>=<password>,<name>,<email>,<pager_email>,<options> ; if the e-mail is specified, a message will be sent when a message is ; received, to the given mailbox. If pager is specified, a message will be ; sent there as well. If the password is prefixed by '-', then it is ; considered to be unchangeable. ; ; Advanced options example is extension 4069 ; NOTE: All options can be expressed globally in the general section, and ; overridden in the per-mailbox settings, unless listed otherwise. ; ; tz=central ; Timezone from zonemessages below. Irrelevant if envelope=no. ; locale=de_DE.UTF-8 ; set the locale for generation of the date/time strings (make ; sure the locales are installed in your operating system; e.g ; on Debian Linux you can use "dpkg-reconfigure locales"). ; If you use UTF-8 locales, make sure to set the "charset" option ; to UTF-8 too. If you mix different locales for different users ; you should avoid words in the emaildateformat specification, e.g.: ; emaildateformat=%A, %d %B %Y, %H:%M:%S ; attach=yes ; Attach the voicemail to the notification email *NOT* the pager email ; attachfmt=wav49 ; Which format to attach to the email. Normally this is the ; first format specified in the format parameter above, but this ; option lets you customize the format sent to particular mailboxes. ; Useful if Windows users want wav49, but Linux users want gsm. ; [per-mailbox only] ; saycid=yes ; Say the caller id information before the message. If not described, ; or set to no, it will be in the envelope ; cidinternalcontexts=intern ; Internal Context for Name Playback instead of ; extension digits when saying caller id. ; sayduration=no ; Turn on/off the duration information before the message. [ON by default] ; saydurationm=2 ; Specify the minimum duration to say. Default is 2 minutes ; dialout=fromvm ; Context to dial out from [option 4 from mailbox's advanced menu]. ; If not specified, option 4 will not be listed and dialing out ; from within VoiceMailMain() will not be permitted. sendvoicemail=yes ; Allow the user to compose and send a voicemail while inside ; VoiceMailMain() [option 5 from mailbox's advanced menu]. ; If set to 'no', option 5 will not be listed. ; searchcontexts=yes ; Current default behavior is to search only the default context ; if one is not specified. The older behavior was to search all contexts. ; This option restores the old behavior [DEFAULT=no] ; Note: If you have this option enabled, then you will be required to have ; unique mailbox names across all contexts. Otherwise, an ambiguity is created ; since it is impossible to know which mailbox to retrieve when one is requested. ; callback=fromvm ; Context to call back from ; if not listed, calling the sender back will not be permitted ; exitcontext=fromvm ; Context to go to on user exit such as * or 0 ; The default is the current context. ; review=yes ; Allow sender to review/rerecord their message before saving it [OFF by default ; operator=yes ; Allow sender to hit 0 before/after/during leaving a voicemail to ; reach an operator. This option REQUIRES an 'o' extension in the ; same context (or in exitcontext, if set), as that is where the ; 0 key will send you. [OFF by default] ; envelope=no ; Turn on/off envelope playback before message playback. [ON by default] ; This does NOT affect option 3,3 from the advanced options menu ; delete=yes ; After notification, the voicemail is deleted from the server. [per-mailbox only] ; This is intended for use with users who wish to receive their ; voicemail ONLY by email. Note: "deletevoicemail" is provided as an ; equivalent option for Realtime configuration. ; volgain=0.0 ; Emails bearing the voicemail may arrive in a volume too ; quiet to be heard. This parameter allows you to specify how ; much gain to add to the message when sending a voicemail. ; NOTE: sox must be installed for this option to work. ; nextaftercmd=yes ; Skips to the next message after hitting 7 or 9 to delete/save current message. ; forcename=yes ; Forces a new user to record their name. A new user is ; determined by the password being the same as ; the mailbox number. The default is "no". ; forcegreetings=no ; This is the same as forcename, except for recording ; greetings. The default is "no". ; hidefromdir=yes ; Hide this mailbox from the directory produced by app_directory ; The default is "no". ; tempgreetwarn=yes ; Remind the user that their temporary greeting is set ; passwordlocation=spooldir ; Usually the voicemail password (vmsecret) is stored in ; this configuration file. By setting this option you can ; specify where Asterisk should read/write the vmsecret. ; Supported options: ; voicemail.conf: ; This is the default option. The secret is read from ; and written to voicemail.conf (or users.conf). ; spooldir: ; The secret is stored in a separate file in the user's ; voicemail spool directory in a file named secret.conf. ; Please ensure that normal Linux users are not ; permitted to access Asterisk's spool directory as the ; secret is stored in plain text. If a secret is not ; found in this directory, the password in ; voicemail.conf (or users.conf) will be used. ; Note that this option does not affect password storage for ; realtime users, which are still stored in the realtime ; backend. ; messagewrap=no ; Enable next/last message to wrap around to ; first (from last) and last (from first) message ; The default is "no". ; minpassword=0 ; Enforce minimum password length ; vm-password=custom_sound ; Customize which sound file is used instead of the default ; prompt that says: "password" ; vm-newpassword=custom_sound ; Customize which sound file is used instead of the default ; prompt that says: "Please enter your new password followed by ; the pound key." ; vm-passchanged=custom_sound ; Customize which sound file is used instead of the default ; prompt that says: "Your password has been changed." ; vm-reenterpassword=custom_sound ; Customize which sound file is used instead of the default ; prompt that says: "Please re-enter your password followed by ; the pound key" ; vm-mismatch=custom_sound ; Customize which sound file is used instead of the default ; prompt that says: "The passwords you entered and re-entered ; did not match." ; vm-invalid-password=custom_sound ; Customize which sound file is used instead of the default ; prompt that says: ... ; vm-pls-try-again=custom_sound ; Customize which sound file is used instead of the ; default prompt that says "Please try again." ; vm-prepend-timeout=custom_sound ; Customize which sound file is used when the user ; times out while recording a prepend message instead ; of the default prompt that says "then press pound" ; note that this will currently follow vm-pls-try-again. ; this behavior is subject to change in the near future. ; listen-control-forward-key=# ; Customize the key that fast-forwards message playback ; listen-control-reverse-key=* ; Customize the key that rewinds message playback ; listen-control-pause-key=0 ; Customize the key that pauses/unpauses message playback ; listen-control-restart-key=2 ; Customize the key that restarts message playback ; listen-control-stop-key=13456789 ; Customize the keys that interrupt message playback, probably all keys not set above ; Maximum number of messages allowed in the 'Deleted' folder. If set to 0 ; or no then no deleted messages will be moved. If non-zero (max 9999) then up ; to this number of messages will be automagically saved when they are ; 'deleted' on a FIFO basis. ; defaults to being off ; backupdeleted=100 [zonemessages] ; Users may be located in different timezones, or may have different ; message announcements for their introductory message when they enter ; the voicemail system. Set the message and the timezone each user ; hears here. Set the user into one of these zones with the tz= attribute ; in the options field of the mailbox. Of course, language substitution ; still applies here so you may have several directory trees that have ; alternate language choices. ; ; Look in /usr/share/zoneinfo/ for names of timezones. ; Look at the manual page for strftime for a quick tutorial on how the ; variable substitution is done on the values below. ; ; Supported values: ; 'filename' filename of a soundfile (single ticks around the filename ; required) ; ${VAR} variable substitution ; A or a Day of week (Saturday, Sunday, ...) ; B or b or h Month name (January, February, ...) ; d or e numeric day of month (first, second, ..., thirty-first) ; Y Year ; I or l Hour, 12 hour clock ; H Hour, 24 hour clock (single digit hours preceded by "oh") ; k Hour, 24 hour clock (single digit hours NOT preceded by "oh") ; M Minute, with 00 pronounced as "o'clock" ; N Minute, with 00 pronounced as "hundred" (US military time) ; P or p AM or PM ; Q "today", "yesterday" or ABdY ; (*note: not standard strftime value) ; q "" (for today), "yesterday", weekday, or ABdY ; (*note: not standard strftime value) ; R 24 hour time, including minute ; eastern=America/New_York|'vm-received' Q 'digits/at' IMp central=America/Chicago|'vm-received' Q 'digits/at' IMp central24=America/Chicago|'vm-received' q 'digits/at' H N 'hours' military=Zulu|'vm-received' q 'digits/at' H N 'hours' 'phonetic/z_p' european=Europe/Copenhagen|'vm-received' a d b 'digits/at' HM [default] 1234 => 4242,Example Mailbox,root@localhost ;4200 => 9855,Mark Spencer,markster@linux-support.net,mypager@digium.com,attach=no|serveremail=myaddy@digium.com|tz=central|maxmsg=10 ;4300 => 3456,Ben Rigas,ben@american-computer.net ;4310 => -5432,Sales,sales@marko.net ;4069 => 6522,Matt Brooks,matt@marko.net,,|tz=central|attach=yes|saycid=yes|dialout=fromvm|callback=fromvm|review=yes|operator=yes|envelope=yes|moveheard=yes|sayduration=yes|saydurationm=1 ;4073 => 1099,Bianca Paige,bianca@biancapaige.com,,delete=1|emailsubject=You have a new voicemail.|emailbody=Click on the attachment to listen.|rip=2010-06-04 ;4110 => 3443,Rob Flynn,rflynn@blueridge.net ;4235 => 1234,Jim Holmes,jim@astricon.ips,,Tz=european ; ; Mailboxes may be organized into multiple contexts for ; voicemail virtualhosting ; [other] ;The intro can be customized on a per-context basis ;directoryintro=dir-company2 1234 => 5678,Company2 User,root@localhost ; example for our acme compartmentalized company ; ; Pete telecommutes from Chicago, so we'll customize timestamps for him. ; ;[acme] ;111 => 7383,Pete,pete@acme-widgets.com,,tz=central ;112 => 6262,Nancy,nancy@acme-widgets.com ; ; ; When using IMAP storage, imapuser, imappassword, and imapfolder can be used to specify the ; user's credentials. ; ;[imapvm] ;4324 => 7764,Ellis Redding,red@buxton.us,,imapuser=eredding|imappassword=g3tbusy|imapfolder=notinbox ;4325 => 2392,Andrew Dufresne,andy@dufresne.info,,imapuser=adufresne|imappassword=rockh@mmer
hello! men!
Время первой команды журнала | 11:14:04 2014- 4-24 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 15:20:24 2014- 4-24 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 5.94 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 4.95 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 3.31 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.51 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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