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

Содержание

Журнал

Суббота (04/26/14)

/dev/pts/2
13:50:30
#./configure /?
configure: WARNING: you should use --build, --host, --target
configure: WARNING: invalid host type: /?
checking build system type... Invalid configuration `/?': machine `/?' not recognized
configure: error: /bin/bash ./config.sub /? failed
13:51:00
#./configure -?
configure: error: unrecognized option: `-?'
Try `./configure --help' for more information
13:51:03
#./configure -?
configure: error: unrecognized option: `-?'
Try `./configure --help' for more information
13:51:09
#./configure --help | grep dahdi
  --with-dahdi=PATH       use DAHDI files in PATH
13:51:18
#./configure --help | grep dahdi
  --with-dahdi=PATH       use DAHDI files in PATH
13:54:44
#./configure --disable-xmldoc
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
...
 $$$$$                        $$$
  $$$$7.                       $$  (TM)
   $$$$$$$.           .7$$$$$$  $$
     $$$$$$$$$$$$7$$$$$$$$$.$$$$$$
       $$$$$$$$$$$$$$$$.
configure: Package configured for:
configure: OS type  : linux-gnu
configure: Host CPU : x86_64
configure: build-cpu:vendor:os: x86_64 : unknown : linux-gnu :
configure: host-cpu:vendor:os: x86_64 : unknown : linux-gnu :
13:57:41
#make menus
make: *** No rule to make target `menus'.  Stop.
13:58:42
#make -?
make: invalid option -- '?'
Usage: make [options] [target] ...
Options:
  -b, -m                      Ignored for compatibility.
  -B, --always-make           Unconditionally make all targets.
  -C DIRECTORY, --directory=DIRECTORY
                              Change to DIRECTORY before doing anything.
  -d                          Print lots of debugging information.
  --debug[=FLAGS]             Print various types of debugging information.
  -e, --environment-overrides
...
                              Turns off -k.
  -t, --touch                 Touch targets instead of remaking them.
  -v, --version               Print the version number of make and exit.
  -w, --print-directory       Print the current directory.
  --no-print-directory        Turn off -w, even if it was turned on implicitly.
  -W FILE, --what-if=FILE, --new-file=FILE, --assume-new=FILE
                              Consider FILE to be infinitely new.
  --warn-undefined-variables  Warn when an undefined variable is referenced.
This program built for x86_64-pc-linux-gnu
Report bugs to <bug-make@gnu.org>
13:58:47
#make -? | less
13:59:00
#make -? | less
13:59:04
#apt-cache search timezone
libboost-locale-dev - C++ facilities for localization (default version)
libboost-locale1.49-dev - C++ facilities for localization
libboost-locale1.49.0 - C++ facilities for localization
libcalendar-ocaml - OCaml library providing operations over dates and times
libcalendar-ocaml-dev - OCaml library providing operations over dates and times
libcalendar-ocaml-doc - OCaml library providing operations over dates and times
fso-datad - freesmartphone data daemon
fso-datad-dbg - freesmartphone data daemon (debug symbols)
gkrellmitime - Internet time plugin for gkrellm
gsimplecal - lightweight GUI calendar application
...
python-pycalendar - iCalendar/vCard Library
python-dateutil - powerful extensions to the standard datetime module
python-tz - Python version of the Olson timezone database
python3-tz - Python3 version of the Olson timezone database
python3-dateutil - powerful extensions to the standard datetime module in Python 3
ruby-tzinfo - Daylight-savings aware timezone library
slashtime - Display the time in various places
sunclock - fancy clock showing time and geographical data
sunclock-maps - sunclock vector graphic maps
xfce4-weather-plugin - weather information plugin for the Xfce4 panel
14:01:24
#apt-cache search lib timezone
libboost-locale-dev - C++ facilities for localization (default version)
libboost-locale1.49-dev - C++ facilities for localization
libboost-locale1.49.0 - C++ facilities for localization
libcalendar-ocaml - OCaml library providing operations over dates and times
libcalendar-ocaml-dev - OCaml library providing operations over dates and times
libcalendar-ocaml-doc - OCaml library providing operations over dates and times
libdatetime-timezone-perl - framework exposing the Olson time zone database to Perl
libdatetime-timezone-systemv-perl - System V and POSIX timezone strings
libdatetime-timezone-tzfile-perl - Perl handling of tzfile (zoneinfo) timezone files
python-pycalendar - iCalendar/vCard Library
python-tz - Python version of the Olson timezone database
python3-tz - Python3 version of the Olson timezone database
ruby-tzinfo - Daylight-savings aware timezone library
14:01:29
#apt-cache search lib tomezone

14:04:19
#apt-cache search libtomezone

14:04:22
#apt-cache search libt
autotools-dev - Update infrastructure for config.{guess,sub} files
libtcl-chiark-1 - Tcl interfaces for adns, cdb, crypto, etc.
libtotem-pg-dev - Standards-based cluster framework, Totem devel files
libtotem-pg4 - Standards-based cluster framework, Totem library
libtonezone-dev - tonezone library (development)
libtonezone2.0 - tonezone library (runtime)
deluge - bittorrent client written in Python/PyGTK
deluge-common - bittorrent client written in Python/PyGTK (common files)
deluge-console - bittorrent client written in Python/PyGTK (console ui)
deluge-gtk - bittorrent client written in Python/PyGTK (GTK+ ui)
...
libtwofish-dev - Niels Ferguson's Twofish cryptographic algorithm library
libtwofish0 - Niels Ferguson's Twofish cryptographic library -- runtime package
libtwolame-dev - MPEG Audio Layer 2 encoder (development files)
libtwolame0 - MPEG Audio Layer 2 encoding library
libtxw2-java - Typed XML Writer for Java
libtxw2-java-doc - Documentation for Typed XML Writer for Java
libtype-conv-camlp4-dev - support library for OCaml preprocessor type conversions
libtyxml-ocaml - typed XML in OCaml (plugins)
libtyxml-ocaml-dev - typed XML in OCaml (development files)
libtyxml-ocaml-doc - typed XML in OCaml (documentation)
14:04:27
#apt-cache search libport
libportaudio-ocaml - OCaml bindings for the portaudio library
libportaudio-ocaml-dev - OCaml bindings for the portaudio library
libportaudio-dev - Portable audio I/O - development files
libportaudio-doc - Portable audio I/O - documentation
libportaudio0 - Portable audio I/O - shared library
libportaudio2 - Portable audio I/O - shared library
libportaudiocpp0 - Portable audio I/O C++ bindings - shared library
libportlet-api-2.0-spec-java - Java Portlet Specification V2.0
libportlet-api-2.0-spec-java-doc - Java Portlet Specification V2.0 - documentation
libportmidi-dev - library for real-time MIDI input/output
libportmidi0 - library for real-time MIDI input/output
libportsmf-dev - Portable Standard Midi File Library (development files)
libportsmf0 - Portable Standard Midi File Library
python-pypm - Python interface to libportmidi
14:11:31
#m-a a-i dahdi
Setting up linux-headers-3.2.0-4-common (3.2.54-2) ...
Setting up linux-kbuild-3.2 (3.2.17-1) ...
Setting up linux-headers-3.2.0-4-amd64 (3.2.54-2) ...
Creating symlink...
apt-get install build-essential
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.
...
               │                                                                         │
               │                                100%                                     │
               │                                                                         │
               └─────────────────────────────────────────────────────────────────────────┘
Done with /usr/src/dahdi-modules-3.2.0-4-amd64_2.6.1+dfsg2-1+3.2.54-2_amd64.deb .
dpkg -Ei /usr/src/dahdi-modules-3.2.0-4-amd64_2.6.1+dfsg2-1+3.2.54-2_amd64.deb
Selecting previously unselected package dahdi-modules-3.2.0-4-amd64.
(Reading database ... 147733 files and directories currently installed.)
Unpacking dahdi-modules-3.2.0-4-amd64 (from .../dahdi-modules-3.2.0-4-amd64_2.6.1+dfsg2-1+3.2.54-2_amd64.deb) ...
Setting up dahdi-modules-3.2.0-4-amd64 (1:2.6.1+dfsg2-1+3.2.54-2) ...
14:15:28
#cache search libport
                                ./configure --disable-xmldoc
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
...
 $$$$$                        $$$
  $$$$7.                       $$  (TM)
   $$$$$$$.           .7$$$$$$  $$
     $$$$$$$$$$$$7$$$$$$$$$.$$$$$$
       $$$$$$$$$$$$$$$$.
configure: Package configured for:
configure: OS type  : linux-gnu
configure: Host CPU : x86_64
configure: build-cpu:vendor:os: x86_64 : unknown : linux-gnu :
configure: host-cpu:vendor:os: x86_64 : unknown : linux-gnu :
14:16:29
#make -j32
CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" makeopts
make[1]: Entering directory `/usr/src/asterisk-11.9.0/menuselect'
make[1]: `makeopts' is up to date.
make[1]: Leaving directory `/usr/src/asterisk-11.9.0/menuselect'
Generating input for menuselect ...
Building Documentation For: channels pbx apps codecs formats cdr cel bridges funcs tests menuselect/menuselect --check-deps menuselect.makeopts
menuselect/menuselect --check-deps menuselect.makeopts
Generating embedded module rules ...
main res addons
   [CC] astcanary.c -> astcanary.o
