Журнал лабораторных работ

Содержание

Журнал

Среда (04/10/13)

/dev/pts/2
13:06:28
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2245.11402.21620	2013-04-10 14:06:31.000000000 +0300
+++ /etc/asterisk/extensions.conf	2013-04-10 14:06:43.000000000 +0300
@@ -9,7 +9,7 @@
 exten=>_81XX,n,Playback(/var/tmp/message/${EXTEN:2})
 exten=>_82XX,1,Playback(/var/tmp/message/$(EXTEN:2})
 exten=>8300,1,Voicemailmain()
-exten=8301,1,Meetme(1234)
+exten=>8301,1,Meetme(1234)
 
 ;exten=>_14XX,1,Answer
 ;exten=>_14XX,n,Set(CALLFILENAME=${EXTEN}-${CALLERID(num)}-${EPOCH})
/dev/pts/0
13:06:28
#nano /etc/asterisk/extensions.conf
/dev/pts/2
13:06:43
#[default]
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux4 (pid = 1664)
linux4*CLI> dialplan reload
Dialplan reloaded.
[Apr 10 14:06:54] WARNING[5918]: app_meetme.c:1097 build_conf: Unable to open pseudo device
linux4*CLI> quit
/dev/pts/0
13:06:43
#[default]
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux4 (pid = 1664)
linux4*CLI> dialplan reload
Dialplan reloaded.
[Apr 10 14:06:54] WARNING[5918]: app_meetme.c:1097 build_conf: Unable to open pseudo device
linux4*CLI> quit
/dev/pts/2
13:07:24
#modprobe dahdi

/dev/pts/0
13:07:24
#modprobe dahdi

/dev/pts/2
13:07:33
#nano /etc/asterisk/extensions.conf
/dev/pts/0
13:07:33
#nano /etc/asterisk/extensions.conf
/dev/pts/2
13:07:38
#[default]
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux4 (pid = 1664)
[Apr 10 14:08:22] NOTICE[5956]: rtp.c:1143 process_rfc3389: Comfort noise support incomplete in Asterisk (RFC 3389). Please turn off on client if possible. Client IP: 192.168.40.101
[Apr 10 14:08:24] NOTICE[1686]: chan_sip.c:21643 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 1403
...
kick    lock    mute    unlock  unmute  list
linux4*CLI> meetme
kick    lock    mute    unlock  unmute  list
linux4*CLI> meetme kick 1234
1    all  2
linux4*CLI> meetme kick 1234 1
linux4*CLI> meetme kick 1234 2
[Apr 10 14:12:05] NOTICE[1686]: chan_sip.c:21643 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 1403
[Apr 10 14:12:16] NOTICE[1686]: chan_sip.c:21643 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 1403
linux4*CLI> quit
/dev/pts/0
13:07:38
#[default]
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux4 (pid = 1664)
[Apr 10 14:08:22] NOTICE[5956]: rtp.c:1143 process_rfc3389: Comfort noise support incomplete in Asterisk (RFC 3389). Please turn off on client if possible. Client IP: 192.168.40.101
[Apr 10 14:08:24] NOTICE[1686]: chan_sip.c:21643 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 1403
...
kick    lock    mute    unlock  unmute  list
linux4*CLI> meetme
kick    lock    mute    unlock  unmute  list
linux4*CLI> meetme kick 1234
1    all  2
linux4*CLI> meetme kick 1234 1
linux4*CLI> meetme kick 1234 2
[Apr 10 14:12:05] NOTICE[1686]: chan_sip.c:21643 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 1403
[Apr 10 14:12:16] NOTICE[1686]: chan_sip.c:21643 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 1403
linux4*CLI> quit
/dev/pts/2
13:17:05
#cd /usr/share/a
abiword-2.8/          alsa/                 aptitude/
aclocal/              alsa-base/            apt-xapian-index/
acpi-support/         app-install/          aspell/
adduser/              application-registry/ asterisk/
aiksaurus/            applications/         avahi/
alacarte/             apps/
13:17:05
#cd /usr/share/a
abiword-2.8/          alsa/                 aptitude/
aclocal/              alsa-base/            apt-xapian-index/
acpi-support/         app-install/          aspell/
adduser/              application-registry/ asterisk/
aiksaurus/            applications/         avahi/
alacarte/             apps/
/dev/pts/0
13:17:05
#cd /usr/share/a
abiword-2.8/          alsa/                 aptitude/
aclocal/              alsa-base/            apt-xapian-index/
acpi-support/         app-install/          aspell/
adduser/              application-registry/ asterisk/
aiksaurus/            applications/         avahi/
alacarte/             apps/
13:17:05
#cd /usr/share/a
abiword-2.8/          alsa/                 aptitude/
aclocal/              alsa-base/            apt-xapian-index/
acpi-support/         app-install/          aspell/
adduser/              application-registry/ asterisk/
aiksaurus/            applications/         avahi/
alacarte/             apps/
/dev/pts/2
13:17:05
#cd /usr/share/asterisk/sounds/ru

