/l3/users/2014-11-nt-voip/nt-voip/debian1/root :1 :2 :3 :4 |
|
#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 5 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 ... 145424 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 : |
#./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' |
#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-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 5 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,163 kB/s) Selecting previously unselected package libtonezone-dev. (Reading database ... 146862 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 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 5 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,163 kB/s) Selecting previously unselected package libtonezone-dev. (Reading database ... 146862 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-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 5 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 (8,150 kB/s) Selecting previously unselected package libpri-dev. (Reading database ... 146869 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) ... |
#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 5 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 (8,150 kB/s) Selecting previously unselected package libpri-dev. (Reading database ... 146869 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 : |
#./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 ... XXX res_calendar_exchange XXX res_calendar_icalendar [*] res_clialiases [*] res_clioriginate XXX res_config_curl ... More ... CLI Aliases Depends on: neon29(E) (E), ical(E) Support Level: core |
#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 ... XXX res_calendar_exchange XXX res_calendar_icalendar [*] res_clialiases [*] res_clioriginate XXX res_config_curl ... More ... CLI Aliases Depends on: neon29(E) (E), ical(E) Support Level: core |
#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 5 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 (4,521 kB/s) Selecting previously unselected package libsrtp0-dev. (Reading database ... 146877 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) ... |
#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 5 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 (4,521 kB/s) Selecting previously unselected package libsrtp0-dev. (Reading database ... 146877 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 : |
#./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 ... XXX res_calendar_exchange XXX res_calendar_icalendar [*] res_clialiases [*] res_clioriginate XXX res_config_curl ... More ... CLI Aliases Depends on: neon29(E) (E), ical(E) Support Level: core |
#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 ... XXX res_calendar_exchange XXX res_calendar_icalendar [*] res_clialiases [*] res_clioriginate XXX res_config_curl ... More ... CLI Aliases Depends on: neon29(E) (E), ical(E) 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
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
************************************************** Press 'h' for help. --- Core --- [*] app_agent_pool [*] app_authenticate [*] app_bridgewait [*] app_cdr [*] app_celgenuserevent [*] app_channelredirect [*] app_chanspy ... [*] app_flash [*] app_followme [*] app_forkcdr [*] app_macro [*] app_milliwatt [*] app_mixmonitor ... More ... Extension Macros Depends on: dahdi(E)M)ding(M) Support Level: core |
#make menuconfig
************************************************** Press 'h' for help. --- Core --- [*] app_agent_pool [*] app_authenticate [*] app_bridgewait [*] app_cdr [*] app_celgenuserevent [*] app_channelredirect [*] app_chanspy ... [*] app_flash [*] app_followme [*] app_forkcdr [*] app_macro [*] app_milliwatt [*] app_mixmonitor ... More ... Extension Macros Depends on: dahdi(E)M)ding(M) Support Level: core |
#make menuconfig
************************************************** Press 'h' for help. --- Core --- [*] app_agent_pool [*] app_authenticate [*] app_bridgewait [*] app_cdr [*] app_celgenuserevent [*] app_channelredirect [*] app_chanspy ... [*] app_flash [*] app_followme [*] app_forkcdr [*] app_macro [*] app_milliwatt [*] app_mixmonitor ... More ... Extension Macros Depends on: dahdi(E)M)ding(M) Support Level: core |
#make menuconfig
************************************************** Press 'h' for help. --- Core --- [*] app_agent_pool [*] app_authenticate [*] app_bridgewait [*] app_cdr [*] app_celgenuserevent [*] app_channelredirect [*] app_chanspy ... [*] app_flash [*] app_followme [*] app_forkcdr [*] app_macro [*] app_milliwatt [*] app_mixmonitor ... More ... Extension Macros Depends on: dahdi(E)M)ding(M) Support Level: core |
#make -j4
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] chan_bridge_media.c -> chan_bridge_media.o [CC] astcanary.c -> astcanary.o [CC] pbx_ael.c -> pbx_ael.o [CC] astdb2sqlite3.c -> astdb2sqlite3.o res [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 + +-------------------------------------------+ |
#make -j4
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] chan_bridge_media.c -> chan_bridge_media.o [CC] astcanary.c -> astcanary.o [CC] pbx_ael.c -> pbx_ael.o [CC] astdb2sqlite3.c -> astdb2sqlite3.o res [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 + +-------------------------------------------+ |
#apt-get remove asterisk asterisk-modules
Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be REMOVED: asterisk asterisk-dahdi asterisk-modules asterisk-mysql asterisk-prompt-de asterisk-voicemail 0 upgraded, 0 newly installed, 6 to remove and 5 not upgraded. After this operation, 15.3 MB disk space will be freed. Do you want to continue [Y/n]? y (Reading database ... 146923 files and directories currently installed.) Removing asterisk-prompt-de ... Removing asterisk-voicemail ... Removing asterisk-mysql ... Removing asterisk-dahdi ... Removing asterisk ... Stopping Asterisk PBX: asterisk. Removing asterisk-modules ... Processing triggers for man-db ... |
#apt-get remove asterisk asterisk-modules
Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be REMOVED: asterisk asterisk-dahdi asterisk-modules asterisk-mysql asterisk-prompt-de asterisk-voicemail 0 upgraded, 0 newly installed, 6 to remove and 5 not upgraded. After this operation, 15.3 MB disk space will be freed. Do you want to continue [Y/n]? y (Reading database ... 146923 files and directories currently installed.) Removing asterisk-prompt-de ... Removing asterisk-voicemail ... Removing asterisk-mysql ... Removing asterisk-dahdi ... Removing asterisk ... Stopping Asterisk PBX: asterisk. Removing asterisk-modules ... Processing triggers for man-db ... |
#ls -ld /etc/asterisk
drwxr-xr-x 3 asterisk asterisk 4096 Nov 28 15:43 /etc/asterisk |
#ls -ld /etc/asterisk
drwxr-xr-x 3 asterisk asterisk 4096 Nov 28 15:43 /etc/asterisk |
#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 + +-------------------------------------------+ |
#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. |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#./configure
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 debian1 (pid = 26556) == Using SIP RTP CoS mark 5 -- Executing [2301@gr4:1] Dial("SIP/ny-00000016", "SIP/minsk/2301") in new stack == Using SIP RTP CoS mark 5 -- Called SIP/minsk/2301 -- SIP/minsk-00000017 is ringing -- Remote UNIX connection -- Remote UNIX connection disconnected == Spawn extension (gr4, 2301, 1) exited non-zero on 'SIP/ny-00000016' > Saved useragent "X-Lite release 4.7.1 stamp 74247" for peer 1102 debian1*CLI> quit Asterisk cleanly ending (0). Executing last minute cleanups |
#./configure
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 debian1 (pid = 26556) == Using SIP RTP CoS mark 5 -- Executing [2301@gr4:1] Dial("SIP/ny-00000016", "SIP/minsk/2301") in new stack == Using SIP RTP CoS mark 5 -- Called SIP/minsk/2301 -- SIP/minsk-00000017 is ringing -- Remote UNIX connection -- Remote UNIX connection disconnected == Spawn extension (gr4, 2301, 1) exited non-zero on 'SIP/ny-00000016' > Saved useragent "X-Lite release 4.7.1 stamp 74247" for peer 1102 debian1*CLI> quit Asterisk cleanly ending (0). Executing last minute cleanups |
#vi /etc/asterisk/sip.conf
--- /tmp/l3-saved-3627.5209.29840 2014-11-28 17:37:49.271426625 +0200 +++ /etc/asterisk/sip.conf 2014-11-28 17:39:13.303427628 +0200 @@ -1,6 +1,7 @@ [general] context=default qualify=yes +encryption=yes register => kiev:1234@192.168.20.1/komsomolsk register => kiev:1234@192.168.30.1/minsk |
#cal Phones)
[local]a 1192,1,Dial(SIP/1101&SIP/1102) exten => _1191,1,NoOp(Conferences for external users) 1XX,n,MeetMe(10${EXTEN:3})L exten => _11XX,n,Hangup ,"%Y-%m- 1192,1,Dial(SIP/1101&SIP/1102) ; не было таймаута в DialkK) [internat]onal] ,VoiceMail(${EXTEN}@default) exten => _11XX,n,Setp(ALLFILENAME=){EXTEN}-${CALLERID(num)}-${STRFTIME(${EPOCH},Europe/Kievv exten => _11XX,n,NoOp(secure_signaling = ${CHANNEL(secure_signaling)}) exten => _11XX,n,NoOp(secure_media = ${CHANNEL(secure_media)}) ... [12] [gr1] [gr1] include => internal include => local national include => national -- INSERT -- 74,63 73% include => international "/etc/asterisk/extensions.conf" 114L, 3026C written |
#cal Phones)
[local]a 1192,1,Dial(SIP/1101&SIP/1102) exten => _1191,1,NoOp(Conferences for external users) 1XX,n,MeetMe(10${EXTEN:3})L exten => _11XX,n,Hangup ,"%Y-%m- 1192,1,Dial(SIP/1101&SIP/1102) ; не было таймаута в DialkK) [internat]onal] ,VoiceMail(${EXTEN}@default) exten => _11XX,n,Set(CALLFILENAME=${EXTEN}-${CALLERID(num)}-${STRFTIME(${EPOCH},Europe/Kievv ,"%Y-%m-%d-%H:%M:%S")}) exten => _11XX,n,Monitor(wav,${CALLFILENAME},m) ... , } ( ) ( ) exten => _11XX,n,NoOp(secu(e_signaling = ${)HANNEL(secure_signaling)}) [23] [12] [gr1] include => national include => international "/etc/asterisk/extensions.conf" 114L, 3026C written |
#ls /tmp/
1.sql asterisk backup-all debian1 orbit-user pulse-gDsXkLVO1a2O pulse-PKdhtXMmr18n pulse-pmG5cOh4XDWl someone-called-8300 ssh-CMQ1IHmJELw7 tracker-user |
#ls /tmp/debian1/
etc.asterisk etc.dahdi usr.local.bin var.tmp.asterisk |
Время первой команды журнала | 16:05:28 2014-11-28 | |||||||||||||||||||||||||||||||||
Время последней команды журнала | 17:24:55 2014-11-28 | |||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 55 | |||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 0.00 | |||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 3.64 | |||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 0.78 | |||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.17 | |||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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