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

Содержание

Журнал

Понедельник (12/07/09)

/dev/pts/0
15:39:08
#sox rondo.mp3 rondo.gsm

15:39:32
#sox -c1 -r4000 rondo.mp3 rondo.gsm

/dev/pts/2
15:42:06
#top
top - 04:42:20 up  3:00,  3 users,  load average: 0.08, 0.14, 0.11
Tasks:  82 total,   1 running,  81 sleeping,   0 stopped,   0 zombie
Cpu(s): 28.1%us,  1.7%sy,  0.0%ni, 70.2%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:   2059368k total,  1165020k used,   894348k free,    68436k buffers
  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
Swap:  1646620k total,        0k used,  1646620k free,   833532k cached
 3725 root      20   0 12628 9288 1512 R 18.0  0.5   3:42.80 l3-agent
16051 root      20   0  228m  14m 6736 R 12.3  0.7   5:05.55 Xorg
16111 user      20   0 20364  10m 7432 S  6.6  0.5   0:21.64 xfce4-panel
16316 user      20   0  161m  74m  19m S  4.3  3.7   8:49.08 xulrunner-stub
...
    1 root      20   0  2100  720  624 S  0.0  0.0   0:01.20 init
    2 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 kthreadd
    3 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 migration/0
    4 root      15  -5     0    0    0 S  0.0  0.0   0:00.20 ksoftirqd/0
    5 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 watchdog/0
    6 root      15  -5     0    0    0 S  0.0  0.0   0:00.72 events/0
    7 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 khelper
   39 root      15  -5     0    0    0 S  0.0  0.0   0:00.16 kblockd/0
   41 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 kacpid
   42 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 kacpi_notify
/dev/pts/0
15:43:14
#ampg123
bash: ampg123: command not found
15:46:45
#mpg123 rondo.mp3
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
        version 1.4.3; written and copyright by Michael Hipp and others
        free software (LGPL/GPL) without any warranty but with best wishes
Playing MPEG stream 1 of 1: rondo.mp3 ...
Title:   La Serenissima                  Artist: Rondo' Veneziano
Comment: Electronicmusic.newmail.ru      Album:  Scaramucce
Year:    1982                            Genre:  Classical
MPEG 1.0 layer III, 192 kbit/s, 44100 Hz joint-stereo
^C
[0:33] Decoding of rondo.mp3 finished.
/dev/pts/2
15:46:51
#apt-get install ampg123
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package ampg123
15:47:08
#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 libaudiofile0 libesd0 libesd-alsa0 libjack0 libpulse0
The following NEW packages will be installed:
  libmpg123-0 mpg123
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
...
Get:2 http://10.0.35.1 lenny/main mpg123 1.4.3-4 [130kB]
Fetched 476kB in 0s (4975kB/s)
Selecting previously deselected package libmpg123-0.
(Reading database ... 44317 files and directories currently installed.)
Unpacking libmpg123-0 (from .../libmpg123-0_1.4.3-4_i386.deb) ...
Selecting previously deselected package mpg123.
Unpacking mpg123 (from .../mpg123_1.4.3-4_i386.deb) ...
Processing triggers for man-db ...
Setting up libmpg123-0 (1.4.3-4) ...
Setting up mpg123 (1.4.3-4) ...
15:47:24
#mpg123
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.4.3; 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.
15:47:41
#apt-get install alsa-util
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package alsa-util
15:48:27
#apt-get install alsa-utill
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package alsa-utill
/dev/pts/0
15:48:28
#mpg123 rondo.mp3
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
        version 1.4.3; written and copyright by Michael Hipp and others
        free software (LGPL/GPL) without any warranty but with best wishes
Playing MPEG stream 1 of 1: rondo.mp3 ...
Title:   La Serenissima                  Artist: Rondo' Veneziano
Comment: Electronicmusic.newmail.ru      Album:  Scaramucce
Year:    1982                            Genre:  Classical
MPEG 1.0 layer III, 192 kbit/s, 44100 Hz joint-stereo
^C
[2:05] Decoding of rondo.mp3 finished.
/dev/pts/2
15:48:45
#apt-get install alsa-utills
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package alsa-utills
15:48:55
#apt-get install alsa-utils
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  alsa-base linux-sound-base
Suggested packages:
  apmd alsa-oss oss-compat