/dev/pts/0
13:17:05
#cd /usr/share/asterisk/sounds/ru

/dev/pts/2
13:17:33
#ls
agent-newlocation.gsm  ru  vm-newpassword.gsm
/dev/pts/0
13:17:33
#ls
agent-newlocation.gsm  ru  vm-newpassword.gsm
/dev/pts/2
13:17:54
#ls
                  cd /usr/share/asterisk/sounds/ru
/dev/pts/0
13:17:54
#ls
                  cd /usr/share/asterisk/sounds/ru
/dev/pts/2
13:17:58
#ls
agent-alreadyon.gsm              spy-mobile.gsm
agent-incorrect.gsm              spy-nbs.gsm
agent-loggedoff.gsm              spy-sip.gsm
agent-loginok.gsm                spy-skinny.gsm
agent-newlocation.gsm            spy-unistim.gsm
agent-pass.gsm                   spy-usbradio.gsm
agent-user.gsm                   spy-zap.gsm
ascending-2tone.gsm              ss-noservice.gsm
auth-incorrect.gsm               transfer.gsm
auth-thankyou.gsm                tt-allbusy.gsm
...
spy-agent.gsm                    vm-toreply.gsm
spy-console.gsm                  vm-torerecord.gsm
spy-dahdi.gsm                    vm-undeleted.gsm
spy-h323.gsm                     vm-undelete.gsm
spy-iax2.gsm                     vm-unknown-caller.gsm
spy-iax.gsm                      vm-Urgent.gsm
spy-jingle.gsm                   vm-whichbox.gsm
spy-local.gsm                    vm-Work.gsm
spy-mgcp.gsm                     vm-youhave.gsm
spy-misdn.gsm
/dev/pts/0
13:17:58
#ls
agent-alreadyon.gsm              spy-mobile.gsm
agent-incorrect.gsm              spy-nbs.gsm
agent-loggedoff.gsm              spy-sip.gsm
agent-loginok.gsm                spy-skinny.gsm
agent-newlocation.gsm            spy-unistim.gsm
agent-pass.gsm                   spy-usbradio.gsm
agent-user.gsm                   spy-zap.gsm
ascending-2tone.gsm              ss-noservice.gsm
auth-incorrect.gsm               transfer.gsm
auth-thankyou.gsm                tt-allbusy.gsm
...
spy-agent.gsm                    vm-toreply.gsm
spy-console.gsm                  vm-torerecord.gsm
spy-dahdi.gsm                    vm-undeleted.gsm
spy-h323.gsm                     vm-undelete.gsm
spy-iax2.gsm                     vm-unknown-caller.gsm
spy-iax.gsm                      vm-Urgent.gsm
spy-jingle.gsm                   vm-whichbox.gsm
spy-local.gsm                    vm-Work.gsm
spy-mgcp.gsm                     vm-youhave.gsm
spy-misdn.gsm
/dev/pts/2
13:17:59
#rm -rf ru

/dev/pts/0
13:17:59
#rm -rf ru

/dev/pts/2
13:18:52
#ls
agent-alreadyon.gsm              spy-mobile.gsm
agent-incorrect.gsm              spy-nbs.gsm
agent-loggedoff.gsm              spy-sip.gsm
agent-loginok.gsm                spy-skinny.gsm
agent-newlocation.gsm            spy-unistim.gsm
agent-pass.gsm                   spy-usbradio.gsm
agent-user.gsm                   spy-zap.gsm
ascending-2tone.gsm              ss-noservice.gsm
auth-incorrect.gsm               transfer.gsm
auth-thankyou.gsm                tt-allbusy.gsm
...
spy-agent.gsm                    vm-tooshort.gsm
spy-console.gsm                  vm-toreply.gsm
spy-dahdi.gsm                    vm-torerecord.gsm
spy-h323.gsm                     vm-undeleted.gsm
spy-iax2.gsm                     vm-undelete.gsm
spy-iax.gsm                      vm-unknown-caller.gsm
spy-jingle.gsm                   vm-Urgent.gsm
spy-local.gsm                    vm-whichbox.gsm
spy-mgcp.gsm                     vm-Work.gsm
spy-misdn.gsm                    vm-youhave.gsm
/dev/pts/0
13:18:52
#ls
agent-alreadyon.gsm              spy-mobile.gsm
agent-incorrect.gsm              spy-nbs.gsm
agent-loggedoff.gsm              spy-sip.gsm
agent-loginok.gsm                spy-skinny.gsm
agent-newlocation.gsm            spy-unistim.gsm
agent-pass.gsm                   spy-usbradio.gsm
agent-user.gsm                   spy-zap.gsm
ascending-2tone.gsm              ss-noservice.gsm
auth-incorrect.gsm               transfer.gsm
auth-thankyou.gsm                tt-allbusy.gsm
...
spy-agent.gsm                    vm-tooshort.gsm
spy-console.gsm                  vm-toreply.gsm
spy-dahdi.gsm                    vm-torerecord.gsm
spy-h323.gsm                     vm-undeleted.gsm
spy-iax2.gsm                     vm-undelete.gsm
spy-iax.gsm                      vm-unknown-caller.gsm
spy-jingle.gsm                   vm-Urgent.gsm
spy-local.gsm                    vm-whichbox.gsm
spy-mgcp.gsm                     vm-Work.gsm
spy-misdn.gsm                    vm-youhave.gsm
/dev/pts/2
13:18:54
#ls

