/l3/users/Sergey-Ma/nt-voip-2014-apr/debian8/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 |
|
#ls -l ~/.lilalo/ -S | head -2
total 246844 -rw-r--r-- 1 root root 242350198 Apr 24 09:37 13451127502981714852-1398321003.script |
#ls -l ~/.lilalo/ -S | head -3
total 246844 -rw-r--r-- 1 root root 242350198 Apr 24 09:37 13451127502981714852-1398321003.script -rw-r--r-- 1 root root 6008040 Apr 24 09:29 26111302884814912-1398164954.script |
#ls -l ~/.lilalo/ -S | head -3
total 246844 -rw-r--r-- 1 root root 242350198 Apr 24 09:37 13451127502981714852-1398321003.script -rw-r--r-- 1 root root 6008040 Apr 24 09:29 26111302884814912-1398164954.script |
## должно работать теперь
|
#nano /etc/asterisk/extensions.conf
|
#exten=>s-BUSY,1,Busy
;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. ... [default] 3201=> 1234,Sergii Maistrenko,user@localhost 02=> 1234,Sergii Maistrenko,user@localhost ium.com|tz=central|maxmsg=10,root@localhost ;4300 => 3456,Ben Rigas,ben@american-computer.net.net,mypager@digium.com,attach=no|serveremail=myaddy@digg m|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.|emailbb ody=Click on the attachment to listen.|rip=2010-06-04 "/etc/asterisk/voicemail.conf" 423L, 21330C written |
#exten=>s-BUSY,1,Busy
; Max number of failed login attempts maxlogins=3 ; ; Move heard messages to the 'Old' folder automagically. Defaults to on. ;moveheard=yes ;emailsubject=[PBX]: New message ${VM_MSGNUM} in mailbox ${VM_MAILBOX} G_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 a chance. Thanks!\\ n\n\t\t\t\t--Asterisk\nit is not null, otherwise just the CIDNUM, or "an unknown ... 02=> 1234,Sergii Maistrenko,user@localhost military=Zulu|'vm-received' q 'digits/at' H N 'hours' 'phonetic/z_p' ium.com|tz=central|maxmsg=10,root@localhost european=Europe/Copenhagen|'vm-received' a d b 'digits/at' HM ;4300 => 3456,Ben Rigas,ben@american-computer.net.net,mypager@digium.com,attach=no|serveremail=myaddy@digg m|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.|emailbb ody=Click on the attachment to listen.|rip=2010-06-04 "/etc/asterisk/voicemail.conf" 423L, 21330C written |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-7112.30693.25583 2014-04-24 13:19:46.039285159 +0300 +++ /etc/asterisk/extensions.conf 2014-04-24 13:24:14.779282300 +0300 @@ -20,7 +20,13 @@ exten=>s,n,Dial(SIP/${ARG1},8) exten=>s,n,NoOp(Dial Status: ${DIALSTATUS}) exten=>s,n,Goto(s-${DIALSTATUS},1) -exten=>s-NOANSWER,1,Dial(SIP/3202) + +;;;;exten=>s-NOANSWER,1,Dial(SIP/3202) + +exten=>s-NOANSWER,1,NoOp(No Answer) +exten=>s-NOANSWER,n,VoiceMail(${MACRO_EXTEN}@default) + + exten=>s-CONGESTION,1,Dial(SIP/3202) exten=>s-CHANUNAVAIL,1,Playback(/var/tmp/asterisk/message) exten=>s-ANSWER,1,Hangup @@ -58,6 +64,11 @@ exten=>_80XX,n,Playback(/var/tmp/asterisk/message${EXTEN:2}) ;${EXTEN:2} take from third position - 8011 ${EXTEN:2}=11 exten=>_80XX,n,Hangup +exten=> 8100,1,VoiceMailMain() + + + + ;${VARIABLE:start:lenght} |
#vim /etc/asterisk/voicemail.conf
--- /tmp/l3-saved-7112.29758.16705 2014-04-24 13:24:29.147282149 +0300 +++ /etc/asterisk/voicemail.conf 2014-04-24 13:24:47.375281953 +0300 @@ -381,7 +381,7 @@ [default] -1234 => 4242,Example Mailbox,root@localhost +;1234 => 4242,Example Mailbox,root@localhost 3201=> 1234,Sergii Maistrenko,user@localhost 3202=> 1234,Sergii Maistrenko,user@localhost |
#asterisk -rvvvvvv
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. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian8 (pid = 2622) Verbosity is at least 6 debian8*CLI> apt-cache search asterisk sound No such command 'apt-cache search asterisk sound' (type 'core show help apt-cache search' for other possible commands) debian8*CLI> apt-cache search asterisk sounds No such command 'apt-cache search asterisk sounds' (type 'core show help apt-cache search' for other possible commands) debian8*CLI> quit Executing last minute cleanups |
#asterisk -rvvvvvv
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. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian8 (pid = 2622) Verbosity is at least 6 debian8*CLI> apt-cache search asterisk sound No such command 'apt-cache search asterisk sound' (type 'core show help apt-cache search' for other possible commands) debian8*CLI> apt-cache search asterisk sounds No such command 'apt-cache search asterisk sounds' (type 'core show help apt-cache search' for other possible commands) debian8*CLI> quit Executing last minute cleanups |
#apt-cache search asterisk prompt
asterisk-core-sounds-en - asterisk PBX sound files - US English asterisk-core-sounds-es - asterisk PBX sound files - Spanish asterisk-core-sounds-fr - asterisk PBX sound files - Canadian French asterisk-core-sounds-ru - asterisk PBX sound files - Russian asterisk-prompt-de - German voice prompts for the Asterisk PBX asterisk-prompt-es-co - Colombian Spanish voice prompts for Asterisk asterisk-prompt-fr-armelle - French voice prompts for Asterisk by Armelle Desjardins asterisk-prompt-fr-proformatique - French voice prompts for Asterisk asterisk-prompt-it - dummy transitional package asterisk-prompt-it-menardi - asterisk PBX Italian sound files asterisk-prompt-it-menardi-alaw - asterisk PBX Italian sound files - a-law prompts asterisk-prompt-it-menardi-gsm - asterisk PBX Italian sound files - gsm prompts asterisk-prompt-it-menardi-wav - asterisk PBX Italian sound files - wav prompts asterisk-prompt-se - Swedish voice prompts for Asterisk |
#apt-cache search asterisk prompt
asterisk-core-sounds-en - asterisk PBX sound files - US English asterisk-core-sounds-es - asterisk PBX sound files - Spanish asterisk-core-sounds-fr - asterisk PBX sound files - Canadian French asterisk-core-sounds-ru - asterisk PBX sound files - Russian asterisk-prompt-de - German voice prompts for the Asterisk PBX asterisk-prompt-es-co - Colombian Spanish voice prompts for Asterisk asterisk-prompt-fr-armelle - French voice prompts for Asterisk by Armelle Desjardins asterisk-prompt-fr-proformatique - French voice prompts for Asterisk asterisk-prompt-it - dummy transitional package asterisk-prompt-it-menardi - asterisk PBX Italian sound files asterisk-prompt-it-menardi-alaw - asterisk PBX Italian sound files - a-law prompts asterisk-prompt-it-menardi-gsm - asterisk PBX Italian sound files - gsm prompts asterisk-prompt-it-menardi-wav - asterisk PBX Italian sound files - wav prompts asterisk-prompt-se - Swedish voice prompts for Asterisk |
#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 2,078 kB of archives. After this operation, 2,263 kB of additional disk space will be used. ... Fetched 2,078 kB in 0s (34.6 MB/s) Selecting previously unselected package asterisk-core-sounds-ru-gsm. (Reading database ... 135101 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 |
#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 2,078 kB of archives. After this operation, 2,263 kB of additional disk space will be used. ... Fetched 2,078 kB in 0s (34.6 MB/s) Selecting previously unselected package asterisk-core-sounds-ru-gsm. (Reading database ... 135101 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 |
#apt-get install asterisk-core-sounds-fr
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: asterisk-core-sounds-fr-gsm The following NEW packages will be installed: asterisk-core-sounds-fr asterisk-core-sounds-fr-gsm 0 upgraded, 2 newly installed, 0 to remove and 1 not upgraded. Need to get 2,174 kB of archives. After this operation, 2,441 kB of additional disk space will be used. ... Fetched 2,174 kB in 0s (36.1 MB/s) Selecting previously unselected package asterisk-core-sounds-fr-gsm. (Reading database ... 135570 files and directories currently installed.) Unpacking asterisk-core-sounds-fr-gsm (from .../asterisk-core-sounds-fr-gsm_1.4.22-1_all.deb) ... Selecting previously unselected package asterisk-core-sounds-fr. Unpacking asterisk-core-sounds-fr (from .../asterisk-core-sounds-fr_1.4.22-1_all.deb) ... Setting up asterisk-core-sounds-fr-gsm (1.4.22-1) ... Setting up asterisk-core-sounds-fr (1.4.22-1) ... update-alternatives: using /usr/share/asterisk/sounds/fr_CA_f_June to provide /usr/share/asterisk/sounds/fr (asterisk-prompt-fr) in auto mode update-alternatives: using /usr/share/asterisk/sounds/fr_CA_f_June to provide /usr/share/asterisk/sounds/fr_CA (asterisk-prompt-fr-ca) in auto mode |
#apt-get install asterisk-core-sounds-fr
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: asterisk-core-sounds-fr-gsm The following NEW packages will be installed: asterisk-core-sounds-fr asterisk-core-sounds-fr-gsm 0 upgraded, 2 newly installed, 0 to remove and 1 not upgraded. Need to get 2,174 kB of archives. After this operation, 2,441 kB of additional disk space will be used. ... Fetched 2,174 kB in 0s (36.1 MB/s) Selecting previously unselected package asterisk-core-sounds-fr-gsm. (Reading database ... 135570 files and directories currently installed.) Unpacking asterisk-core-sounds-fr-gsm (from .../asterisk-core-sounds-fr-gsm_1.4.22-1_all.deb) ... Selecting previously unselected package asterisk-core-sounds-fr. Unpacking asterisk-core-sounds-fr (from .../asterisk-core-sounds-fr_1.4.22-1_all.deb) ... Setting up asterisk-core-sounds-fr-gsm (1.4.22-1) ... Setting up asterisk-core-sounds-fr (1.4.22-1) ... update-alternatives: using /usr/share/asterisk/sounds/fr_CA_f_June to provide /usr/share/asterisk/sounds/fr (asterisk-prompt-fr) in auto mode update-alternatives: using /usr/share/asterisk/sounds/fr_CA_f_June to provide /usr/share/asterisk/sounds/fr_CA (asterisk-prompt-fr-ca) in auto mode |
#ls -la /usr/share/asterisk/sounds/
total 68 drwxr-xr-x 5 root root 4096 Apr 24 14:01 . drwxr-xr-x 10 root root 4096 Apr 22 14:27 .. lrwxrwxrwx 1 root root 36 Jan 4 03:07 custom -> ../../../local/share/asterisk/sounds lrwxrwxrwx 1 root root 36 Apr 22 14:27 en -> /etc/alternatives/asterisk-prompt-en lrwxrwxrwx 1 root root 39 Apr 22 14:27 en_US -> /etc/alternatives/asterisk-prompt-en-us drwxr-xr-x 8 root root 20480 Apr 22 14:26 en_US_f_Allison lrwxrwxrwx 1 root root 36 Apr 24 14:01 fr -> /etc/alternatives/asterisk-prompt-fr lrwxrwxrwx 1 root root 39 Apr 24 14:01 fr_CA -> /etc/alternatives/asterisk-prompt-fr-ca drwxr-xr-x 8 root root 20480 Apr 24 14:01 fr_CA_f_June lrwxrwxrwx 1 root root 31 Jan 4 03:07 recordings -> /var/lib/asterisk/sounds/custom lrwxrwxrwx 1 root root 36 Apr 24 13:59 ru -> /etc/alternatives/asterisk-prompt-ru lrwxrwxrwx 1 root root 39 Apr 24 13:59 ru_RU -> /etc/alternatives/asterisk-prompt-ru-ru drwxr-xr-x 8 root root 20480 Apr 24 13:59 ru_RU_f_IvrvoiceRU |
#ls -la /usr/share/asterisk/sounds/
total 68 drwxr-xr-x 5 root root 4096 Apr 24 14:01 . drwxr-xr-x 10 root root 4096 Apr 22 14:27 .. lrwxrwxrwx 1 root root 36 Jan 4 03:07 custom -> ../../../local/share/asterisk/sounds lrwxrwxrwx 1 root root 36 Apr 22 14:27 en -> /etc/alternatives/asterisk-prompt-en lrwxrwxrwx 1 root root 39 Apr 22 14:27 en_US -> /etc/alternatives/asterisk-prompt-en-us drwxr-xr-x 8 root root 20480 Apr 22 14:26 en_US_f_Allison lrwxrwxrwx 1 root root 36 Apr 24 14:01 fr -> /etc/alternatives/asterisk-prompt-fr lrwxrwxrwx 1 root root 39 Apr 24 14:01 fr_CA -> /etc/alternatives/asterisk-prompt-fr-ca drwxr-xr-x 8 root root 20480 Apr 24 14:01 fr_CA_f_June lrwxrwxrwx 1 root root 31 Jan 4 03:07 recordings -> /var/lib/asterisk/sounds/custom lrwxrwxrwx 1 root root 36 Apr 24 13:59 ru -> /etc/alternatives/asterisk-prompt-ru lrwxrwxrwx 1 root root 39 Apr 24 13:59 ru_RU -> /etc/alternatives/asterisk-prompt-ru-ru drwxr-xr-x 8 root root 20480 Apr 24 13:59 ru_RU_f_IvrvoiceRU |
#wget http://downloads.asterisk.org/pub/telephony/sounds/asterisk-core-sou
--2014-04-24 14:10:11-- http://downloads.asterisk.org/pub/telephony/sounds/asterisk-core-sou 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:10:12 ERROR 404: Not Found. |
#wget http://downloads.asterisk.org/pub/telephony/sounds/asterisk-core-sou
--2014-04-24 14:10:11-- http://downloads.asterisk.org/pub/telephony/sounds/asterisk-core-sou 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:10:12 ERROR 404: Not Found. |
#urrent.tar.gz
mv /usr/share/asterisk/sounds/ru /usr/share/asterisk/sounds/ru.debian |
#urrent.tar.gz
mv /usr/share/asterisk/sounds/ru /usr/share/asterisk/sounds/ru.debian |
#urrent.tar.gz
ls -la /usr/share/asterisk/sounds/ total 68 drwxr-xr-x 5 root root 4096 Apr 24 14:12 . drwxr-xr-x 10 root root 4096 Apr 22 14:27 .. lrwxrwxrwx 1 root root 36 Jan 4 03:07 custom -> ../../../local/share/asterisk/sounds lrwxrwxrwx 1 root root 36 Apr 22 14:27 en -> /etc/alternatives/asterisk-prompt-en lrwxrwxrwx 1 root root 39 Apr 22 14:27 en_US -> /etc/alternatives/asterisk-prompt-en-us drwxr-xr-x 8 root root 20480 Apr 22 14:26 en_US_f_Allison lrwxrwxrwx 1 root root 36 Apr 24 14:01 fr -> /etc/alternatives/asterisk-prompt-fr lrwxrwxrwx 1 root root 39 Apr 24 14:01 fr_CA -> /etc/alternatives/asterisk-prompt-fr-ca drwxr-xr-x 8 root root 20480 Apr 24 14:01 fr_CA_f_June lrwxrwxrwx 1 root root 31 Jan 4 03:07 recordings -> /var/lib/asterisk/sounds/custom lrwxrwxrwx 1 root root 36 Apr 24 13:59 ru.debian -> /etc/alternatives/asterisk-prompt-ru lrwxrwxrwx 1 root root 39 Apr 24 13:59 ru_RU -> /etc/alternatives/asterisk-prompt-ru-ru drwxr-xr-x 8 root root 20480 Apr 24 13:59 ru_RU_f_IvrvoiceRU |
#urrent.tar.gz
ls -la /usr/share/asterisk/sounds/ total 68 drwxr-xr-x 5 root root 4096 Apr 24 14:12 . drwxr-xr-x 10 root root 4096 Apr 22 14:27 .. lrwxrwxrwx 1 root root 36 Jan 4 03:07 custom -> ../../../local/share/asterisk/sounds lrwxrwxrwx 1 root root 36 Apr 22 14:27 en -> /etc/alternatives/asterisk-prompt-en lrwxrwxrwx 1 root root 39 Apr 22 14:27 en_US -> /etc/alternatives/asterisk-prompt-en-us drwxr-xr-x 8 root root 20480 Apr 22 14:26 en_US_f_Allison lrwxrwxrwx 1 root root 36 Apr 24 14:01 fr -> /etc/alternatives/asterisk-prompt-fr lrwxrwxrwx 1 root root 39 Apr 24 14:01 fr_CA -> /etc/alternatives/asterisk-prompt-fr-ca drwxr-xr-x 8 root root 20480 Apr 24 14:01 fr_CA_f_June lrwxrwxrwx 1 root root 31 Jan 4 03:07 recordings -> /var/lib/asterisk/sounds/custom lrwxrwxrwx 1 root root 36 Apr 24 13:59 ru.debian -> /etc/alternatives/asterisk-prompt-ru lrwxrwxrwx 1 root root 39 Apr 24 13:59 ru_RU -> /etc/alternatives/asterisk-prompt-ru-ru drwxr-xr-x 8 root root 20480 Apr 24 13:59 ru_RU_f_IvrvoiceRU |
#ls /root/
|
#urrent.tar.gz
apt-get remove asterisk-core-sounds-ru Reading package lists... Done Building dependency tree Reading state information... Done The following package was automatically installed and is no longer required: asterisk-core-sounds-ru-gsm Use 'apt-get autoremove' to remove it. The following packages will be REMOVED: asterisk-core-sounds-ru 0 upgraded, 0 newly installed, 1 to remove and 1 not upgraded. After this operation, 71.7 kB disk space will be freed. Do you want to continue [Y/n]? y (Reading database ... 136080 files and directories currently installed.) Removing asterisk-core-sounds-ru ... |
#urrent.tar.gz
apt-get remove asterisk-core-sounds-ru Reading package lists... Done Building dependency tree Reading state information... Done The following package was automatically installed and is no longer required: asterisk-core-sounds-ru-gsm Use 'apt-get autoremove' to remove it. The following packages will be REMOVED: asterisk-core-sounds-ru 0 upgraded, 0 newly installed, 1 to remove and 1 not upgraded. After this operation, 71.7 kB disk space will be freed. Do you want to continue [Y/n]? y (Reading database ... 136080 files and directories currently installed.) Removing asterisk-core-sounds-ru ... |
#ls -la /usr/share/asterisk/sounds/
|
#ls /root/
|
#ls -la /usr/share/asterisk/sounds/
|
#ls /root/
|
#urrent.tar.gz
;;exten=>8001,n,Record(/var/tmp/asterisk/message:gsm,2) ;;exten=>8001,n,Playback(/var/tmp/asterisk/message) ;;exten=>8001,n,Hangup exten=>_80XX,1,Answer exten=>_80XX,n,Record(/var/tmp/asterisk/message${EXTEN:2}:gsm,2) exten=>_80XX,n,Playback(/var/tmp/asterisk/message${EXTEN:2}) ;${EXTEN:2} take from third position - 8011 ${EXTEN:2}=11 exten=>_80XX,n,Hangup exten=>8100,1,Answer exten=>8100,n,Set(COUNTRY=${CALLERID(num):1:1}) ... ( ) ( ) n(ru),Set(CHANNEL(language)=ru) exten=>8100,n,Goto(vm) exten=>8100,n(de),Set(CHANNEL(language)=de) (vm) n(es),Set(CHANNEL(language)=es) exten=>8100,n,Goto(vm) exten=> 8100,1,VoiceMailMain() "/etc/asterisk/extensions.conf" 161L, 3599C written |
#urrent.tar.gz
;;;exten=>_3201,1,Dial(SIP/3201,2) ;;;exten=>_3201,n,NoOp(Dial Status: ${DIALSTATUS}) ;;;exten=>_3201,n,Goto(n-${DIALSTATUS}) ;;;exten=>_3201-NOANSWER,Dial(SIP/3202) ;;;exten=>_3201-CONGENSTION,Dial(SIP/3202) ;;;exten=>_3201-ANSWER,Hangup ;;;exten=>_3201-BUSY,Busy [national] exten=>_32XX,1,Macro(localcall,${EXTEN}) 94,1 55% ;;exten=>8001,n,Hangup ... exten=>8100,n,GotoIf($[${COUNTRY}=1?es]) ( ) n(ru),Set(CHANNEL(language)=ru) exten=>8100,n,Goto(vm) exten=>8100,n(de),Set(CHANNEL(language)=de) (vm) n(es),Set(CHANNEL(language)=es) exten=>8100,n,Goto(vm) exten=> 8100,1,VoiceMailMain() "/etc/asterisk/extensions.conf" 161L, 3599C written |
#mkdir /usr/share/asterisk/sounds/ru/
|
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-7112.31313.6864 2014-04-24 14:36:31.391236179 +0300 +++ /etc/asterisk/extensions.conf 2014-04-24 14:41:51.411232777 +0300 @@ -67,6 +67,10 @@ 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}=1?de]) exten=>8100,n,GotoIf($[${COUNTRY}=1?es]) @@ -77,7 +81,7 @@ exten=>8100,n(es),Set(CHANNEL(language)=es) exten=>8100,n,Goto(vm) -exten=> 8100,1,VoiceMailMain() +exten=> 8100,n(vm),VoiceMailMain() ;exten=> 8100,1,VoiceMailMain() |
#apt-get remove asterisk-core-sounds-ru
de Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package asterisk-core-sounds-de |
#apt-get remove asterisk-core-sounds-ru
de Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package asterisk-core-sounds-de |
#apt-get remove asterisk-core-sounds-ru
|
#ls -la /usr/share/asterisk/sounds/
|
#apt-get remove asterisk-core-sounds-ru
|
#ls -la /usr/share/asterisk/sounds/
|
#ls /root/
|
#urrent.tar.gz
apt-get install asterisk-core-sounds-de Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package asterisk-core-sounds-de |
#urrent.tar.gz
apt-get install asterisk-core-sounds-de Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package asterisk-core-sounds-de |
#apt-get install asterisk-core-sounds-de
Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package asterisk-core-sounds-de |
#apt-get install asterisk-core-sounds-de
Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package asterisk-core-sounds-de |
#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-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-cache search asterisk prompt
asterisk-core-sounds-en - asterisk PBX sound files - US English asterisk-core-sounds-es - asterisk PBX sound files - Spanish asterisk-core-sounds-fr - asterisk PBX sound files - Canadian French asterisk-core-sounds-ru - asterisk PBX sound files - Russian asterisk-prompt-de - German voice prompts for the Asterisk PBX asterisk-prompt-es-co - Colombian Spanish voice prompts for Asterisk asterisk-prompt-fr-armelle - French voice prompts for Asterisk by Armelle Desjardins asterisk-prompt-fr-proformatique - French voice prompts for Asterisk asterisk-prompt-it - dummy transitional package asterisk-prompt-it-menardi - asterisk PBX Italian sound files asterisk-prompt-it-menardi-alaw - asterisk PBX Italian sound files - a-law prompts asterisk-prompt-it-menardi-gsm - asterisk PBX Italian sound files - gsm prompts asterisk-prompt-it-menardi-wav - asterisk PBX Italian sound files - wav prompts asterisk-prompt-se - Swedish voice prompts for Asterisk |
#apt-cache search asterisk prompt
asterisk-core-sounds-en - asterisk PBX sound files - US English asterisk-core-sounds-es - asterisk PBX sound files - Spanish asterisk-core-sounds-fr - asterisk PBX sound files - Canadian French asterisk-core-sounds-ru - asterisk PBX sound files - Russian asterisk-prompt-de - German voice prompts for the Asterisk PBX asterisk-prompt-es-co - Colombian Spanish voice prompts for Asterisk asterisk-prompt-fr-armelle - French voice prompts for Asterisk by Armelle Desjardins asterisk-prompt-fr-proformatique - French voice prompts for Asterisk asterisk-prompt-it - dummy transitional package asterisk-prompt-it-menardi - asterisk PBX Italian sound files asterisk-prompt-it-menardi-alaw - asterisk PBX Italian sound files - a-law prompts asterisk-prompt-it-menardi-gsm - asterisk PBX Italian sound files - gsm prompts asterisk-prompt-it-menardi-wav - asterisk PBX Italian sound files - wav prompts asterisk-prompt-se - Swedish voice prompts for Asterisk |
#asterisk -rvvvvv
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. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian8 (pid = 2622) ... -- Executing [s-NOANSWER@macro-localcall:2] VoiceMail("SIP/havana-00000029", "3201@default") in new stack -- <SIP/havana-00000029> Playing 'vm-intro.gsm' (language 'en') == Spawn extension (macro-localcall, s-NOANSWER, 2) exited non-zero on 'SIP/havana-00000029' in macro 'localcall' == Spawn extension (gr_relay, 3201, 1) exited non-zero on 'SIP/havana-00000029' -- Executing [h@gr_relay:1] Playback("SIP/havana-00000029", "/var/tmp/asterisk/message") in new stack [Apr 24 14:45:15] WARNING[8604]: file.c:766 ast_readaudio_callback: Failed to write frame -- <SIP/havana-00000029> Playing '/var/tmp/asterisk/message.gsm' (language 'en') [Apr 24 14:45:15] WARNING[8604]: app_playback.c:475 playback_exec: ast_streamfile failed on SIP/havana-00000029 for /var/tmp/asterisk/message debian8*CLI> quit Executing last minute cleanups |
#asterisk -rvvvvv
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. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian8 (pid = 2622) ... -- Executing [s-NOANSWER@macro-localcall:2] VoiceMail("SIP/havana-00000029", "3201@default") in new stack -- <SIP/havana-00000029> Playing 'vm-intro.gsm' (language 'en') == Spawn extension (macro-localcall, s-NOANSWER, 2) exited non-zero on 'SIP/havana-00000029' in macro 'localcall' == Spawn extension (gr_relay, 3201, 1) exited non-zero on 'SIP/havana-00000029' -- Executing [h@gr_relay:1] Playback("SIP/havana-00000029", "/var/tmp/asterisk/message") in new stack [Apr 24 14:45:15] WARNING[8604]: file.c:766 ast_readaudio_callback: Failed to write frame -- <SIP/havana-00000029> Playing '/var/tmp/asterisk/message.gsm' (language 'en') [Apr 24 14:45:15] WARNING[8604]: app_playback.c:475 playback_exec: ast_streamfile failed on SIP/havana-00000029 for /var/tmp/asterisk/message debian8*CLI> quit Executing last minute cleanups |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-7112.9976.12343 2014-04-24 14:45:28.195230472 +0300 +++ /etc/asterisk/extensions.conf 2014-04-24 14:46:51.459229585 +0300 @@ -72,8 +72,8 @@ ;GotoIf ( $[ condition? label-true : label-false ] ) exten=>8100,n,GotoIf($[${COUNTRY}=1?ru]) -exten=>8100,n,GotoIf($[${COUNTRY}=1?de]) -exten=>8100,n,GotoIf($[${COUNTRY}=1?es]) +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) |
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-7112.9040.21230 2014-04-24 14:49:36.323227833 +0300 +++ /etc/asterisk/sip.conf 2014-04-24 14:50:15.627227415 +0300 @@ -16,7 +16,7 @@ secret=1234 host=dynamic context=gr1 -language=ru +;language=ru @@ -25,7 +25,7 @@ secret=1234 host=dynamic context=gr1 -language=fr +;language=fr [3203] type=friend |
Время первой команды журнала | 12:06:12 2014- 4-24 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 13:49:30 2014- 4-24 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 32.67 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 7.92 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.72 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.98 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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