The following NEW packages will be installed:
  alsa-base alsa-utils linux-sound-base
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
...
(Reading database ... 44365 files and directories currently installed.)
Unpacking linux-sound-base (from .../linux-sound-base_1.0.17.dfsg-4_all.deb) ...
Selecting previously deselected package alsa-base.
Unpacking alsa-base (from .../alsa-base_1.0.17.dfsg-4_all.deb) ...
Selecting previously deselected package alsa-utils.
Unpacking alsa-utils (from .../alsa-utils_1.0.16-2_i386.deb) ...
Processing triggers for man-db ...
Setting up linux-sound-base (1.0.17.dfsg-4) ...
Setting up alsa-base (1.0.17.dfsg-4) ...
Setting up alsa-utils (1.0.16-2) ...
15:49:05
#alsa
Usage: /usr/sbin/alsa {unload|reload|force-unload|force-reload|suspend|resume}
15:49:07
#alsa reload
Unloading ALSA sound driver modules: snd-intel8x0 snd-ac97-codec snd-pcm snd-timer snd-page-alloc.
Loading ALSA sound driver modules: snd-intel8x0 snd-ac97-codec snd-pcm snd-timer snd-page-alloc.
15:49:17
#apt-get install alsa-mixer
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package alsa-mixer
15:49:39
#alsamixer
x    xaaLine [dB gain=-33.00, -33.00]     x  x      x  x              xaax     x
x    xaax     xaax      xaax              xaax      x  x              xaax     >
x    xaaxFE [dB gain=-45.00]              lqqk               lqqk     lqqk     >
x    xaax               xaax     x  x     x  x               x  x     x  x     >
x    xaax               xaax     x  x     x  x               x  x     x  x     >
x    xaax               xaax     x  x     xaax               xaax     x  x     >
<    xaax               xaax     x  x     xaax               xaax     x  x     >
<    xaax               xaax     x  x     xaax               xaax     x  x     x
<    xaax               xaax     x  x     xaax               xaax     x  x     x
<    xaax               xaax     x  x     xaax               xaax     x  x     x
...
     xaax               xaax              xaax      xaax
     xaax               xaax              xaax      xaax     Mix      2ch
     xaax               xaax   AC-Link    xaax      xaax
     tqqu     lqqk                        xMMx      xMMx
     xMMx     xMMx                        mqqj      mqqj
     mqqj     mqqj00           100<>100    100                100   100<>100
      100                100            PC Speak    Aux    Mono Out<Channel
     LFE      Line    Line Jac    CD      Mic     Mic Boos Mic Sele< Phone
    Phone    IEC958   IEC958 P IEC958 P IEC958 P  IEC958 P IEC958 P<IEC958 P
                                                               7      3<>3
15:50:53
#alsamixer
alsamixer: aborting due to signal `Interrupt'
/dev/pts/0
15:53:02
#mpg123 rondo.gsm
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
        version 1.4.3; written and copyright by Michael Hipp and others
        free software (LGPL/GPL) without any warranty but with best wishes
[parse.c:504] error: Giving up searching valid MPEG header after 64K of junk.
[mpg123.c:946] error: Initial seek failed: No error... (code 0)
15:53:06
#sox rondo.gsm
sox: SoX v14.0.1
Failed: Not enough input filenames specified
Usage summary: [gopts] [[fopts] infile]... [fopts] outfile [effect [effopts]]...
SPECIAL FILENAMES:
-               stdin (infile) or stdout (outfile)
-n              use the null file handler; for use with e.g. synth & stat
GLOBAL OPTIONS (gopts) (can be specified at any point before the first effect):
--buffer BYTES  set the buffer size (default 8192)
--combine concatenate  concatenate multiple input files (default for sox, rec)
--combine sequence  sequence multiple input files (default for play)
...
-N, --reverse-nibbles  nibble-order
-X, --reverse-bits  bit-order of data
-B/-L           force endianness to big/little
-s/-u/-U/-A/    sample encoding: signed/unsigned/u-law/A-law
  -a/-i/-g/-f   ADPCM/IMA ADPCM/GSM/floating point
-1/-2/-3/-4/-8  sample size in bytes
-v, --volume FACTOR  volume input file volume adjustment factor (real number)
SUPPORTED FILE FORMATS: 8svx aif aifc aiff aiffc al alsa au auto avr cdda cdr cvs cvsd dat dvms fssd gsm hcom ima ircam la lpc lpc10 lu m3u maud mp2 mp3 nist nul null pls prc raw s1 s2 s3 s4 sb sf sl smp snd sndt sou sph sw txw u1 u2 u3 u4 ub ul uw vms voc vox wav wavpcm wve xa
SUPPORTED EFFECTS: allpass band bandpass bandreject bass chorus compand dcshift deemph dither earwax echo echos equalizer fade filter flanger highpass key ladspa lowpass mcompand mixer noiseprof noisered oops pad pan phaser polyphase rabbit repeat resample reverb reverse silence speed stat swap synth tempo treble tremolo trim vol
effopts: depends on effect
15:53:17
#soxplay rondo.gsm
bash: soxplay: command not found
15:53:48
#play rondo.gsm
Input File     : 'rondo.gsm'
Sample Size    : 8-bit (1 byte)
Sample Encoding: GSM
Channels       : 1
Sample Rate    : 8000
Time: 00:11.26 [00:00.00] of 00:00.00 (0.00%) Samples out: 511k  Clips: 0    ^C
Aborted.
15:54:25
#sox -c1 -r8000 rondo.mp3 rondo.gsm

15:56:19
#play rondo.gsm
Input File     : 'rondo.gsm'
Sample Size    : 8-bit (1 byte)
Sample Encoding: GSM
Channels       : 1
Sample Rate    : 8000
Time: 00:13.31 [00:00.00] of 00:00.00 (0.00%) Samples out: 609k  Clips: 0    ^C
Aborted.
15:56:41
#sox -c1 -r16000 rondo.mp3 rondo.gsm

15:57:08
#sox -c1 -r 16000 rondo.mp3 rondo.gsm resample

15:57:43
#sox -c1 rondo.mp3 rondo.gsm

15:58:27
#sox -c1 rondo.mp3 rondo.pcm
sox soxio: Can't open output file `rondo.pcm': unknown file type `pcm'
16:00:22
#mpg123 -wav rondo.wav rondo.mp3
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
        version 1.4.3; written and copyright by Michael Hipp and others
        free software (LGPL/GPL) without any warranty but with best wishes