/dev/pts/0
13:18:54
#ls

/dev/pts/2
13:18:54
#asterisk -r
                  nano /etc/asterisk/extensions.conf
/dev/pts/0
13:18:54
#asterisk -r
                  nano /etc/asterisk/extensions.conf
прошло 12 минут
/dev/pts/2
13:31:39
#apt-get install mpg123
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  libmpg123-0
Suggested packages:
  libartsc0 libaudio2
The following NEW packages will be installed:
  libmpg123-0 mpg123
0 upgraded, 2 newly installed, 0 to remove and 31 not upgraded.
...
Selecting previously deselected package libmpg123-0.
(Reading database ... 122950 files and directories currently installed.)
Unpacking libmpg123-0 (from .../libmpg123-0_1.12.1-3_i386.deb) ...
Selecting previously deselected package mpg123.
Unpacking mpg123 (from .../mpg123_1.12.1-3_i386.deb) ...
Processing triggers for man-db ...
Setting up libmpg123-0 (1.12.1-3) ...
Setting up mpg123 (1.12.1-3) ...
update-alternatives: using /usr/bin/mpg123.bin to provide /usr/bin/mpg123 (mpg123) in auto mode.
update-alternatives: using /usr/bin/mpg123.bin to provide /usr/bin/mp3-decoder (mp3-decoder) in auto mode.
/dev/pts/0
13:31:39
#apt-get install mpg123
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  libmpg123-0
Suggested packages:
  libartsc0 libaudio2
The following NEW packages will be installed:
  libmpg123-0 mpg123
0 upgraded, 2 newly installed, 0 to remove and 31 not upgraded.
...
Selecting previously deselected package libmpg123-0.
(Reading database ... 122950 files and directories currently installed.)
Unpacking libmpg123-0 (from .../libmpg123-0_1.12.1-3_i386.deb) ...
Selecting previously deselected package mpg123.
Unpacking mpg123 (from .../mpg123_1.12.1-3_i386.deb) ...
Processing triggers for man-db ...
Setting up libmpg123-0 (1.12.1-3) ...
Setting up mpg123 (1.12.1-3) ...
update-alternatives: using /usr/bin/mpg123.bin to provide /usr/bin/mpg123 (mpg123) in auto mode.
update-alternatives: using /usr/bin/mpg123.bin to provide /usr/bin/mp3-decoder (mp3-decoder) in auto mode.
/dev/pts/2
13:31:49
#ls
agent-alreadyon.gsm              spy-mobile.gsm
agent-incorrect.gsm              spy-nbs.gsm
agent-loggedoff.gsm              spy-sip.gsm
agent-loginok.gsm                spy-skinny.gsm
agent-newlocation.gsm            spy-unistim.gsm
agent-pass.gsm                   spy-usbradio.gsm
agent-user.gsm                   spy-zap.gsm
ascending-2tone.gsm              ss-noservice.gsm
auth-incorrect.gsm               transfer.gsm
auth-thankyou.gsm                tt-allbusy.gsm
...
spy-agent.gsm                    vm-tooshort.gsm
spy-console.gsm                  vm-toreply.gsm
spy-dahdi.gsm                    vm-torerecord.gsm
spy-h323.gsm                     vm-undeleted.gsm
spy-iax2.gsm                     vm-undelete.gsm
spy-iax.gsm                      vm-unknown-caller.gsm
spy-jingle.gsm                   vm-Urgent.gsm
spy-local.gsm                    vm-whichbox.gsm
spy-mgcp.gsm                     vm-Work.gsm
spy-misdn.gsm                    vm-youhave.gsm
/dev/pts/0
13:31:49
#ls
agent-alreadyon.gsm              spy-mobile.gsm
agent-incorrect.gsm              spy-nbs.gsm
agent-loggedoff.gsm              spy-sip.gsm
agent-loginok.gsm                spy-skinny.gsm
agent-newlocation.gsm            spy-unistim.gsm
agent-pass.gsm                   spy-usbradio.gsm
agent-user.gsm                   spy-zap.gsm
ascending-2tone.gsm              ss-noservice.gsm
auth-incorrect.gsm               transfer.gsm
auth-thankyou.gsm                tt-allbusy.gsm
...
spy-agent.gsm                    vm-tooshort.gsm
spy-console.gsm                  vm-toreply.gsm
spy-dahdi.gsm                    vm-torerecord.gsm
spy-h323.gsm                     vm-undeleted.gsm
spy-iax2.gsm                     vm-undelete.gsm
spy-iax.gsm                      vm-unknown-caller.gsm
spy-jingle.gsm                   vm-Urgent.gsm
spy-local.gsm                    vm-whichbox.gsm
spy-mgcp.gsm                     vm-Work.gsm
spy-misdn.gsm                    vm-youhave.gsm
/dev/pts/2
13:32:40
#cd /home/user/

