/l3/users/2014-11-nt-voip/nt-voip/debian6/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 |
|
#apt-get inst./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-get install libxml2
Reading package lists... Done Building dependency tree Reading state information... Done libxml2 is already the newest version. libxml2 set to manually installed. The following packages were automatically installed and are no longer required: libgadu3 libmozjs24d xulrunner-24.0 Use 'apt-get autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 16 not upgraded. |
#apt-get install 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 The following packages were automatically installed and are no longer required: libgadu3 libmozjs24d xulrunner-24.0 Use 'apt-get autoremove' to remove them. 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,243 kB/s) Selecting previously unselected package libxml2-dev:amd64. (Reading database ... 148167 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) ... |
#./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
Add-ons (See README-addons.txt) Applications Bridging Modules Call Detail Recording Channel Event Logging ---> Channel Drivers Codec Translators Format Interpreters Dialplan Functions PBX Modules ... 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: *** [menuselect] Interrupt |
#make menuconfig
CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" nmenuselect make[1]: Entering directory `/aster/asterisk-13.0.1/menuselect' make[1]: Nothing to be done for `nmenuselect'. make[1]: Leaving directory `/aster/asterisk-13.0.1/menuselect' CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" gmenuselect make[1]: Entering directory `/aster/asterisk-13.0.1/menuselect' make[1]: Nothing to be done for `gmenuselect'. make[1]: Leaving directory `/aster/asterisk-13.0.1/menuselect' make[1]: Entering directory `/aster/asterisk-13.0.1' |
#apt-get install libssl
Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package libssl |
#apt-get install libssl-dev
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: libgadu3 libmozjs24d xulrunner-24.0 Use 'apt-get autoremove' to remove them. The following extra packages will be installed: libssl-doc zlib1g-dev The following NEW packages will be installed: libssl-dev libssl-doc zlib1g-dev ... (Reading database ... 148231 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 `/aster/asterisk-13.0.1' |
#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 `/aster/asterisk-13.0.1' |
#apt-get install libtonezone-dev
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: libgadu3 libmozjs24d xulrunner-24.0 Use 'apt-get autoremove' to remove them. 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://192.168.12.254/debian/ wheezy/main libtonezone-dev amd64 1:2.5.0.1-2 [50.2 kB] Fetched 50.2 kB in 0s (3,193 kB/s) Selecting previously unselected package libtonezone-dev. (Reading database ... 149669 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-get install libpri
Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package libpri |
#apt-get install libpri-dev
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: libgadu3 libmozjs24d xulrunner-24.0 Use 'apt-get autoremove' to remove them. 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://192.168.12.254/debian/ wheezy/main libpri-dev amd64 1.4.12-2 [290 kB] Fetched 290 kB in 0s (14.1 MB/s) Selecting previously unselected package libpri-dev. (Reading database ... 149676 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
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 `/aster/asterisk-13.0.1' |
#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 libsrt0-dev
Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package libsrt0-dev |
#apt-get install libsrtp0-dev
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: libgadu3 libmozjs24d xulrunner-24.0 Use 'apt-get autoremove' to remove them. 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://192.168.12.254/debian/ wheezy/main libsrtp0-dev amd64 1.4.4+20100615~dfsg-2+deb7u1 [117 kB] Fetched 117 kB in 0s (5,685 kB/s) Selecting previously unselected package libsrtp0-dev. (Reading database ... 149684 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_fax [*] res_format_attr_celt [*] res_format_attr_h263 [*] res_format_attr_h264 [*] res_format_attr_opus ... More ... CELT Format Attribute Module Depends on: curl(E) Conflicts with: app_fax(M) Support Level: core |
#./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 `/aster/asterisk-13.0.1' |
#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 `/aster/asterisk-13.0.1' |
#make menuconfig
************************************************** Press 'h' for help. --- Core --- [*] app_agent_pool [*] app_authenticate [*] app_bridgewait [*] app_cdr [*] app_celgenuserevent [*] app_channelredirect [*] app_chanspy ... [*] app_read [*] app_readexten [*] app_record [*] app_sayunixtime ... More ... Extension Macros Depends on: dahdi(E)M)ding(M) Read Variable Application Depends on: res_monitor(M)(M) ore, Replaced by: app_stack (GoSub) |
#make menuconfig
CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" makeopts make[1]: Entering directory `/aster/asterisk-13.0.1/menuselect' make[1]: `makeopts' is up to date. make[1]: Leaving directory `/aster/asterisk-13.0.1/menuselect' CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" nmenuselect make[1]: Entering directory `/aster/asterisk-13.0.1/menuselect' make[1]: Nothing to be done for `nmenuselect'. make[1]: Leaving directory `/aster/asterisk-13.0.1/menuselect' CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" gmenuselect make[1]: Entering directory `/aster/asterisk-13.0.1/menuselect' make[1]: Nothing to be done for `gmenuselect'. make[1]: Leaving directory `/aster/asterisk-13.0.1/menuselect' make[1]: Entering directory `/aster/asterisk-13.0.1' CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" makeopts make[2]: Entering directory `/aster/asterisk-13.0.1/menuselect' make[2]: `makeopts' is up to date. make[2]: Leaving directory `/aster/asterisk-13.0.1/menuselect' |
#make menuconfig
Press 'h' for help. ARE YOU SURE? --- It appears you have made some changes, and you have opted to Quit without saving these changes! Please Enter Y to exit without saving; Enter N to cancel your decision to quit, and keep working in menuselect, or Enter S to save your changes, and exit menuselect changes saved! make[1]: Leaving directory `/aster/asterisk-13.0.1' |
#make -j
CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" makeopts make[1]: Entering directory `/aster/asterisk-13.0.1/menuselect' make[1]: `makeopts' is up to date. make[1]: Leaving directory `/aster/asterisk-13.0.1/menuselect' Building Documentation For: Generating embedded module rules ... channels pbx apps codecs formats cdr cel bridges funcs tests main [CC] chan_bridge_media.c -> chan_bridge_media.o [CC] chan_dahdi.c -> chan_dahdi.o [CC] format_g719.c -> format_g719.o [CC] codec_adpcm.c -> codec_adpcm.o [CC] pbx_ael.c -> pbx_ael.o ... [LD] app_voicemail.o -> app_voicemail.so [LD] chan_dahdi.o dahdi/bridge_native_dahdi.o sig_analog.o sig_pri.o sig_ss7.o -> chan_dahdi.so [LD] chan_iax2.o iax2/codec_pref.o iax2/firmware.o iax2/format_compatibility.o iax2/parser.o iax2/provision.o -> chan_iax2.so [LD] chan_sip.o sip/config_parser.o sip/dialplan_functions.o sip/reqresp_parser.o sip/route.o sip/security_events.o sip/utils.o -> chan_sip.so +--------- Asterisk Build Complete ---------+ + Asterisk has successfully been built, and + + can be installed by running: + + + + make install + +-------------------------------------------+ |
#Ñз -Ðcp /etc/asterisk/ /etc/asterisk.bak
cp: omitting directory `/etc/asterisk/' |
#cp /etc/asterisk/ /etc/asterisk.bak/
cp: omitting directory `/etc/asterisk/' |
#cp /etc/asterisk /etc/asterisk.bak
cp: omitting directory `/etc/asterisk' |
#cp -R /etc/asterisk /etc/asterisk.bak
|
#ls -l /etc/asterisk.bak/
total 816 -rw-r----- 1 root root 140 Nov 28 17:26 adsi.conf -rw-r----- 1 root root 2828 Nov 28 17:26 agents.conf -rw-r----- 1 root root 2904 Nov 28 17:26 ais.conf -rw-r----- 1 root root 2084 Nov 28 17:26 alarmreceiver.conf -rw-r----- 1 root root 3498 Nov 28 17:26 alsa.conf -rw-r----- 1 root root 767 Nov 28 17:26 amd.conf -rw-r----- 1 root root 1044 Nov 28 17:26 app_mysql.conf -rw-r----- 1 root root 3254 Nov 28 17:26 asterisk.adsi -rw-r----- 1 root root 3465 Nov 28 17:26 asterisk.conf ... -rw-r----- 1 root root 742 Nov 28 17:26 sip_notify.conf -rw-r----- 1 root root 9185 Nov 28 17:26 skinny.conf -rw-r----- 1 root root 6774 Nov 28 17:26 sla.conf -rw-r----- 1 root root 2669 Nov 28 17:26 smdi.conf -rw-r----- 1 root root 1384 Nov 28 17:26 telcordia-1.adsi -rw-r----- 1 root root 656 Nov 28 17:26 udptl.conf -rw-r----- 1 root root 5096 Nov 28 17:26 unistim.conf -rw-r----- 1 root root 2423 Nov 28 17:26 users.conf -rw-r----- 1 root root 21424 Nov 28 17:26 voicemail.conf -rw-r----- 1 root root 5939 Nov 28 17:26 vpb.conf |
#cp /etc/init.d/asterisk /etc/init.d/asterisk.old
|
#apt-get remove asterisk
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: libgadu3 libmozjs24d xulrunner-24.0 Use 'apt-get autoremove' to remove them. The following packages will be REMOVED: asterisk asterisk-dahdi asterisk-mysql asterisk-prompt-de asterisk-voicemail 0 upgraded, 0 newly installed, 5 to remove and 16 not upgraded. After this operation, 8,345 kB disk space will be freed. Do you want to continue [Y/n]? y (Reading database ... 149730 files and directories currently installed.) Removing asterisk-prompt-de ... Removing asterisk-voicemail ... Removing asterisk-mysql ... Removing asterisk-dahdi ... Removing asterisk ... Stopping Asterisk PBX: asterisk. Processing triggers for man-db ... |
#make install
CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" makeopts make[1]: Entering directory `/aster/asterisk-13.0.1/menuselect' make[1]: `makeopts' is up to date. make[1]: Leaving directory `/aster/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... ... res_config_odbc.so res_config_pgsql.so res_config_sqlite.so res_curl.so res_fax_spandsp.so res_http_post.so res_jabber.so res_odbc.so res_snmp.so WARNING WARNING WARNING |
#make install
CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" makeopts make[1]: Entering directory `/aster/asterisk-13.0.1/menuselect' make[1]: `makeopts' is up to date. make[1]: Leaving directory `/aster/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... ... res_config_odbc.so res_config_pgsql.so res_config_sqlite.so res_curl.so res_fax_spandsp.so res_http_post.so res_jabber.so res_odbc.so res_snmp.so WARNING WARNING WARNING |
#asterisk -r
Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?) |
#asterisk -rvvv
Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?) |
#clear
|
#make install
CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" makeopts make[1]: Entering directory `/aster/asterisk-13.0.1/menuselect' make[1]: `makeopts' is up to date. make[1]: Leaving directory `/aster/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... ... res_config_odbc.so res_config_pgsql.so res_config_sqlite.so res_curl.so res_fax_spandsp.so res_http_post.so res_jabber.so res_odbc.so res_snmp.so WARNING WARNING WARNING |
#сcp /etc/asterisk.bak/ /etc/asterisk
cp: omitting directory `/etc/asterisk.bak/' |
#cp -R /etc/asterisk.bak/ /etc/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 debian6 (pid = 2154) debian6*CLI> sip Disconnected from Asterisk server Asterisk cleanly ending (0). Executing last minute cleanups |
#more /etc/asterisk/sip.conf
|
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-4222.12135.11132 2014-11-28 17:38:01.715888398 +0200 +++ /etc/asterisk/sip.conf 2014-11-28 17:38:14.623888391 +0200 @@ -2,6 +2,7 @@ context=default qualify=yes directmedia=no +encryption=yes register => brest:1234@192.168.30.1/minsk |
#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 debian6 (pid = 2154) debian6*CLI> sip reload Reloading SIP ... -- Called SIP/2302 -- SIP/2302-00000008 is ringing -- Nobody picked up in 5000 ms -- Executing [2302@gr1:2] VoiceMail("SIP/2301-00000007", "2302@default") in new stack -- <SIP/2301-00000007> Playing 'vm-intro.ulaw' (language 'ru') == Spawn extension (gr1, 2302, 2) exited non-zero on 'SIP/2301-00000007' debian6*CLI> Disconnected from Asterisk server Asterisk cleanly ending (0). Executing last minute cleanups |
#vim /etc/asterisk/extensions.conf
|
#exten => s,n,Hangup
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 debian6 (pid = 2154) debian6*CLI> Disconnected from Asterisk server Asterisk cleanly ending (0). Executing last minute cleanups |
Время первой команды журнала | 15:52:07 2014-11-28 | |||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 16:40:44 2014-11-28 | |||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 50 | |||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 20.00 | |||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.00 | |||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 0.81 | |||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.03 | |||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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