...
creating Makefile
creating makelist
creating config.h
   [LD] abstract_jb.o acl.o adsi.o alaw.o aoc.o app.o ast_expr2.o ast_expr2f.o asterisk.o astfd.o astmm.o astobj2.o audiohook.o autochan.o autoservice.o bridging.o callerid.o ccss.o cdr.o cel.o channel.o channel_internal_api.o chanvars.o cli.o config.o config_options.o data.o datastore.o db.o devicestate.o dial.o dns.o dnsmgr.o dsp.o enum.o event.o features.o file.o fixedjitterbuf.o format.o forma
 +--------- Asterisk Build Complete ---------+
 + Asterisk has successfully been built, and +
 + can be installed by running:              +
 +                                           +
 +                make install               +
 +-------------------------------------------+
14:17:19
#сз -К Ñcp -R /etc/asterisk/ /etc/asterisk.backup

14:20:41
#ls -al /etc/asterisk
total 824
drwxr-xr-x   3 asterisk asterisk  4096 Apr 26 14:26 .
drwxr-xr-x 136 root     root     12288 Apr 26 15:19 ..
-rw-r-----   1 asterisk asterisk   140 Jan  4 03:07 adsi.conf
-rw-r-----   1 asterisk asterisk  2788 Apr 26 09:14 agents.conf
-rw-r-----   1 asterisk asterisk  2904 Jan  4 03:07 ais.conf
-rw-r-----   1 asterisk asterisk  2084 Jan  4 03:07 alarmreceiver.conf
-rw-r-----   1 asterisk asterisk  3498 Jan  4 03:07 alsa.conf
-rw-r-----   1 asterisk asterisk   767 Jan  4 03:07 amd.conf
-rw-r-----   1 asterisk asterisk  1044 Jan  4 03:07 app_mysql.conf
...
-rw-r-----   1 asterisk asterisk   742 Jan  4 03:07 sip_notify.conf
-rw-r-----   1 asterisk asterisk  9185 Jan  4 03:07 skinny.conf
-rw-r-----   1 asterisk asterisk  6774 Jan  4 03:07 sla.conf
-rw-r-----   1 asterisk asterisk  2669 Jan  4 03:07 smdi.conf
-rw-r-----   1 asterisk asterisk  1384 Jan  4 03:07 telcordia-1.adsi
-rw-r-----   1 asterisk asterisk   656 Jan  4 03:07 udptl.conf
-rw-r-----   1 asterisk asterisk  5096 Jan  4 03:07 unistim.conf
-rw-r-----   1 asterisk asterisk  2423 Jan  4 03:07 users.conf
-rw-r-----   1 asterisk asterisk 21322 Apr 24 13:22 voicemail.conf
-rw-r-----   1 asterisk asterisk  5939 Jan  4 03:07 vpb.conf
14:20:52
#apt-get remove
addons/                             keys/
agi/                                .lastclean
apps/                               LICENSE
asterisk-11.9.0-summary.html        main/
asterisk-11.9.0-summary.txt         Makefile
autoconf/                           Makefile.moddir_rules
bootstrap.sh                        Makefile.rules
bridges/                            makeopts
BSDmakefile                         makeopts.embed_rules
BUGS                                makeopts.in
...
config.guess                        README
config.log                          README-addons.txt
configs/                            README-SERIOUSLY.bestpractices.txt
config.status                       res/
config.sub                          sample.call
configure                           sounds/
configure.ac                        static-http/
contrib/                            tests/
COPYING                             UPGRADE-10.txt
--More--^C
14:21:43
#apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  asterisk-config asterisk-core-sounds-en asterisk-core-sounds-en-gsm asterisk-modules
  asterisk-moh-opsound-gsm freetds-common libcurl3 libiksemel3 libodbc1 libpq5 libradiusclient-ng2
  libresample1 libsaclm3 libsaevt3 libsensors4 libsnmp-base libsnmp15 libsqlite0 libsybdb5 libvpb0 sox
  vpb-driver-source