/dev/pts/0
13:32:40
#cd /home/user/

/dev/pts/2
13:32:47
#ls
Desktop  Documents  Downloads  Music  Pictures  Public  Templates  Videos
/dev/pts/0
13:32:47
#ls
Desktop  Documents  Downloads  Music  Pictures  Public  Templates  Videos
/dev/pts/2
13:32:48
#cd D
Desktop/   Documents/ Downloads/
13:32:48
#cd D
Desktop/   Documents/ Downloads/
13:32:48
#cd Downloads/

/dev/pts/0
13:32:48
#cd D
Desktop/   Documents/ Downloads/
13:32:48
#cd D
Desktop/   Documents/ Downloads/
13:32:48
#cd Downloads/

/dev/pts/2
13:33:00
#ls
1.mp3
asterisk-core-sounds-ru-gsm-1.4.23.tar.gz
asterisk-core-sounds-ru-gsm-current.tar.gz
sounds
/dev/pts/0
13:33:00
#ls
1.mp3
asterisk-core-sounds-ru-gsm-1.4.23.tar.gz
asterisk-core-sounds-ru-gsm-current.tar.gz
sounds
/dev/pts/2
13:33:01
#mpg123 -w 1.wav
You made some mistake in program usage... let me briefly remind you:
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
        version 1.12.1; written and copyright by Michael Hipp and others
        free software (LGPL/GPL) without any warranty but with best wishes
