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

Содержание

Журнал

Среда (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-