0 upgraded, 0 newly installed, 22 to remove and 6 not upgraded.
After this operation, 22.9 MB disk space will be freed.
...
Removing libsaevt3 ...
Removing libsnmp15 ...
Removing libsensors4:amd64 ...
Removing libsnmp-base ...
Removing libsqlite0 ...
Removing libvpb0 ...
Removing sox ...
Removing vpb-driver-source ...
Processing triggers for man-db ...
Processing triggers for mime-support ...
14:22:13
#make install
CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" makeopts
make[1]: Entering directory `/usr/src/asterisk-11.9.0/menuselect'
make[1]: `makeopts' is up to date.
make[1]: Leaving directory `/usr/src/asterisk-11.9.0/menuselect'
Installing modules from channels...
Installing modules from pbx...
Installing modules from apps...
Installing modules from codecs...
Installing modules from formats...
Installing modules from cdr...
...
 +-------------------------------------------+
 WARNING WARNING WARNING
 Your Asterisk modules directory, located at
 /usr/lib/asterisk/modules
 contains modules that were not installed by this
 version of Asterisk. Please ensure that these
 modules are compatible with this version before
 attempting to run Asterisk.
    chan_datacard.so
 WARNING WARNING WARNING
14:23:03
#ls -al /etc/asterisk
total 824
drwxr-xr-x   3 asterisk asterisk  4096 Apr 26 14:26 .
drwxr-xr-x 136 root     root     12288 Apr 26 15:22 ..
-rw-r-----   1 asterisk asterisk   140 Jan  4 03:07 adsi.conf
-rw-r-----   1 asterisk asterisk  2788 Apr 26 09:14 agents.conf
-rw-r-----   1 asterisk asterisk  2904 Jan  4 03:07 ais.conf
-rw-r-----   1 asterisk asterisk  2084 Jan  4 03:07 alarmreceiver.conf
-rw-r-----   1 asterisk asterisk  3498 Jan  4 03:07 alsa.conf
-rw-r-----   1 asterisk asterisk   767 Jan  4 03:07 amd.conf
-rw-r-----   1 asterisk asterisk  1044 Jan  4 03:07 app_mysql.conf
...
-rw-r-----   1 asterisk asterisk   742 Jan  4 03:07 sip_notify.conf
-rw-r-----   1 asterisk asterisk  9185 Jan  4 03:07 skinny.conf
-rw-r-----   1 asterisk asterisk  6774 Jan  4 03:07 sla.conf
-rw-r-----   1 asterisk asterisk  2669 Jan  4 03:07 smdi.conf
-rw-r-----   1 asterisk asterisk  1384 Jan  4 03:07 telcordia-1.adsi
-rw-r-----   1 asterisk asterisk   656 Jan  4 03:07 udptl.conf
-rw-r-----   1 asterisk asterisk  5096 Jan  4 03:07 unistim.conf
-rw-r-----   1 asterisk asterisk  2423 Jan  4 03:07 users.conf
-rw-r-----   1 asterisk asterisk 21322 Apr 24 13:22 voicemail.conf
-rw-r-----   1 asterisk asterisk  5939 Jan  4 03:07 vpb.conf
14:23:07
#ls -al /etc/asterisk | less
14:23:34
#vi /etc/asterisk/extensions.conf
14:24:14
#asterisk -rvvv
Asterisk 11.9.0, Copyright (C) 1999 - 2013 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 11.9.0 currently running on debian5 (pid = 9696)
debian5*CLI> sip show
channel        channels       channelstats   domains        history        inuse          mwi
...
[Apr 26 15:36:37] NOTICE[9722]: chan_sip.c:15182 sip_reg_timeout:    -- Registration for 'vienna@192.168.12.9' timed out, trying again (Attempt #38)
[Apr 26 15:36:57] NOTICE[9722]: chan_sip.c:15182 sip_reg_timeout:    -- Registration for 'vienna@192.168.12.9' timed out, trying again (Attempt #39)
[Apr 26 15:37:17] NOTICE[9722]: chan_sip.c:15182 sip_reg_timeout:    -- Registration for 'vienna@192.168.12.9' timed out, trying again (Attempt #40)
[Apr 26 15:37:37] NOTICE[9722]: chan_sip.c:15182 sip_reg_timeout:    -- Registration for 'vienna@192.168.12.9' timed out, trying again (Attempt #41)
[Apr 26 15:37:57] NOTICE[9722]: chan_sip.c:15182 sip_reg_timeout:    -- Registration for 'vienna@192.168.12.9' timed out, trying again (Attempt #42)
[Apr 26 15:38:17] NOTICE[9722]: chan_sip.c:15182 sip_reg_timeout:    -- Registration for 'vienna@192.168.12.9' timed out, trying again (Attempt #43)
[Apr 26 15:38:37] NOTICE[9722]: chan_sip.c:15182 sip_reg_timeout:    -- Registration for 'vienna@192.168.12.9' timed out, trying again (Attempt #44)
debian5*CLI> exit
Asterisk cleanly ending (0).
Executing last minute cleanups
прошло 14 минут
14:38:49
#ды -фÐls -al /etc/asterisk | grep ldap
-rw-r-----   1 asterisk asterisk  7009 Jan  4 03:07 res_ldap.conf
14:48:34
#cat /etc/asterisk/res_ldap.conf
;
; Configuration file for res_config_ldap
;
; Realtime configuration
; ----------------------
; In order to use this module, you start
; in extconfig.conf with a configuration like this:
;
;       sippeers = ldap,"dc=myDomain,dc=myDomainExt",sip
;       extensions = ldap,"dc=myDomain,dc=myDomainExt",extensions
...
rtpholdtimeout = AstAccountRTPHoldTimeout
type = AstAccountType
disallow = AstAccountDisallowedCodec
allow = AstAccountAllowedCodec
MusicOnHold = AstAccountMusicOnHold
regseconds = AstAccountExpirationTimestamp
regcontext = AstAccountRegistrationContext
regexten = AstAccountRegistrationExten
CanCallForward = AstAccountCanCallForward
additionalFilter=(objectClass=AstAccount)
14:49:14
#cat /etc/asterisk/res_ldap.conf | less
прошло 10 минут
14:59:49
#ls /home/user/
belka.txt  Desktop  Documents  Downloads  Mail  Music  Pictures  Public  Templates  test.txt  Videos
14:59:55
#ls user/
ls: cannot access user/: No such file or directory
15:00:01
#ls -al /user/
ls: cannot access /user/: No such file or directory
15:00:05
#ls -al !
ls: cannot access !: No such file or directory
15:00:13
#ls -al ~
total 16308
drwx------ 13 root root     4096 Apr 26 15:24 .
drwxr-xr-x 24 root root     4096 Apr 22 13:34 ..
-rwxr--r--  1 root root      143 Apr 22 15:07 all
drwx------  2 root root     4096 Apr 22 13:12 .aptitude
-rw-r--r--  1 root root 16543475 Apr 24 14:13 asterisk-core-sounds-ru-wav-current.tar.gz
-rw-------  1 root root     1703 Apr 26 15:38 .asterisk_history
-rw-------  1 root root    12104 Apr 26 13:57 .bash_history
-rw-r--r--  1 root root       10 Apr 22 13:55 .bash_profile
-rw-r--r--  1 root root      630 Apr 22 13:55 .bashrc
...
drwxr-xr-x  2 root root    28672 Apr 26 16:00 .lilalo
drwx------  3 root root     4096 Apr 22 14:03 .local
-rw-r--r--  1 root root      140 Nov 19  2007 .profile
drwx------  2 root root     4096 Apr 24 13:45 .pulse
-rw-------  1 root root      256 Apr 24 13:45 .pulse-cookie
-rw-r--r--  1 root root       74 Apr 26 12:28 q
drwx------  2 root root     4096 Apr 22 14:09 .ssh
drwxr-xr-x  3 root root     4096 Apr 26 12:29 .subversion
drwxr-xr-x  2 root root     4096 Apr 26 09:57 .vim
-rw-------  1 root root     9959 Apr 26 15:24 .viminfo
15:00:16
#cd /var/src
l3script: cd: /var/src: No such file or directory
15:00:24
#cd /usr/src

15:00:33
#ls -al
total 47600
drwxr-xr-x  6 root root     4096 Apr 26 15:22 .
drwxr-xr-x 10 root root     4096 Apr 22 12:10 ..
drwxr-xr-x 29 root root     4096 Apr 26 15:16 asterisk-11.9.0
-rw-r--r--  1 root root 34844777 Apr 26 14:29 asterisk-11-current.tar.gz
-rw-r--r--  1 root root  7415043 Apr 26 14:54 dahdi-linux-complete-current.tar.gz
-rw-r--r--  1 root root  5605656 Apr 26 15:14 dahdi-modules-3.2.0-4-amd64_2.6.1+dfsg2-1+3.2.54-2_amd64.deb
-rw-r--r--  1 root root   843676 Jan 30  2013 dahdi.tar.bz2
lrwxrwxrwx  1 root root       27 Apr 26 15:13 linux -> linux-headers-3.2.0-4-amd64
drwxr-xr-x  4 root root     4096 Apr 26 15:13 linux-headers-3.2.0-4-amd64
drwxr-xr-x  4 root root     4096 Apr 26 15:13 linux-headers-3.2.0-4-common
lrwxrwxrwx  1 root root       23 Jun 24  2012 linux-kbuild-3.2 -> ../lib/linux-kbuild-3.2
drwxr-xr-x  3 root root     4096 Jan 30  2013 modules
15:00:37
#find / -name datacard
/root/datacard
15:01:05
#cd /root/datacard/

15:01:13
#ls -al
total 572
drwxr-xr-x  4 root root   4096 Apr 26 13:21 .
drwx------ 13 root root   4096 Apr 26 15:24 ..
-rw-r--r--  1 root root   2996 Apr 26 12:29 __app.c
-rw-r--r--  1 root root   2816 Apr 26 12:29 __at_fifo_queue.c
-rw-r--r--  1 root root  14613 Apr 26 12:29 __at_parse.c
-rw-r--r--  1 root root   7456 Apr 26 12:29 __at_read.c
-rw-r--r--  1 root root  39050 Apr 26 12:29 __at_response.c
-rw-r--r--  1 root root  13257 Apr 26 12:29 __at_send.c
-rw-r--r--  1 root root  16995 Apr 26 12:29 chan_datacard.c
...
-rw-r--r--  1 root root   1793 Apr 26 12:29 __helpers.c
-rw-r--r--  1 root root  18671 Apr 26 12:29 LICENSE.txt
-rw-r--r--  1 root root    656 Apr 26 13:21 Makefile
-rw-r--r--  1 root root    567 Apr 26 12:29 Makefile.in
-rw-r--r--  1 root root  11478 Apr 26 12:29 __manager.c
-rw-r--r--  1 root root   2291 Apr 26 12:29 __memmem.c
-rw-r--r--  1 root root   2184 Apr 26 12:29 README.txt
-rw-r--r--  1 root root   6920 Apr 26 12:29 __ringbuffer.c
-rw-r--r--  1 root root   1187 Apr 26 12:29 __ringbuffer.h
drwxr-xr-x  6 root root   4096 Apr 26 12:29 .svn
15:01:16
#./configure
configure complete, now type 'make'
15:01:51
#./configure make
configure complete, now type 'make'
15:01:55
#make
gcc -Wextra -fPIC -DAST_MODULE=\"chan_datacard\" -D_THREAD_SAFE -I. -I/usr/include -O2 -DICONV_CONST="" -D__DEBUG__ -D__MANAGER__ -D__APP__ -c chan_datacard.c
In file included from chan_datacard.c:66:0:
/usr/include/asterisk/version.h:1:2: error: #error "Do not include 'asterisk/version.h'; use 'asterisk/ast_version.h' instead."
In file included from chan_datacard.c:73:0:
chan_datacard.h:251:2: warning: initialization makes pointer from integer without a cast [enabled by default]
chan_datacard.h:251:2: warning: (near initialization for ‘channel_tech.capabilities’) [enabled by default]
chan_datacard.h:252:2: warning: initialization from incompatible pointer type [enabled by default]
chan_datacard.h:252:2: warning: (near initialization for ‘channel_tech.requester’) [enabled by default]
chan_datacard.h:253:2: warning: initialization from incompatible pointer type [enabled by default]
chan_datacard.h:253:2: warning: (near initialization for ‘channel_tech.call’) [enabled by default]
...
chan_datacard.c:738:2: error: too few arguments to function ‘ast_manager_register2’
In file included from chan_datacard.c:59:0:
/usr/include/asterisk/manager.h:195:5: note: declared here
chan_datacard.c:746:2: warning: passing argument 4 of ‘ast_manager_register2’ from incompatible pointer type [enabled by default]
In file included from chan_datacard.c:59:0:
/usr/include/asterisk/manager.h:195:5: note: expected ‘struct ast_module *’ but argument is of type ‘char *’
chan_datacard.c:746:2: error: too few arguments to function ‘ast_manager_register2’
In file included from chan_datacard.c:59:0:
/usr/include/asterisk/manager.h:195:5: note: declared here
make: *** [chan_datacard.o] Error 1
15:01:58
#make
gcc -Wextra -fPIC -DAST_MODULE=\"chan_datacard\" -D_THREAD_SAFE -I. -I/usr/include -O2 -DICONV_CONST="" -D__DEBUG__ -D__MANAGER__ -D__APP__ -c chan_datacard.c
In file included from chan_datacard.c:66:0:
/usr/include/asterisk/version.h:1:2: error: #error "Do not include 'asterisk/version.h'; use 'asterisk/ast_version.h' instead."
In file included from chan_datacard.c:73:0:
chan_datacard.h:251:2: warning: initialization makes pointer from integer without a cast [enabled by default]
chan_datacard.h:251:2: warning: (near initialization for ‘channel_tech.capabilities’) [enabled by default]
chan_datacard.h:252:2: warning: initialization from incompatible pointer type [enabled by default]
chan_datacard.h:252:2: warning: (near initialization for ‘channel_tech.requester’) [enabled by default]
chan_datacard.h:253:2: warning: initialization from incompatible pointer type [enabled by default]
chan_datacard.h:253:2: warning: (near initialization for ‘channel_tech.call’) [enabled by default]
...
chan_datacard.c:738:2: error: too few arguments to function ‘ast_manager_register2’
In file included from chan_datacard.c:59:0:
/usr/include/asterisk/manager.h:195:5: note: declared here
chan_datacard.c:746:2: warning: passing argument 4 of ‘ast_manager_register2’ from incompatible pointer type [enabled by default]
In file included from chan_datacard.c:59:0:
/usr/include/asterisk/manager.h:195:5: note: expected ‘struct ast_module *’ but argument is of type ‘char *’
chan_datacard.c:746:2: error: too few arguments to function ‘ast_manager_register2’
In file included from chan_datacard.c:59:0:
/usr/include/asterisk/manager.h:195:5: note: declared here
make: *** [chan_datacard.o] Error 1
15:02:00
#make clean

15:02:04
#./configure
configure complete, now type 'make'
15:02:08
#make
gcc -Wextra -fPIC -DAST_MODULE=\"chan_datacard\" -D_THREAD_SAFE -I. -I/usr/include -O2 -DICONV_CONST="" -D__DEBUG__ -D__MANAGER__ -D__APP__ -c chan_datacard.c
In file included from chan_datacard.c:66:0:
/usr/include/asterisk/version.h:1:2: error: #error "Do not include 'asterisk/version.h'; use 'asterisk/ast_version.h' instead."
In file included from chan_datacard.c:73:0:
chan_datacard.h:251:2: warning: initialization makes pointer from integer without a cast [enabled by default]
chan_datacard.h:251:2: warning: (near initialization for ‘channel_tech.capabilities’) [enabled by default]
chan_datacard.h:252:2: warning: initialization from incompatible pointer type [enabled by default]
chan_datacard.h:252:2: warning: (near initialization for ‘channel_tech.requester’) [enabled by default]
chan_datacard.h:253:2: warning: initialization from incompatible pointer type [enabled by default]
chan_datacard.h:253:2: warning: (near initialization for ‘channel_tech.call’) [enabled by default]
...
chan_datacard.c:738:2: error: too few arguments to function ‘ast_manager_register2’
In file included from chan_datacard.c:59:0:
/usr/include/asterisk/manager.h:195:5: note: declared here
chan_datacard.c:746:2: warning: passing argument 4 of ‘ast_manager_register2’ from incompatible pointer type [enabled by default]
In file included from chan_datacard.c:59:0:
/usr/include/asterisk/manager.h:195:5: note: expected ‘struct ast_module *’ but argument is of type ‘char *’
chan_datacard.c:746:2: error: too few arguments to function ‘ast_manager_register2’
In file included from chan_datacard.c:59:0:
/usr/include/asterisk/manager.h:195:5: note: declared here
make: *** [chan_datacard.o] Error 1
15:02:10
#make | less
15:02:19
#make | more
15:02:23
#make | less
15:04:31
#ls -al /usr/include/as
asm-generic/ assert.h     asterisk/    asterisk.h
15:04:31
#ls -al /usr/include/as
asm-generic/ assert.h     asterisk/    asterisk.h
15:04:31
#ls -al /usr/include/asterisk
total 1880
drwxr-xr-x  3 root root   4096 Apr 26 15:23 .
drwxr-xr-x 43 root root   4096 Apr 26 15:23 ..
-rw-r--r--  1 root root   8683 Apr 26 15:23 abstract_jb.h
-rw-r--r--  1 root root  14023 Apr 26 15:23 acl.h
-rw-r--r--  1 root root  15140 Apr 26 15:23 adsi.h
-rw-r--r--  1 root root   3291 Apr 26 15:23 ael_structs.h
-rw-r--r--  1 root root   5301 Apr 26 15:23 agi.h
-rw-r--r--  1 root root   2320 Apr 26 15:23 alaw.h
-rw-r--r--  1 root root  17604 Apr 26 15:23 aoc.h
...
-rw-r--r--  1 root root   1398 Apr 26 15:23 transcap.h
-rw-r--r--  1 root root  13710 Apr 26 15:23 translate.h
-rw-r--r--  1 root root   4693 Apr 26 15:23 udptl.h
-rw-r--r--  1 root root   2388 Apr 26 15:23 ulaw.h
-rw-r--r--  1 root root   3708 Apr 26 15:23 unaligned.h
-rw-r--r--  1 root root  28698 Apr 26 15:23 utils.h
-rw-r--r--  1 root root     84 Apr 26 15:23 version.h
-rw-r--r--  1 root root   4941 Apr 26 15:23 xmldoc.h
-rw-r--r--  1 root root   6482 Apr 26 15:23 xml.h
-rw-r--r--  1 root root   8398 Apr 26 15:23 xmpp.h
15:04:55
#make cleanall
make: *** No rule to make target `cleanall'.  Stop.
15:04:58
#make all
gcc -Wextra -fPIC -DAST_MODULE=\"chan_datacard\" -D_THREAD_SAFE -I. -I/usr/include -O2 -DICONV_CONST="" -D__DEBUG__ -D__MANAGER__ -D__APP__ -c chan_datacard.c
In file included from chan_datacard.c:66:0:
/usr/include/asterisk/version.h:1:2: error: #error "Do not include 'asterisk/version.h'; use 'asterisk/ast_version.h' instead."
In file included from chan_datacard.c:73:0:
chan_datacard.h:251:2: warning: initialization makes pointer from integer without a cast [enabled by default]
chan_datacard.h:251:2: warning: (near initialization for ‘channel_tech.capabilities’) [enabled by default]
chan_datacard.h:252:2: warning: initialization from incompatible pointer type [enabled by default]
chan_datacard.h:252:2: warning: (near initialization for ‘channel_tech.requester’) [enabled by default]
chan_datacard.h:253:2: warning: initialization from incompatible pointer type [enabled by default]
chan_datacard.h:253:2: warning: (near initialization for ‘channel_tech.call’) [enabled by default]
...
chan_datacard.c:738:2: error: too few arguments to function ‘ast_manager_register2’
In file included from chan_datacard.c:59:0:
/usr/include/asterisk/manager.h:195:5: note: declared here
chan_datacard.c:746:2: warning: passing argument 4 of ‘ast_manager_register2’ from incompatible pointer type [enabled by default]
In file included from chan_datacard.c:59:0:
/usr/include/asterisk/manager.h:195:5: note: expected ‘struct ast_module *’ but argument is of type ‘char *’
chan_datacard.c:746:2: error: too few arguments to function ‘ast_manager_register2’
In file included from chan_datacard.c:59:0:
/usr/include/asterisk/manager.h:195:5: note: declared here
make: *** [chan_datacard.o] Error 1
15:05:03
#exit
exit
There are stopped jobs.
/dev/pts/2
15:06:46
#cd /root/datacard/