[readers.c:893] error: Cannot file rondo.wav: No such file or directory
[mpg123.c:516] error: Cannot open rondo.wav: File access error. (code 22)
Playing MPEG stream 2 of 2: rondo.mp3 ...
Title:   La Serenissima                  Artist: Rondo' Veneziano
Comment: Electronicmusic.newmail.ru      Album:  Scaramucce
Year:    1982                            Genre:  Classical
MPEG 1.0 layer III, 192 kbit/s, 44100 Hz joint-stereo
[2:18] Decoding of rondo.mp3 finished.
16:01:27
#play rondo.wav
play soxio: Can't open input file `rondo.wav': No such file or directory
16:02:23
#play rondo.wav
Input File     : 'rondo.wav'
Sample Size    : 16-bit (2 bytes)
Sample Encoding: signed (2's complement)
Channels       : 2
Sample Rate    : 44100
Time: 00:45.60 [01:33.25] of 02:18.85 (32.8%) Samples out: 2.18M Clips: 0    ^C
Aborted.
/dev/pts/2
16:02:30
#top
top - 05:09:52 up  3:28,  3 users,  load average: 0.08, 0.16, 0.23
Tasks:  82 total,   1 running,  81 sleeping,   0 stopped,   0 zombie
Cpu(s): 16.7%us,  1.7%sy,  0.0%ni, 81.7%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:   2059368k total,  1223924k used,   835444k free,    72492k buffers
  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
Swap:  1646620k total,        0k used,  1646620k free,   884760k cached
16316 user      20   0  162m  76m  19m S 16.6  3.8  11:18.82 xulrunner-stub
16051 root      20   0  228m  13m 6744 S  5.0  0.7   5:57.62 Xorg
16128 user      20   0 24680  13m 7680 S  3.3  0.7   0:30.50 xfce4-terminal
16111 user      20   0 20364  10m 7436 S  0.7  0.5   0:30.08 xfce4-panel
...
    5 root      RT  -5     0    0    0 S  0.0  0.0   0:01.14 watchdog/0
    6 root      15  -5     0    0    0 S  0.0  0.0   0:03.78 events/0
    7 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 khelper
   39 root      15  -5     0    0    0 S  0.0  0.0   0:00.30 kblockd/0
   41 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 kacpid
   42 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 kacpi_notify
  117 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 kseriod
  150 root      20   0     0    0    0 S  0.0  0.0   0:00.00 pdflush
  151 root      20   0     0    0    0 S  0.0  0.0   0:01.26 pdflush
  152 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 kswapd0
/dev/pts/0
16:03:24
#man sox
16:06:06
#sox rondo.mp3 -r8000 -c1 -v08 rondo.gsm
sox: SoX v14.0.1
Failed: -v can only be given for an input file;
        use `vol' to set the output file volume
Usage summary: [gopts] [[fopts] infile]... [fopts] outfile [effect [effopts]]...
SPECIAL FILENAMES:
-               stdin (infile) or stdout (outfile)
-n              use the null file handler; for use with e.g. synth & stat
GLOBAL OPTIONS (gopts) (can be specified at any point before the first effect):
--buffer BYTES  set the buffer size (default 8192)
--combine concatenate  concatenate multiple input files (default for sox, rec)
...
-N, --reverse-nibbles  nibble-order
-X, --reverse-bits  bit-order of data
-B/-L           force endianness to big/little
-s/-u/-U/-A/    sample encoding: signed/unsigned/u-law/A-law
  -a/-i/-g/-f   ADPCM/IMA ADPCM/GSM/floating point
-1/-2/-3/-4/-8  sample size in bytes
-v, --volume FACTOR  volume input file volume adjustment factor (real number)
SUPPORTED FILE FORMATS: 8svx aif aifc aiff aiffc al alsa au auto avr cdda cdr cvs cvsd dat dvms fssd gsm hcom ima ircam la lpc lpc10 lu m3u maud mp2 mp3 nist nul null pls prc raw s1 s2 s3 s4 sb sf sl smp snd sndt sou sph sw txw u1 u2 u3 u4 ub ul uw vms voc vox wav wavpcm wve xa
SUPPORTED EFFECTS: allpass band bandpass bandreject bass chorus compand dcshift deemph dither earwax echo echos equalizer fade filter flanger highpass key ladspa lowpass mcompand mixer noiseprof noisered oops pad pan phaser polyphase rabbit repeat resample reverb reverse silence speed stat swap synth tempo treble tremolo trim vol
effopts: depends on effect
16:06:59
#sox rondo.mp3 -r8000 -c1 -v0.8 rondo.gsm
sox: SoX v14.0.1
Failed: -v can only be given for an input file;
        use `vol' to set the output file volume
Usage summary: [gopts] [[fopts] infile]... [fopts] outfile [effect [effopts]]...
SPECIAL FILENAMES:
-               stdin (infile) or stdout (outfile)
-n              use the null file handler; for use with e.g. synth & stat
GLOBAL OPTIONS (gopts) (can be specified at any point before the first effect):
--buffer BYTES  set the buffer size (default 8192)
--combine concatenate  concatenate multiple input files (default for sox, rec)
...
-N, --reverse-nibbles  nibble-order
-X, --reverse-bits  bit-order of data
-B/-L           force endianness to big/little
-s/-u/-U/-A/    sample encoding: signed/unsigned/u-law/A-law
  -a/-i/-g/-f   ADPCM/IMA ADPCM/GSM/floating point
-1/-2/-3/-4/-8  sample size in bytes
-v, --volume FACTOR  volume input file volume adjustment factor (real number)
SUPPORTED FILE FORMATS: 8svx aif aifc aiff aiffc al alsa au auto avr cdda cdr cvs cvsd dat dvms fssd gsm hcom ima ircam la lpc lpc10 lu m3u maud mp2 mp3 nist nul null pls prc raw s1 s2 s3 s4 sb sf sl smp snd sndt sou sph sw txw u1 u2 u3 u4 ub ul uw vms voc vox wav wavpcm wve xa
SUPPORTED EFFECTS: allpass band bandpass bandreject bass chorus compand dcshift deemph dither earwax echo echos equalizer fade filter flanger highpass key ladspa lowpass mcompand mixer noiseprof noisered oops pad pan phaser polyphase rabbit repeat resample reverb reverse silence speed stat swap synth tempo treble tremolo trim vol
effopts: depends on effect
16:07:05
#sox -v 0.5 rondo.mp3 -r8000 -c1 -v rondo.gsm
sox sox: Volume value `rondo.gsm' is not a number
16:07:43
#sox -v 0.5 rondo.mp3 -r8000 -c1 rondo.gsm

16:07:54
#cd /var/lo
local/ lock/  log/
16:07:54
#cd /var/lo
local/ lock/  log/
16:07:54
#cd /var/lo
local/ lock/  log/
16:07:54
#cd /var/log/asterisk/

Вторник (12/08/09)

08:56:14
#ls -l
total 16
drwxr-xr-x 2 asterisk asterisk 4096 2009-12-07 04:28 cdr-csv
drwxr-xr-x 2 asterisk asterisk 4096 2009-01-04 09:27 cdr-custom
-rw-rw---- 1 asterisk asterisk    0 2009-12-07 03:06 event_log
-rw-rw---- 1 asterisk asterisk 3623 2009-12-07 04:33 messages
-rw-rw---- 1 asterisk asterisk   76 2009-12-07 04:19 queue_log
08:56:16
#tail -f messages
[Dec  7 04:19:21] NOTICE[21718] pbx_ael.c: AEL load process: compiled config file name '/etc/asterisk/extensions.ael'.
[Dec  7 04:19:21] NOTICE[21718] pbx_ael.c: AEL load process: merged config file name '/etc/asterisk/extensions.ael'.
[Dec  7 04:19:21] NOTICE[21718] pbx_ael.c: AEL load process: verified config file name '/etc/asterisk/extensions.ael'.
[Dec  7 04:28:50] NOTICE[21729] chan_sip.c: Call from '101' to extension '202' rejected because extension not found.
[Dec  7 04:33:53] WARNING[21880] file.c: File rondo does not exist in any format
[Dec  7 04:33:53] WARNING[21880] file.c: Unable to open rondo (format 0x2 (gsm)): No such file or directory
[Dec  7 04:33:53] WARNING[21880] app_playback.c: ast_streamfile failed on SIP/101-083a11c8 for rondo
[Dec  7 04:33:59] WARNING[21881] file.c: File rondo does not exist in any format
[Dec  7 04:33:59] WARNING[21881] file.c: Unable to open rondo (format 0x2 (gsm)): No such file or directory
[Dec  7 04:33:59] WARNING[21881] app_playback.c: ast_streamfile failed on SIP/101-083a11c8 for rondo
...
[Dec  7 22:30:47] NOTICE[23691] chan_sip.c: Received SIP subscribe for peer without mailbox: 103
[Dec  7 22:33:47] NOTICE[23691] chan_sip.c: Received SIP subscribe for peer without mailbox: 103
[Dec  7 22:36:48] NOTICE[23691] chan_sip.c: Received SIP subscribe for peer without mailbox: 103
[Dec  7 22:38:43] WARNING[24323] pbx.c: Unable to register extension '999', priority 1 in 'default', already in use
[Dec  7 22:39:02] WARNING[24350] pbx.c: Unable to register extension '999', priority 1 in 'default', already in use
[Dec  7 22:39:21] WARNING[24377] pbx.c: Unable to register extension '999', priority 1 in 'default', already in use
[Dec  7 22:39:48] NOTICE[23691] chan_sip.c: Received SIP subscribe for peer without mailbox: 103
[Dec  7 22:42:48] NOTICE[23691] chan_sip.c: Received SIP subscribe for peer without mailbox: 103
[Dec  7 22:45:48] NOTICE[23691] chan_sip.c: Received SIP subscribe for peer without mailbox: 103
^C
/dev/pts/2
08:57:12
#cd /etc/asterisk/

08:58:57
#ls
adsi.conf           enum.conf              logger.conf       rpt.conf
adtranvofr.conf     esel.conf              manager.conf      rtp.conf
agents.conf         extconfig.conf         manager.d         say.conf
alarmreceiver.conf  extensions.ael         meetme.conf       sip.conf
alsa.conf           extensions.conf        mgcp.conf         sip.conf.SAVED
amd.conf            extensions.conf.SAVED  misdn.conf        sip_notify.conf
asterisk.adsi       features.conf          modules.conf      skinny.conf
asterisk.conf       festival.conf          musiconhold.conf  sla.conf
cdr.conf            followme.conf          muted.conf        smdi.conf
cdr_custom.conf     func_odbc.conf         osp.conf          telcordia-1.adsi
cdr_manager.conf    gtalk.conf             oss.conf          udptl.conf
cdr_odbc.conf       h323.conf              phone.conf        users.conf
cdr_pgsql.conf      http.conf              privacy.conf      voicemail.conf
cdr_tds.conf        iax.conf               queues.conf       vpb.conf
codecs.conf         iaxprov.conf           res_odbc.conf     watchdog.conf
dnsmgr.conf         indications.conf       res_pgsql.conf    zapata.conf
dundi.conf          jabber.conf            res_snmp.conf
08:58:58
#cat sip.conf
[general]
context=default
[101]
username=phone
type=friend
host=dynamic
secret=123
callerid="gib"
08:59:06
#vim sip.conf
--- /tmp/l3-saved-22147.1107.9542	2009-12-07 22:00:12.000000000 -1000
+++ sip.conf	2009-12-07 22:01:07.000000000 -1000
@@ -7,3 +7,9 @@
 host=dynamic
 secret=123
 callerid="gib"
+
+[103]
+type=friend
+host=dynamic
+secret=123
+callerid="GIB"
09:01:07
#vim extensions.conf
--- /tmp/l3-saved-22147.32115.22996	2009-12-07 22:01:26.000000000 -1000
+++ extensions.conf	2009-12-07 22:01:53.000000000 -1000
@@ -4,4 +4,3 @@
 exten => 102,n,Wait(1)
 exten => 102,n,Playback(rondo)
 exten => 102,n,Hangup
-
09:01:53
#vim users
09:02:07
#~
; provide you with as much flexibility as using the separate configuration
; files (e.g. sip.conf, iax.conf, etc) but is intended to accelerate the
; simple task of adding users.  Note that creating individual items (e.g.
; custom SIP peers, IAX friends, etc.) will allow you to override specific
; parameters within this file.  Parameter names here are the same as they
; appear in the other configuration files.  There is no way to change the
; value of a parameter here for just one subsystem.
"users.conf" 79L, 1804C
;
[general]
...
;email = joe@foo.bar
;secret = 1234
;zapchan = 1
;hasvoicemail = yes
;vmsecret = 1234
;hassip = yes
;hasiax = no
;hash323 = no
;hasmanager = no
;callwaiting = no
09:02:16
#;context = international
context=default
[101]
username=phone
type=friend
host=dynamic
secret=123
callerid="gib"
[103]
type=friend
"sip.conf" 15L, 157C
...
callerid="GIB"
~
~
~
~
~
~
~
~
                                                              3,0-1         All
09:02:44
#[101]
bash: xs: command not found
09:02:48
#cd ..

09:02:52
#cd init.d/

09:02:58
#./asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
09:03:03
#asterisk -rv
Asterisk 1.4.21.2~dfsg-3, 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
=========================================================================
Connected to Asterisk 1.4.21.2~dfsg-3 currently running on debian3 (pid = 23680)
Verbosity was 0 and is now 1
debian3*CLI> sip reload
 Reloading SIP
debian3*CLI> ^) fuf
No such command '^) fuf' (type 'help ^) fuf' for other possible commands)
debian3*CLI>
09:04:30
#cd ..

09:04:34
#cd asterisk/

09:04:38
#ls -l
total 436
-rw-r----- 1 asterisk asterisk   140 2009-01-04 09:26 adsi.conf
-rw-r----- 1 asterisk asterisk   840 2009-01-04 09:26 adtranvofr.conf
-rw-r----- 1 asterisk asterisk  2724 2009-01-04 09:26 agents.conf
-rw-r----- 1 asterisk asterisk  2227 2009-01-04 09:26 alarmreceiver.conf
-rw-r----- 1 asterisk asterisk  2675 2009-01-04 09:26 alsa.conf
-rw-r----- 1 asterisk asterisk   767 2009-01-04 09:26 amd.conf
-rw-r----- 1 asterisk asterisk  3260 2009-01-04 09:26 asterisk.adsi
-rw-r----- 1 asterisk asterisk   247 2009-01-04 09:17 asterisk.conf
-rw-r----- 1 asterisk asterisk  7324 2009-01-04 09:26 cdr.conf
...
-rw-r----- 1 asterisk asterisk  4044 2009-01-04 09:26 skinny.conf
-rw-r----- 1 asterisk asterisk  6691 2009-01-04 09:26 sla.conf
-rw-r----- 1 asterisk asterisk  2665 2009-01-04 09:26 smdi.conf
-rw-r----- 1 asterisk asterisk  1384 2009-01-04 09:26 telcordia-1.adsi
-rw-r----- 1 asterisk asterisk   598 2009-01-04 09:26 udptl.conf
-rw-r----- 1 asterisk asterisk  1804 2009-01-04 09:26 users.conf
-rw-r----- 1 asterisk asterisk 11723 2009-01-04 09:26 voicemail.conf
-rw-r----- 1 asterisk asterisk  2772 2009-01-04 09:26 vpb.conf
-rw-r----- 1 asterisk asterisk   393 2009-01-04 09:26 watchdog.conf
-rw-r----- 1 asterisk asterisk 24193 2009-01-04 09:26 zapata.conf
09:04:40
#vi sip.conf
09:06:35
#[103]
aspell/   asterisk/
09:06:35
#cd /usr/share/asterisk/

09:07:23
#ls
firmware  keys  moh  sounds  static-http
09:07:24
#cd sounds/

09:07:28
#ls
1-for-am-2-for-pm.gsm
1-yes-2-no.gsm
abandon-all-hope.gsm
abandons.gsm
academic-support.gsm
access-code.gsm
accessible-through-system.gsm
account-balance-is.gsm
accounting.gsm
accounts-payable.gsm
...
you-must-first-dial.gsm
your-account.gsm
your.gsm
your-msg-has-been-saved.gsm
your-msg-is-too-short.gsm
your-temp-greeting.gsm
you-seem-impatient.gsm
you-sound-cute.gsm
you-wish-to-join.gsm
zip-code.gsm
09:07:29
#rm rondo.wav

09:07:38
#vim extension
09:11:16
#~

09:11:26
#vi extensions.conf
--- /tmp/l3-saved-22147.31021.26165	2009-12-07 22:11:31.000000000 -1000
+++ extensions.conf	2009-12-07 22:12:49.000000000 -1000
@@ -4,3 +4,5 @@
 exten => 102,n,Wait(1)
 exten => 102,n,Playback(rondo)
 exten => 102,n,Hangup
+exten => _1xx Dial(SIP/${EXTEN})
+
09:12:49
#asterisk -rn
Asterisk 1.4.21.2~dfsg-3, 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
=========================================================================
...
The 'extensions reload' command is deprecated and will be removed in a future release. Please use 'dialplan reload' instead.
[Dec  7 22:13:13] NOTICE[23859]: pbx.c:1884 pbx_extension_helper: Cannot find extension '_1xx Dial(SIP' in context '(null)'
[Dec  7 22:13:13] WARNING[23859]: pbx_config.c:2273 pbx_load_config: Invalid priority/label '' at line 7
debian3*CLI> dial
dialplan  dial
debian3*CLI> dialplan reload
Dialplan reloaded.
[Dec  7 22:13:24] NOTICE[23859]: pbx.c:1884 pbx_extension_helper: Cannot find extension '_1xx Dial(SIP' in context '(null)'
[Dec  7 22:13:24] WARNING[23859]: pbx_config.c:2273 pbx_load_config: Invalid priority/label '' at line 7
debian3*CLI>
09:13:45
#vi extensions.conf
--- /tmp/l3-saved-22147.3731.32651	2009-12-07 22:13:46.000000000 -1000
+++ extensions.conf	2009-12-07 22:14:19.000000000 -1000
@@ -4,5 +4,5 @@
 exten => 102,n,Wait(1)
 exten => 102,n,Playback(rondo)
 exten => 102,n,Hangup
-exten => _1xx Dial(SIP/${EXTEN})
+exten => _1XX,1,Dial(SIP/${EXTEN})
 
09:14:19
#asterisk -rn
Asterisk 1.4.21.2~dfsg-3, 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
=========================================================================
Connected to Asterisk 1.4.21.2~dfsg-3 currently running on debian3 (pid = 23680)
Verbosity is at least 1
debian3*CLI> di
dialplan  dial
debian3*CLI> dialplan reload
Dialplan reloaded.
debian3*CLI> extensions reload
Dialplan reloaded.
[Dec  7 22:15:18] NOTICE[23691]: chan_sip.c:14035 handle_request_invite: Call from '103' to extension '202' rejected because extension not found.
[Dec  7 22:15:46] NOTICE[23691]: chan_sip.c:15094 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 103
debian3*CLI>
09:16:54
#vi extensions.conf
--- /tmp/l3-saved-22147.16213.24747	2009-12-07 22:16:56.000000000 -1000
+++ extensions.conf	2009-12-07 22:17:29.000000000 -1000
@@ -1,5 +1,7 @@
 [default]
 
+
+exten => s,1,Playback(rondo)
 exten => 102,1,Answer
 exten => 102,n,Wait(1)
 exten => 102,n,Playback(rondo)
09:17:29
#asterisk -rn
Asterisk 1.4.21.2~dfsg-3, 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
=========================================================================
Connected to Asterisk 1.4.21.2~dfsg-3 currently running on debian3 (pid = 23680)
Verbosity is at least 1
debian3*CLI> dialplan reload
Dialplan reloaded.
[Dec  7 22:17:45] NOTICE[23691]: chan_sip.c:14035 handle_request_invite: Call from '103' to extension '4' rejected because extension not found.
debian3*CLI>
09:17:51
#vi extensions.conf
--- /tmp/l3-saved-22147.22010.4581	2009-12-07 22:17:52.000000000 -1000
+++ extensions.conf	2009-12-07 22:18:22.000000000 -1000
@@ -1,7 +1,5 @@
 [default]
 
-
-exten => s,1,Playback(rondo)
 exten => 102,1,Answer
 exten => 102,n,Wait(1)
 exten => 102,n,Playback(rondo)
09:18:22
#vi extensions.conf
--- /tmp/l3-saved-22147.2911.4405	2009-12-07 22:22:46.000000000 -1000
+++ extensions.conf	2009-12-07 22:23:25.000000000 -1000
@@ -5,4 +5,4 @@
 exten => 102,n,Playback(rondo)
 exten => 102,n,Hangup
 exten => _1XX,1,Dial(SIP/${EXTEN})
-
+exten => s,1,Playback(rondo)
09:23:25
#asterisk -rn
Asterisk 1.4.21.2~dfsg-3, 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
=========================================================================
Connected to Asterisk 1.4.21.2~dfsg-3 currently running on debian3 (pid = 23680)
Verbosity is at least 1
debian3*CLI> extensions reload
Dialplan reloaded.
[Dec  7 22:23:36] NOTICE[23691]: chan_sip.c:14035 handle_request_invite: Call from '103' to extension '5' rejected because extension not found.
debian3*CLI>
09:24:17
#vi extensions.conf
--- /tmp/l3-saved-22147.28105.26401	2009-12-07 22:24:18.000000000 -1000
+++ extensions.conf	2009-12-07 22:25:08.000000000 -1000
@@ -5,4 +5,5 @@
 exten => 102,n,Playback(rondo)
 exten => 102,n,Hangup
 exten => _1XX,1,Dial(SIP/${EXTEN})
-exten => s,1,Playback(rondo)
+exten => s,1,Answer
+exten => s,n,Playback(rondo)
09:25:13
#exten => s,1,Playback(rondo)
Asterisk 1.4.21.2~dfsg-3, 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
=========================================================================
Connected to Asterisk 1.4.21.2~dfsg-3 currently running on debian3 (pid = 23680)
Verbosity is at least 1
debian3*CLI> dialplan reload
Dialplan reloaded.
[Dec  7 22:25:19] NOTICE[23691]: chan_sip.c:14035 handle_request_invite: Call from '103' to extension '4' rejected because extension not found.
[Dec  7 22:25:21] NOTICE[23691]: chan_sip.c:14035 handle_request_invite: Call from '101' to extension '1111' rejected because extension not found.
debian3*CLI> q
No such command 'q' (type 'help q' for other possible commands)
debian3*CLI>
09:25:41
#asterisk -rn
Asterisk 1.4.21.2~dfsg-3, 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
=========================================================================
Connected to Asterisk 1.4.21.2~dfsg-3 currently running on debian3 (pid = 23680)
Verbosity is at least 1
debian3*CLI>
09:25:43
#vi extensions.conf
--- /tmp/l3-saved-22147.10230.1751	2009-12-07 22:25:44.000000000 -1000
+++ extensions.conf	2009-12-07 22:27:52.000000000 -1000
@@ -5,5 +5,5 @@
 exten => 102,n,Playback(rondo)
 exten => 102,n,Hangup
 exten => _1XX,1,Dial(SIP/${EXTEN})
-exten => s,1,Answer
-exten => s,n,Playback(rondo)
+exten => i,1,Answer
+exten => i,n,Playback(rondo)
09:27:52
#asterisk -rn
Asterisk 1.4.21.2~dfsg-3, 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
=========================================================================
Connected to Asterisk 1.4.21.2~dfsg-3 currently running on debian3 (pid = 23680)
Verbosity is at least 1
debian3*CLI> extensions reload
Dialplan reloaded.
[Dec  7 22:28:04] NOTICE[23691]: chan_sip.c:14035 handle_request_invite: Call from '103' to extension '3w32454r32' rejected because extension not found.
[Dec  7 22:28:09] WARNING[24054]: chan_sip.c:2921 create_addr: No such host: 111
[Dec  7 22:28:09] WARNING[24054]: app_dial.c:1202 dial_exec_full: Unable to create channel of type 'SIP' (cause 3 - No route to destination)
debian3*CLI>
09:30:07
#vi extensions.conf
09:30:53
#[ ]
bash: screen: command not found
09:31:00
#apt-get install screen
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  screen
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 604kB of archives.
After this operation, 1008kB of additional disk space will be used.
Get:1 http://10.0.35.1 lenny/main screen 4.0.3-11+lenny1 [604kB]
Fetched 604kB in 0s (4188kB/s)
Selecting previously deselected package screen.
(Reading database ... 44487 files and directories currently installed.)
Unpacking screen (from .../screen_4.0.3-11+lenny1_i386.deb) ...
Processing triggers for man-db ...
Setting up screen (4.0.3-11+lenny1) ...
09:31:18
#screen
/dev/pts/4
09:33:19
#~
[general]
context=default
[101]
username=phone
"sip.conf" 15L, 157C
[ype=fri]nd
host=dynamic
[101]
[101]t=123
callerid="gib"
...
type=friend
host=dynamic
~
~
~
~
~
~
~
"sip.conf" 15L, 157C written
09:33:49
#vim extensions.conf
--- /tmp/l3-saved-24178.20191.24175	2009-12-07 22:33:54.000000000 -1000
+++ extensions.conf	2009-12-07 22:34:22.000000000 -1000
@@ -5,5 +5,6 @@
 exten => 102,n,Playback(rondo)
 exten => 102,n,Hangup
 exten => _1XX,1,Dial(SIP/${EXTEN})
+exten => 999,1,Echo
 exten => i,1,Answer
 exten => i,n,Playback(rondo)
09:34:23
#asterisk
Asterisk already running on /var/run/asterisk/asterisk.ctl.  Use 'asterisk -r' to connect.
09:34:30
#asterisk -rv
Asterisk 1.4.21.2~dfsg-3, 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
=========================================================================
Connected to Asterisk 1.4.21.2~dfsg-3 currently running on debian3 (pid = 23680)
Verbosity is at least 1
debian3*CLI> extensions reload
Dialplan reloaded.
debian3*CLI> exit
Executing last minute cleanups
09:36:02
#vim extensions.conf
--- /tmp/l3-saved-24178.21894.26450	2009-12-07 22:36:04.000000000 -1000
+++ extensions.conf	2009-12-07 22:36:12.000000000 -1000
@@ -5,6 +5,6 @@
 exten => 102,n,Playback(rondo)
 exten => 102,n,Hangup
 exten => _1XX,1,Dial(SIP/${EXTEN})
-exten => 999,1,Echo
+exten => 999,1,Echo()
 exten => i,1,Answer
 exten => i,n,Playback(rondo)
09:36:12
#asterisk -rv
Asterisk 1.4.21.2~dfsg-3, 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
=========================================================================
Connected to Asterisk 1.4.21.2~dfsg-3 currently running on debian3 (pid = 23680)
Verbosity is at least 1
debian3*CLI> extensions reload
Dialplan reloaded.
[Dec  7 22:36:48] NOTICE[23691]: chan_sip.c:15094 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 103
debian3*CLI>
09:37:06
#vim extensions.conf
--- /tmp/l3-saved-24178.6075.10841	2009-12-07 22:37:08.000000000 -1000
+++ extensions.conf	2009-12-07 22:38:37.000000000 -1000
@@ -5,6 +5,7 @@
 exten => 102,n,Playback(rondo)
 exten => 102,n,Hangup
 exten => _1XX,1,Dial(SIP/${EXTEN})
-exten => 999,1,Echo()
+exten => 999,1,Answer
+exten => 999,1,Echo (SIP/101)
 exten => i,1,Answer
 exten => i,n,Playback(rondo)
09:38:37
#asterisk -rv
Asterisk 1.4.21.2~dfsg-3, 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
=========================================================================
Connected to Asterisk 1.4.21.2~dfsg-3 currently running on debian3 (pid = 23680)
Verbosity is at least 1
debian3*CLI> extensions reload
Dialplan reloaded.
[Dec  7 22:38:43] WARNING[24323]: pbx.c:4702 add_pri: Unable to register extension '999', priority 1 in 'default', already in use
debian3*CLI> exit
Executing last minute cleanups
09:38:51
#vim extensions.conf
--- /tmp/l3-saved-24178.25844.15342	2009-12-07 22:38:52.000000000 -1000
+++ extensions.conf	2009-12-07 22:38:58.000000000 -1000
@@ -6,6 +6,6 @@
 exten => 102,n,Hangup
 exten => _1XX,1,Dial(SIP/${EXTEN})
 exten => 999,1,Answer
-exten => 999,1,Echo (SIP/101)
+exten => 999,1,Echo(SIP/101)
 exten => i,1,Answer
 exten => i,n,Playback(rondo)
09:38:59
#asterisk -rv
Asterisk 1.4.21.2~dfsg-3, 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
=========================================================================
Connected to Asterisk 1.4.21.2~dfsg-3 currently running on debian3 (pid = 23680)
Verbosity is at least 1
debian3*CLI> extensions reload
Dialplan reloaded.
[Dec  7 22:39:02] WARNING[24350]: pbx.c:4702 add_pri: Unable to register extension '999', priority 1 in 'default', already in use
debian3*CLI> :wq!
No such command ':wq!' (type 'help :wq!' for other possible commands)
debian3*CLI> eexit
No such command 'eexit' (type 'help eexit' for other possible commands)
debian3*CLI> exit
Executing last minute cleanups
09:39:09
#vim extensions.conf
--- /tmp/l3-saved-24178.7003.23996	2009-12-07 22:39:11.000000000 -1000
+++ extensions.conf	2009-12-07 22:39:17.000000000 -1000
@@ -6,6 +6,6 @@
 exten => 102,n,Hangup
 exten => _1XX,1,Dial(SIP/${EXTEN})
 exten => 999,1,Answer
-exten => 999,1,Echo(SIP/101)
+exten => 999,1,Echo()
 exten => i,1,Answer
 exten => i,n,Playback(rondo)
09:39:17
#asterisk -rv
Asterisk 1.4.21.2~dfsg-3, 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
=========================================================================
Connected to Asterisk 1.4.21.2~dfsg-3 currently running on debian3 (pid = 23680)
Verbosity is at least 1
debian3*CLI> extensions reload
Dialplan reloaded.
[Dec  7 22:39:21] WARNING[24377]: pbx.c:4702 add_pri: Unable to register extension '999', priority 1 in 'default', already in use
debian3*CLI> exit
Executing last minute cleanups
09:39:27
#vim extensions.conf
--- /tmp/l3-saved-24178.29395.21303	2009-12-07 22:39:29.000000000 -1000
+++ extensions.conf	2009-12-07 22:39:35.000000000 -1000
@@ -6,6 +6,6 @@
 exten => 102,n,Hangup
 exten => _1XX,1,Dial(SIP/${EXTEN})
 exten => 999,1,Answer
-exten => 999,1,Echo()
+exten => 999,n,Echo()
 exten => i,1,Answer
 exten => i,n,Playback(rondo)
09:39:35
#asterisk -rv
Asterisk 1.4.21.2~dfsg-3, 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
=========================================================================
Connected to Asterisk 1.4.21.2~dfsg-3 currently running on debian3 (pid = 23680)
Verbosity is at least 1
debian3*CLI> extensions reload
Dialplan reloaded.
[Dec  7 22:39:48] NOTICE[23691]: chan_sip.c:15094 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 103
debian3*CLI>
09:41:00
#vim extensions.conf

Файлы

  • sip.conf
  • sip.conf
    >
    [general]
    context=default
    [101]
    username=phone
    type=friend
    host=dynamic
    secret=123
    callerid="gib"
    

    Статистика

    Время первой команды журнала15:39:08 2009-12- 7
    Время последней команды журнала09:41:00 2009-12- 8
    Количество командных строк в журнале101
    Процент команд с ненулевым кодом завершения, %18.81
    Процент синтаксически неверно набранных команд, % 3.96
    Суммарное время работы с терминалом *, час 1.23
    Количество командных строк в единицу времени, команда/мин 1.37
    Частота использования команд
    asterisk15|==============| 14.71%
    sox12|===========| 11.76%
    vim11|==========| 10.78%
    cd11|==========| 10.78%
    vi9|========| 8.82%
    apt-get8|=======| 7.84%
    mpg1235|====| 4.90%
    ls5|====| 4.90%
    play4|===| 3.92%
    ~3|==| 2.94%
    top2|=| 1.96%
    alsamixer2|=| 1.96%
    alsa2|=| 1.96%
    screen1|| 0.98%
    man1|| 0.98%
    soxplay1|| 0.98%
    [103]1|| 0.98%
    rm1|| 0.98%
    [1|| 0.98%
    [101]1|| 0.98%
    context1|| 0.98%
    tail1|| 0.98%
    cat1|| 0.98%
    s,1,Playback(rondo)1|| 0.98%
    exten1|| 0.98%
    ampg1231|| 0.98%
    ____
    *) Интервалы неактивности длительностью 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$