/l3/users/2014-11-nt-voip/nt-voip/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 |
|
#./configure
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 ... checking for initscr in -lncurses... yes checking for curses.h... (cached) yes checking for uuid_generate_random in -luuid... yes checking uuid/uuid.h usability... yes checking uuid/uuid.h presence... yes checking for uuid/uuid.h... yes checking for uuid_generate_random in -le2fs-uuid... no checking for uuid_generate_random... no checking for json_dumps in -ljansson... no configure: error: *** JSON support not found (this typically means the libjansson development package is missing) |
#apt-cache search libjansson
libjansson-dbg - C library for encoding, decoding and manipulating JSON data (debug) libjansson-dev - C library for encoding, decoding and manipulating JSON data (dev) libjansson-doc - C library for encoding, decoding and manipulating JSON data (doc) libjansson4 - C library for encoding, decoding and manipulating JSON data |
#apt-get install libjansson-dev
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: libjansson4 The following NEW packages will be installed: libjansson-dev libjansson4 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 66.2 kB of archives. After this operation, 233 kB of additional disk space will be used. Do you want to continue [Y/n]? Get:1 http://127.0.0.1/debian/ wheezy/main libjansson4 amd64 2.3.1-2 [31.6 kB] Get:2 http://127.0.0.1/debian/ wheezy/main libjansson-dev amd64 2.3.1-2 [34.6 kB] Fetched 66.2 kB in 0s (3,445 kB/s) Selecting previously unselected package libjansson4:amd64. (Reading database ... 146055 files and directories currently installed.) Unpacking libjansson4:amd64 (from .../libjansson4_2.3.1-2_amd64.deb) ... Selecting previously unselected package libjansson-dev:amd64. Unpacking libjansson-dev:amd64 (from .../libjansson-dev_2.3.1-2_amd64.deb) ... Setting up libjansson4:amd64 (2.3.1-2) ... Setting up libjansson-dev:amd64 (2.3.1-2) ... |
#./configure
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 ... checking for uuid/uuid.h... yes checking for uuid_generate_random in -le2fs-uuid... no checking for uuid_generate_random... no checking for json_dumps in -ljansson... yes checking jansson.h usability... yes checking jansson.h presence... yes checking for jansson.h... yes checking for xml2-config... no configure: *** The Asterisk menuselect tool requires the 'libxml2' development package. configure: *** Please install the 'libxml2' development package. |
#apt-cache search libxml2-dev
libglobus-common-dev - Globus Toolkit - Common Library Development Files libxml2-dev - Development files for the GNOME XML library |
#apt-get install libxml2-dev
Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: libxml2-dev : Depends: libxml2 (= 2.8.0+dfsg1-7+wheezy1) but 2.8.0+dfsg1-7+wheezy2 is to be installed E: Unable to correct problems, you have held broken packages. |
#apt-get install libxml2-dev libxml2
Reading package lists... Done Building dependency tree Reading state information... Done libxml2 is already the newest version. libxml2 set to manually installed. Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: libxml2-dev : Depends: libxml2 (= 2.8.0+dfsg1-7+wheezy1) but 2.8.0+dfsg1-7+wheezy2 is to be installed E: Unable to correct problems, you have held broken packages. |
#vim /etc/apt/sources.list
--- /tmp/l3-saved-1067.15043.22662 2014-11-28 09:51:19.019178891 -0500 +++ /etc/apt/sources.list 2014-11-28 09:51:31.979179282 -0500 @@ -9,9 +9,9 @@ ## deb http://ftp.ua.debian.org/debian/ wheezy main ## deb-src http://ftp.ua.debian.org/debian/ wheezy main ## -## deb http://security.debian.org/ wheezy/updates main +deb http://security.debian.org/ wheezy/updates main ## deb-src http://security.debian.org/ wheezy/updates main ## ## # wheezy-updates, previously known as 'volatile' -## deb http://ftp.ua.debian.org/debian/ wheezy-updates main +deb http://ftp.ua.debian.org/debian/ wheezy-updates main ## deb-src http://ftp.ua.debian.org/debian/ wheezy-updates main |
#apt-get update
Hit http://127.0.0.1 wheezy Release.gpg Get:1 http://ftp.ua.debian.org wheezy-updates Release.gpg [836 B] Get:2 http://ftp.ua.debian.org wheezy-updates Release [124 kB] Hit http://127.0.0.1 wheezy Release Get:3 http://security.debian.org wheezy/updates Release.gpg [836 B] Get:4 http://security.debian.org wheezy/updates Release [102 kB] Get:5 http://ftp.ua.debian.org wheezy-updates/main amd64 Packages [2,738 B] Get:6 http://ftp.ua.debian.org wheezy-updates/main Translation-en [1,940 B] Hit http://127.0.0.1 wheezy/main Translation-en Get:7 http://security.debian.org wheezy/updates/main amd64 Packages [222 kB] Hit http://127.0.0.1 wheezy/main amd64 Packages Get:8 http://security.debian.org wheezy/updates/main Translation-en [126 kB] Fetched 580 kB in 0s (582 kB/s) Reading package lists... Done |
#apt-get install libxml2-dev
Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: libxml2-dev 0 upgraded, 1 newly installed, 0 to remove and 16 not upgraded. Need to get 901 kB of archives. After this operation, 2,798 kB of additional disk space will be used. Get:1 http://security.debian.org/ wheezy/updates/main libxml2-dev amd64 2.8.0+dfsg1-7+wheezy2 [901 kB] Fetched 901 kB in 0s (1,443 kB/s) Selecting previously unselected package libxml2-dev:amd64. (Reading database ... 146073 files and directories currently installed.) Unpacking libxml2-dev:amd64 (from .../libxml2-dev_2.8.0+dfsg1-7+wheezy2_amd64.deb) ... Processing triggers for man-db ... Setting up libxml2-dev:amd64 (2.8.0+dfsg1-7+wheezy2) ... |
#./configureap
l3script: ./configureap: No such file or directory |
#./configure
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 ... checking for rc_read_config in -lradiusclient-ng... no checking for cpg_join in -lcpg... no checking for corosync_cfg_state_track in -lcfg... no checking for speex_encode in -lspeex... no checking for speex_preprocess_ctl in -lspeex... no checking for speex_preprocess_ctl in -lspeexdsp... no checking for sqlite_exec in -lsqlite... no checking for sqlite3_open in -lsqlite3... no configure: WARNING: *** Asterisk now uses SQLite3 for the internal Asterisk database. configure: WARNING: *** Please install the SQLite3 development package. |
#apt-get install libsqlite3-dev
Reading package lists... Done Building dependency tree Reading state information... Done Suggested packages: sqlite3-doc The following NEW packages will be installed: libsqlite3-dev 0 upgraded, 1 newly installed, 0 to remove and 16 not upgraded. Need to get 578 kB of archives. After this operation, 1,382 kB of additional disk space will be used. Get:1 http://127.0.0.1/debian/ wheezy/main libsqlite3-dev amd64 3.7.13-1+deb7u1 [578 kB] Fetched 578 kB in 0s (15.2 MB/s) Selecting previously unselected package libsqlite3-dev. (Reading database ... 146137 files and directories currently installed.) Unpacking libsqlite3-dev (from .../libsqlite3-dev_3.7.13-1+deb7u1_amd64.deb) ... Setting up libsqlite3-dev (3.7.13-1+deb7u1) ... |
#./configure
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 : |
#make menuconfig
************************************************** Asterisk Module and Build Option Selection ************************************************** Press 'h' for help. [*] res_ari_model [*] res_ari_playbacks [*] res_ari_recordings [*] res_ari_sounds [*] res_calendar XXX res_calendar_caldav ... XXX res_crypto XXX res_curl [*] res_fax [*] res_format_attr_celt [*] res_format_attr_h263 ... More ... CELT Format Attribute Module Depends on: curl(E) Conflicts with: app_fax(M) Support Level: core |
#make menuconfig
Press 'h' for help. Add-ons (See README-addons.txt) ---> Applications Bridging Modules Call Detail Recording Channel Event Logging Channel Drivers Codec Translators Format Interpreters Dialplan Functions ... Compiler Flags Voicemail Build Options Utilities AGI Samples Module Embedding Core Sound Packages Music On Hold File Packages Extras Sound Packages menuselect changes NOT saved! make[1]: Leaving directory `/usr/src/asterisk-13.0.1' |
#make menuconfig
************************************************** Asterisk Module and Build Option Selection ************************************************** Press 'h' for help. [*] res_ari_mailboxes [*] res_ari_model [*] res_ari_playbacks [*] res_ari_recordings [*] res_ari_sounds [*] res_calendar ... [*] res_convert XXX res_crypto XXX res_curl [*] res_fax [*] res_format_attr_celt ... More ... CELT Format Attribute Module Depends on: curl(E) Conflicts with: app_fax(M) Support Level: core |
#apt-cache search libopenssl dev
|
#apt-cache search openssl dev
cryptmount - Management of encrypted file systems libcurl4-openssl-dev - development files and documentation for libcurl (OpenSSL flavour) libengine-pkcs11-openssl - OpenSSL engine for PKCS#11 modules libglobus-common-dev - Globus Toolkit - Common Library Development Files globus-gsi-openssl-error-dbg - Globus Toolkit - Globus OpenSSL Error Handling Debug Symbols libglobus-gsi-openssl-error-dev - Globus Toolkit - Globus OpenSSL Error Handling Development Files libglobus-gsi-openssl-error-doc - Globus Toolkit - Globus OpenSSL Error Handling Documentation Files libglobus-gsi-openssl-error0 - Globus Toolkit - Globus OpenSSL Error Handling globus-openssl-module-dbg - Globus Toolkit - Globus OpenSSL Module Wrapper Debug Symbols globus-openssl-module-progs - Globus Toolkit - Globus OpenSSL Module Wrapper Programs ... libpathfinder-dev - Development files for pathfinder libapache2-mod-php5 - server-side, HTML-embedded scripting language (Apache 2 module) libapache2-mod-php5filter - server-side, HTML-embedded scripting language (apache 2 filter module) libphp5-embed - HTML-embedded scripting language (Embedded SAPI library) php5-cgi - server-side, HTML-embedded scripting language (CGI binary) php5-cli - command-line interpreter for the php5 scripting language php5-fpm - server-side, HTML-embedded scripting language (FPM-CGI binary) libpion-common-dev - lightweight HTTP interface library - common development files libpion-net-dev - lightweight HTTP interface library - development files r-cran-digest - GNU R package for 'hash digest' of R data structures |
#apt-get install libssl-dev
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: libssl-doc zlib1g-dev The following NEW packages will be installed: libssl-dev libssl-doc zlib1g-dev 0 upgraded, 3 newly installed, 0 to remove and 16 not upgraded. Need to get 3,168 kB of archives. After this operation, 8,364 kB of additional disk space will be used. ... (Reading database ... 146148 files and directories currently installed.) Unpacking zlib1g-dev:amd64 (from .../zlib1g-dev_1%3a1.2.7.dfsg-13_amd64.deb) ... Selecting previously unselected package libssl-dev. Unpacking libssl-dev (from .../libssl-dev_1.0.1e-2+deb7u13_amd64.deb) ... Selecting previously unselected package libssl-doc. Unpacking libssl-doc (from .../libssl-doc_1.0.1e-2+deb7u13_all.deb) ... Processing triggers for man-db ... Setting up zlib1g-dev:amd64 (1:1.2.7.dfsg-13) ... Setting up libssl-dev (1.0.1e-2+deb7u13) ... Setting up libssl-doc (1.0.1e-2+deb7u13) ... |
#./configure
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 : |
#make menuconfig
Press 'h' for help. Add-ons (See README-addons.txt) Applications Bridging Modules Call Detail Recording Channel Event Logging ---> Channel Drivers Codec Translators Format Interpreters Dialplan Functions ... Compiler Flags Voicemail Build Options Utilities AGI Samples Module Embedding Core Sound Packages Music On Hold File Packages Extras Sound Packages menuselect changes NOT saved! make[1]: Leaving directory `/usr/src/asterisk-13.0.1' |
#apt-cache search libdahdi
|
#apt-cache search dahdi-dev
|
#apt-cache search tonezone
libtonezone-dev - tonezone library (development) libtonezone2.0 - tonezone library (runtime) |
#apt-get install libtonezone-dev
Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: libtonezone-dev 0 upgraded, 1 newly installed, 0 to remove and 16 not upgraded. Need to get 50.2 kB of archives. After this operation, 299 kB of additional disk space will be used. Get:1 http://127.0.0.1/debian/ wheezy/main libtonezone-dev amd64 1:2.5.0.1-2 [50.2 kB] Fetched 50.2 kB in 0s (454 kB/s) Selecting previously unselected package libtonezone-dev. (Reading database ... 147586 files and directories currently installed.) Unpacking libtonezone-dev (from .../libtonezone-dev_1%3a2.5.0.1-2_amd64.deb) ... Setting up libtonezone-dev (1:2.5.0.1-2) ... |
#apt-cache search libpri dev
libpri-dev - Primary Rate ISDN specification development files libprinterconf-dev - Printer autodetection library libprintsys-dev - printcap parser, helper for gnulpr's printfilters, dev files libprison-dev - barcode API for Qt - development files |
#apt-get install libpri-dev
Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: libpri-dev 0 upgraded, 1 newly installed, 0 to remove and 16 not upgraded. Need to get 290 kB of archives. After this operation, 987 kB of additional disk space will be used. Get:1 http://127.0.0.1/debian/ wheezy/main libpri-dev amd64 1.4.12-2 [290 kB] Fetched 290 kB in 0s (1,431 kB/s) Selecting previously unselected package libpri-dev. (Reading database ... 147593 files and directories currently installed.) Unpacking libpri-dev (from .../libpri-dev_1.4.12-2_amd64.deb) ... Setting up libpri-dev (1.4.12-2) ... |
#./configure
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 : |
#make menuconfig
************************************************** Asterisk Module and Build Option Selection ************************************************** Press 'h' for help. --- Core --- [*] res_adsi [*] res_agi [*] res_ari [*] res_ari_applications [*] res_ari_asterisk ... [*] res_ari_recordings [*] res_ari_sounds [*] res_calendar XXX res_calendar_caldav XXX res_calendar_ews XXX res_calendar_exchange ... More ... Asterisk MS Exchange Calendar Integration Depends on: neon29(E) Support Level: core |
#apt-cache search srtp
libsrtp0 - Secure RTP (SRTP) and UST Reference Implementations - shared library libsrtp0-dev - Secure RTP (SRTP) and UST Reference Implementations - development files srtp-docs - Secure RTP (SRTP) and UST Reference Implementations - documentation srtp-utils - Secure RTP (SRTP) and UST Reference Implementations - utilities uanytun - tiny implementation of the secure anycast tunneling protocol |
#apt-get install libsrtp0-dev
Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: libsrtp0-dev 0 upgraded, 1 newly installed, 0 to remove and 16 not upgraded. Need to get 117 kB of archives. After this operation, 390 kB of additional disk space will be used. Get:1 http://127.0.0.1/debian/ wheezy/main libsrtp0-dev amd64 1.4.4+20100615~dfsg-2+deb7u1 [117 kB] Fetched 117 kB in 0s (5,474 kB/s) Selecting previously unselected package libsrtp0-dev. (Reading database ... 147601 files and directories currently installed.) Unpacking libsrtp0-dev (from .../libsrtp0-dev_1.4.4+20100615~dfsg-2+deb7u1_amd64.deb) ... Setting up libsrtp0-dev (1.4.4+20100615~dfsg-2+deb7u1) ... |
#./configure
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 : |
#make menuconfig
************************************************** Asterisk Module and Build Option Selection ************************************************** Press 'h' for help. --- Core --- [*] res_adsi [*] res_agi [*] res_ari [*] res_ari_applications [*] res_ari_asterisk ... [*] res_ari_recordings [*] res_ari_sounds [*] res_calendar XXX res_calendar_caldav XXX res_calendar_ews XXX res_calendar_exchange ... More ... Asterisk MS Exchange Calendar Integration Depends on: neon29(E) Support Level: core |
## esc s
|
## сборка: j4
|
#make -j4 # пÑивÑÑка 32 Ð:)
CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" makeopts make[1]: Entering directory `/usr/src/asterisk-13.0.1/menuselect' make[1]: `makeopts' is up to date. make[1]: Leaving directory `/usr/src/asterisk-13.0.1/menuselect' Building Documentation For: Generating embedded module rules ... channels pbx apps codecs formats cdr cel bridges funcs tests main [CC] astcanary.c -> astcanary.o [CC] chan_bridge_media.c -> chan_bridge_media.o [CC] pbx_ael.c -> pbx_ael.o res [CC] astdb2sqlite3.c -> astdb2sqlite3.o [CC] chan_dahdi.c -> chan_dahdi.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 astobj2_container.o astobj2_hash.o astobj2_rbtree.o audiohook.o autochan.o autoservice.o backtrace.o bridge.o bridge_after.o bridge_basic.o bridge_channel.o bridge_roles.o bucket.o callerid.o ccss.o cdr.o cel.o channel.o channel_internal_api.o chanvars.o cli.o codec.o codec_builtin.o +--------- Asterisk Build Complete ---------+ + Asterisk has successfully been built, and + + can be installed by running: + + + + make install + +-------------------------------------------+ |
#cp -R /etc/asterisk /etc/asterisk.bak
|
#cp /etc/init.d/asterisk /tmp/
|
## на всякий случай
|
## всё астериска нет
|
#asterisk
l3script: /usr/sbin/asterisk: No such file or directory |
## Ðно конÑиги должнÑв оÑÑаÑÑÑÑ
|
#ls -ld /etc/asterisk
drwxr-xr-x 3 asterisk asterisk 4096 Nov 28 08:39 /etc/asterisk |
##make install
|
## инÑÑаллиÑÑем ÑвÑежий аÑÑеÑиÑк
|
## инсталлируемmake install
CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" makeopts make[1]: Entering directory `/usr/src/asterisk-13.0.1/menuselect' make[1]: `makeopts' is up to date. make[1]: Leaving directory `/usr/src/asterisk-13.0.1/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... ... +----------------- or ---------------------+ + + + You can go ahead and install the asterisk + + program documentation now or later run: + + + + make progdocs + + + + **Note** This requires that you have + + doxygen installed on your local system + +-------------------------------------------+ |
## инсталлируем/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#asterisk -rvvv
Asterisk 13.0.1, Copyright (C) 1999 - 2014, 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 13.0.1 currently running on debian0 (pid = 5216) [Nov 28 10:30:51] NOTICE[5216]: db.c:249 db_open: Database conversion succeeded! == Manager registered action DBGet ... debian0*CLI> core show version Asterisk 13.0.1 built by root @ debian0 on a x86_64 running Linux on 2014-11-28 15:20:14 UTC [Nov 28 10:30:59] NOTICE[5284]: chan_sip.c:23776 handle_response_peerpoke: Peer 'london' is now Reachable. (1ms / 2000ms) debian0*CLI> debian0*CLI> debian0*CLI> debian0*CLI> debian0*CLI> quit Asterisk cleanly ending (0). Executing last minute cleanups |
#all 'asterisk -rx "core show version"'
1: Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?) 2: Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?) 3: Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?) 4: Asterisk 13.0.1 built by root @ debian4 on a x86_64 running Linux on 2014-11-28 15:21:01 UTC 5: Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?) 6: Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?) 7: Asterisk 13.0.1 built by root @ debian7 on a x86_64 running Linux on 2014-11-28 15:20:23 UTC 8: Asterisk 13.0.1 built by root @ debian8 on a x86_64 running Linux on 2014-11-28 15:20:19 UTC |
#_ установка астериска из исходников
|
#_ +7 +8 +4
+7 +8 +4 |
#all 'asterisk -rx "core show version"' | ff
1: Asterisk 13.0.1 built by root @ debian1 on a x86_64 running Linux on 2014-11-28 15:20:12 UTC 2: Asterisk 13.0.1 built by root @ debian2 on a x86_64 running Linux on 2014-11-28 15:20:11 UTC 3: Asterisk 13.0.1 built by root @ debian3 on a x86_64 running Linux on 2014-11-28 15:24:30 UTC 5: Asterisk 13.0.1 built by root @ debian5 on a x86_64 running Linux on 2014-11-28 15:20:26 UTC 6: Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?) |
#all 'asterisk -rx "core show version"' | ff:
l3script: ff:: command not found |
#all 'asterisk -rx "core show version"' | ff
1: Asterisk 13.0.1 built by root @ debian1 on a x86_64 running Linux on 2014-11-28 15:20:12 UTC 2: Asterisk 13.0.1 built by root @ debian2 on a x86_64 running Linux on 2014-11-28 15:20:11 UTC 3: Asterisk 13.0.1 built by root @ debian3 on a x86_64 running Linux on 2014-11-28 15:24:30 UTC 5: Asterisk 13.0.1 built by root @ debian5 on a x86_64 running Linux on 2014-11-28 15:20:26 UTC 6: Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?) |
#_ +1 +3 +5
+1 +3 +5 |
#all 'asterisk -rx "core show version"' | ff
2: Asterisk 13.0.1 built by root @ debian2 on a x86_64 running Linux on 2014-11-28 15:20:11 UTC 6: Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?) |
#all 'asterisk -rx "core show version"' | ff
6: Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?) |
#all 'asterisk -rx "sip show peers"'
1: Name/username Host Dyn Forcerport Comedia ACL Port Status Description 1: 1101/1101 192.168.10.100 D Auto (No) No 5060 OK (21 ms) 1: 1102/1102 192.168.10.101 D Auto (No) No 41622 OK (6 ms) 1: komsomolsk/kiev 192.168.20.1 D Auto (No) No 5060 OK (1 ms) 1: minsk/kiev 192.168.30.1 D Auto (No) No 5060 OK (1 ms) 1: ny/kiev 192.168.40.1 D Auto (No) No 5060 OK (1 ms) 1: 5 sip peers [Monitored: 5 online, 0 offline Unmonitored: 0 online, 0 offline] 2: Name/username Host Dyn Forcerport Comedia ACL Port Status Description 2: 1201/1201 192.168.20.100 D Auto (No) No 5060 OK (18 ms) 2: 1202 (Unspecified) D Auto (No) No 0 UNKNOWN ... 7: london/liverpool 192.168.80.1 D Auto (No) No 5060 OK (1 ms) 7: 4 sip peers [Monitored: 3 online, 1 offline Unmonitored: 0 online, 0 offline] 8: Name/username Host Dyn Forcerport Comedia ACL Port Status Description 8: 3201/3201 192.168.80.100 D Auto (No) No 5060 OK (22 ms) 8: 3202/3202 192.168.80.101 D Auto (Yes) No 57726 OK (2 ms) 8: atlanta/london 192.168.50.1 D Auto (No) No 5060 OK (1 ms) 8: edinburgh/london 192.168.12.254 D Auto (No) No 5060 OK (1 ms) 8: liverpool/london 192.168.70.1 D Auto (No) No 5060 OK (1 ms) 8: ny/london 192.168.40.1 D Auto (No) No 5060 OK (1 ms) 8: 6 sip peers [Monitored: 6 online, 0 offline Unmonitored: 0 online, 0 offline] |
#ssh m5 asterisk -rx 'pri show spans'
No such command 'pri' (type 'core show help pri' for other possible commands) |
#asterisk -rvvvv
Asterisk 13.0.1, Copyright (C) 1999 - 2014, 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 13.0.1 currently running on debian5 (pid = 31708) debian5*CLI> pr presencestate pri debian5*CLI> pr presencestate pri debian5*CLI> pri show spans PRI span 1/0: Up, Active debian5*CLI> quit Asterisk cleanly ending (0). Executing last minute cleanups |
#exit
Connection to m5 closed. |
#_ last
установка астериска из исходников 1:OK 2:OK 3:OK 4:OK 5:OK 6:-- 7:OK 8:OK |
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-1067.24724.17186 2014-11-28 10:37:29.923262618 -0500 +++ /etc/asterisk/sip.conf 2014-11-28 10:37:35.939262801 -0500 @@ -1,6 +1,7 @@ [general] context=default qualify=yes +encryption=yes ; ещё вы должны добавить регистрацию: |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-1067.5409.19684 2014-11-28 10:38:57.079265253 -0500 +++ /etc/asterisk/extensions.conf 2014-11-28 10:40:23.523267862 -0500 @@ -175,6 +175,8 @@ ; 5 секунд = время за которое нужно поднять трубку ; для того чтобы разрешить трансфер нужно указать tT +exten => _33XX,n,NoOp(secure_signaling = ${CHANNEL(secure_signaling)}) +exten => _33XX,n,NoOp(secure_media = ${CHANNEL(secure_media)}) exten => _33XX,n,Dial(SIP/${EXTEN},5,tT) ; включить голосовую почту ящик ${EXTEN} |
#ssh m8
Linux debian8 3.2.0-4-amd64 #1 SMP Debian 3.2.63-2+deb7u1 x86_64 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Fri Nov 28 14:01:24 2014 from 192.168.12.254 l3-agent is already running: pid=3617; pidfile=/root/.lilalo/l3-agent.pid |
#asterisk -rvvvv
Asterisk 13.0.1, Copyright (C) 1999 - 2014, 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 13.0.1 currently running on debian8 (pid = 8137) -- Remote UNIX connection Reloading SIP ... -- Executing [3201@gr1:2] NoOp("SIP/3202-00000595", "secure_media = ") in new stack -- Executing [3201@gr1:3] Set("SIP/3202-00000595", "CALLFILENAME=3201-3202-"2014-11-28-17:45:30"") in new stack -- Executing [3201@gr1:4] Monitor("SIP/3202-00000595", "wav,3201-3202-"2014-11-28-17:45:30",m") in new stack -- Executing [3201@gr1:5] Dial("SIP/3202-00000595", "SIP/3201,20,tTkK") in new stack == Using SIP RTP CoS mark 5 -- Called SIP/3201 -- SIP/3201-00000596 is ringing debian8*CLI> quit Asterisk cleanly ending (0). Executing last minute cleanups |
#vim /etc/asterisk/extensions.conf
|
#exit
exit Connection to m8 closed. |
#apt-cache search carp
createrepo - generates the metadata necessary for a RPM package repository libanyevent-callback-perl - callback aggregator for AnyEvent watchers libcarp-always-perl - Perl module to make warn and die noisy with stack backtraces libcarp-assert-more-perl - Convenience wrappers for libcarp-assert-perl libcarp-assert-perl - Carp::Assert - executable comments for perl libcarp-clan-perl - Perl enhancement to Carp error logging facilities libcarp-clan-share-perl - Perl module enabling sharing of Carp::Clan settings libcarp-datum-perl - Debugging And Tracing Ultimate Module (for perl) libclass-throwable-perl - A minimal lightweight exception class libdevel-partialdump-perl - Perl module to dump subroutine parameters concisely liblist-compare-perl - Perl module for comparing elements of two or more lists libmoosex-strictconstructor-perl - Make your object constructors blow up on unknown attributes libsub-name-perl - module for assigning a new name to referenced sub libtest-carp-perl - module to test your code for calls to Carp functions libtoolkit-perl - Keep your handy modules organized roundup - an issue-tracking system ruby-redcarpet - Fast, safe and extensible Markdown to (X)HTML parser for Ruby ucarp - user-space replacement to VRRP -- automatic IP fail-over |
#apt-cache search rrp
keepalived - Failover and monitoring daemon for LVS clusters ucarp - user-space replacement to VRRP -- automatic IP fail-over vrrpd - Virtual Router Redundancy Protocol user-space implementation |
#apt-cache search opensips
|
#apt-cache search opensip
|
## ÑепÐозиÑоÑий Ð´Ð»Ñ Ð´ÐµÐ±Ð¸Ð°Ð½: apt.opensips.org
|
Время первой команды журнала | 15:47:23 2014-11-28 | |||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 17:00:20 2014-11-28 | |||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 74 | |||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 6.76 | |||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 5.41 | |||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.22 | |||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.01 | |||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.
Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
$ l s-l bash: l: command not found |
Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
$ test 5 -lt 4 |
Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
$ find / -name abc find: /home/devi-orig/.gnome2: Keine Berechtigung find: /home/devi-orig/.gnome2_private: Keine Berechtigung find: /home/devi-orig/.nautilus/metafiles: Keine Berechtigung find: /home/devi-orig/.metacity: Keine Berechtigung find: /home/devi-orig/.inkscape: Keine Berechtigung ^C |
Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
# id uid=0(root) gid=0(root) Gruppen=0(root) |
Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
$ vi ~/.bashrc
|
Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
$ patch ~/.bashrc |
Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.
Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.
Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.
Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора
Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.
Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.
Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:
$ whoami
user
$ #^ Интересно, кто я?в журнале это будет выглядеть так:
$ whoami
user
Интересно, кто я? |
Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:
$ whoami
user
$ cat > /dev/null #^ Интересно, кто я?
Программа whoami выводит имя пользователя, под которым мы зарегистрировались в системе. - Она не может ответить на вопрос о нашем назначении в этом мире.В журнале это будет выглядеть так:
$ whoami user
|
Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=
1 2 3 4Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.
LiLaLo (L3) расшифровывается как Live Lab Log.
Программа разработана для повышения эффективности обучения Unix/Linux-системам.
(c) Игорь Чубин, 2004-2008