15:06:52
#./configure
configure complete, now type 'make'
15:06:56
#make ss
make: *** No rule to make target `ss'.  Stop.
15:07:01
#make clean

15:07:07
#make
gcc -Wextra -fPIC -DAST_MODULE=\"chan_datacard\" -D_THREAD_SAFE -I. -I/usr/include -O2 -DICONV_CONST="" -D__DEBUG__ -D__MANAGER__ -D__APP__ -c chan_datacard.c
In file included from chan_datacard.c:66:0:
/usr/include/asterisk/version.h:1:2: error: #error "Do not include 'asterisk/version.h'; use 'asterisk/ast_version.h' instead."
In file included from chan_datacard.c:73:0:
chan_datacard.h:251:2: warning: initialization makes pointer from integer without a cast [enabled by default]
chan_datacard.h:251:2: warning: (near initialization for ‘channel_tech.capabilities’) [enabled by default]
chan_datacard.h:252:2: warning: initialization from incompatible pointer type [enabled by default]
chan_datacard.h:252:2: warning: (near initialization for ‘channel_tech.requester’) [enabled by default]
chan_datacard.h:253:2: warning: initialization from incompatible pointer type [enabled by default]
chan_datacard.h:253:2: warning: (near initialization for ‘channel_tech.call’) [enabled by default]
...
chan_datacard.c:738:2: error: too few arguments to function ‘ast_manager_register2’
In file included from chan_datacard.c:59:0:
/usr/include/asterisk/manager.h:195:5: note: declared here
chan_datacard.c:746:2: warning: passing argument 4 of ‘ast_manager_register2’ from incompatible pointer type [enabled by default]
In file included from chan_datacard.c:59:0:
/usr/include/asterisk/manager.h:195:5: note: expected ‘struct ast_module *’ but argument is of type ‘char *’
chan_datacard.c:746:2: error: too few arguments to function ‘ast_manager_register2’
In file included from chan_datacard.c:59:0:
/usr/include/asterisk/manager.h:195:5: note: declared here
make: *** [chan_datacard.o] Error 1
15:07:10
#./configure --help
configure complete, now type 'make'
15:07:26
#./configure -?
configure complete, now type 'make'
15:07:31
#./configure
configure complete, now type 'make'
15:07:53
#./configure -?
configure complete, now type 'make'
15:07:55
#./configure -?
configure complete, now type 'make'
15:07:56
#./configure -?
configure complete, now type 'make'
15:07:56
#./configure -?
configure complete, now type 'make'
15:07:56
#./configure -?
configure complete, now type 'make'
15:07:57
#./configure -?
configure complete, now type 'make'
15:07:57
#./configure -?
configure complete, now type 'make'
15:07:57
#./configure -?
configure complete, now type 'make'
15:07:57
#./configure -?
configure complete, now type 'make'
15:07:58
#./configure -?
configure complete, now type 'make'
15:07:58
#./configure -?
configure complete, now type 'make'
15:07:59
#./configure -?
configure complete, now type 'make'
15:07:59
#./configure -?
configure complete, now type 'make'
15:08:00
#./configure -?
configure complete, now type 'make'
15:08:00
#./configure -?
configure complete, now type 'make'
15:08:01
#./configure -?
configure complete, now type 'make'
15:08:01
#./configure -?
configure complete, now type 'make'
15:08:01
#./configure -?
configure complete, now type 'make'
15:08:01
#./configure -?
configure complete, now type 'make'
15:08:02
#./configure -?
configure complete, now type 'make'
15:08:02
#make
gcc -Wextra -fPIC -DAST_MODULE=\"chan_datacard\" -D_THREAD_SAFE -I. -I/usr/include -O2 -DICONV_CONST="" -D__DEBUG__ -D__MANAGER__ -D__APP__ -c chan_datacard.c
In file included from chan_datacard.c:66:0:
/usr/include/asterisk/version.h:1:2: error: #error "Do not include 'asterisk/version.h'; use 'asterisk/ast_version.h' instead."
In file included from chan_datacard.c:73:0:
chan_datacard.h:251:2: warning: initialization makes pointer from integer without a cast [enabled by default]
chan_datacard.h:251:2: warning: (near initialization for ‘channel_tech.capabilities’) [enabled by default]
chan_datacard.h:252:2: warning: initialization from incompatible pointer type [enabled by default]
chan_datacard.h:252:2: warning: (near initialization for ‘channel_tech.requester’) [enabled by default]
chan_datacard.h:253:2: warning: initialization from incompatible pointer type [enabled by default]
chan_datacard.h:253:2: warning: (near initialization for ‘channel_tech.call’) [enabled by default]
...
chan_datacard.c:738:2: error: too few arguments to function ‘ast_manager_register2’
In file included from chan_datacard.c:59:0:
/usr/include/asterisk/manager.h:195:5: note: declared here
chan_datacard.c:746:2: warning: passing argument 4 of ‘ast_manager_register2’ from incompatible pointer type [enabled by default]
In file included from chan_datacard.c:59:0:
/usr/include/asterisk/manager.h:195:5: note: expected ‘struct ast_module *’ but argument is of type ‘char *’
chan_datacard.c:746:2: error: too few arguments to function ‘ast_manager_register2’
In file included from chan_datacard.c:59:0:
/usr/include/asterisk/manager.h:195:5: note: declared here
make: *** [chan_datacard.o] Error 1
15:08:05
#apt-cache search asterisk
asterisk - Open Source Private Branch Exchange (PBX)
asterisk-config - Configuration files for Asterisk
asterisk-dahdi - DAHDI devices support for the Asterisk PBX
asterisk-dbg - Debugging symbols for Asterisk
asterisk-dev - Development files for Asterisk
asterisk-doc - Source code documentation for Asterisk
asterisk-mobile - Bluetooth phone support for the Asterisk PBX
asterisk-modules - loadable modules for the Asterisk PBX
asterisk-mp3 - MP3 playback support for the Asterisk PBX
asterisk-mysql - MySQL database protocol support for the Asterisk PBX
...
op-panel - switchboard type application for the Asterisk PBX
libopenr2-3 - MFC/R2 (telephony) call setup library
python-asterisk - Asterisk Manager API interface module for Python
libsipwitch-dev - secure peer-to-peer SIP VoIP server - development files
libsipwitch1 - secure peer-to-peer SIP VoIP server - development files
libsipwitch1-dbg - secure peer-to-peer SIP VoIP server - development files
sipwitch - secure peer-to-peer VoIP server for the SIP protocol
sipwitch-cgi - secure peer-to-peer SIP VoIP server - CGI XML-RPC interface
python-starpy - Asterisk (AMI) protocols for Twisted Python
dahdi-modules-3.2.0-4-amd64 - DAHDI modules for Linux (kernel 3.2.0-4-amd64)
15:08:18
#ьфmake
gcc -Wextra -fPIC -DAST_MODULE=\"chan_datacard\" -D_THREAD_SAFE -I. -I/usr/include -O2 -DICONV_CONST="" -D__DEBUG__ -D__MANAGER__ -D__APP__ -c chan_datacard.c
In file included from chan_datacard.c:66:0:
/usr/include/asterisk/version.h:1:2: error: #error "Do not include 'asterisk/version.h'; use 'asterisk/ast_version.h' instead."
In file included from chan_datacard.c:73:0:
chan_datacard.h:251:2: warning: initialization makes pointer from integer without a cast [enabled by default]
chan_datacard.h:251:2: warning: (near initialization for ‘channel_tech.capabilities’) [enabled by default]
chan_datacard.h:252:2: warning: initialization from incompatible pointer type [enabled by default]
chan_datacard.h:252:2: warning: (near initialization for ‘channel_tech.requester’) [enabled by default]
chan_datacard.h:253:2: warning: initialization from incompatible pointer type [enabled by default]
chan_datacard.h:253:2: warning: (near initialization for ‘channel_tech.call’) [enabled by default]
...
chan_datacard.c:738:2: error: too few arguments to function ‘ast_manager_register2’
In file included from chan_datacard.c:59:0:
/usr/include/asterisk/manager.h:195:5: note: declared here
chan_datacard.c:746:2: warning: passing argument 4 of ‘ast_manager_register2’ from incompatible pointer type [enabled by default]
In file included from chan_datacard.c:59:0:
/usr/include/asterisk/manager.h:195:5: note: expected ‘struct ast_module *’ but argument is of type ‘char *’
chan_datacard.c:746:2: error: too few arguments to function ‘ast_manager_register2’
In file included from chan_datacard.c:59:0:
/usr/include/asterisk/manager.h:195:5: note: declared here
make: *** [chan_datacard.o] Error 1
15:09:32
#apt-cache search asterisk dev
asterisk-dahdi - DAHDI devices support for the Asterisk PBX
asterisk-dev - Development files for Asterisk
asterisk-mobile - Bluetooth phone support for the Asterisk PBX
dahdi-linux - DAHDI telephony interface - Linux userspace parts
dahdi-source - DAHDI telephony interface - source code for kernel driver
dahdi - utilities for using the DAHDI kernel modules
libnetsds-perl - Service Delivery Suite framework
libss7-dev - Signalling System 7 (ss7) development files
python-asterisk - Asterisk Manager API interface module for Python
libsipwitch-dev - secure peer-to-peer SIP VoIP server - development files
libsipwitch1 - secure peer-to-peer SIP VoIP server - development files
libsipwitch1-dbg - secure peer-to-peer SIP VoIP server - development files
dahdi-modules-3.2.0-4-amd64 - DAHDI modules for Linux (kernel 3.2.0-4-amd64)
15:10:17
#apt-ftparchive
__app.c            __at_send.c        __cli.c            LICENSE.txt        __memmem.c
__at_fifo_queue.c  chan_datacard.c    configure          Makefile           README.txt
__at_parse.c       chan_datacard.h    COPYRIGHT.txt      Makefile.in        __ringbuffer.c
__at_read.c        __channel.c        etc/               make.txt           __ringbuffer.h
__at_response.c    __char_conv.c      __helpers.c        __manager.c        .svn/
15:10:17
#apt-
apt-add-repository    apt-config            apt-get               apt-mark
apt-cache             apt-extracttemplates  apt-key               apt-sortpkgs
apt-cdrom             apt-ftparchive        apt-listchanges
15:10:17
#apt-c
apt-cache   apt-cdrom   apt-config
15:10:17
#apt-cache
__app.c            __at_send.c        __cli.c            LICENSE.txt        __memmem.c
__at_fifo_queue.c  chan_datacard.c    configure          Makefile           README.txt
__at_parse.c       chan_datacard.h    COPYRIGHT.txt      Makefile.in        __ringbuffer.c
__at_read.c        __channel.c        etc/               make.txt           __ringbuffer.h
__at_response.c    __char_conv.c      __helpers.c        __manager.c        .svn/
15:10:17
#apt-cache file
__app.c            __at_send.c        __cli.c            LICENSE.txt        __memmem.c
__at_fifo_queue.c  chan_datacard.c    configure          Makefile           README.txt
__at_parse.c       chan_datacard.h    COPYRIGHT.txt      Makefile.in        __ringbuffer.c
__at_read.c        __channel.c        etc/               make.txt           __ringbuffer.h
__at_response.c    __char_conv.c      __helpers.c        __manager.c        .svn/
15:10:17
#apt-cache file screen
E: Invalid operation file
15:19:41
#dpkg-query -L screen
/.
/etc
/etc/init.d
/etc/init.d/screen-cleanup
/etc/screenrc
/usr
/usr/bin
/usr/bin/screen
/usr/share
/usr/share/doc
...
/usr/share/screen/utf8encodings/d6
/usr/share/screen/utf8encodings/c3
/usr/share/screen/utf8encodings/cd
/usr/share/screen/utf8encodings/04
/usr/share/screen/utf8encodings/cc
/usr/share/screen/utf8encodings/c7
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/screen.1.gz
/usr/share/doc/screen/patchlevel.h.gz
15:20:02
#dpkg -S asterisk.h
asterisk-dev: /usr/include/asterisk.h
asterisk-dev: /usr/include/asterisk/asterisk.h
15:22:41
#apt-get remove asterisk-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  asterisk-dev
0 upgraded, 0 newly installed, 1 to remove and 6 not upgraded.
After this operation, 2,131 kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 146479 files and directories currently installed.)
Removing asterisk-dev ...
dpkg: warning: while removing asterisk-dev, directory '/usr/include/asterisk' not empty so not removed
15:23:12
#ls -al /usr/include/as
asm-generic/ assert.h     asterisk/
15:23:12
#ls -al /usr/include/asterisk/
total 132
drwxr-xr-x  2 root root  4096 Apr 26 16:23 .
drwxr-xr-x 43 root root  4096 Apr 26 16:23 ..
-rw-r--r--  1 root root  1103 Apr 26 15:23 celt.h
-rw-r--r--  1 root root  1052 Apr 26 15:23 channel_internal.h
-rw-r--r--  1 root root 29161 Apr 26 15:23 config_options.h
-rw-r--r--  1 root root 10575 Apr 26 15:23 format_cap.h
-rw-r--r--  1 root root 17538 Apr 26 15:23 format.h
-rw-r--r--  1 root root  4525 Apr 26 15:23 format_pref.h
-rw-r--r--  1 root root  6884 Apr 26 15:23 http_websocket.h
-rw-r--r--  1 root root  7784 Apr 26 15:23 message.h
-rw-r--r--  1 root root  4836 Apr 26 15:23 presencestate.h
-rw-r--r--  1 root root  1450 Apr 26 15:23 silk.h
-rw-r--r--  1 root root  2081 Apr 26 15:23 sip_api.h
-rw-r--r--  1 root root  8398 Apr 26 15:23 xmpp.h

Файлы

  • /etc/asterisk/res_ldap.conf
  • /etc/asterisk/res_ldap.conf
    >
    ;
    ; Configuration file for res_config_ldap
    ;
    ; Realtime configuration
    ; ----------------------
    ; In order to use this module, you start
    ; in extconfig.conf with a configuration like this:
    ;
    ;       sippeers = ldap,"dc=myDomain,dc=myDomainExt",sip
    ;       extensions = ldap,"dc=myDomain,dc=myDomainExt",extensions
    ;       sip.conf = ldap,"dc=myDomain,dc=myDomainExt",config
    ;
    ; In the case of LDAP the last keyword in each line above specifies
    ; a section in this file.
    ; TLS support
    ; -----------
    ; Note that you can configure an ldaps: url here to get TLS support.
    ; Detailed configuration of certificates and supported CAs is done in your
    ; ldap.conf file for OpenLDAP clients on your system.
    ; This requires that you have OpenLDAP libraries compiled with TLS support
    ; *********************************************************************************
    ; NOTE: res_ldap.conf should be chmod 600 because it contains the plain-text LDAP
    ;       password to an account with WRITE access to the asterisk configuration.
    ; *********************************************************************************
    [_general]
    ;
    ; Specify one of either host and port OR url.  URL is preferred, as you can
    ; use more options.
    ;host=192.168.1.1                    ; LDAP host
    ;port=389
    ;url=ldap://ldap3.mydomain.com:3890
    ;protocol=3                          ; Version of the LDAP protocol to use; default is 3.
    ;basedn=dc=example,dc=tld            ; Base DN
    ;user=cn=asterisk,dc=example,dc=tld  ; Bind DN
    ;pass=MyPassword                     ; Bind password
    ; Configuration Table
    [config]
    ;
    ; additionalFilter - This specifies an additional set of criteria to be used
    ; when querying the LDAP server.
    ;
    additionalFilter=(objectClass=AstConfig)
    ;
    ; Attributes mapping (asterisk variable name = ldap attribute name)
    ; When Asterisk requests the variable by the name of the value on the left,
    ; this module will look up the attribute listed on the right.
    ;
    filename = AstConfigFilename
    category = AstConfigCategory
    variable_name = AstConfigVariableName
    variable_value = AstConfigVariableValue
    cat_metric = AstConfigCategoryMetric
    commented = AstConfigCommented
    ;
    ; Extensions Table
    ;
    [extensions]
    context  =  AstExtensionContext
    exten  =  AstExtensionExten
    priority = AstExtensionPriority
    app = AstExtensionApplication
    appdata = AstExtensionApplicationData
    additionalFilter=(objectClass=AstExtension)
    ;
    ; Sip Users Table
    ;
    [sip]
    name = cn       ; We use the "cn" as the default value for name on the line above
                    ; because objectClass=AsteriskSIPUser does not include a uid as an allowed field
                    ; If your entry combines other objectClasses and uid is available, you may
                    ; prefer to change the line to be name = uid, especially if your LDAP entries
                    ; contain spaces in the cn field.
                    ; You may also find it appropriate to use something completely different.
                    ; This is possible by changing the line above to name = AstAccountName (or whatever you
                    ; prefer).
                    ;
    amaflags = AstAccountAMAFlags
    callgroup = AstAccountCallGroup
    callerid = AstAccountCallerID
    directmedia = AstAccountDirectMedia
    context = AstAccountContext
    dtmfmode = AstAccountDTMFMode
    fromuser = AstAccountFromUser
    fromdomain = AstAccountFromDomain
    fullcontact = AstAccountFullContact
    fullcontact = gecos
    host = AstAccountHost
    insecure = AstAccountInsecure
    mailbox = AstAccountMailbox
    md5secret = AstAccountRealmedPassword           ; Must be an MD5 hash. Field value can start with
                                                    ; {md5} but it is not required.
                                                    ; Generate the password via the md5sum command, e.g.
                                                    ; echo "my_password" | md5sum
    nat = AstAccountNAT
    deny = AstAccountDeny
    permit = AstAccountPermit
    pickupgroup = AstAccountPickupGroup
    port = AstAccountPort
    qualify = AstAccountQualify
    restrictcid = AstAccountRestrictCID
    rtptimeout = AstAccountRTPTimeout
    rtpholdtimeout = AstAccountRTPHoldTimeout
    type = AstAccountType
    disallow = AstAccountDisallowedCodec
    allow = AstAccountAllowedCodec
    MusicOnHold = AstAccountMusicOnHold
    regseconds = AstAccountExpirationTimestamp
    regcontext = AstAccountRegistrationContext
    regexten = AstAccountRegistrationExten
    CanCallForward = AstAccountCanCallForward
    ipaddr = AstAccountIPAddress
    defaultuser = AstAccountDefaultUser
    regserver = AstAccountRegistrationServer
    lastms = AstAccountLastQualifyMilliseconds
    additionalFilter=(objectClass=AsteriskSIPUser)
    ;
    ; IAX Users Table
    ;
    [iax]
    amaflags = AstAccountAMAFlags
    callerid = AstAccountCallerID
    context = AstAccountContext
    fullcontact = AstAccountFullContact
    fullcontact = gecos
    host = AstAccountHost
    mailbox = AstAccountMailbox
    md5secret = AstAccountRealmedPassword           ; Must be an MD5 hash. Field value can start with
                                                    ; {md5} but it is not required.
                                                    ; Generate the password via the md5sum command, e.g.
                                                    ; echo "my_password" | md5sum
    deny = AstAccountDeny
    permit = AstAccountPermit
    port = AstAccountPort
    qualify = AstAccountQualify
    type = AstAccountType
    disallow = AstAccountDisallowedCodec
    allow = AstAccountAllowedCodec
    regseconds = AstAccountExpirationTimestamp
    regcontext = AstAccountRegistrationContext
    regexten = AstAccountRegistrationExten
    notransfer = AstAccountNoTransfer
    lastms = AstAccountLastQualifyMilliseconds
    additionalFilter=(objectClass=AstAccountIAX)
    ;
    ; A Test Family
    ;
    [testfamily]
    MyUSERID = uid
    additionalFilter=(objectClass=*)
    [accounts]
    amaflags = AstAccountAMAFlags
    callgroup = AstAccountCallGroup
    callerid = AstAccountCallerID
    directmedia = AstAccountDirectMedia
    context = AstAccountContext
    dtmfmode = AstAccountDTMFMode
    fromuser = AstAccountFromUser
    fromdomain = AstAccountFromDomain
    fullcontact = AstAccountFullContact
    fullcontact = gecos
    host = AstAccountHost
    insecure = AstAccountInsecure
    mailbox = AstAccountMailbox
    md5secret = AstAccountRealmedPassword           ; Must be an MD5 hash. Field value can start with
                                                    ; {md5} but it is not required.
                                                    ; Generate the password via the md5sum command, e.g.
                                                    ; echo "my_password" | md5sum
    nat = AstAccountNAT
    deny = AstAccountDeny
    permit = AstAccountPermit
    pickupgroup = AstAccountPickupGroup
    port = AstAccountPort
    qualify = AstAccountQualify
    restrictcid = AstAccountRestrictCID
    rtptimeout = AstAccountRTPTimeout
    rtpholdtimeout = AstAccountRTPHoldTimeout
    type = AstAccountType
    disallow = AstAccountDisallowedCodec
    allow = AstAccountAllowedCodec
    MusicOnHold = AstAccountMusicOnHold
    regseconds = AstAccountExpirationTimestamp
    regcontext = AstAccountRegistrationContext
    regexten = AstAccountRegistrationExten
    CanCallForward = AstAccountCanCallForward
    additionalFilter=(objectClass=AstAccount)
    

    Статистика

    Время первой команды журнала13:50:30 2014- 4-26
    Время последней команды журнала15:23:12 2014- 4-26
    Количество командных строк в журнале101
    Процент команд с ненулевым кодом завершения, %19.80
    Процент синтаксически неверно набранных команд, % 0.00
    Суммарное время работы с терминалом *, час 1.55
    Количество командных строк в единицу времени, команда/мин 1.09
    Частота использования команд
    configure33|=============================| 29.73%
    make19|=================| 17.12%
    ls15|=============| 13.51%
    apt-cache11|=========| 9.91%
    less6|=====| 5.41%
    cd4|===| 3.60%
    apt-get3|==| 2.70%
    grep3|==| 2.70%
    cat2|=| 1.80%
    dpkg1|| 0.90%
    cache1|| 0.90%
    more1|| 0.90%
    asterisk1|| 0.90%
    m-a1|| 0.90%
    dpkg-query1|| 0.90%
    apt-1|| 0.90%
    сз1|| 0.90%
    apt-c1|| 0.90%
    ды1|| 0.90%
    ьфmake1|| 0.90%
    vi1|| 0.90%
    find1|| 0.90%
    apt-ftparchive1|| 0.90%
    exit1|| 0.90%
    ____
    *) Интервалы неактивности длительностью 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$