usage: mpg123 [option(s)] [file(s) | URL(s) | -]
supported options [defaults in brackets]:
   -v    increase verbosity level       -q    quiet (don't print title)
   -t    testmode (no output)           -s    write to stdout
   -w <filename> write Output as WAV file
   -k n  skip first n frames [0]        -n n  decode only n frames [all]
...
   -2    downsample 1:2 (22 kHz)        -4    downsample 1:4 (11 kHz)
   -d n  play every n'th frame only     -h n  play every frame n times
   -0    decode channel 0 (left) only   -1    decode channel 1 (right) only
   -m    mix both channels (mono)       -p p  use HTTP proxy p [$HTTP_PROXY]
   -@ f  read filenames/URLs from f     -T get realtime priority
   -z    shuffle play (with wildcards)  -Z    random play
   -u a  HTTP authentication string     -E f  Equalizer, data from file
   -C    enable control keys            --no-gapless  not skip junk/padding in mp3s
   -?    this help                      --version  print name + version
See the manpage mpg123(1) or call mpg123 with --longhelp for more parameters and information.
/dev/pts/0
13:33:01
#mpg123 -w 1.wav
You made some mistake in program usage... let me briefly remind you:
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
        version 1.12.1; written and copyright by Michael Hipp and others
        free software (LGPL/GPL) without any warranty but with best wishes
usage: mpg123 [option(s)] [file(s) | URL(s) | -]
supported options [defaults in brackets]:
   -v    increase verbosity level       -q    quiet (don't print title)
   -t    testmode (no output)           -s    write to stdout
   -w <filename> write Output as WAV file
   -k n  skip first n frames [0]        -n n  decode only n frames [all]
...
   -2    downsample 1:2 (22 kHz)        -4    downsample 1:4 (11 kHz)
   -d n  play every n'th frame only     -h n  play every frame n times
   -0    decode channel 0 (left) only   -1    decode channel 1 (right) only
   -m    mix both channels (mono)       -p p  use HTTP proxy p [$HTTP_PROXY]
   -@ f  read filenames/URLs from f     -T get realtime priority
   -z    shuffle play (with wildcards)  -Z    random play
   -u a  HTTP authentication string     -E f  Equalizer, data from file
   -C    enable control keys            --no-gapless  not skip junk/padding in mp3s
   -?    this help                      --version  print name + version
See the manpage mpg123(1) or call mpg123 with --longhelp for more parameters and information.
/dev/pts/2
13:33:53
#mpg123 -w 1.wav /home/user/1.mp3
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
        version 1.12.1; written and copyright by Michael Hipp and others
        free software (LGPL/GPL) without any warranty but with best wishes
[readers.c:1042] error: Cannot open file /home/user/1.mp3: No such file or directory
[mpg123.c:581] error: Cannot open /home/user/1.mp3: File access error. (code 22)
/dev/pts/0
13:33:53
#mpg123 -w 1.wav /home/user/1.mp3
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
        version 1.12.1; written and copyright by Michael Hipp and others
        free software (LGPL/GPL) without any warranty but with best wishes
[readers.c:1042] error: Cannot open file /home/user/1.mp3: No such file or directory
[mpg123.c:581] error: Cannot open /home/user/1.mp3: File access error. (code 22)
/dev/pts/2
13:34:07
#ls
1.mp3  asterisk-core-sounds-ru-gsm-1.4.23.tar.gz   sounds
1.wav  asterisk-core-sounds-ru-gsm-current.tar.gz
/dev/pts/0
13:34:07
#ls
1.mp3  asterisk-core-sounds-ru-gsm-1.4.23.tar.gz   sounds
1.wav  asterisk-core-sounds-ru-gsm-current.tar.gz
/dev/pts/2
13:34:12
#ls -l
total 9608
-rw-r--r-- 1 user user 5727770 Apr 10 14:30 1.mp3
-rw-r--r-- 1 root root      44 Apr 10 14:34 1.wav
-rw-r--r-- 1 root root 2037556 Jan  8 23:39 asterisk-core-sounds-ru-gsm-1.4.23.tar.gz
-rw-r--r-- 1 user user 2037556 Apr  9 16:22 asterisk-core-sounds-ru-gsm-current.tar.gz
drwxr-xr-x 5 user user    4096 Apr  9 17:02 sounds
/dev/pts/0
13:34:12
#ls -l
total 9608
-rw-r--r-- 1 user user 5727770 Apr 10 14:30 1.mp3
-rw-r--r-- 1 root root      44 Apr 10 14:34 1.wav
-rw-r--r-- 1 root root 2037556 Jan  8 23:39 asterisk-core-sounds-ru-gsm-1.4.23.tar.gz
-rw-r--r-- 1 user user 2037556 Apr  9 16:22 asterisk-core-sounds-ru-gsm-current.tar.gz
drwxr-xr-x 5 user user    4096 Apr  9 17:02 sounds
/dev/pts/2
13:34:16
#chmod 777 1.mp3

/dev/pts/0
13:34:16
#chmod 777 1.mp3

/dev/pts/2
13:34:28
#mpg123 -w 1.wav /home/user/1.mp3
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
        version 1.12.1; written and copyright by Michael Hipp and others
        free software (LGPL/GPL) without any warranty but with best wishes
[readers.c:1042] error: Cannot open file /home/user/1.mp3: No such file or directory
[mpg123.c:581] error: Cannot open /home/user/1.mp3: File access error. (code 22)
/dev/pts/0
13:34:28
#mpg123 -w 1.wav /home/user/1.mp3
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
        version 1.12.1; written and copyright by Michael Hipp and others
        free software (LGPL/GPL) without any warranty but with best wishes
[readers.c:1042] error: Cannot open file /home/user/1.mp3: No such file or directory
[mpg123.c:581] error: Cannot open /home/user/1.mp3: File access error. (code 22)
/dev/pts/2
13:34:44
#rm 1.wav

/dev/pts/0
13:34:44
#rm 1.wav

/dev/pts/2
13:35:02
#mpg123 -w 1.wav /home/user/1.mp3
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
        version 1.12.1; written and copyright by Michael Hipp and others
        free software (LGPL/GPL) without any warranty but with best wishes
[readers.c:1042] error: Cannot open file /home/user/1.mp3: No such file or directory
[mpg123.c:581] error: Cannot open /home/user/1.mp3: File access error. (code 22)
/dev/pts/0
13:35:02
#mpg123 -w 1.wav /home/user/1.mp3
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
        version 1.12.1; written and copyright by Michael Hipp and others
        free software (LGPL/GPL) without any warranty but with best wishes
[readers.c:1042] error: Cannot open file /home/user/1.mp3: No such file or directory
[mpg123.c:581] error: Cannot open /home/user/1.mp3: File access error. (code 22)
/dev/pts/2
13:35:07
#cp /home/user/
.bash_history         .gconfd/              .nautilus/
.bash_logout          .gnome2/              Pictures/
.bash_profile         .gnome2_private/      .profile
.bashrc               .gnupg/               Public/
.config/              .gstreamer-0.10/      .recently-used.xbel
.dbus/                .gtk-bookmarks        .ssh/
Desktop/              .gvfs/                Templates/
.dmrc                 .ICEauthority         .update-notifier/
Documents/            .l3rc                 Videos/
Downloads/            .lilalo/              .xsession-errors
.esd_auth             .local/               .xsession-errors.old
.fontconfig/          .mozilla/
.gconf/               Music/
/dev/pts/0
13:35:07
#cp /home/user/
.bash_history         .gconfd/              .nautilus/
.bash_logout          .gnome2/              Pictures/
.bash_profile         .gnome2_private/      .profile
.bashrc               .gnupg/               Public/
.config/              .gstreamer-0.10/      .recently-used.xbel
.dbus/                .gtk-bookmarks        .ssh/
Desktop/              .gvfs/                Templates/
.dmrc                 .ICEauthority         .update-notifier/
Documents/            .l3rc                 Videos/
Downloads/            .lilalo/              .xsession-errors
.esd_auth             .local/               .xsession-errors.old
.fontconfig/          .mozilla/
.gconf/               Music/
/dev/pts/2
13:35:07
#cp /home/user/Do
Documents/ Downloads/
13:35:07
#cp /home/user/Downloads/1.
1.mp3  1.wav
/dev/pts/0
13:35:07
#cp /home/user/Do
Documents/ Downloads/
13:35:07
#cp /home/user/Downloads/1.
1.mp3  1.wav
/dev/pts/2
13:35:07
#cp /home/user/Downloads/1.mp3 /root

/dev/pts/0
13:35:07
#cp /home/user/Downloads/1.mp3 /root

/dev/pts/2
13:36:08
#cd /root

/dev/pts/0
13:36:08
#cd /root

/dev/pts/2
13:37:31
#cp 1.gsm /var/lib/asterisk/moh/

/dev/pts/0
13:37:31
#cp 1.gsm /var/lib/asterisk/moh/

/dev/pts/2
13:37:48
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux4 (pid = 1664)
linux4*CLI> module reload a
app_amd.so        app_followme.so   app_meetme.so     app_minivm.so
app_playback.so   app_voicemail.so  app_queue.so
linux4*CLI> moh reload
[Apr 10 14:39:35] NOTICE[6509]: rtp.c:1143 process_rfc3389: Comfort noise support incomplete in Asterisk (RFC 3389). Please turn off on client if possible. Client IP: 192.168.40.101
linux4*CLI> quit
/dev/pts/0
13:37:48
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux4 (pid = 1664)
linux4*CLI> module reload a
app_amd.so        app_followme.so   app_meetme.so     app_minivm.so
app_playback.so   app_voicemail.so  app_queue.so
linux4*CLI> moh reload
[Apr 10 14:39:35] NOTICE[6509]: rtp.c:1143 process_rfc3389: Comfort noise support incomplete in Asterisk (RFC 3389). Please turn off on client if possible. Client IP: 192.168.40.101
linux4*CLI> quit
/dev/pts/2
13:40:09
#nano /etc/asterisk/musiconhold.conf
--- /tmp/l3-saved-2245.7192.3610	2013-04-10 14:40:27.000000000 +0300
+++ /etc/asterisk/musiconhold.conf	2013-04-10 14:41:28.000000000 +0300
@@ -44,7 +44,7 @@
 
 [default]
 mode=files
-directory=moh
+directory=/var/lib/asterisk/moh
 ;
 ;[native-random]
 ;mode=files
/dev/pts/0
13:40:09
#nano /etc/asterisk/musiconhold.conf
/dev/pts/2
13:41:28
#;
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux4 (pid = 1664)
linux4*CLI> moh reload
[Apr 10 14:42:08] NOTICE[6555]: rtp.c:1143 process_rfc3389: Comfort noise support incomplete in Asterisk (RFC 3389). Please turn off on client if possible. Client IP: 192.168.40.101
[Apr 10 14:42:47] NOTICE[6557]: rtp.c:1143 process_rfc3389: Comfort noise support incomplete in Asterisk (RFC 3389). Please turn off on client if possible. Client IP: 192.168.40.101
[Apr 10 14:46:24] NOTICE[1686]: chan_sip.c:21643 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 1403
[Apr 10 14:46:38] NOTICE[1686]: chan_sip.c:21643 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 1403
linux4*CLI> quit
/dev/pts/0
13:41:28
#;
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux4 (pid = 1664)
linux4*CLI> moh reload
[Apr 10 14:42:08] NOTICE[6555]: rtp.c:1143 process_rfc3389: Comfort noise support incomplete in Asterisk (RFC 3389). Please turn off on client if possible. Client IP: 192.168.40.101
[Apr 10 14:42:47] NOTICE[6557]: rtp.c:1143 process_rfc3389: Comfort noise support incomplete in Asterisk (RFC 3389). Please turn off on client if possible. Client IP: 192.168.40.101
[Apr 10 14:46:24] NOTICE[1686]: chan_sip.c:21643 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 1403
[Apr 10 14:46:38] NOTICE[1686]: chan_sip.c:21643 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 1403
linux4*CLI> quit
прошло 10 минут
/dev/pts/2
13:52:10
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2245.28099.9441	2013-04-10 14:52:22.000000000 +0300
+++ /etc/asterisk/extensions.conf	2013-04-10 14:52:50.000000000 +0300
@@ -35,7 +35,7 @@
 exten=>_14XX,1,Answer
 ;exten=>_14XX,n,Set(CALLFILENAME=${EXTEN}-${CALLERID(num)}-${EPOCH})
 ;exten=>_14XX,n,Monitor(wav,${CALLFILENAME},m)
-exten=>_14XX,n,Dial(SIP/${EXTEN},10,wWtT)
+exten=>_14XX,n,Dial(SIP/${EXTEN},10,wWtTm)
 ;exten=>_14XX,n,Voicemail(${EXTEN}@default)
 
 exten=>1405,1,Answer
/dev/pts/0
13:52:10
#nano /etc/asterisk/extensions.conf
/dev/pts/2
13:52:50
#[default]
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux4 (pid = 1664)
linux4*CLI> dialplan reload
Dialplan reloaded.
[Apr 10 14:53:10] NOTICE[6600]: rtp.c:1143 process_rfc3389: Comfort noise support incomplete in Asterisk (RFC 3389). Please turn off on client if possible. Client IP: 192.168.40.101
linux4*CLI> quit
/dev/pts/0
13:52:50
#[default]
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux4 (pid = 1664)
linux4*CLI> dialplan reload
Dialplan reloaded.
[Apr 10 14:53:10] NOTICE[6600]: rtp.c:1143 process_rfc3389: Comfort noise support incomplete in Asterisk (RFC 3389). Please turn off on client if possible. Client IP: 192.168.40.101
linux4*CLI> quit
/dev/pts/2
13:53:31
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2245.23342.22818	2013-04-10 14:53:32.000000000 +0300
+++ /etc/asterisk/extensions.conf	2013-04-10 14:53:54.000000000 +0300
@@ -35,7 +35,7 @@
 exten=>_14XX,1,Answer
 ;exten=>_14XX,n,Set(CALLFILENAME=${EXTEN}-${CALLERID(num)}-${EPOCH})
 ;exten=>_14XX,n,Monitor(wav,${CALLFILENAME},m)
-exten=>_14XX,n,Dial(SIP/${EXTEN},10,wWtTm)
+exten=>_14XX,n,Dial(SIP/${EXTEN},30,wWtTm)
 ;exten=>_14XX,n,Voicemail(${EXTEN}@default)
 
 exten=>1405,1,Answer
/dev/pts/0
13:53:31
#nano /etc/asterisk/extensions.conf
/dev/pts/2
14:01:54
#nano /etc/asterisk/queue
14:01:54
#nano /etc/asterisk/queue
/dev/pts/0
14:01:54
#nano /etc/asterisk/queue
14:01:54
#nano /etc/asterisk/queue
/dev/pts/2
14:01:54
#nano /etc/asterisk/queues.conf
--- /tmp/l3-saved-2245.31133.23583	2013-04-10 15:02:15.000000000 +0300
+++ /etc/asterisk/queues.conf	2013-04-10 15:04:14.000000000 +0300
@@ -498,3 +498,8 @@
 ;member => Agent/:1,1		; Any agent in group 1, wait for first
                                 ; available, but consider with penalty
 
+
+
+[quene1]
+member=>SIP/4101
+member=>SIP/4102
/dev/pts/0
14:01:54
#nano /etc/asterisk/queues.conf
/dev/pts/2
14:07:28
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2245.6724.1570	2013-04-10 15:07:30.000000000 +0300
+++ /etc/asterisk/extensions.conf	2013-04-10 15:08:00.000000000 +0300
@@ -40,7 +40,7 @@
 
 exten=>1405,1,Answer
 exten=>1405,n,Dial(SIP/1401&SIP/1402)
-exten=>4106,1,Quene(quene1)
+exten=>1406,1,Quene(quene1)
 
 
 [national]
/dev/pts/0
14:07:28
#nano /etc/asterisk/extensions.conf
/dev/pts/2
14:08:38
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2245.21999.28157	2013-04-10 15:08:44.000000000 +0300
+++ /etc/asterisk/extensions.conf	2013-04-10 15:09:38.000000000 +0300
@@ -40,7 +40,7 @@
 
 exten=>1405,1,Answer
 exten=>1405,n,Dial(SIP/1401&SIP/1402)
-exten=>1406,1,Quene(quene1)
+exten=>1406,1,Queue(queue1)
 
 
 [national]
/dev/pts/0
14:08:38
#nano /etc/asterisk/extensions.conf
/dev/pts/2
14:10:13
#nano /etc/asterisk/extensions.conf
/dev/pts/0
14:10:13
#nano /etc/asterisk/extensions.conf
/dev/pts/2
14:12:34
#nano /etc/asterisk/queues.conf
--- /tmp/l3-saved-2245.20651.4539	2013-04-10 15:12:36.000000000 +0300
+++ /etc/asterisk/queues.conf	2013-04-10 15:12:48.000000000 +0300
@@ -501,5 +501,5 @@
 
 
 [queue1]
-member=>SIP/4101
-member=>SIP/4102
+member=>SIP/1401
+member=>SIP/1402
/dev/pts/0
14:12:34
#nano /etc/asterisk/queues.conf
/dev/pts/2
14:14:14
#nano /etc/asterisk/queues.conf

Статистика

Время первой команды журнала13:06:28 2013- 4-10
Время последней команды журнала14:14:14 2013- 4-10
Количество командных строк в журнале101
Процент команд с ненулевым кодом завершения, %11.88
Процент синтаксически неверно набранных команд, % 0.00
Суммарное время работы с терминалом *, час 1.13
Количество командных строк в единицу времени, команда/мин 1.49
Частота использования команд
nano25|=========================| 25.25%
ls20|====================| 20.20%
cd16|================| 16.16%
cp10|==========| 10.10%
mpg1238|========| 8.08%
[default]6|======| 6.06%
asterisk4|====| 4.04%
rm4|====| 4.04%
modprobe2|==| 2.02%
apt-get2|==| 2.02%
chmod2|==| 2.02%
____
*) Интервалы неактивности длительностью 30 минут и более не учитываются

Справка

Для того чтобы использовать LiLaLo, не нужно знать ничего особенного: всё происходит само собой. Однако, чтобы ведение и последующее использование журналов было как можно более эффективным, желательно иметь в виду следующее:
  1. В журнал автоматически попадают все команды, данные в любом терминале системы.

  2. Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.

  3. Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
    $ l s-l
    bash: l: command not found
    

  4. Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
    $ test 5 -lt 4
    Обратите внимание на то, что код завершения команды может быть отличен от нуля не только в тех случаях, когда команда была выполнена с ошибкой. Многие команды используют код завершения, например, для того чтобы показать результаты проверки

  5. Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
    $ 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
    

  6. Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
    # id
    uid=0(root) gid=0(root) Gruppen=0(root)
    

  7. Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
    $ vi ~/.bashrc
    2a3,5
    >    if [ -f /usr/local/etc/bash_completion ]; then
    >         . /usr/local/etc/bash_completion
    >        fi
    

  8. Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
    $ patch ~/.bashrc
    В данном случае изменения применяются к файлу ~/.bashrc

  9. Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.

    Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.

  10. Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.

  11. Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора

  12. Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.

  13. Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.

  14. Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:

    $ whoami
    
    user
    
    $ #^ Интересно, кто я?
    
    в журнале это будет выглядеть так:
    $ whoami
    
    user
    
    Интересно, кто я?

  15. Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:

    $ whoami
    
    user
    
    $ cat > /dev/null #^ Интересно, кто я?
    
    Программа whoami выводит имя пользователя, под которым 
    мы зарегистрировались в системе.
    -
    Она не может ответить на вопрос о нашем назначении 
    в этом мире.
    
    В журнале это будет выглядеть так:
    $ whoami
    user
    
    Интересно, кто я?
    Программа whoami выводит имя пользователя, под которым
    мы зарегистрировались в системе.

    Она не может ответить на вопрос о нашем назначении
    в этом мире.
    Для разделения нескольких абзацев между собой используйте символ "-", один в строке.

  16. Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=

  17. Содержимое файла может быть показано в журнале. Для этого его нужно вывести с помощью программы cat. Если вывод команды отметить симоволами #!, содержимое файла будет показано в журнале в специально отведённой для этого секции.
  18. Для того чтобы вставить скриншот интересующего вас окна в журнал, нужно воспользоваться командой l3shot. После того как команда вызвана, нужно с помощью мыши выбрать окно, которое должно быть в журнале.
  19. Команды в журнале расположены в хронологическом порядке. Если две команды давались одна за другой, но на разных терминалах, в журнале они будут рядом, даже если они не имеют друг к другу никакого отношения.
    1
        2
    3   
        4
    
    Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.

О программе

LiLaLo (L3) расшифровывается как Live Lab Log.
Программа разработана для повышения эффективности обучения Unix/Linux-системам.
(c) Игорь Чубин, 2004-2008

$Id$