/l3/users/YOUR-L3BACKEND-USER/SET-YOUR-FIRSTLAB-NAME-HERE/debian6/root :1 :2 :3 :4 |
|
#asterisk -rvvv
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 debian6 (pid = 6128) Verbosity is at least 3 debian6*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#nano /etc/asterisk/extensions.conf
|
#[local]
|
#mkdir -p /var/tmp/asterisk
|
#chown asterisk:asterisk
chown: missing operand after `asterisk:asterisk' Try `chown --help' for more information. |
#chown asterisk:asterisk /var/tmp/asterisk
|
#[default]
|
#exten => 8001,n,Playback(/var/tmp/asterisk/message)
|
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-10598.12764.8865 2014-04-23 16:24:12.704534316 +0300 +++ /etc/asterisk/extensions.conf 2014-04-23 16:29:01.848530441 +0300 @@ -35,7 +35,8 @@ exten => _3[12]XX,1,Dial(SIP/berlin/${EXTEN}) [fallback] -exten => _.,1,Playback9/var/tmp/asterisk/message) +exten => _.,1,Playback/var/tmp/asterisk/message) + [gr_relay] include => local include => national |
#nano /etc/asterisk/extensions.conf
|
#exten => 8001,n,Playback(/var/tmp/asterisk/message)
|
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-10598.12458.9784 2014-04-23 16:33:11.468527100 +0300 +++ /etc/asterisk/extensions.conf 2014-04-23 16:42:08.440519903 +0300 @@ -22,7 +22,12 @@ exten => 8001,.,Hangup [local] -exten => _23XX,1,Dial(SIP/${EXTEN}) +;exten => _23XX,1,Dial(SIP/${EXTEN}) +exten => _2301,1,Dial(SIP/2301,30) +exten => _2301,n,NoOp(Dial Status: ${DIALSTATUS}) +exten => _2301,n,Dial(SIP2302) + + [national] exten => _13XX,1,Dial(SIP/berlin/${EXTEN}) |
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-10598.20763.31621 2014-04-23 16:43:00.344519209 +0300 +++ /etc/asterisk/extensions.conf 2014-04-23 16:43:11.000519065 +0300 @@ -23,7 +23,7 @@ [local] ;exten => _23XX,1,Dial(SIP/${EXTEN}) -exten => _2301,1,Dial(SIP/2301,30) +exten => _2301,1,Dial(SIP/2301,3) exten => _2301,n,NoOp(Dial Status: ${DIALSTATUS}) exten => _2301,n,Dial(SIP2302) |
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-10598.3964.23180 2014-04-23 16:44:02.832518370 +0300 +++ /etc/asterisk/extensions.conf 2014-04-23 16:44:19.064518153 +0300 @@ -25,7 +25,7 @@ ;exten => _23XX,1,Dial(SIP/${EXTEN}) exten => _2301,1,Dial(SIP/2301,3) exten => _2301,n,NoOp(Dial Status: ${DIALSTATUS}) -exten => _2301,n,Dial(SIP2302) +exten => _2301,n,Dial(SIP/2302) |
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-10598.30490.8889 2014-04-23 16:56:33.128508318 +0300 +++ /etc/asterisk/extensions.conf 2014-04-23 17:04:48.728501678 +0300 @@ -1,3 +1,14 @@ +[macro-localcall] + +exten => s,1,Dial(SIP/${ARG1},2) +exten => s,n,NoOp(Dial Status: ${DIALSTATUS}) +exten => s,n,Goto(s-${DIALSTATUS}) + +exten => s-NOANSWER,1,Dial(SIP/1402) +exten => s-CONGESTION,1,Dial,(SIP/1402) +exten => s-ANSWER,1,Hangup +exten => s-BUSY,1,Busy + [default] ;exten => _23XX,1,Dial(SIP/${EXTEN}) @@ -22,10 +33,10 @@ exten => 8001,.,Hangup [local] -;exten => _23XX,1,Dial(SIP/${EXTEN}) -exten => _2301,1,Dial(SIP/2301,3) -exten => _2301,n,NoOp(Dial Status: ${DIALSTATUS}) -exten => _2301,n,Dial(SIP/2302) +exten => _23XX,1,Macro(locallcall,${EXTEN}) +;exten => _2301,1,Dial(SIP/2301,3) +;exten => _2301,n,NoOp(Dial Status: ${DIALSTATUS}) +;exten => _2301,n,Dial(SIP/2302) |
#nano /etc/asterisk/extensions.conf
|
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-10598.25615.29031 2014-04-23 17:12:37.332495402 +0300 +++ /etc/asterisk/extensions.conf 2014-04-23 17:15:37.724492986 +0300 @@ -2,13 +2,15 @@ exten => s,1,Dial(SIP/${ARG1},2) exten => s,n,NoOp(Dial Status: ${DIALSTATUS}) -exten => s,n,Goto(s-${DIALSTATUS}) +exten => s,n,Goto(s-${DIALSTATUS},1) exten => s-NOANSWER,1,Dial(SIP/1402) exten => s-CONGESTION,1,Dial,(SIP/1402) exten => s-ANSWER,1,Hangup exten => s-BUSY,1,Busy + + [default] ;exten => _23XX,1,Dial(SIP/${EXTEN}) |
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-10598.32276.8179 2014-04-23 17:20:24.536489141 +0300 +++ /etc/asterisk/extensions.conf 2014-04-23 17:23:07.664486952 +0300 @@ -4,8 +4,8 @@ exten => s,n,NoOp(Dial Status: ${DIALSTATUS}) exten => s,n,Goto(s-${DIALSTATUS},1) -exten => s-NOANSWER,1,Dial(SIP/1402) -exten => s-CONGESTION,1,Dial,(SIP/1402) +exten => s-NOANSWER,1,Dial(SIP/2302) +exten => s-CONGESTION,1,Dial,(SIP/2302) exten => s-ANSWER,1,Hangup exten => s-BUSY,1,Busy |
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-10598.23017.9729 2014-04-23 17:23:44.024486470 +0300 +++ /etc/asterisk/extensions.conf 2014-04-23 17:24:18.400486009 +0300 @@ -35,7 +35,7 @@ exten => 8001,.,Hangup [local] -exten => _23XX,1,Macro(locallcall,${EXTEN}) +exten => _23XX,1,Macro(localcall,${EXTEN}) ;exten => _2301,1,Dial(SIP/2301,3) ;exten => _2301,n,NoOp(Dial Status: ${DIALSTATUS}) ;exten => _2301,n,Dial(SIP/2302) |
#nano
--- /tmp/l3-saved-10598.26203.10580 2014-04-23 17:45:50.868468692 +0300 +++ /etc/asterisk/extensions.conf.local 2014-04-23 17:47:41.960467203 +0300 @@ -1,83 +1,7 @@ -[macro-localcall] -exten => s,1,Dial(SIP/${ARG1},2) -exten => s,n,NoOp(Dial Status: ${DIALSTATUS}) -exten => s,n,Goto(s-${DIALSTATUS},1) - -exten => s-NOANSWER,1,Dial(SIP/2302) -exten => s-CONGESTION,1,Dial,(SIP/2302) -exten => s-ANSWER,1,Hangup -exten => s-BUSY,1,Busy - - - -[default] - -;exten => _23XX,1,Dial(SIP/${EXTEN}) -;exten => _13XX,1,Dial(SIP/berlin/${EXTEN}) - -;exten => _12XX,1,Dial(SIP/berlin/${EXTEN}) -;exten => _11XX,1,Dial(SIP/berlin/${EXTEN}) - -;exten => _2[12]XX,1,Dial(SIP/berlin/${EXTEN}) - -;exten => _3[123]XX,1,Dial(SIP/berlin/${EXTEN}) - -;[gr_relay] -;include => local -;include => national -;include => international - -[internal] -exten => 8001,1,Answer -exten => 8001,n,Record(/var/tmp/asterisk/message:gsm,2) -exten => 8001,n,Playback(/var/tmp/asterisk/message) -exten => 8001,.,Hangup [local] exten => _23XX,1,Macro(localcall,${EXTEN}) -;exten => _2301,1,Dial(SIP/2301,3) -;exten => _2301,n,NoOp(Dial Status: ${DIALSTATUS}) -;exten => _2301,n,Dial(SIP/2302) - - - -[national] -exten => _13XX,1,Dial(SIP/berlin/${EXTEN}) -exten => _23XX,1,Dial(SIP/berlin/${EXTEN}) - -[international] - -exten => _1[12]XX,1,Dial(SIP/berlin/${EXTEN}) -exten => _2[12]XX,1,Dial(SIP/berlin/${EXTEN}) -exten => _3[12]XX,1,Dial(SIP/berlin/${EXTEN}) - -[fallback] -exten => _.,1,Playback/var/tmp/asterisk/message) - -[gr_relay] -include => local -include => national -include => international - - - -[gr1] -include => internal -include => national -include => international -include => fallback - -[gr2] - -include => internal -include => local -include => national -include => fallback -[gr3] -include => internal -include => local -include => fallback |
#nano /etc/asterisk/extensions.conf.local
|
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-10598.19396.55 2014-04-23 17:52:04.332463690 +0300 +++ /etc/asterisk/extensions.conf 2014-04-23 17:52:18.308463501 +0300 @@ -9,7 +9,7 @@ exten => s-ANSWER,1,Hangup exten => s-BUSY,1,Busy -#include "/etc/asterisk/extension.conf.local" +#include "/etc/asterisk/extensions.conf.local" [default] |
#user
l3script: user: command not found |
#nano /etc/asterisk/extensions.conf
|
#nano /etc/asterisk/sip.conf
|
#nano /etc/asterisk/sip.conf
|
#[internal]
|
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-10598.18047.29516 2014-04-24 10:10:13.979677393 +0300 +++ /etc/asterisk/extensions.conf 2014-04-24 10:10:56.315676822 +0300 @@ -32,7 +32,7 @@ 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 => 80XX,.,Hangup +exten => 80XX,n,Hangup [local] |
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-10598.19576.7640 2014-04-24 10:11:21.339676490 +0300 +++ /etc/asterisk/extensions.conf 2014-04-24 10:11:40.359676230 +0300 @@ -29,10 +29,10 @@ ;include => international [internal] -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 => 80XX,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 => _80XX,n,Hangup [local] |
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-10598.3292.381 2014-04-24 10:20:29.671669142 +0300 +++ /etc/asterisk/extensions.conf 2014-04-24 10:23:39.727666597 +0300 @@ -1,6 +1,8 @@ [macro-localcall] exten => s,1,Dial(SIP/${ARG1},2) +exten => s,n,Monitor(wav,monitor,m) +exten => s,n,Dial(SIP/${ARG2},2) exten => s,n,NoOp(Dial Status: ${DIALSTATUS}) exten => s,n,Goto(s-${DIALSTATUS},1) |
#nano /etc/asterisk/extensions.conf
|
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-10598.26879.29989 2014-04-24 10:27:13.451663732 +0300 +++ /etc/asterisk/extensions.conf 2014-04-24 10:49:16.647646003 +0300 @@ -1,8 +1,13 @@ +[macro-outgoingcall] +exten => s,n,Set(CALLFILENAME=${MACRO-EXTEN}-${CALLERID(num)}-${EPOCHE}) +exten => s,n,Monitor(wav,${CALLFILENAME},m) +exten => s,n,Dial(${ARG1}) + [macro-localcall] -exten => s,1,Dial(SIP/${ARG1},2) +exten => s,1,Answer exten => s,n,Monitor(wav,monitor,m) -exten => s,n,Dial(SIP/${ARG2},2) +exten => s,n,Dial(SIP/${ARG1},2) exten => s,n,NoOp(Dial Status: ${DIALSTATUS}) exten => s,n,Goto(s-${DIALSTATUS},1) |
#[macro-outgoingcall]
|
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-10598.5067.19572 2014-04-24 10:58:00.523638986 +0300 +++ /etc/asterisk/extensions.conf 2014-04-24 11:08:41.747630394 +0300 @@ -1,12 +1,14 @@ [macro-outgoingcall] -exten => s,n,Set(CALLFILENAME=${MACRO-EXTEN}-${CALLERID(num)}-${EPOCHE}) +exten => s,1,Answer +exten => s,n,Set(CALLFILENAME=${MACRO_EXTEN}-${CALLERID(num)}-${EPOCH}) exten => s,n,Monitor(wav,${CALLFILENAME},m) exten => s,n,Dial(${ARG1}) [macro-localcall] exten => s,1,Answer -exten => s,n,Monitor(wav,monitor,m) +exten => s,n,Set(CALLFILENAME={MACRO_EXTEN}-${CALLFILERID(num)}-${EPOCH}) +exten => s,n,Monitor(wav,${CALLFILENAME},m) exten => s,n,Dial(SIP/${ARG1},2) exten => s,n,NoOp(Dial Status: ${DIALSTATUS}) exten => s,n,Goto(s-${DIALSTATUS},1) @@ -57,8 +59,8 @@ [international] exten => _1[12]XX,1,Macro(outgoingcall,SIP/berlin/${EXTEN}) -exten => _2[12]XX,1,Dial(SIP/berlin/${EXTEN}) -exten => _3[12]XX,1,Dial(SIP/berlin/${EXTEN}) +exten => _2[12]XX,1,Macro(outgoingcall,SIP/berlin/${EXTEN}) +exten => _3[12]XX,1,Macro(outgoingcall,SIP/berlin/${EXTEN}) [fallback] exten => _.,1,Playback/var/tmp/asterisk/message) |
#ls /var/spool/asterisk/monitor/
1201-2301-1398327036.wav 2201-2301-1398326939.wav |
#\\192.168.12.1
l3script: \192.168.12.1: command not found |
#apt-get samba
E: Invalid operation samba |
#apt-get install samba
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: samba-common samba-common-bin tdb-tools Suggested packages: openbsd-inetd inet-superserver smbldap-tools ldb-tools ctdb The following NEW packages will be installed: samba samba-common samba-common-bin tdb-tools 0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded. ... Adding group `sambashare' (GID 118) ... Done. update-alternatives: using /usr/bin/smbstatus.samba3 to provide /usr/bin/smbstatus (smbstatus) in auto mode Starting Samba daemons: nmbd smbd. Setting up samba-common-bin (2:3.6.6-6+deb7u2) ... update-alternatives: using /usr/bin/nmblookup.samba3 to provide /usr/bin/nmblookup (nmblookup) in auto mode update-alternatives: using /usr/bin/net.samba3 to provide /usr/bin/net (net) in auto mode update-alternatives: using /usr/bin/testparm.samba3 to provide /usr/bin/testparm (testparm) in auto mode Setting up tdb-tools (1.2.10-2) ... update-alternatives: using /usr/bin/tdbbackup.tdbtools to provide /usr/bin/tdbbackup (tdbbackup) in auto mode |
#smbpasswd -a user
New SMB password: Retype new SMB password: Added user user. |
#\\19192.168.12.1
l3script: \192.168.12.1: command not found |
#nbtscan
l3script: nbtscan: command not found |
#ыьисдnano /etc/samba/smb.conf
|
#cdrom share is accesed. For this to work /etc/fstab must contain
asterisk:x:117: |
#smbclient -U user //192.168.12.9
l3script: smbclient: command not found |
#chr
chroot chrt |
#chr
chroot chrt |
#chgrp asterisk /var/spool/asterisk/monitor
|
#chgrp asterisk /var/spool/asterisk/
|
# path = /var/lib/samba/printers
Stopping Samba daemons: nmbd smbd. Starting Samba daemons: nmbd smbd. |
#useradd user
useradd: user 'user' already exists |
#useradd user2
|
#tail -1 /etc/group
user2:x:1001: |
#;exten => _2301,n,Dial(SIP/2302)
|
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-10598.30663.25502 2014-04-24 13:26:07.559519923 +0300 +++ /etc/asterisk/extensions.conf 2014-04-24 13:26:28.979519634 +0300 @@ -45,7 +45,7 @@ exten => _80XX,n,Playback(/var/tmp/asterisk/message${EXTEN:2}) exten => _80XX,n,Hangup -exten => _80XX,1,VoiceMailMain() +exten => 8100,1,VoiceMailMain() [local] exten => _23XX,1,Macro(localcall,${EXTEN}) |
#Ðl3agent script
l3script: l3agent: command not found |
#l3agent
l3script: l3agent: command not found |
#l3script
|
#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
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 -u
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 -u
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 -u -m
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 -u -m
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 |
#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 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-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 0 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 (2,299 kB/s) Selecting previously unselected package asterisk-core-sounds-ru-gsm. (Reading database ... 130435 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 0 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 (2,299 kB/s) Selecting previously unselected package asterisk-core-sounds-ru-gsm. (Reading database ... 130435 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 0 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 (2,285 kB/s) Selecting previously unselected package asterisk-core-sounds-fr-gsm. (Reading database ... 130904 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 0 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 (2,285 kB/s) Selecting previously unselected package asterisk-core-sounds-fr-gsm. (Reading database ... 130904 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 /usr/share/asterisk/sounds/
custom en_US fr fr_CA_f_June ru ru_RU_f_IvrvoiceRU en en_US_f_Allison fr_CA recordings ru_RU |
#ls /usr/share/asterisk/sounds/
custom en_US fr fr_CA_f_June ru ru_RU_f_IvrvoiceRU en en_US_f_Allison fr_CA recordings ru_RU |
#ls /usr/share/asterisk/sounds/ru
agent-alreadyon.gsm spy-sip.gsm agent-incorrect.gsm spy-skinny.gsm agent-loggedoff.gsm spy-unistim.gsm agent-loginok.gsm spy-usbradio.gsm agent-newlocation.gsm spy-zap.gsm agent-pass.gsm ss-noservice.gsm agent-user.gsm transfer.gsm ascending-2tone.gsm tt-allbusy.gsm auth-incorrect.gsm tt-monkeys.gsm auth-thankyou.gsm tt-monkeysintro.gsm ... spy-dahdi.gsm vm-tooshort.gsm spy-h323.gsm vm-toreply.gsm spy-iax2.gsm vm-torerecord.gsm spy-iax.gsm vm-undeleted.gsm spy-jingle.gsm vm-undelete.gsm spy-local.gsm vm-unknown-caller.gsm spy-mgcp.gsm vm-Urgent.gsm spy-misdn.gsm vm-whichbox.gsm spy-mobile.gsm vm-Work.gsm spy-nbs.gsm vm-youhave.gsm |
#ls /usr/share/asterisk/sounds/ru
agent-alreadyon.gsm spy-sip.gsm agent-incorrect.gsm spy-skinny.gsm agent-loggedoff.gsm spy-unistim.gsm agent-loginok.gsm spy-usbradio.gsm agent-newlocation.gsm spy-zap.gsm agent-pass.gsm ss-noservice.gsm agent-user.gsm transfer.gsm ascending-2tone.gsm tt-allbusy.gsm auth-incorrect.gsm tt-monkeys.gsm auth-thankyou.gsm tt-monkeysintro.gsm ... spy-dahdi.gsm vm-tooshort.gsm spy-h323.gsm vm-toreply.gsm spy-iax2.gsm vm-torerecord.gsm spy-iax.gsm vm-undeleted.gsm spy-jingle.gsm vm-undelete.gsm spy-local.gsm vm-unknown-caller.gsm spy-mgcp.gsm vm-Urgent.gsm spy-misdn.gsm vm-whichbox.gsm spy-mobile.gsm vm-Work.gsm spy-nbs.gsm vm-youhave.gsm |
#ls /usr/share/asterisk/sounds/
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 debian6 (pid = 6128) Verbosity is at least 3 ... -- <SIP/2301-000000df> Playing 'vm-password.slin' (language 'ru') -- <SIP/2301-000000df> Playing 'vm-youhave.slin' (language 'ru') -- <SIP/2301-000000df> Playing 'vm-no.slin' (language 'ru') -- <SIP/2301-000000df> Playing 'vm-messagex2.slin' (language 'ru') -- <SIP/2301-000000df> Playing 'vm-opts.slin' (language 'ru') == Spawn extension (gr1, 8100, 1) exited non-zero on 'SIP/2301-000000df' [Apr 24 14:22:30] WARNING[17515]: pbx.c:4466 pbx_extension_helper: No application 'Playback/var/tmp/asterisk/message)' for extension (gr1, h, 1) == Spawn extension (gr1, h, 1) exited non-zero on 'SIP/2301-000000df' debian6*CLI> quit Executing last minute cleanups |
#ls /usr/share/asterisk/sounds/
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 debian6 (pid = 6128) Verbosity is at least 3 ... -- <SIP/2301-000000df> Playing 'vm-password.slin' (language 'ru') -- <SIP/2301-000000df> Playing 'vm-youhave.slin' (language 'ru') -- <SIP/2301-000000df> Playing 'vm-no.slin' (language 'ru') -- <SIP/2301-000000df> Playing 'vm-messagex2.slin' (language 'ru') -- <SIP/2301-000000df> Playing 'vm-opts.slin' (language 'ru') == Spawn extension (gr1, 8100, 1) exited non-zero on 'SIP/2301-000000df' [Apr 24 14:22:30] WARNING[17515]: pbx.c:4466 pbx_extension_helper: No application 'Playback/var/tmp/asterisk/message)' for extension (gr1, h, 1) == Spawn extension (gr1, h, 1) exited non-zero on 'SIP/2301-000000df' debian6*CLI> quit Executing last minute cleanups |
Время первой команды журнала | 14:31:28 2014- 4-23 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 13:26:59 2014- 4-24 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 26.73 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 12.87 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 5.45 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.31 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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