/l3/users/Sergey-Ma/nt-voip-2014-apr/debian8/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 |
|
#ls -la /etc/init.d/as*
-rwxr-xr-x 1 root root 5391 Jan 4 02:22 /etc/init.d/asterisk |
#vim /etc/init.d/asterisk
|
#then
-rwxr-xr-x 1 root root 5391 Jan 4 02:22 /etc/init.d/asterisk |
#ls -la /etc/init.d/as*
-rwxr-xr-x 1 root root 5391 Jan 4 02:22 /etc/init.d/asterisk |
#/etc/init.d/asterisk start
|
#ps aux | grep [a]sterisk
|
#/etc/init.d/asterisk
|
#ls -la /etc/init.d/as*
-rwxr-xr-x 1 root root 5391 Jan 4 02:22 /etc/init.d/asterisk |
#ls -la /etc/init.d/./asterisk
-rwxr-xr-x 1 root root 5391 Jan 4 02:22 /etc/init.d/./asterisk |
#/usr/sbin/as
aspell-autobuildhash astribank_allow astribank_hexload astribank_is_starting astribank_tool |
#make -j32
CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" makeopts make[1]: Entering directory `/usr/src/asterisk-11.9.0/menuselect' make[1]: `makeopts' is up to date. make[1]: Leaving directory `/usr/src/asterisk-11.9.0/menuselect' Generating input for menuselect ... Building Documentation For: channels pbx apps codecs formats cdr cel bridges funcs tests main res addons menuselect/menuselect --check-deps menuselect.makeopts menuselect/menuselect --check-deps menuselect.makeopts Generating embedded module rules ... [CC] asterisk.c -> asterisk.o [LD] abstract_jb.o acl.o adsi.o alaw.o aoc.o app.o ast_expr2.o ast_expr2f.o asterisk.o astfd.o astmm.o astobj2.o audiohook.o autochan.o autoservice.o bridging.o callerid.o ccss.o cdr.o cel.o channel.o channel_internal_api.o chanvars.o cli.o config.o config_options.o data.o datastore.o db.o devicestate.o dial.o dns.o dnsmgr.o dsp.o enum.o event.o features.o file.o fixedjitterbuf.o format.o forma +--------- Asterisk Build Complete ---------+ + Asterisk has successfully been built, and + + can be installed by running: + + + + make install + +-------------------------------------------+ |
#./configure --disable-xmldoc --prefix=/usr/lib/asterisk/
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 : |
#/etc/init.d/asterisk start
|
#ps aux |grep [a]sterisk
|
#/usr/sbin/as
aspell-autobuildhash astribank_allow astribank_hexload astribank_is_starting astribank_tool |
#/usr/sbin/as
aspell-autobuildhash astribank_allow astribank_hexload astribank_is_starting astribank_tool |
#make install
CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" makeopts make[1]: Entering directory `/usr/src/asterisk-11.9.0/menuselect' make[1]: `makeopts' is up to date. make[1]: Leaving directory `/usr/src/asterisk-11.9.0/menuselect' Installing modules from channels... Installing modules from pbx... Installing modules from apps... Installing modules from codecs... Installing modules from formats... Installing modules from cdr... ... +----------------- 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 start
|
#ps aux |grep [a]sterisk
|
#/usr/lib/asterisk/sbin/a
astcanary astdb2bdb astdb2sqlite3 asterisk astgenkey autosupport |
#/usr/lib/asterisk/sbin/asterisk start
|
#asterisk -rvvvv
l3script: /usr/sbin/asterisk: No such file or directory |
#/usr/lib/asterisk/sbin/asterisk -rvvvvvv
Asterisk 11.9.0, Copyright (C) 1999 - 2013 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 11.9.0 currently running on debian8 (pid = 8441) debian8*CLI> quit Asterisk cleanly ending (0). Executing last minute cleanups |
#ls /etc/init.d/
acpid checkroot.sh keyboard-setup networking rpcbind udev alsa-utils console-setup killprocs network-manager rsync udev-mtab anacron cron kmod nfs-common rsyslog umountfs asterisk dahdi minissdpd pppd-dns samba umountnfs.sh atd dbus motd procps saned umountroot avahi-daemon exim4 mountall-bootclean.sh pulseaudio screen-cleanup unattended-upgrades binfmt-support gdm3 mountall.sh rc sendsigs urandom bluetooth halt mountdevsubfs.sh rc.local single x11-common bootlogs hdparm mountkernfs.sh rcS skeleton bootmisc.sh hostname.sh mountnfs-bootclean.sh README speech-dispatcher checkfs.sh hwclock.sh mountnfs.sh reboot ssh checkroot-bootclean.sh kbd mtab.sh rmnologin sudo |
#ls -la /usr/lib/asterisk/sbin/as*
-rwxr-xr-x 1 root root 74048 Apr 26 15:38 /usr/lib/asterisk/sbin/astcanary -rwxr-xr-x 1 root root 544210 Apr 26 15:38 /usr/lib/asterisk/sbin/astdb2bdb -rwxr-xr-x 1 root root 549620 Apr 26 15:38 /usr/lib/asterisk/sbin/astdb2sqlite3 -rwxr-xr-x 1 root root 11452522 Apr 26 15:38 /usr/lib/asterisk/sbin/asterisk -rwxr-xr-x 1 root root 1400 Apr 26 15:38 /usr/lib/asterisk/sbin/astgenkey |
#vim /etc/init.d/asterisk
|
#/etc/init.d/asterisk stop
|
#/etc/init.d/asterisk status
|
#/etc/init.d/asterisk start
|
#asterisk -rvvvv
l3script: /usr/sbin/asterisk: No such file or directory |
#/usr/lib/asterisk/sbin/asterisk -rvvvvvv
Asterisk 11.9.0, Copyright (C) 1999 - 2013 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 11.9.0 currently running on debian8 (pid = 8441) debian8*CLI> datacard show devices No such command 'datacard show devices' (type 'core show help datacard show' for other possible commands) debian8*CLI> quit Asterisk cleanly ending (0). Executing last minute cleanups |
#ls /etc/asterisk/
adsi.conf cdr_tds.conf enum.conf logger.conf res_ldap.conf agents.conf cel.conf extconfig.conf manager.conf res_odbc.conf ais.conf cel_custom.conf extensions.ael manager.d res_pgsql.conf alarmreceiver.conf cel_odbc.conf extensions.conf meetme.conf res_pktccops.conf alsa.conf cel_pgsql.conf extensions.conf.local mgcp.conf res_snmp.conf amd.conf cel_sqlite3_custom.conf extensions.conf.SAVED minivm.conf res_stun_monitor.conf app_mysql.conf cel_tds.conf extensions.lua misdn.conf rtp.conf asterisk.adsi chan_dahdi.conf extensions_minivm.conf modules.conf say.conf asterisk.conf chan_mobile.conf features.conf musiconhold.conf sip.conf calendar.conf chan_ooh323.conf festival.conf muted.conf sip.conf.SAVED ccss.conf cli_aliases.conf followme.conf osp.conf sip_notify.conf cdr_adaptive_odbc.conf cli.conf func_odbc.conf oss.conf skinny.conf cdr.conf cli_permissions.conf gtalk.conf phone.conf sla.conf cdr_custom.conf codecs.conf h323.conf phoneprov.conf smdi.conf cdr_manager.conf console.conf http.conf queuerules.conf telcordia-1.adsi cdr_mysql.conf datacard.conf iax.conf queues.conf udptl.conf cdr_odbc.conf dbsep.conf iaxprov.conf res_config_mysql.conf unistim.conf cdr_pgsql.conf dnsmgr.conf indications.conf res_config_sqlite.conf users.conf cdr_sqlite3_custom.conf dsp.conf jabber.conf res_curl.conf voicemail.conf cdr_syslog.conf dundi.conf jingle.conf res_fax.conf vpb.conf |
#/usr/lib/asterisk/sbin/asterisk stop
Asterisk already running on /usr/lib/asterisk/var/run/asterisk/asterisk.ctl. Use 'asterisk -r' to connect. |
#/usr/lib/asterisk/sbin/asterisk -rvvvvvv
Asterisk 11.9.0, Copyright (C) 1999 - 2013 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 11.9.0 currently running on debian8 (pid = 9589) debian8*CLI> sip rel Disconnected from Asterisk server Asterisk cleanly ending (0). Executing last minute cleanups |
#oad
l3script: oad: command not found |
#/usr/lib/asterisk/sbin/asterisk -rvvvvvv
Asterisk 11.9.0, Copyright (C) 1999 - 2013 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 11.9.0 currently running on debian8 (pid = 9765) debian8*CLI> sip reload Reloading SIP ... -- SIP/3202-00000001 is ringing == Spawn extension (macro-localcall, s, 4) exited non-zero on 'SIP/3201-00000000' in macro 'localcall' == Spawn extension (gr1, 3202, 1) exited non-zero on 'SIP/3201-00000000' -- Executing [h@gr1:1] Playback("SIP/3201-00000000", "/var/tmp/asterisk/message") in new stack == Spawn extension (gr1, h, 1) exited non-zero on 'SIP/3201-00000000' [Apr 26 16:14:31] ERROR[9831][C-00000000]: cdr_csv.c:304 csv_log: Unable to re-open master file /usr/lib/asterisk/var/log/asterisk//cdr-csv//Master.csv : Permission denied [Apr 26 16:14:57] WARNING[9797]: db.c:332 ast_db_put: Couldn't execute statment: SQL logic error or missing database debian8*CLI> quit Asterisk cleanly ending (0). Executing last minute cleanups |
#vim /etc/asterisk/extensions.conf
|
#;;;;exten=>s-NOANSWER,1,Dial(SIP/3202)
|
#vim /etc/asterisk/
|
#vim /etc/asterisk/*.conf
|
#vim /etc/asterisk/cdr.conf
--- /tmp/l3-saved-3931.18159.16008 2014-04-26 16:29:59.273262536 +0300 +++ /etc/asterisk/cdr.conf 2014-04-26 16:30:28.877262140 +0300 @@ -150,11 +150,11 @@ ; on how to create this table in each database. ; -[csv] -usegmtime=yes ; log date/time in GMT. Default is "no" -loguniqueid=yes ; log uniqueid. Default is "no" -loguserfield=yes ; log user field. Default is "no" -accountlogs=yes ; create separate log file for each account code. Default is "yes" +;[csv] +;usegmtime=yes ; log date/time in GMT. Default is "no" +;loguniqueid=yes ; log uniqueid. Default is "no" +;loguserfield=yes ; log user field. Default is "no" +;accountlogs=yes ; create separate log file for each account code. Default is "yes" ;[radius] ;usegmtime=yes ; log date/time in GMT |
#/usr/lib/asterisk/sbin/asterisk restart
Privilege escalation protection disabled! See https://wiki.asterisk.org/wiki/x/1gKfAQ for more details. Asterisk already running on /usr/lib/asterisk/var/run/asterisk/asterisk.ctl. Use 'asterisk -r' to connect. |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#;;exten=>8001,1,Answer
Asterisk 11.9.0, Copyright (C) 1999 - 2013 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 11.9.0 currently running on debian8 (pid = 9998) [Apr 26 16:34:11] WARNING[10037]: db.c:332 ast_db_put: Couldn't execute statment: SQL logic error or missing database [Apr 26 16:34:51] WARNING[10037]: db.c:332 ast_db_put: Couldn't execute statment: SQL logic error or missing database ... [Apr 26 16:38:21] WARNING[10037]: db.c:332 ast_db_put: Couldn't execute statment: SQL logic error or missing database [Apr 26 16:39:16] WARNING[10037]: db.c:332 ast_db_put: Couldn't execute statment: SQL logic error or missing database [Apr 26 16:40:06] WARNING[10037]: db.c:332 ast_db_put: Couldn't execute statment: SQL logic error or missing database [Apr 26 16:40:11] WARNING[10037]: db.c:332 ast_db_put: Couldn't execute statment: SQL logic error or missing database -- Unregistered SIP '3203' [Apr 26 16:40:27] WARNING[10037]: db.c:332 ast_db_put: Couldn't execute statment: SQL logic error or missing database -- Registered SIP '3203' at 192.168.12.221:63682 debian8*CLI> quit Asterisk cleanly ending (0). Executing last minute cleanups |
#m-a a-i dahdi
Creating symlink... apt-get install build-essential Reading package lists... Done Building dependency tree Reading state information... Done build-essential is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded. Done! unpack Extracting the package tarball, /usr/src/dahdi.tar.bz2, please wait... Target package file /usr/src/dahdi-modules-3.2.0-4-amd64_2.6.1+dfsg2-1+3.2.54-2_amd64.deb already exists, not rebuilding! (however, you could use the -f switch to ignore it) dpkg -Ei /usr/src/dahdi-modules-3.2.0-4-amd64_2.6.1+dfsg2-1+3.2.54-2_amd64.deb dpkg: version 1:2.6.1+dfsg2-1+3.2.54-2 of dahdi-modules-3.2.0-4-amd64 already installed, skipping |
#vim /etc/asterisk/extensions.conf.local
--- /tmp/l3-saved-3931.24303.29981 2014-04-26 16:41:40.317253143 +0300 +++ /etc/asterisk/extensions.conf.local 2014-04-26 16:42:25.157252542 +0300 @@ -5,6 +5,12 @@ exten=>_32XX,1,Macro(localcall,${EXTEN}) +exten=> 3297,1,Answer +exten=> 3297,n,MeetMe(100) + + + + exten=>3298,1,Answer exten=>3298,n,Queue(queue1) exten=>3298,n,Hangup |
#vim /etc/asterisk/m
|
#vim /etc/asterisk/meetme.conf
--- /tmp/l3-saved-3931.28843.2196 2014-04-26 16:42:41.441252325 +0300 +++ /etc/asterisk/meetme.conf 2014-04-26 16:43:45.997251461 +0300 @@ -43,3 +43,4 @@ ; ;conf => 1234 ;conf => 2345,9938 +conf=>100,,1234 |
#/usr/src/asterisk-11.9.0/
l3script: /usr/src/asterisk-11.9.0/: Is a directory |
#makemenu
l3script: makemenu: command not found |
#make menuconfig
************************************************** Asterisk Module and Build Option Selection ************************************************** Press 'h' for help. --- core --- [*] app_authenticate [*] app_cdr [*] app_celgenuserevent [*] app_channelredirect [*] app_chanspy ... [*] app_directory [*] app_disa [*] app_dumpchan [*] app_echo [*] app_exec [*] app_flash ... More ... DISA (Direct Inward System Access) Application Depends on: app_voicemail(M) Support Level: core |
#make && make install
CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" makeopts make[1]: Entering directory `/usr/src/asterisk-11.9.0/menuselect' make[1]: `makeopts' is up to date. make[1]: Leaving directory `/usr/src/asterisk-11.9.0/menuselect' Generating embedded module rules ... [CC] app_meetme.c -> app_meetme.o [LD] app_meetme.o -> app_meetme.so [LD] abstract_jb.o acl.o adsi.o alaw.o aoc.o app.o ast_expr2.o ast_expr2f.o asterisk.o astfd.o astmm.o astobj2.o audiohook.o autochan.o autoservice.o bridging.o callerid.o ccss.o cdr.o cel.o channel.o channel_internal_api.o chanvars.o cli.o config.o config_options.o data.o datastore.o db.o devicestate.o dial.o dns.o dnsmgr.o dsp.o enum.o event.o features.o file.o fixedjitterbuf.o format.o forma +--------- Asterisk Build Complete ---------+ + Asterisk has successfully been built, and + ... +----------------- 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 + +-------------------------------------------+ |
#/usr/lib/asterisk/sbin/asterisk -rvvvvvv
Asterisk 11.9.0, Copyright (C) 1999 - 2013 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 11.9.0 currently running on debian8 (pid = 9998) debian8*CLI> meetme No such command 'meetme' (type 'core show help meetme' for other possible commands) debian8*CLI> quit Asterisk cleanly ending (0). Executing last minute cleanups |
#/usr/lib/asterisk/sbin/asterisk -rvvvvvv
Asterisk 11.9.0, Copyright (C) 1999 - 2013 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 11.9.0 currently running on debian8 (pid = 11655) debian8*CLI> meetme No such command 'meetme' (type 'core show help meetme' for other possible commands) [Apr 26 16:48:02] WARNING[11694]: db.c:332 ast_db_put: Couldn't execute statment: SQL logic error or missing database -- Registered SIP '3203' at 192.168.12.221:63682 > Saved useragent "Zoiper r23496" for peer 3203 debian8*CLI> meetme list No active MeetMe conferences. debian8*CLI> quit Asterisk cleanly ending (0). Executing last minute cleanups |
#~
Asterisk 11.9.0, Copyright (C) 1999 - 2013 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 11.9.0 currently running on debian8 (pid = 11655) [Apr 26 16:48:57] WARNING[11694]: db.c:332 ast_db_put: Couldn't execute statment: SQL logic error or missing database == Using SIP RTP CoS mark 5 ... [Apr 26 16:49:04] WARNING[11694]: db.c:332 ast_db_put: Couldn't execute statment: SQL logic error or missing database -- Registered SIP 'havana' at 192.168.12.7:5060 > Saved useragent "Asterisk PBX 11.9.0" for peer havana [Apr 26 16:49:52] WARNING[11694]: db.c:332 ast_db_put: Couldn't execute statment: SQL logic error or missing database [Apr 26 16:50:48] WARNING[11694]: db.c:332 ast_db_put: Couldn't execute statment: SQL logic error or missing database [Apr 26 16:50:49] WARNING[11694]: db.c:332 ast_db_put: Couldn't execute statment: SQL logic error or missing database [Apr 26 16:51:42] WARNING[11694]: db.c:332 ast_db_put: Couldn't execute statment: SQL logic error or missing database debian8*CLI> quit Asterisk cleanly ending (0). Executing last minute cleanups |
#/usr/lib/asterisk/sbin/asterisk -rvvvvvv
Asterisk 11.9.0, Copyright (C) 1999 - 2013 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 11.9.0 currently running on debian8 (pid = 11655) [Apr 26 16:54:04] WARNING[11694]: db.c:332 ast_db_put: Couldn't execute statment: SQL logic error or missing database [Apr 26 16:54:19] WARNING[11694]: db.c:332 ast_db_put: Couldn't execute statment: SQL logic error or missing database [Apr 26 16:55:01] WARNING[11694]: db.c:332 ast_db_put: Couldn't execute statment: SQL logic error or missing database debian8*CLI> quit Asterisk cleanly ending (0). Executing last minute cleanups |
#modprobe dahdi
|
#modprobe dahdi
|
#modprobe dahdi
|
#/usr/lib/asterisk/sbin/asterisk -rvvvvvv
Asterisk 11.9.0, Copyright (C) 1999 - 2013 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 11.9.0 currently running on debian8 (pid = 11655) == Using SIP RTP CoS mark 5 -- Executing [3297@gr1:1] Answer("SIP/3201-00000001", "") in new stack ... -- Hungup 'DAHDI/pseudo-102064056' == Spawn extension (gr_relay, 3297, 2) exited non-zero on 'SIP/havana-00000004' -- Executing [h@gr_relay:1] Playback("SIP/havana-00000004", "/var/tmp/asterisk/message") in new stack [Apr 26 17:00:27] WARNING[11936][C-00000004]: file.c:830 ast_readaudio_callback: Failed to write frame -- <SIP/havana-00000004> Playing '/var/tmp/asterisk/message.gsm' (language 'en') [Apr 26 17:00:27] WARNING[11936][C-00000004]: app_playback.c:484 playback_exec: ast_streamfile failed on SIP/havana-00000004 for /var/tmp/asterisk/message [Apr 26 17:00:28] WARNING[11694]: db.c:332 ast_db_put: Couldn't execute statment: SQL logic error or missing database debian8*CLI> quit Asterisk cleanly ending (0). Executing last minute cleanups |
#/usr/lib/asterisk/sbin/asterisk -rvvvvvv
Asterisk 11.9.0, Copyright (C) 1999 - 2013 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 11.9.0 currently running on debian8 (pid = 12011) == Using SIP RTP CoS mark 5 -- Executing [3297@gr1:1] Answer("SIP/3201-00000000", "") in new stack ... -- <SIP/3201-00000003> Playing 'conf-onlyperson.gsm' (language 'ru') -- Hungup 'DAHDI/pseudo-105665089' == Spawn extension (gr1, 3297, 2) exited non-zero on 'SIP/3201-00000003' -- Executing [h@gr1:1] Playback("SIP/3201-00000003", "/var/tmp/asterisk/message") in new stack [Apr 26 17:07:17] WARNING[12067][C-00000003]: file.c:830 ast_readaudio_callback: Failed to write frame -- <SIP/3201-00000003> Playing '/var/tmp/asterisk/message.gsm' (language 'ru') [Apr 26 17:07:17] WARNING[12067][C-00000003]: app_playback.c:484 playback_exec: ast_streamfile failed on SIP/3201-00000003 for /var/tmp/asterisk/message debian8*CLI> quit Asterisk cleanly ending (0). Executing last minute cleanups |
#/usr/lib/asterisk/sbin/asterisk -rvvvvvv
Asterisk 11.9.0, Copyright (C) 1999 - 2013 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 11.9.0 currently running on debian8 (pid = 12230) == Using SIP RTP CoS mark 5 -- Executing [3296@gr1:1] Answer("SIP/3201-00000000", "") in new stack ... == Using SIP RTP CoS mark 5 -- Executing [3297@gr_relay:1] Answer("SIP/havana-00000002", "") in new stack -- Executing [3297@gr_relay:2] MeetMe("SIP/havana-00000002", "100") in new stack == Parsing '/usr/lib/asterisk/etc/asterisk/meetme.conf': Found -- Created MeetMe conference 1023 for conference '100' -- <SIP/havana-00000002> Playing 'conf-onlyperson.gsm' (language 'en') > 0x7fd900615af0 -- Probation passed - setting RTP source address to 192.168.12.7:15834 debian8*CLI> quit Asterisk cleanly ending (0). Executing last minute cleanups |
#/usr/lib/asterisk/sbin/asterisk -rvvvvvv
Asterisk 11.9.0, Copyright (C) 1999 - 2013 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 11.9.0 currently running on debian8 (pid = 12230) == Using SIP RTP CoS mark 5 -- Executing [3297@gr_relay:1] Answer("SIP/havana-00000003", "") in new stack ... [Apr 26 17:13:56] WARNING[12329][C-00000004]: app_playback.c:484 playback_exec: ast_streamfile failed on SIP/3201-00000004 for /var/tmp/asterisk/message [Apr 26 17:14:28] WARNING[12269]: db.c:332 ast_db_put: Couldn't execute statment: SQL logic error or missing database [Apr 26 17:14:30] WARNING[12269]: db.c:332 ast_db_put: Couldn't execute statment: SQL logic error or missing database -- Registered SIP '3203' at 192.168.12.221:63682 -- Unregistered SIP '3203' [Apr 26 17:14:40] WARNING[12269]: db.c:332 ast_db_put: Couldn't execute statment: SQL logic error or missing database -- Registered SIP '3203' at 192.168.12.221:63682 debian8*CLI> quit Asterisk cleanly ending (0). Executing last minute cleanups |
#[local]
exten=>_32XX,1,Macro(localcall,${EXTEN}) exten=> 3297,1,Answer exten=> 3297,n,MeetMe(100,s) (100,sa) exten=> 3296,1,Answer exten=> 3296,n,MeetMe(100,a) ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ "/etc/asterisk/extensions.conf.local" 20L, 324C written |
#cp con
config.guess configs/ config.sub configure.ac config.log config.status configure contrib/ |
#cp configs/conf
confbridge.conf.sample config_test.conf.sample |
#cp configs/confbridge.conf.sample /etc/asterisk/confbridge.conf
|
#vim /etc/asterisk/confbridge.conf
|
#exten=> 3294,1,Answer
exten=>3299,n,Hangup exten=>_32XX,1,Macro(localcall,${EXTEN}) exten=> 3297,1,Answer exten=> 3295,1,Answer(100,s) exten=> 3295,n,Confbridge() exten=> 3296,1,Answer (100,default_user) exten=> 3294,1,Answer(100,sa) exten=> 3294,n,Confbridge() exten=>3298,1,Answer exten=>3298,n,Queue(queue1) exten=>3298,n,Hangup "/etc/asterisk/extensions.conf.local" 30L, 430C ~ "/etc/asterisk/extensions.conf.local" 30L, 446C written |
#vim /etc/asterisk/extensions.conf.local
|
#make menuconfig
************************************************** Asterisk Module and Build Option Selection ************************************************** Press 'h' for help. --- core --- [*] app_authenticate [*] app_cdr [*] app_celgenuserevent [*] app_channelredirect [*] app_chanspy ... [*] app_directory [*] app_disa [*] app_dumpchan [*] app_echo [*] app_exec [*] app_flash ... More ... DISA (Direct Inward System Access) Application Depends on: app_voicemail(M) Support Level: core |
#apt-get cache search libldap
E: Invalid operation cache |
#apt-get cache search libldap
E: Invalid operation cache |
#apt-get install libldap2-dev
Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: libldap2-dev 0 upgraded, 1 newly installed, 0 to remove and 6 not upgraded. Need to get 569 kB of archives. After this operation, 1,378 kB of additional disk space will be used. Get:1 http://192.168.12.254/debian/ wheezy/main libldap2-dev amd64 2.4.31-1+nmu2 [569 kB] Fetched 569 kB in 0s (18.7 MB/s) Selecting previously unselected package libldap2-dev:amd64. (Reading database ... 148145 files and directories currently installed.) Unpacking libldap2-dev:amd64 (from .../libldap2-dev_2.4.31-1+nmu2_amd64.deb) ... Processing triggers for man-db ... Setting up libldap2-dev:amd64 (2.4.31-1+nmu2) ... |
#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-11.9.0' |
#apt-get install libldap2-dev
Reading package lists... Done Building dependency tree Reading state information... Done libldap2-dev is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded. |
#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-11.9.0' |
#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-11.9.0' |
#make && make install
CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" makeopts make[1]: Entering directory `/usr/src/asterisk-11.9.0/menuselect' make[1]: `makeopts' is up to date. make[1]: Leaving directory `/usr/src/asterisk-11.9.0/menuselect' menuselect/menuselect --check-deps menuselect.makeopts menuselect/menuselect --check-deps menuselect.makeopts Generating embedded module rules ... [CC] astdb2sqlite3.c -> astdb2sqlite3.o [LD] astdb2sqlite3.o db1-ast/libdb1.a -> astdb2sqlite3 [CC] astdb2bdb.c -> astdb2bdb.o ... +----------------- 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 + +-------------------------------------------+ |
#dpkg -L ldap
dpkg-query: package 'ldap' is not installed Use dpkg --info (= dpkg-deb --info) to examine archive files, and dpkg --contents (= dpkg-deb --contents) to list their contents. |
#dpkg -l ldap
dpkg-query: no packages found matching ldap |
#dpkg -L sldap
dpkg-query: package 'sldap' is not installed Use dpkg --info (= dpkg-deb --info) to examine archive files, and dpkg --contents (= dpkg-deb --contents) to list their contents. |
#dpkg -l sldap
dpkg-query: no packages found matching sldap |
#ls -la /etc/asterisk/
total 848 drwxr-xr-x 3 asterisk asterisk 4096 Apr 26 17:36 . drwxr-xr-x 136 root root 12288 Apr 26 15:22 .. -rw-r----- 1 asterisk asterisk 140 Jan 4 03:07 adsi.conf -rw-r----- 1 asterisk asterisk 2788 Apr 26 09:06 agents.conf -rw-r----- 1 asterisk asterisk 2904 Jan 4 03:07 ais.conf -rw-r----- 1 asterisk asterisk 2084 Jan 4 03:07 alarmreceiver.conf -rw-r----- 1 asterisk asterisk 3498 Jan 4 03:07 alsa.conf -rw-r----- 1 asterisk asterisk 767 Jan 4 03:07 amd.conf -rw-r----- 1 asterisk asterisk 1044 Jan 4 03:07 app_mysql.conf ... -rw-r----- 1 asterisk asterisk 742 Jan 4 03:07 sip_notify.conf -rw-r----- 1 asterisk asterisk 9185 Jan 4 03:07 skinny.conf -rw-r----- 1 asterisk asterisk 6774 Jan 4 03:07 sla.conf -rw-r----- 1 asterisk asterisk 2669 Jan 4 03:07 smdi.conf -rw-r----- 1 asterisk asterisk 1384 Jan 4 03:07 telcordia-1.adsi -rw-r----- 1 asterisk asterisk 656 Jan 4 03:07 udptl.conf -rw-r----- 1 asterisk asterisk 5096 Jan 4 03:07 unistim.conf -rw-r----- 1 asterisk asterisk 2423 Jan 4 03:07 users.conf -rw-r----- 1 asterisk asterisk 21331 Apr 24 13:24 voicemail.conf -rw-r----- 1 asterisk asterisk 5939 Jan 4 03:07 vpb.conf |
#ls -la /etc/asterisk/
total 848 drwxr-xr-x 3 asterisk asterisk 4096 Apr 26 17:36 . drwxr-xr-x 136 root root 12288 Apr 26 15:22 .. -rw-r----- 1 asterisk asterisk 140 Jan 4 03:07 adsi.conf -rw-r----- 1 asterisk asterisk 2788 Apr 26 09:06 agents.conf -rw-r----- 1 asterisk asterisk 2904 Jan 4 03:07 ais.conf -rw-r----- 1 asterisk asterisk 2084 Jan 4 03:07 alarmreceiver.conf -rw-r----- 1 asterisk asterisk 3498 Jan 4 03:07 alsa.conf -rw-r----- 1 asterisk asterisk 767 Jan 4 03:07 amd.conf -rw-r----- 1 asterisk asterisk 1044 Jan 4 03:07 app_mysql.conf ... -rw-r----- 1 asterisk asterisk 742 Jan 4 03:07 sip_notify.conf -rw-r----- 1 asterisk asterisk 9185 Jan 4 03:07 skinny.conf -rw-r----- 1 asterisk asterisk 6774 Jan 4 03:07 sla.conf -rw-r----- 1 asterisk asterisk 2669 Jan 4 03:07 smdi.conf -rw-r----- 1 asterisk asterisk 1384 Jan 4 03:07 telcordia-1.adsi -rw-r----- 1 asterisk asterisk 656 Jan 4 03:07 udptl.conf -rw-r----- 1 asterisk asterisk 5096 Jan 4 03:07 unistim.conf -rw-r----- 1 asterisk asterisk 2423 Jan 4 03:07 users.conf -rw-r----- 1 asterisk asterisk 21331 Apr 24 13:24 voicemail.conf -rw-r----- 1 asterisk asterisk 5939 Jan 4 03:07 vpb.conf |
#l3pwd
/users/Sergey-Ma/nt-voip-2014-apr/debian8/root |
#ls /var/spool/asterisk/monitor/
1101-3203-1398407501.wav 3101-3201- 2014-04-25-15:46:25.wav 3201-3202-2014-04-25-16:10:21.wav 1102-3203-1398407476.wav 3101-3201- 2014-04-25-16:06:41.wav 3201-3202-2014-04-25-16:11:11.wav 1201-3201- 2014-04-26-12:15:12.wav 3101-3201- 2014-04-25-16:09:28.wav 3201-3203-2014-04-25-13:33:30.wav 1202-3201-1398339973.wav 3101-3201- 2014-04-25-16:13:15.wav 3201-3203-2014-04-25-15:06:37.wav 1398347709-SIP-3201-00000051.wav 3101-3201- 2014-04-25-16:13:39.wav 3201-3203-2014-04-25-15:51:02.wav 1398347723-SIP-3201-00000053.wav 3101-3201- 2014-04-25-16:32:14.wav 3201-3203-2014-04-25-16:20:40.wav 1398347790-SIP-3201-00000055.wav 3101-3201- 2014-04-25-16:34:47.wav 3201-3203-2014-04-25-16:23:23.wav 1398347862-SIP-3201-00000058.wav 3101-3201- 2014-04-25-16:45:55.wav 3201-3203-2014-04-25-16:23:34.wav 1398348095-SIP-3201-0000005a.wav 3101-3203-1398407776.wav 3201-3203-2014-04-25-16:25:04.wav 1398348293-SIP-havana-0000005c.wav 3101-.wav 3201-3203-2014-04-25-16:27:38.wav ... 3101-201.wav 3201-3201-1398340230.wav 3203-3201-2014-04-25-17:37:50.wav 3101-3201-1398325852.wav 3201-3201-1398340339.wav 3203-3202-2014-04-25-15:41:25.wav 3101-3201-1398335402.wav 3201-3201-2014-04-25-10:03:37.wav 3203-3202-2014-04-25-16:05:38.wav 3101-3201-1398336503.wav 3201-3202-1398337641.wav 3203-3202-2014-04-25-16:09:11.wav 3101-3201-1398337390.wav 3201-3202-2014-04-25-13:20:19.wav 3204-2301-2014-04-25-13:22:06.wav 3101-3201- 2014-04-25-10:04:58.wav 3201-3202-2014-04-25-15:42:16.wav 3255-3201-1398333530.wav 3101-3201- 2014-04-25-13:21:50.wav 3201-3202-2014-04-25-15:42:59.wav 3298-3201-2014-04-25-17:01:56.wav 3101-3201- 2014-04-25-15:07:51.wav 3201-3202-2014-04-25-16:04:12.wav 3301-3201-1398335396.wav 3101-3201- 2014-04-25-15:08:24.wav 3201-3202-2014-04-25-16:07:25.wav 3301-3201-1398340406.wav 3101-3201- 2014-04-25-15:08:33.wav 3201-3202-2014-04-25-16:07:39.wav 3301-3203- 2014-04-25-17:24:17.wav |
#mkdir /var/spool/asterisk/monitor/etc
|
#cp /etc/asterisk/* /var/spool/asterisk/monitor/etc/
cp: omitting directory `/etc/asterisk/manager.d' |
#cp /etc/asterisk/*.conf /var/spool/asterisk/monitor/etc/
|
#vim /etc/samba/smb.conf
--- /tmp/l3-saved-3931.29394.4039 2014-04-26 18:07:32.137184121 +0300 +++ /etc/samba/smb.conf 2014-04-26 18:07:46.873183925 +0300 @@ -317,6 +317,7 @@ path = /var/spool/asterisk/monitor guest ok = yes + # The next two parameters show how to auto-mount a CD-ROM when the # cdrom share is accesed. For this to work /etc/fstab must contain # an entry like this: |
#ls -la /var/spool/asterisk/
total 24 drwxr-x--- 4 asterisk asterisk 4096 Apr 26 15:21 . drwxr-xr-x 9 root root 4096 Apr 24 11:54 .. drwxr-x--- 3 asterisk asterisk 12288 Apr 26 18:04 monitor drwxr-x--- 3 asterisk asterisk 4096 Apr 24 13:28 voicemail |
#ls -la /var/spool/asterisk/monitor/
total 376688 drwxr-x--- 3 asterisk asterisk 12288 Apr 26 18:04 . drwxr-x--- 4 asterisk asterisk 4096 Apr 26 15:21 .. -rw-rw---- 1 asterisk asterisk 642924 Apr 25 09:32 1101-3203-1398407501.wav -rw-rw---- 1 asterisk asterisk 114604 Apr 25 09:31 1102-3203-1398407476.wav -rw-rw---- 1 asterisk asterisk 354924 Apr 26 12:15 1201-3201- 2014-04-26-12:15:12.wav -rw-rw---- 1 asterisk asterisk 157804 Apr 24 14:46 1202-3201-1398339973.wav -rw-rw---- 1 asterisk asterisk 44 Apr 24 16:55 1398347709-SIP-3201-00000051.wav -rw-rw---- 1 asterisk asterisk 59884 Apr 24 16:55 1398347723-SIP-3201-00000053.wav -rw-rw---- 1 asterisk asterisk 44 Apr 24 16:56 1398347790-SIP-3201-00000055.wav ... -rw-rw---- 1 asterisk asterisk 364 Apr 25 15:41 3203-3202-2014-04-25-15:41:25.wav -rw-rw---- 1 asterisk asterisk 230444 Apr 25 16:05 3203-3202-2014-04-25-16:05:38.wav -rw-rw---- 1 asterisk asterisk 252844 Apr 25 16:09 3203-3202-2014-04-25-16:09:11.wav -rw-rw---- 1 asterisk asterisk 85804 Apr 25 13:22 3204-2301-2014-04-25-13:22:06.wav -rw-rw---- 1 asterisk asterisk 86444 Apr 24 12:58 3255-3201-1398333530.wav -rw-rw---- 1 asterisk asterisk 96364 Apr 25 17:02 3298-3201-2014-04-25-17:01:56.wav -rw-rw---- 1 asterisk asterisk 37644 Apr 24 13:29 3301-3201-1398335396.wav -rw-rw---- 1 asterisk asterisk 141484 Apr 24 14:53 3301-3201-1398340406.wav -rw-rw---- 1 asterisk asterisk 176684 Apr 25 17:24 3301-3203- 2014-04-25-17:24:17.wav drwxr-xr-x 2 root root 4096 Apr 26 18:05 etc |
#ls -la /var/spool/asterisk/monitor/e*
total 844 drwxr-xr-x 2 root root 4096 Apr 26 18:05 . drwxr-x--- 3 asterisk asterisk 12288 Apr 26 18:04 .. -rw-r----- 1 root root 140 Apr 26 18:05 adsi.conf -rw-r----- 1 root root 2788 Apr 26 18:05 agents.conf -rw-r----- 1 root root 2904 Apr 26 18:05 ais.conf -rw-r----- 1 root root 2084 Apr 26 18:05 alarmreceiver.conf -rw-r----- 1 root root 3498 Apr 26 18:05 alsa.conf -rw-r----- 1 root root 767 Apr 26 18:05 amd.conf -rw-r----- 1 root root 1044 Apr 26 18:05 app_mysql.conf ... -rw-r----- 1 root root 742 Apr 26 18:05 sip_notify.conf -rw-r----- 1 root root 9185 Apr 26 18:05 skinny.conf -rw-r----- 1 root root 6774 Apr 26 18:05 sla.conf -rw-r----- 1 root root 2669 Apr 26 18:05 smdi.conf -rw-r----- 1 root root 1384 Apr 26 18:05 telcordia-1.adsi -rw-r----- 1 root root 656 Apr 26 18:05 udptl.conf -rw-r----- 1 root root 5096 Apr 26 18:05 unistim.conf -rw-r----- 1 root root 2423 Apr 26 18:05 users.conf -rw-r----- 1 root root 21331 Apr 26 18:05 voicemail.conf -rw-r----- 1 root root 5939 Apr 26 18:05 vpb.conf |
#ls -la /var/spool/asterisk/monitor/
total 376688 drwxr-x--- 3 asterisk asterisk 12288 Apr 26 18:04 . drwxr-x--- 4 asterisk asterisk 4096 Apr 26 15:21 .. -rw-rw---- 1 asterisk asterisk 642924 Apr 25 09:32 1101-3203-1398407501.wav -rw-rw---- 1 asterisk asterisk 114604 Apr 25 09:31 1102-3203-1398407476.wav -rw-rw---- 1 asterisk asterisk 354924 Apr 26 12:15 1201-3201- 2014-04-26-12:15:12.wav -rw-rw---- 1 asterisk asterisk 157804 Apr 24 14:46 1202-3201-1398339973.wav -rw-rw---- 1 asterisk asterisk 44 Apr 24 16:55 1398347709-SIP-3201-00000051.wav -rw-rw---- 1 asterisk asterisk 59884 Apr 24 16:55 1398347723-SIP-3201-00000053.wav -rw-rw---- 1 asterisk asterisk 44 Apr 24 16:56 1398347790-SIP-3201-00000055.wav ... -rw-rw---- 1 asterisk asterisk 364 Apr 25 15:41 3203-3202-2014-04-25-15:41:25.wav -rw-rw---- 1 asterisk asterisk 230444 Apr 25 16:05 3203-3202-2014-04-25-16:05:38.wav -rw-rw---- 1 asterisk asterisk 252844 Apr 25 16:09 3203-3202-2014-04-25-16:09:11.wav -rw-rw---- 1 asterisk asterisk 85804 Apr 25 13:22 3204-2301-2014-04-25-13:22:06.wav -rw-rw---- 1 asterisk asterisk 86444 Apr 24 12:58 3255-3201-1398333530.wav -rw-rw---- 1 asterisk asterisk 96364 Apr 25 17:02 3298-3201-2014-04-25-17:01:56.wav -rw-rw---- 1 asterisk asterisk 37644 Apr 24 13:29 3301-3201-1398335396.wav -rw-rw---- 1 asterisk asterisk 141484 Apr 24 14:53 3301-3201-1398340406.wav -rw-rw---- 1 asterisk asterisk 176684 Apr 25 17:24 3301-3203- 2014-04-25-17:24:17.wav drwxr-xr-x 2 root root 4096 Apr 26 18:05 etc |
#chown asterisk:asterisk /var/spool/asterisk/monitor/etc/
|
Время первой команды журнала | 14:30:58 2014- 4-26 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 17:08:27 2014- 4-26 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 96 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 16.67 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 4.17 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 2.62 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.61 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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