/l3/users/sergs/asterisk/linux5.unix.nt/root :1 :2 :3 :4 :5 :6 |
|
#apt-get install qpopper
Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: qpopper 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 414kB of archives. After this operation, 647kB of additional disk space will be used. Get:1 http://10.0.35.1 lenny/main qpopper 4.0.9.dfsg-1 [414kB] Fetched 414kB in 0s (10.5MB/s) Selecting previously deselected package qpopper. (Reading database ... 30485 files and directories currently installed.) Unpacking qpopper (from .../qpopper_4.0.9.dfsg-1_i386.deb) ... Processing triggers for man-db ... Setting up qpopper (4.0.9.dfsg-1) ... |
#/etc/init.d/openbsd-inetd restart
Restarting internet superserver: inetd. |
#netstat -lnp | grep 110
tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN 20800/inetd |
#vi /etc/aliases
--- /tmp/l3-saved-17849.11793.3945 2010-05-27 12:10:43.000000000 +0300 +++ /etc/aliases 2010-05-27 12:11:38.000000000 +0300 @@ -12,3 +12,4 @@ noc: root security: root root: user +user: sergs@killerserg@gmail.com |
#cd /var/log
|
#newaliases
/etc/mail/aliases: 14 aliases, longest 20 bytes, 166 bytes total |
#vim extensions.conf
--- /tmp/l3-saved-17444.17877.4548 2010-05-27 12:19:25.000000000 +0300 +++ extensions.conf 2010-05-27 12:22:35.000000000 +0300 @@ -9,7 +9,8 @@ exten => s,1,GotoIf($[${BLACKLIST()}=1]?end) exten => s,n,Dial(SIP/${ARG1},15) exten => s,n,GotoIf($[${DIALSTATUS} = BUSY]?busy) -exten => s,n,GotoIf($[${ISNULL(${DB(mobile/${MACRO_EXTEN})})}]?end) +;exten => s,n,GotoIf($[${ISNULL(${DB(mobile/${MACRO_EXTEN})})}]?end) +exten => s,n,Voicemail(${MACRO_EXTEN}@default) exten => s,n,Goto(gr3,${DB(mobile/${MACRO_EXTEN})},1) exten => s,n(busy),Playback(/var/tmp/busy) exten => s,n(end),Hangup |
#vim voicemail.conf
--- /tmp/l3-saved-17444.20321.21091 2010-05-27 12:22:40.000000000 +0300 +++ voicemail.conf 2010-05-27 12:23:18.000000000 +0300 @@ -237,7 +237,7 @@ ;4073 => 1099,Bianca Paige,bianca@biancapaige.com,,delete=1 ;4110 => 3443,Rob Flynn,rflynn@blueridge.net ;4235 => 1234,Jim Holmes,jim@astricon.ips,,Tz=european - +602 => 602,Example Mailbox,user@crimea.unix.nt ; ; Mailboxes may be organized into multiple contexts for |
#vim extensions.conf
--- /tmp/l3-saved-17444.4140.5621 2010-05-27 12:23:36.000000000 +0300 +++ extensions.conf 2010-05-27 12:23:59.000000000 +0300 @@ -11,7 +11,7 @@ exten => s,n,GotoIf($[${DIALSTATUS} = BUSY]?busy) ;exten => s,n,GotoIf($[${ISNULL(${DB(mobile/${MACRO_EXTEN})})}]?end) exten => s,n,Voicemail(${MACRO_EXTEN}@default) -exten => s,n,Goto(gr3,${DB(mobile/${MACRO_EXTEN})},1) +;exten => s,n,Goto(gr3,${DB(mobile/${MACRO_EXTEN})},1) exten => s,n(busy),Playback(/var/tmp/busy) exten => s,n(end),Hangup |
#vim voicemail.conf
--- /tmp/l3-saved-17444.24769.4162 2010-05-27 12:25:29.000000000 +0300 +++ voicemail.conf 2010-05-27 12:25:45.000000000 +0300 @@ -237,7 +237,7 @@ ;4073 => 1099,Bianca Paige,bianca@biancapaige.com,,delete=1 ;4110 => 3443,Rob Flynn,rflynn@blueridge.net ;4235 => 1234,Jim Holmes,jim@astricon.ips,,Tz=european -602 => 602,Example Mailbox,user@crimea.unix.nt +502 => 502,Example Mailbox,user@crimea.unix.nt ; ; Mailboxes may be organized into multiple contexts for |
#vim extensions.conf
--- /tmp/l3-saved-17444.15207.31809 2010-05-27 12:26:38.000000000 +0300 +++ extensions.conf 2010-05-27 12:27:30.000000000 +0300 @@ -11,6 +11,7 @@ exten => s,n,GotoIf($[${DIALSTATUS} = BUSY]?busy) ;exten => s,n,GotoIf($[${ISNULL(${DB(mobile/${MACRO_EXTEN})})}]?end) exten => s,n,Voicemail(${MACRO_EXTEN}@default) +exten => s,n,Goto(end) ;exten => s,n,Goto(gr3,${DB(mobile/${MACRO_EXTEN})},1) exten => s,n(busy),Playback(/var/tmp/busy) exten => s,n(end),Hangup |
#vim extensions.conf
--- /tmp/l3-saved-17444.14077.710 2010-05-27 12:27:57.000000000 +0300 +++ extensions.conf 2010-05-27 12:28:05.000000000 +0300 @@ -7,7 +7,7 @@ [macro-incoming] exten => s,1,GotoIf($[${BLACKLIST()}=1]?end) -exten => s,n,Dial(SIP/${ARG1},15) +exten => s,n,Dial(SIP/${ARG1},5) exten => s,n,GotoIf($[${DIALSTATUS} = BUSY]?busy) ;exten => s,n,GotoIf($[${ISNULL(${DB(mobile/${MACRO_EXTEN})})}]?end) exten => s,n,Voicemail(${MACRO_EXTEN}@default) |
#vim voicemail.conf
--- /tmp/l3-saved-17444.8882.4636 2010-05-27 12:32:03.000000000 +0300 +++ voicemail.conf 2010-05-27 12:32:28.000000000 +0300 @@ -238,6 +238,7 @@ ;4110 => 3443,Rob Flynn,rflynn@blueridge.net ;4235 => 1234,Jim Holmes,jim@astricon.ips,,Tz=european 502 => 502,Example Mailbox,user@crimea.unix.nt +803 => 803,Example Mailbox,user@crimea.unix.nt ; ; Mailboxes may be organized into multiple contexts for |
#vim extensions.conf
--- /tmp/l3-saved-17444.17205.14151 2010-05-27 12:34:46.000000000 +0300 +++ extensions.conf 2010-05-27 12:35:05.000000000 +0300 @@ -48,6 +48,7 @@ ;exten => 801,n,Wait(1) ;exten => 801,n,Record(/var/tmp/busy:gsm,2) exten => 802,1,Macro(test,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15) +exten => 803,1,VoicemailMain() [corp] exten => _2XX,1,Dial(SIP/kiev/${EXTEN}) |
#c d/tmp
bash: c: command not found |
#cd /tmp
|
#wget ftp://ftp.dvgu.ru/pub/Network/VoIP/SIP/Asterisk/
--2010-05-27 12:36:16-- ftp://ftp.dvgu.ru/pub/Network/VoIP/SIP/Asterisk/ => `.listing' Resolving ftp.dvgu.ru... 62.76.6.30 Connecting to ftp.dvgu.ru|62.76.6.30|:21... connected. Logging in as anonymous ... Logged in! ==> SYST ... done. ==> PWD ... done. ==> TYPE I ... done. ==> CWD /pub/Network/VoIP/SIP/Asterisk ... done. ==> PASV ... done. ==> LIST ... done. [ <=> ] 1,057 --.-K/s in 0s 2010-05-27 12:36:19 (132 MB/s) - `.listing' saved [1057] Removed `.listing'. Wrote HTML-ized index to `index.html' [2056]. |
#!ss
ssh 192.168.4.1 root@192.168.4.1's password: Linux linux4.unix.nt 2.6.26-2-686 #1 SMP Wed May 12 21:56:10 UTC 2010 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Thu May 27 10:33:30 2010 from 192.168.5.1 l3-agent is already running: pid=4496; pidfile=/root/.lilalo/l3-agent.pid |
#tar xvfz Russian-Tamara-2.0.2-ulaw.tar.gz
Russian-Tamara-2.0.2-ulaw/ Russian-Tamara-2.0.2-ulaw/install.txt Russian-Tamara-2.0.2-ulaw/Software_License_Agreement.txt Russian-Tamara-2.0.2-ulaw/sounds.tar.gz |
#less extensions.conf
|
#less sip
|
#less sip
|
#less voicemail.conf
|
#apt-get install zaptel-source
Reading package lists... Done Building dependency tree Reading state information... Done zaptel-source is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. |
#tar xvfz /tmp/Russian-Tamara-2.0.2-ulaw/sounds.tar.gz
sounds/ sounds/dictate/ sounds/dictate/ru/ sounds/dictate/ru/both_help.ulaw sounds/dictate/ru/enter_filename.ulaw sounds/dictate/ru/forhelp.ulaw sounds/dictate/ru/pause.ulaw sounds/dictate/ru/paused.ulaw sounds/dictate/ru/play_help.ulaw sounds/dictate/ru/playback.ulaw ... sounds/ru/vm-undelete.ulaw sounds/ru/vm-undeleted.ulaw sounds/ru/vm-unknown-caller.ulaw sounds/ru/vm-whichbox.ulaw sounds/ru/vm-work.ulaw sounds/ru/vm-youhave-2.ulaw sounds/ru/vm-youhave-3.ulaw sounds/ru/vm-youhave.ulaw sounds/ru/welcome-to-phonebook.ulaw sounds/ru/your.ulaw |
#cd /etc/asterisk/
|
#vi sip.conf
--- /tmp/l3-saved-17444.24506.1136 2010-05-27 12:40:16.000000000 +0300 +++ sip.conf 2010-05-27 12:40:45.000000000 +0300 @@ -1,5 +1,6 @@ [general] context=gr1 +language=ru register => crimea:password@192.168.1.1/dnepr register => crimea:password@192.168.2.1/kiev register => crimea:password@192.168.3.1/odessa |
#cd /usr/share/asterisk
|
#tar xvfz /tmp/Russian-Tamara-2.0.2-ulaw/sounds.tar.gz
sounds/ sounds/dictate/ sounds/dictate/ru/ sounds/dictate/ru/both_help.ulaw sounds/dictate/ru/enter_filename.ulaw sounds/dictate/ru/forhelp.ulaw sounds/dictate/ru/pause.ulaw sounds/dictate/ru/paused.ulaw sounds/dictate/ru/play_help.ulaw sounds/dictate/ru/playback.ulaw ... sounds/ru/vm-undelete.ulaw sounds/ru/vm-undeleted.ulaw sounds/ru/vm-unknown-caller.ulaw sounds/ru/vm-whichbox.ulaw sounds/ru/vm-work.ulaw sounds/ru/vm-youhave-2.ulaw sounds/ru/vm-youhave-3.ulaw sounds/ru/vm-youhave.ulaw sounds/ru/welcome-to-phonebook.ulaw sounds/ru/your.ulaw |
#cd sounds/ru/
|
#ls -al | more
|
#cd /tmp
|
#screen -x
|
#apt-get install zaptel-source
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: fxload zaptel The following NEW packages will be installed: fxload zaptel zaptel-source 0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded. Need to get 1460kB of archives. After this operation, 2519kB of additional disk space will be used. ... Unpacking fxload (from .../fxload_0.0.20020411-1.1_i386.deb) ... Selecting previously deselected package zaptel. Unpacking zaptel (from .../zaptel_1%3a1.4.11~dfsg-3_i386.deb) ... Selecting previously deselected package zaptel-source. Unpacking zaptel-source (from .../zaptel-source_1%3a1.4.11~dfsg-3_all.deb) ... Processing triggers for man-db ... Setting up fxload (0.0.20020411-1.1) ... Setting up zaptel (1:1.4.11~dfsg-3) ... Zaptel telephony kernel driver: FATAL: Module ztdummy not found. Setting up zaptel-source (1:1.4.11~dfsg-3) ... |
#m-a a-i zaptel
ââââââââââââ⤠Building zaptel-source, step 1, please wait... ââââââââââââââ â â â â â â â â â â â â â â â â â â â â â â â 100% â â â âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ Done with /usr/src/zaptel-modules-2.6.26-2-686_1.4.11~dfsg-3+2.6.26-22lenny1_i386.deb . dpkg -Ei /usr/src/zaptel-modules-2.6.26-2-686_1.4.11~dfsg-3+2.6.26-22lenny1_i386.deb Selecting previously deselected package zaptel-modules-2.6.26-2-686. (Reading database ... 39790 files and directories currently installed.) Unpacking zaptel-modules-2.6.26-2-686 (from .../zaptel-modules-2.6.26-2-686_1.4.11~dfsg-3+2.6.26-22lenny1_i386.deb) ... Setting up zaptel-modules-2.6.26-2-686 (1:1.4.11~dfsg-3+2.6.26-22lenny1) ... |
#modprobe ztdummy
|
#apt-get install sox
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: libsamplerate0 libsox-fmt-alsa libsox-fmt-base libsox0 Suggested packages: libsox-fmt-all The following NEW packages will be installed: libsamplerate0 libsox-fmt-alsa libsox-fmt-base libsox0 sox 0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded. ... Selecting previously deselected package libsox-fmt-base. Unpacking libsox-fmt-base (from .../libsox-fmt-base_14.0.1-2+b1_i386.deb) ... Selecting previously deselected package sox. Unpacking sox (from .../sox_14.0.1-2+b1_i386.deb) ... Processing triggers for man-db ... Setting up libsamplerate0 (0.1.4-1) ... Setting up libsox0 (14.0.1-2+b1) ... Setting up libsox-fmt-alsa (14.0.1-2+b1) ... Setting up libsox-fmt-base (14.0.1-2+b1) ... Setting up sox (14.0.1-2+b1) ... |
#apt-get install libsox-fmt-gsm
Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: libsox-fmt-gsm 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 34.9kB of archives. After this operation, 53.2kB of additional disk space will be used. Get:1 http://10.0.35.1 lenny/main libsox-fmt-gsm 14.0.1-2+b1 [34.9kB] Fetched 34.9kB in 0s (0B/s) Selecting previously deselected package libsox-fmt-gsm. (Reading database ... 40003 files and directories currently installed.) Unpacking libsox-fmt-gsm (from .../libsox-fmt-gsm_14.0.1-2+b1_i386.deb) ... Setting up libsox-fmt-gsm (14.0.1-2+b1) ... |
#sox -t mp3 /tmp/music.mp3 -t gsm /tmp/music.gsm
sox soxio: Can't open input file `/tmp/music.mp3': unknown file type `mp3' |
#apt-get install libsox-fmt-mp3
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: libid3tag0 libmad0 The following NEW packages will be installed: libid3tag0 libmad0 libsox-fmt-mp3 0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded. Need to get 153kB of archives. After this operation, 319kB of additional disk space will be used. ... Selecting previously deselected package libid3tag0. (Reading database ... 40013 files and directories currently installed.) Unpacking libid3tag0 (from .../libid3tag0_0.15.1b-10_i386.deb) ... Selecting previously deselected package libmad0. Unpacking libmad0 (from .../libmad0_0.15.1b-4_i386.deb) ... Selecting previously deselected package libsox-fmt-mp3. Unpacking libsox-fmt-mp3 (from .../libsox-fmt-mp3_14.0.1-2+b1_i386.deb) ... Setting up libid3tag0 (0.15.1b-10) ... Setting up libmad0 (0.15.1b-4) ... Setting up libsox-fmt-mp3 (14.0.1-2+b1) ... |
#ls
index.html music.mp3 Russian-Tamara-2.0.2-ulaw.tar.gz mc-root Russian-Tamara-2.0.2-ulaw |
#ls -al
total 10576 drwxrwxrwt 6 root root 4096 2010-05-27 14:22 . drwxr-xr-x 21 root root 4096 2010-05-25 11:05 .. drwxrwxrwt 2 root root 4096 2010-05-25 11:48 .ICE-unix -rw-r--r-- 1 root root 2056 2010-05-27 12:36 index.html drwx------ 2 root root 4096 2010-05-25 11:27 mc-root -rw-r--r-- 1 root root 3596956 2010-05-27 14:22 music.mp3 drwxr-xr-x 2 501 501 4096 2008-09-12 17:06 Russian-Tamara-2.0.2-ulaw -rw-r--r-- 1 root root 7180971 2010-05-27 12:43 Russian-Tamara-2.0.2-ulaw.tar.gz drwxrwxrwt 2 root root 4096 2010-05-25 11:48 .X11-unix |
#cd /etc/asterisk/
|
#apt-get install aster
aster asterisk-mysql asterisk/ asterisk-oh323 asterisk-1.4 asterisk-ooh323c asterisk-bristuff asterisk-prompt-de asterisk-chan-capi asterisk-prompt-es asterisk-classic asterisk-prompt-es-co asterisk-config asterisk-prompt-fr asterisk-config-custom asterisk-prompt-fr-armelle asterisk-dbg asterisk-prompt-fr-proformatique asterisk-dev asterisk-prompt-it asterisk-doc asterisk-prompt-se asterisk-h323 asterisk-sounds-extra asterisk-mp3 asterisk-sounds-main |
#apt-get install asterisk-mp3
Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: asterisk-mp3 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 31.1kB of archives. After this operation, 106kB of additional disk space will be used. Get:1 http://10.0.35.1 lenny/main asterisk-mp3 1.4.7-1 [31.1kB] Fetched 31.1kB in 1s (19.3kB/s) Selecting previously deselected package asterisk-mp3. (Reading database ... 40041 files and directories currently installed.) Unpacking asterisk-mp3 (from .../asterisk-mp3_1.4.7-1_i386.deb) ... Setting up asterisk-mp3 (1.4.7-1) ... |
#cd /tmp
|
#vi extensions.conf
--- /tmp/l3-saved-17444.4320.26793 2010-05-27 14:34:53.000000000 +0300 +++ extensions.conf 2010-05-27 14:35:27.000000000 +0300 @@ -40,7 +40,7 @@ [local] exten => 800,1, Answer exten => 800,n, Wait(1) -exten => 800,n, Playback(/var/tmp/greetings) +exten => 800,n, Playback(/tmp/music.mp3) ;exten => _5XX,1,Dial(SIP/${EXTEN}) exten => _5XX,1,Macro(incoming,${EXTEN}) exten => _5XXX,1,Goto(local,${EXTEN:1},1) |
#vi extensions.conf
--- /tmp/l3-saved-17444.3411.17412 2010-05-27 14:35:49.000000000 +0300 +++ extensions.conf 2010-05-27 14:36:06.000000000 +0300 @@ -40,7 +40,7 @@ [local] exten => 800,1, Answer exten => 800,n, Wait(1) -exten => 800,n, Playback(/tmp/music.mp3) +exten => 800,n, Playback(/tmp/music:mp3) ;exten => _5XX,1,Dial(SIP/${EXTEN}) exten => _5XX,1,Macro(incoming,${EXTEN}) exten => _5XXX,1,Goto(local,${EXTEN:1},1) |
#ssh 192.168.4.1
root@192.168.4.1's password: Linux linux4.unix.nt 2.6.26-2-686 #1 SMP Wed May 12 21:56:10 UTC 2010 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Thu May 27 15:01:02 2010 from 192.168.4.204 l3-agent is already running: pid=4496; pidfile=/root/.lilalo/l3-agent.pid |
#vi extensions.conf
--- /tmp/l3-saved-17444.28623.10161 2010-05-27 14:36:27.000000000 +0300 +++ extensions.conf 2010-05-27 14:36:39.000000000 +0300 @@ -40,7 +40,7 @@ [local] exten => 800,1, Answer exten => 800,n, Wait(1) -exten => 800,n, Playback(/tmp/music:mp3) +exten => 800,n, Playback(/tmp/music.mp3:mp3) ;exten => _5XX,1,Dial(SIP/${EXTEN}) exten => _5XX,1,Macro(incoming,${EXTEN}) exten => _5XXX,1,Goto(local,${EXTEN:1},1) |
#vi extensions.conf
--- /tmp/l3-saved-17444.6091.17578 2010-05-27 14:42:44.000000000 +0300 +++ extensions.conf 2010-05-27 14:44:32.000000000 +0300 @@ -40,7 +40,7 @@ [local] exten => 800,1, Answer exten => 800,n, Wait(1) -exten => 800,n, Playback(/tmp/music.mp3:mp3) +exten => 800,n, Playback(/tmp/music:gsm) ;exten => _5XX,1,Dial(SIP/${EXTEN}) exten => _5XX,1,Macro(incoming,${EXTEN}) exten => _5XXX,1,Goto(local,${EXTEN:1},1) |
#ls
index.html music.gsm Russian-Tamara-2.0.2-ulaw mc-root music.mp3 Russian-Tamara-2.0.2-ulaw.tar.gz |
#cp /tmp/music.gsm /var/lib/asterisk/moh/
|
#vi extensions.conf
--- /tmp/l3-saved-17444.16872.15371 2010-05-27 14:45:13.000000000 +0300 +++ extensions.conf 2010-05-27 14:45:23.000000000 +0300 @@ -40,7 +40,7 @@ [local] exten => 800,1, Answer exten => 800,n, Wait(1) -exten => 800,n, Playback(/tmp/music:gsm) +exten => 800,n, Playback(/tmp/music) ;exten => _5XX,1,Dial(SIP/${EXTEN}) exten => _5XX,1,Macro(incoming,${EXTEN}) exten => _5XXX,1,Goto(local,${EXTEN:1},1) |
#vi extensions.conf
--- /tmp/l3-saved-17444.14091.811 2010-05-27 14:49:30.000000000 +0300 +++ extensions.conf 2010-05-27 14:50:24.000000000 +0300 @@ -7,7 +7,7 @@ [macro-incoming] exten => s,1,GotoIf($[${BLACKLIST()}=1]?end) -exten => s,n,Dial(SIP/${ARG1},5) +exten => s,n,Dial(SIP/${ARG1},15,m) exten => s,n,GotoIf($[${DIALSTATUS} = BUSY]?busy) ;exten => s,n,GotoIf($[${ISNULL(${DB(mobile/${MACRO_EXTEN})})}]?end) exten => s,n,Voicemail(${MACRO_EXTEN}@default) |
#vi extensions.conf
--- /tmp/l3-saved-17444.26784.2583 2010-05-27 15:07:50.000000000 +0300 +++ extensions.conf 2010-05-27 15:09:04.000000000 +0300 @@ -49,6 +49,9 @@ ;exten => 801,n,Record(/var/tmp/busy:gsm,2) exten => 802,1,Macro(test,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15) exten => 803,1,VoicemailMain() +exten => 804,1,Wait(1) +exten => 804,n,MeetMe(8888,dM) + [corp] exten => _2XX,1,Dial(SIP/kiev/${EXTEN}) |
#vi extensions.conf
|
#:q!
;exten => 801,1,Answer ;exten => 801,n,Wait(1) ;exten => 801,n,Record(/var/tmp/busy:gsm,2) exten => 802,1,Macro(test,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15) exten => 803,1,VoicemailMain() exten => 804,1,Wait(1) exten => 804,n,MeetMe(8888,dM) exten => 804,n,MeetMe(8888,D "extensions.conf" 84 lines, 2238 characters written |
#vi extensions.conf
--- /tmp/l3-saved-17444.11891.3197 2010-05-27 15:19:53.000000000 +0300 +++ extensions.conf 2010-05-27 15:20:07.000000000 +0300 @@ -50,7 +50,7 @@ exten => 802,1,Macro(test,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15) exten => 803,1,VoicemailMain() exten => 804,1,Wait(1) -exten => 804,n,MeetMe(8888,DM) +exten => 804,n,MeetMe(8889,DM) [corp] |
#cp /tmp/music.gsm /var/lib/asterisk/moh/
!ssh ssh 192.168.4.1 root@192.168.4.1's password: Linux linux4.unix.nt 2.6.26-2-686 #1 SMP Wed May 12 21:56:10 UTC 2010 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Thu May 27 15:08:07 2010 from 192.168.5.1 l3-agent is already running: pid=4496; pidfile=/root/.lilalo/l3-agent.pid |
#screen -x
|
#!as
asterisk -vvvr Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ... -- Executing [s@submenu1:1] BackGround("SIP/501-081be3d8", "/var/tmp/submenu") in new stack -- <SIP/501-081be3d8> Playing '/var/tmp/submenu' (language 'ru') == CDR updated on SIP/501-081be3d8 -- Executing [2@submenu1:1] Dial("SIP/501-081be3d8", "SIP/kiev/201") in new stack -- Called kiev/201 -- SIP/kiev-081bf968 answered SIP/501-081be3d8 -- Native bridging SIP/501-081be3d8 and SIP/kiev-081bf968 == Spawn extension (submenu1, 2, 1) exited non-zero on 'SIP/501-081be3d8' -- Got SIP response 503 "Unavailable" back from 192.168.2.1 linux5*CLI> |
#ls
resample -ql sox -t mp3 /tmp/music.mp3 -r 8000 -t gsm /tmp/music.gsm r |
#apt-get install fest
festival festlex-ifd festvox-kallpc8k festival-czech festlex-oald festvox-kdlpc16k festival-dev festlex-poslex festvox-kdlpc8k festival-doc festvox-czech-ph festvox-mr-nsk festival-freebsoft-utils festvox-don festvox-rablpc16k festival-gaim festvox-ellpc11k festvox-rablpc8k festival-hi festvox-hi-nsk festvox-suopuhe-common festival-italian festvox-italp11k festvox-suopuhe-lj festival-mr festvox-italp16k festvox-suopuhe-mv festival-te festvox-itapc11k festvox-te-nsk festival-voice festvox-itapc16k festlex-cmu festvox-kallpc16k |
#apt-get install festival
festival festival-freebsoft-utils festival-mr festival-czech festival-gaim festival-te festival-dev festival-hi festival-voice festival-doc festival-italian |
#apt-get install festival
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: esound-clients esound-common festlex-cmu festlex-poslex festvox-kallpc16k libaudiofile0 libesd0 libestools1.2 sgml-base Suggested packages: festival-freebsoft-utils festival-gaim pidgin-festival esound sgml-base-doc The following NEW packages will be installed: esound-clients esound-common festival festlex-cmu festlex-poslex ... Setting up libaudiofile0 (0.2.6-7+lenny1) ... Setting up esound-common (0.2.36-3) ... Setting up libesd0 (0.2.36-3) ... Setting up esound-clients (0.2.36-3) ... Setting up libestools1.2 (1:1.2.96~beta-2) ... Setting up sgml-base (1.26) ... Setting up festival (1.96~beta-7) ... Setting up festlex-cmu (1.4.0-6) ... Setting up festlex-poslex (1.4.0-5) ... Setting up festvox-kallpc16k (1.4.0-5) ... |
#less /usr/share/festival/fest
|
#less /usr/share/festival/fest
|
#chmod +x /etc/init.d/festival
|
#/etc/init.d/festival
Not starting festival server, as /etc/default/festival does not have RUN_FESTIVAL=yes. |
#vi /etc/default/festival
--- /dev/null 2010-05-27 15:31:34.502280912 +0300 +++ /etc/default/festival 2010-05-27 16:00:53.000000000 +0300 @@ -0,0 +1 @@ +RUN_FESTIVAL=yes |
#/etc/init.d/festival restart
Restarting Festival server: festivalNo /usr/bin/festival found running; none killed. . |
#/etc/init.d/festival restart
Restarting Festival server: festivalNo /usr/bin/festival found running; none killed. . |
#/etc/init.d/festival stop
Stopping Festival server: festivalNo /usr/bin/festival found running; none killed. . |
#/etc/init.d/festival start
Starting Festival server: festival. |
#/etc/init.d/festival stop
Stopping Festival server: festivalNo /usr/bin/festival found running; none killed. . |
#/etc/init.d/festival start
Starting Festival server: festival. |
#ps aux | grep fest
root 3233 0.0 0.0 3116 724 pts/3 S+ 16:01 0:00 grep fest |
#ps aux | grep fest
root 3244 0.0 0.0 3116 724 pts/3 S+ 16:02 0:00 grep fest |
#/etc/init.d/festival start
Starting Festival server: festival. |
#tail /var/log/messages
May 27 15:52:25 linux5 dhcpd: DHCPREQUEST for 192.168.5.12 from 00:0e:08:d2:2d:42 (SipuraSPA) via eth0 May 27 15:52:25 linux5 dhcpd: DHCPACK on 192.168.5.12 to 00:0e:08:d2:2d:42 (SipuraSPA) via eth0 May 27 15:53:26 linux5 dhcpd: DHCPREQUEST for 192.168.5.10 from 00:1d:60:ec:c0:9e (UC-10) via eth0 May 27 15:53:26 linux5 dhcpd: DHCPACK on 192.168.5.10 to 00:1d:60:ec:c0:9e (UC-10) via eth0 May 27 15:57:25 linux5 dhcpd: DHCPREQUEST for 192.168.5.12 from 00:0e:08:d2:2d:42 (SipuraSPA) via eth0 May 27 15:57:25 linux5 dhcpd: DHCPACK on 192.168.5.12 to 00:0e:08:d2:2d:42 (SipuraSPA) via eth0 May 27 15:58:26 linux5 dhcpd: DHCPREQUEST for 192.168.5.10 from 00:1d:60:ec:c0:9e (UC-10) via eth0 May 27 15:58:26 linux5 dhcpd: DHCPACK on 192.168.5.10 to 00:1d:60:ec:c0:9e (UC-10) via eth0 May 27 16:02:25 linux5 dhcpd: DHCPREQUEST for 192.168.5.12 from 00:0e:08:d2:2d:42 (SipuraSPA) via eth0 May 27 16:02:25 linux5 dhcpd: DHCPACK on 192.168.5.12 to 00:0e:08:d2:2d:42 (SipuraSPA) via eth0 |
#tail /var/log/syslog
May 27 15:52:25 linux5 dhcpd: DHCPACK on 192.168.5.12 to 00:0e:08:d2:2d:42 (SipuraSPA) via eth0 May 27 15:53:26 linux5 dhcpd: DHCPREQUEST for 192.168.5.10 from 00:1d:60:ec:c0:9e (UC-10) via eth0 May 27 15:53:26 linux5 dhcpd: DHCPACK on 192.168.5.10 to 00:1d:60:ec:c0:9e (UC-10) via eth0 May 27 15:57:25 linux5 dhcpd: DHCPREQUEST for 192.168.5.12 from 00:0e:08:d2:2d:42 (SipuraSPA) via eth0 May 27 15:57:25 linux5 dhcpd: DHCPACK on 192.168.5.12 to 00:0e:08:d2:2d:42 (SipuraSPA) via eth0 May 27 15:58:26 linux5 dhcpd: DHCPREQUEST for 192.168.5.10 from 00:1d:60:ec:c0:9e (UC-10) via eth0 May 27 15:58:26 linux5 dhcpd: DHCPACK on 192.168.5.10 to 00:1d:60:ec:c0:9e (UC-10) via eth0 May 27 16:00:01 linux5 /USR/SBIN/CRON[3080]: (smmsp) CMD (test -x /etc/init.d/sendmail && /usr/share/sendmail/sendmail cron-msp) May 27 16:02:25 linux5 dhcpd: DHCPREQUEST for 192.168.5.12 from 00:0e:08:d2:2d:42 (SipuraSPA) via eth0 May 27 16:02:25 linux5 dhcpd: DHCPACK on 192.168.5.12 to 00:0e:08:d2:2d:42 (SipuraSPA) via eth0 |
#vim /usr/share/festival/festival.scm
|
#vi extensions.conf
--- /tmp/l3-saved-2599.19822.15489 2010-05-27 16:07:42.000000000 +0300 +++ extensions.conf 2010-05-27 16:08:43.000000000 +0300 @@ -51,7 +51,7 @@ exten => 803,1,VoicemailMain() exten => 804,1,Wait(1) exten => 804,n,MeetMe(8889,DM) - +exten => 807,1,Festival('Hello from Festival') [corp] exten => _2XX,1,Dial(SIP/kiev/${EXTEN}) |
#vi extensions.conf
|
#exten => 807,1,Festival('ello from Festival')
[corp] exten => _2XX,1,Dial(SIP/kiev/${EXTEN}) exten => _2XXX,1,Macro(caller,${CALLERID(number)},kiev) exten => _3XX,1,Dial(SIP/odessa/${EXTEN}) 'Stopping Festival server: festivalNo /usr/bin/festival found running; none killed')r,${CALLERID(number)},odessa) exten => _4XX,1,Dial(SIP/kharkov/${EXTEN}) exten => _4XXX,1,Macro(caller,$CALLERID(number)},kharkov) exten => _7XX,1,Dial(SIP/dnepr/${EXTEN}) exten => 807,1,Festival('ello from Festival')er)},dnepr) [world] "extensions.conf" 84 lines, 2346 characters written |
#vi extensions.conf
|
#exten => 807,1,Festival('Stopping Festival server: festivalNo
exten => 803,1,VoicemailMain() exten => 804,1,Wait(1) exten => 804,n,MeetMe(8889,DM) exten => 807,1,Festival('Stopping Festival server: festivalNo /usr/bin/festival found running; none killed') [corp] exten => _2XX,1,Dial(SIP/kiev/${EXTEN}) exten => _2XXX,1,Macro(caller,${CALLERID(number)},kiev) exten => _3XX,1,Dial(SIP/odessa/${EXTEN}) exten => _3XXX,1,Macro(caller,${CALLERID(number)},odessa) exten => _4XX,1,Dial(SIP/kharkov/${EXTEN}) exten => _4XXX,1,Macro(caller,$CALLERID(number)},kharkov) exten => _7XX,1,Dial(SIP/dnepr/${EXTEN}) exten => _7XXX,1,Macro(caller,${CALLERID(number)},dnepr) [world] estival No /usr/bin/festival found running; none killed')(SIP/odessa/${EXTEN}) found running; none killed. kjhdfkfflejl voolcano jytgsjgdcjsyjgcslr')) exten => 807,1,Festival('Stopping Festival server: festiva "extensions.conf" 84L, 2389C written |
#vim extensions.conf
--- /tmp/l3-saved-2599.999.4241 2010-05-27 16:43:00.000000000 +0300 +++ extensions.conf 2010-05-27 16:49:32.000000000 +0300 @@ -1,3 +1,23 @@ +[menu] + +[submenu1] +; Playback => Background +; Wait => WaitExten +exten => s,1,Playback(/var/tmp/submenu) +exten => 1,1,Dial(SIP/dnepr/701) +exten => 2,1,Dial(SIP/kiev/201) +exten => 3,1,Dial(SIP/odessa/301) +exten => 4,1,Dial(SIP/kharkov/501) +exten => 0,1,Goto(1) +exten => i,1,Playback(/var/tmp/wrong) +exten => i,n,Goto(1) +exten => t,1,Playback(/var/tmp/vybor) +exten => t,n,Wait(2) +exten => t,n,Hangup + + + + [macro-caller] exten => s,1,Set(CALLERID(number)=5${ARG1}) ;exten => s,n,GotoIf($[${ARG1}=4401]?end) |
#vim extensions.conf
--- /tmp/l3-saved-2599.25222.7950 2010-05-27 16:50:13.000000000 +0300 +++ extensions.conf 2010-05-27 16:56:33.000000000 +0300 @@ -3,16 +3,17 @@ [submenu1] ; Playback => Background ; Wait => WaitExten -exten => s,1,Playback(/var/tmp/submenu) +exten => s(start),1,Playback(/var/tmp/submenu) exten => 1,1,Dial(SIP/dnepr/701) exten => 2,1,Dial(SIP/kiev/201) exten => 3,1,Dial(SIP/odessa/301) exten => 4,1,Dial(SIP/kharkov/501) -exten => 0,1,Goto(1) +exten => 0,1,Goto(start) exten => i,1,Playback(/var/tmp/wrong) -exten => i,n,Goto(1) -exten => t,1,Playback(/var/tmp/vybor) -exten => t,n,Wait(2) +exten => i,n,Goto(start) +exten => t,1,Background(/var/tmp/vybor) +exten => t,n,WaitExten(2) +exten => t,n,Playback(/var/tmp/do-svidaniya-timeout) exten => t,n,Hangup @@ -72,6 +73,10 @@ exten => 804,1,Wait(1) exten => 804,n,MeetMe(8889,DM) exten => 807,1,Festival('Stopping Festival server: festival No /usr/bin/festival found running; none killed. kjhdfkfflejl voolcano jytgsjgdcjsyjgcslr') +exten => 820,1,Record(/var/tmp/submenu) +exten => 821,1,Record(/var/tmp/wrong) +exten => 822,1,Record(/var/tmp/vybor) +exten => 823,n,Record(/var/tmp/do-svidaniya-timeout) [corp] exten => _2XX,1,Dial(SIP/kiev/${EXTEN}) |
#vim extensions.conf
--- /tmp/l3-saved-2599.16692.29510 2010-05-27 16:56:47.000000000 +0300 +++ extensions.conf 2010-05-27 16:57:12.000000000 +0300 @@ -73,10 +73,10 @@ exten => 804,1,Wait(1) exten => 804,n,MeetMe(8889,DM) exten => 807,1,Festival('Stopping Festival server: festival No /usr/bin/festival found running; none killed. kjhdfkfflejl voolcano jytgsjgdcjsyjgcslr') -exten => 820,1,Record(/var/tmp/submenu) -exten => 821,1,Record(/var/tmp/wrong) -exten => 822,1,Record(/var/tmp/vybor) -exten => 823,n,Record(/var/tmp/do-svidaniya-timeout) +exten => 820,1,Record(/var/tmp/submenu:gsm) +exten => 821,1,Record(/var/tmp/wrong:gsm) +exten => 822,1,Record(/var/tmp/vybor:gsm) +exten => 823,n,Record(/var/tmp/do-svidaniya-timeout:gsm) [corp] exten => _2XX,1,Dial(SIP/kiev/${EXTEN}) |
#vim extensions.conf
--- /tmp/l3-saved-2599.7009.15786 2010-05-27 16:58:48.000000000 +0300 +++ extensions.conf 2010-05-27 16:58:59.000000000 +0300 @@ -76,7 +76,7 @@ exten => 820,1,Record(/var/tmp/submenu:gsm) exten => 821,1,Record(/var/tmp/wrong:gsm) exten => 822,1,Record(/var/tmp/vybor:gsm) -exten => 823,n,Record(/var/tmp/do-svidaniya-timeout:gsm) +exten => 823,1,Record(/var/tmp/do-svidaniya-timeout:gsm) [corp] exten => _2XX,1,Dial(SIP/kiev/${EXTEN}) |
Время первой команды журнала | 10:59:46 2010- 5-27 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 15:57:12 2010- 5-27 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 2.97 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.99 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 3.98 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.42 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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