/l3/users/lee-roy/nt-voip-2013-11/linux3.unix.nt/root :1 :2 :3 |
|
#l3 -agent
l3 [command]: cd new_context - change current lilalo context pwd - show current lilalo context on - switch writing on (NOT IMPLEMENTED YET) off - switch writing off (NOT IMPLEMENTED YET) |
#l3-agent
|
#apt
apt-add-repository apt-extracttemplates aptitude-run-state-bundle apt-cache apt-ftparchive apt-key apt-cdrom apt-get apt-listchanges apt-config aptitude apt-mark aptd aptitude-create-state-bundle apt-sortpkgs aptdcon aptitude-curses |
#apt-get install bb
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: libmikmod2 oss-compat The following NEW packages will be installed: bb libmikmod2 oss-compat 0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded. Need to get 1,380 kB of archives. After this operation, 2,328 kB of additional disk space will be used. Do you want to continue [Y/n]? y Err http://192.168.15.254/debian/ wheezy/main libmikmod2 amd64 3.1.12-5 500 Internal Server Error Err http://192.168.15.254/debian/ wheezy/main oss-compat amd64 2 500 Internal Server Error Err http://192.168.15.254/debian/ wheezy/main bb amd64 1.3rc1-8.1 500 Internal Server Error Failed to fetch http://192.168.15.254:9999/debian/pool/main/libm/libmikmod/libmikmod2_3.1.12-5_amd64.deb 500 Internal Server Error Failed to fetch http://192.168.15.254:9999/debian/pool/main/o/oss-compat/oss-compat_2_amd64.deb 500 Internal Server Error Failed to fetch http://192.168.15.254:9999/debian/pool/main/b/bb/bb_1.3rc1-8.1_amd64.deb 500 Internal Server Error E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? |
#apt-get install bb
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: libmikmod2 oss-compat The following NEW packages will be installed: bb libmikmod2 oss-compat 0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded. Need to get 1,380 kB of archives. After this operation, 2,328 kB of additional disk space will be used. Do you want to continue [Y/n]? y Err http://192.168.15.254/debian/ wheezy/main libmikmod2 amd64 3.1.12-5 500 Internal Server Error Err http://192.168.15.254/debian/ wheezy/main oss-compat amd64 2 500 Internal Server Error Err http://192.168.15.254/debian/ wheezy/main bb amd64 1.3rc1-8.1 500 Internal Server Error Failed to fetch http://192.168.15.254:9999/debian/pool/main/libm/libmikmod/libmikmod2_3.1.12-5_amd64.deb 500 Internal Server Error Failed to fetch http://192.168.15.254:9999/debian/pool/main/o/oss-compat/oss-compat_2_amd64.deb 500 Internal Server Error Failed to fetch http://192.168.15.254:9999/debian/pool/main/b/bb/bb_1.3rc1-8.1_amd64.deb 500 Internal Server Error E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? |
#dpkg -l | wc -l
1555 |
#apt-cache search asterisk
asterisk - Open Source Private Branch Exchange (PBX) asterisk-config - Configuration files for Asterisk asterisk-dahdi - DAHDI devices support for the Asterisk PBX asterisk-dbg - Debugging symbols for Asterisk asterisk-dev - Development files for Asterisk asterisk-doc - Source code documentation for Asterisk asterisk-mobile - Bluetooth phone support for the Asterisk PBX asterisk-modules - loadable modules for the Asterisk PBX asterisk-mp3 - MP3 playback support for the Asterisk PBX asterisk-mysql - MySQL database protocol support for the Asterisk PBX ... linphone-dbg - Debugging symbols for linphone and its libraries op-panel - switchboard type application for the Asterisk PBX libopenr2-3 - MFC/R2 (telephony) call setup library python-asterisk - Asterisk Manager API interface module for Python libsipwitch-dev - secure peer-to-peer SIP VoIP server - development files libsipwitch1 - secure peer-to-peer SIP VoIP server - development files libsipwitch1-dbg - secure peer-to-peer SIP VoIP server - development files sipwitch - secure peer-to-peer VoIP server for the SIP protocol sipwitch-cgi - secure peer-to-peer SIP VoIP server - CGI XML-RPC interface python-starpy - Asterisk (AMI) protocols for Twisted Python |
#apt-get install asterisk
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: asterisk-config asterisk-core-sounds-en asterisk-core-sounds-en-gsm asterisk-modules asterisk-moh-opsound-gsm asterisk-voicemail autopoint debhelper freetds-common gettext git git-man html2text intltool-debian libcurl3 liberror-perl libgettextpo0 libiksemel3 libmail-sendmail-perl libodbc1 libpq5 libradiusclient-ng2 libresample1 libsaclm3 libsaevt3 libsox-fmt-alsa libsox-fmt-base libsox2 libsqlite0 libsrtp0 libsybdb5 libsys-hostname-long-perl libvpb0 module-assistant po-debconf rsync sox vpb-driver-source ... Failed to fetch http://192.168.15.254:9999/debian/pool/main/libm/libmail-sendmail-perl/libmail-sendmail-perl_0.79.16-1_all.deb Connection failed Failed to fetch http://192.168.15.254:9999/debian/pool/main/s/sox/libsox2_14.4.0-3_amd64.deb Connection failed Failed to fetch http://192.168.15.254:9999/debian/pool/main/s/sox/libsox-fmt-alsa_14.4.0-3_amd64.deb Connection failed Failed to fetch http://192.168.15.254:9999/debian/pool/main/s/sox/libsox-fmt-base_14.4.0-3_amd64.deb Connection failed Failed to fetch http://192.168.15.254:9999/debian/pool/main/m/module-assistant/module-assistant_0.11.4_all.deb Connection failed Failed to fetch http://192.168.15.254:9999/debian/pool/main/r/rsync/rsync_3.0.9-4_amd64.deb Connection failed Failed to fetch http://192.168.15.254:9999/debian/pool/main/s/sox/sox_14.4.0-3_amd64.deb Connection failed Failed to fetch http://192.168.15.254:9999/debian/pool/main/v/vpb-driver/vpb-driver-source_4.2.55-1_all.deb Connection failed Failed to fetch http://192.168.15.254:9999/debian/pool/main/a/asterisk-moh-opsound/asterisk-moh-opsound-gsm_2.03-1_all.deb Connection failed E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? |
#apt-get update
Err http://192.168.15.254 wheezy Release.gpg Connection failed Err http://192.168.15.254 wheezy-updates Release.gpg Connection failed Hit http://security.debian.org wheezy/updates Release.gpg Ign http://192.168.15.254 wheezy Release Hit http://security.debian.org wheezy/updates Release Ign http://192.168.15.254 wheezy-updates Release Hit http://security.debian.org wheezy/updates/main Sources Ign http://192.168.15.254 wheezy/main Sources/DiffIndex ... W: Failed to fetch http://192.168.15.254:9999/debian/dists/wheezy-updates/Release.gpg Connection failed W: Failed to fetch http://192.168.15.254:9999/debian/dists/wheezy/main/i18n/Translation-en_US Connection failed W: Failed to fetch http://192.168.15.254:9999/debian/dists/wheezy/main/i18n/Translation-en Connection failed W: Failed to fetch http://192.168.15.254:9999/debian/dists/wheezy-updates/main/i18n/Translation-en_US Connection failed W: Failed to fetch http://192.168.15.254:9999/debian/dists/wheezy-updates/main/i18n/Translation-en Connection failed W: Failed to fetch http://192.168.15.254:9999/debian/dists/wheezy/main/source/Sources Connection failed W: Failed to fetch http://192.168.15.254:9999/debian/dists/wheezy/main/binary-amd64/Packages Connection failed W: Failed to fetch http://192.168.15.254:9999/debian/dists/wheezy-updates/main/source/Sources Connection failed W: Failed to fetch http://192.168.15.254:9999/debian/dists/wheezy-updates/main/binary-amd64/Packages Connection failed E: Some index files failed to download. They have been ignored, or old ones used instead. |
#apt-get install asterisk
Selecting previously unselected package libgettextpo0:amd64. Unpacking libgettextpo0:amd64 (from .../libgettextpo0_0.18.1.1-9_amd64.deb) ... Selecting previously unselected package libodbc1:amd64. Unpacking libodbc1:amd64 (from .../libodbc1_2.2.14p2-5_amd64.deb) ... Selecting previously unselected package freetds-common. Unpacking freetds-common (from .../freetds-common_0.91-2+deb7u1_all.deb) ... Selecting previously unselected package libsybdb5:amd64. Unpacking libsybdb5:amd64 (from .../libsybdb5_0.91-2+deb7u1_amd64.deb) ... Selecting previously unselected package asterisk-config. Unpacking asterisk-config (from .../asterisk-config_1%3a1.8.13.1~dfsg-3+deb7u1_all.deb) ... ... Setting up libmail-sendmail-perl (0.79.16-1) ... Setting up libsox2 (14.4.0-3) ... Setting up libsox-fmt-alsa (14.4.0-3) ... Setting up libsox-fmt-base (14.4.0-3) ... Setting up module-assistant (0.11.4) ... Setting up rsync (3.0.9-4) ... update-rc.d: using dependency based boot sequencing Setting up sox (14.4.0-3) ... Setting up vpb-driver-source (4.2.55-1) ... Setting up asterisk-moh-opsound-gsm (2.03-1) ... |
#dpkg -l asterisk
Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-===================-==============-==============-============================================ ii asterisk 1:1.8.13.1~dfs amd64 Open Source Private Branch Exchange (PBX) |
#dpkg -L asterisk | less
|
#ls -l /etc/rc2.d/*asterisk
lrwxrwxrwx 1 root root 18 Nov 18 14:55 /etc/rc2.d/S17asterisk -> ../init.d/asterisk |
#ls /etc/init.d/asterisk
/etc/init.d/asterisk |
#/etc/init.d/asterisk start
Asterisk PBX is already running. Use restart. |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#ls /etc/default/asterisk
/etc/default/asterisk |
#dpkg -L asterisk | grep default
/etc/default /etc/default/asterisk |
#ps aux | wc -l
139 |
#kill -l
1) SIGHUP 2) SIGINT 3) SIGQUIT 4) SIGILL 5) SIGTRAP 6) SIGABRT 7) SIGBUS 8) SIGFPE 9) SIGKILL 10) SIGUSR1 11) SIGSEGV 12) SIGUSR2 13) SIGPIPE 14) SIGALRM 15) SIGTERM 16) SIGSTKFLT 17) SIGCHLD 18) SIGCONT 19) SIGSTOP 20) SIGTSTP 21) SIGTTIN 22) SIGTTOU 23) SIGURG 24) SIGXCPU 25) SIGXFSZ 26) SIGVTALRM 27) SIGPROF 28) SIGWINCH 29) SIGIO 30) SIGPWR 31) SIGSYS 34) SIGRTMIN 35) SIGRTMIN+1 36) SIGRTMIN+2 37) SIGRTMIN+3 38) SIGRTMIN+4 39) SIGRTMIN+5 40) SIGRTMIN+6 41) SIGRTMIN+7 42) SIGRTMIN+8 43) SIGRTMIN+9 44) SIGRTMIN+10 45) SIGRTMIN+11 46) SIGRTMIN+12 47) SIGRTMIN+13 48) SIGRTMIN+14 49) SIGRTMIN+15 50) SIGRTMAX-14 51) SIGRTMAX-13 52) SIGRTMAX-12 53) SIGRTMAX-11 54) SIGRTMAX-10 55) SIGRTMAX-9 56) SIGRTMAX-8 57) SIGRTMAX-7 58) SIGRTMAX-6 59) SIGRTMAX-5 60) SIGRTMAX-4 61) SIGRTMAX-3 62) SIGRTMAX-2 63) SIGRTMAX-1 64) SIGRTMAX |
#ps aux | grep bash
user 3743 0.0 0.0 20148 2960 pts/0 Ss 13:13 0:00 bash user 10904 0.0 0.0 20148 2844 pts/1 Ss 13:38 0:00 bash user 10960 0.0 0.0 20188 2852 pts/2 Ss 13:45 0:00 /bin/bash root 16963 0.0 0.0 7828 872 pts/3 S+ 15:38 0:00 grep bash |
#ps aux | grep asterisk
asterisk 16874 0.1 0.1 754208 30124 ? Ssl 15:29 0:00 /usr/sbin/asterisk -p -U asterisk asterisk 16875 0.0 0.0 13908 772 ? S 15:29 0:00 astcanary /var/run/asterisk/alt.asterisk.canary.tweet.tweet.tweet 16874 root 16972 0.0 0.0 7828 884 pts/3 S+ 15:38 0:00 grep asterisk |
#kill -l
1) SIGHUP 2) SIGINT 3) SIGQUIT 4) SIGILL 5) SIGTRAP 6) SIGABRT 7) SIGBUS 8) SIGFPE 9) SIGKILL 10) SIGUSR1 11) SIGSEGV 12) SIGUSR2 13) SIGPIPE 14) SIGALRM 15) SIGTERM 16) SIGSTKFLT 17) SIGCHLD 18) SIGCONT 19) SIGSTOP 20) SIGTSTP 21) SIGTTIN 22) SIGTTOU 23) SIGURG 24) SIGXCPU 25) SIGXFSZ 26) SIGVTALRM 27) SIGPROF 28) SIGWINCH 29) SIGIO 30) SIGPWR 31) SIGSYS 34) SIGRTMIN 35) SIGRTMIN+1 36) SIGRTMIN+2 37) SIGRTMIN+3 38) SIGRTMIN+4 39) SIGRTMIN+5 40) SIGRTMIN+6 41) SIGRTMIN+7 42) SIGRTMIN+8 43) SIGRTMIN+9 44) SIGRTMIN+10 45) SIGRTMIN+11 46) SIGRTMIN+12 47) SIGRTMIN+13 48) SIGRTMIN+14 49) SIGRTMIN+15 50) SIGRTMAX-14 51) SIGRTMAX-13 52) SIGRTMAX-12 53) SIGRTMAX-11 54) SIGRTMAX-10 55) SIGRTMAX-9 56) SIGRTMAX-8 57) SIGRTMAX-7 58) SIGRTMAX-6 59) SIGRTMAX-5 60) SIGRTMAX-4 61) SIGRTMAX-3 62) SIGRTMAX-2 63) SIGRTMAX-1 64) SIGRTMAX |
#pstree | less
|
#netstat -lnp | grep asterisk
tcp 0 0 127.0.0.1:5038 0.0.0.0:* LISTEN 16874/asterisk tcp 0 0 0.0.0.0:2000 0.0.0.0:* LISTEN 16874/asterisk udp 0 0 0.0.0.0:4520 0.0.0.0:* 16874/asterisk udp 0 0 0.0.0.0:4569 0.0.0.0:* 16874/asterisk udp 0 0 0.0.0.0:5000 0.0.0.0:* 16874/asterisk udp 0 0 0.0.0.0:5060 0.0.0.0:* 16874/asterisk unix 2 [ ACC ] STREAM LISTENING 40019 16874/asterisk /var/run/asterisk/asterisk.ctl |
#ls -l /var/run/asterisk/asterisk.ctl
srwxrwx--- 1 asterisk asterisk 0 Nov 18 15:29 /var/run/asterisk/asterisk.ctl |
#asterisk -r
Asterisk 1.8.13.1~dfsg-3+deb7u1, Copyright (C) 1999 - 2012 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 1.8.13.1~dfsg-3+deb7u1 currently running on linux3 (pid = 16874) linux3*CLI> quit |
#/etc/init.d/asterisk stop
Stopping Asterisk PBX: asterisk. |
#dpkg -L asterisk-modules | sort | less
|
#asterisk -r
Asterisk 1.8.13.1~dfsg-3+deb7u1, Copyright (C) 1999 - 2012 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 1.8.13.1~dfsg-3+deb7u1 currently running on linux3 (pid = 17089) linux3*CLI> quit |
#mv /etc/asterisk/sip.conf /etc/asterisk/sip.conf.SAVED
|
#vim /etc/asterisk/sip
|
#vim /etc/asterisk/sip
|
#vim /etc/asterisk/sip.conf
--- /dev/null 2013-11-18 13:07:13.553192327 +0200 +++ /etc/asterisk/sip.conf 2013-11-18 16:54:39.334437718 +0200 @@ -0,0 +1,16 @@ + +context=default + +[2301] + +type=friend +secret=1234 +host=dynamic + +context=default + +[2302] + +type=friend +secret=1234 +host=dynamic |
#vim /etc/asterisk/sip.conf
|
#ls -l /etc/asterisk/sip.conf
-rw-r--r-- 1 root root 126 Nov 18 16:54 /etc/asterisk/sip.conf |
#cat /etc/asterisk/sip.conf
[general] context=default [2301] type=friend secret=1234 host=dynamic context=default [2302] type=friend secret=1234 host=dynamic |
#ls -l /etc/asterisk/sip.conf
-rw-r--r-- 1 root root 136 Nov 18 17:00 /etc/asterisk/sip.conf |
#seep show peers
l3script: seep: command not found |
#seep show pers
l3script: seep: command not found |
#sip show peers
l3script: sip: command not found |
#sip show pirs
l3script: sip: command not found |
#asterisk -rvvv
Asterisk 1.8.13.1~dfsg-3+deb7u1, Copyright (C) 1999 - 2012 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. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.8.13.1~dfsg-3+deb7u1 currently running on linux3 (pid = 17089) Verbosity was 0 and is now 3 -- Registered SIP '2301' at 192.168.15.211:5060 linux3*CLI> quit Executing last minute cleanups |
#asterisk -rvvv
Asterisk 1.8.13.1~dfsg-3+deb7u1, Copyright (C) 1999 - 2012 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. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.8.13.1~dfsg-3+deb7u1 currently running on linux3 (pid = 17089) ... 2302 (Unspecified) D N 0 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 1 online, 1 offline] == Using SIP RTP CoS mark 5 [Nov 18 17:18:46] NOTICE[17127]: chan_sip.c:22753 handle_request_invite: Call from '2301' (192.168.15.211:5060) to extension '2201' rejected because extension not found in context 'default'. == Using SIP RTP CoS mark 5 [Nov 18 17:18:56] NOTICE[17127]: chan_sip.c:22753 handle_request_invite: Call from '2301' (192.168.15.211:5060) to extension '1201' rejected because extension not found in context 'default'. == Using SIP RTP CoS mark 5 [Nov 18 17:19:07] NOTICE[17127]: chan_sip.c:22753 handle_request_invite: Call from '2301' (192.168.15.211:5060) to extension '1201' rejected because extension not found in context 'default'. linux3*CLI> quit Executing last minute cleanups |
#/etc/asterisk/extensions.conf
l3script: /etc/asterisk/extensions.conf: Permission denied |
#/etc/asterisk/extensions.conf
l3script: /etc/asterisk/extensions.conf: Permission denied |
#mv /etc/asterisk/extensions.conf{,.SAVED}
|
#vim /etc/asterisk/extensions.conf
|
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-11396.9239.784 2013-11-18 17:31:55.638442402 +0200 +++ /etc/asterisk/extensions.conf 2013-11-18 17:32:12.558442440 +0200 @@ -1,6 +1,6 @@ [default] -exten => 4000,1, Ansver +exten => 4000,1, Answer exten => 4000,n,Playback(demo-thanks) |
#vim /etc/asterisk/extensions.conf
|
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-11396.16256.31125 2013-11-19 09:34:49.990563439 +0200 +++ /etc/asterisk/extensions.conf 2013-11-19 09:36:35.002563658 +0200 @@ -7,3 +7,5 @@ exten => 2301,1,Dial(SIP/2301) exten => 2302,1,Dial(SIP/2302) +# exten => _33XX,1,Dial(SIP/${EXTEN} | +# exten => _44XX,1,Dial(SIP/33${EXTEN:-2}) |
#~
|
#vim /etc/asterisk/sip.conf
|
#vim /etc/asterisk/sip.conf
|
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-11396.22304.2939 2013-11-19 10:45:53.814572368 +0200 +++ /etc/asterisk/sip.conf 2013-11-19 10:49:08.090572777 +0200 @@ -3,6 +3,8 @@ context=default directmedia=no +register => liverpool:1234@192.168.15.4/london +register => liverpool:1234@192.168.15.5/manchester [2301] |
#vim /etc/asterisk/sip.conf
|
#canreinvite=no
exten => 4000,1, Answer exten => 4000,n,Playback(demo-thanks) ( ) exten => 2301,1,Dial(SIP/2301) exten => _23XX,1,Answer exten => _23XX,n,Dial(SIP/${EXTEN}) exten => _21XX,1,Answer exten => _21XX,n,Dial(SIP/kiev/${EXTEN}) # exten => _33XX,1,Dial(SIP/${EXTEN} | exten => _22XX,1,Answer ... ~ ~ ~ ~ ~ ~ ~ ~ ~ "/etc/asterisk/extensions.conf" 24L, 869C written |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-11396.7529.16517 2013-11-19 10:59:59.130574139 +0200 +++ /etc/asterisk/extensions.conf 2013-11-19 11:01:39.346574353 +0200 @@ -15,10 +15,15 @@ exten => _23XX,n,Dial(SIP/${EXTEN}) exten => _21XX,1,Answer -exten => _21XX,n,Dial(SIP/kiev/${EXTEN}) +exten => _21XX,n,Dial(SIP//${EXTEN}) +ndon exten => _22XX,1,Answer -exten => _22XX,n,Dial(SIP/kharkov/${EXTEN}) +exten => _22XX,n,Dial(SIP/manchester/${EXTEN}) -exten => _[13]XXX,1,Answer -exten => _[13]XXX,n,Dial(SIP/london/${EXTEN}) +exten => _[1]XXX,1,Answer +exten => _[1]XXX,n,Dial(SIP/kiev/${EXTEN}) + +exten => _[3]XXX,1,Answer +exten => _[3]XXX,n,Dial(SIP/ottava/${EXTEN}) + |
#vim /etc/asterisk/extensions.conf
|
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-11396.27486.13471 2013-11-19 11:07:17.378575060 +0200 +++ /etc/asterisk/extensions.conf 2013-11-19 11:11:32.226575593 +0200 @@ -15,15 +15,12 @@ exten => _23XX,n,Dial(SIP/${EXTEN}) exten => _21XX,1,Answer -exten => _21XX,n,Dial(SIP//${EXTEN}) -ndon +exten => _21XX,n,Dial(SIP/london/${EXTEN}) + exten => _22XX,1,Answer exten => _22XX,n,Dial(SIP/manchester/${EXTEN}) -exten => _[1]XXX,1,Answer -exten => _[1]XXX,n,Dial(SIP/kiev/${EXTEN}) - -exten => _[3]XXX,1,Answer -exten => _[3]XXX,n,Dial(SIP/ottava/${EXTEN}) +exten => _[13]XXX,1,Answer +exten => _[13]XXX,n,Dial(SIP/london/${EXTEN}) |
#vim /etc/asterisk/extensions.conf
|
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-11396.19038.14742 2013-11-19 11:16:55.710576272 +0200 +++ /etc/asterisk/extensions.conf 2013-11-19 11:17:24.998576332 +0200 @@ -1,11 +1,11 @@ [default] -exten => 4000,1, Answer -exten => 4000,n,Playback(demo-thanks) +#exten => 4000,1, Answer +#exten => 4000,n,Playback(demo-thanks) -exten => 2301,1,Dial(SIP/2301) -exten => 2302,1,Dial(SIP/2302) +#exten => 2301,1,Dial(SIP/2301) +#exten => 2302,1,Dial(SIP/2302) # exten => _33XX,1,Dial(SIP/${EXTEN} # exten => _44XX,1,Dial(SIP/33${EXTEN:-2}) |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-11396.27908.19468 2013-11-19 11:18:41.670576497 +0200 +++ /etc/asterisk/extensions.conf 2013-11-19 11:18:55.846576524 +0200 @@ -1,11 +1,11 @@ [default] -#exten => 4000,1, Answer -#exten => 4000,n,Playback(demo-thanks) +exten => 4000,1, Answer +exten => 4000,n,Playback(demo-thanks) -#exten => 2301,1,Dial(SIP/2301) -#exten => 2302,1,Dial(SIP/2302) +exten => 2301,1,Dial(SIP/2301) +exten => 2302,1,Dial(SIP/2302) # exten => _33XX,1,Dial(SIP/${EXTEN} # exten => _44XX,1,Dial(SIP/33${EXTEN:-2}) |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-11396.24635.5531 2013-11-19 11:58:50.550581538 +0200 +++ /etc/asterisk/extensions.conf 2013-11-19 11:59:30.638581618 +0200 @@ -23,4 +23,21 @@ exten => _[13]XXX,1,Answer exten => _[13]XXX,n,Dial(SIP/london/${EXTEN}) + +#[local] + +#exten => _33XX,1,Answer | +#exten => _33XX,n,Dial(SIP/${EXTEN}) | + +#[national] + +#exten => _31XX,1,Answer | +#exten => _31XX,n,Dial(SIP/london/${EXTEN}) | + | +#exten => _32XX,1,Answer | +#exten => _32XX,n,Dial(SIP/manchester/${EXTEN}) | +#[international] + +#exten => _[12]XXX,1,Answer | +#exten => _[12]XXX,n,Dial(SIP/london/${EXTEN}) |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-11396.15769.26063 2013-11-19 13:07:42.718590196 +0200 +++ /etc/asterisk/extensions.conf 2013-11-19 13:09:48.794590461 +0200 @@ -11,33 +11,47 @@ # exten => _44XX,1,Dial(SIP/33${EXTEN:-2}) -exten => _23XX,1,Answer -exten => _23XX,n,Dial(SIP/${EXTEN}) +#exten => _23XX,1,Answer +#exten => _23XX,n,Dial(SIP/${EXTEN}) -exten => _21XX,1,Answer -exten => _21XX,n,Dial(SIP/london/${EXTEN}) +#exten => _21XX,1,Answer +#exten => _21XX,n,Dial(SIP/london/${EXTEN}) -exten => _22XX,1,Answer -exten => _22XX,n,Dial(SIP/manchester/${EXTEN}) +#exten => _22XX,1,Answer +#exten => _22XX,n,Dial(SIP/manchester/${EXTEN}) -exten => _[13]XXX,1,Answer -exten => _[13]XXX,n,Dial(SIP/london/${EXTEN}) +#exten => _[13]XXX,1,Answer +#exten => _[13]XXX,n,Dial(SIP/london/${EXTEN}) -#[local] +[local] -#exten => _33XX,1,Answer | -#exten => _33XX,n,Dial(SIP/${EXTEN}) | +exten => _33XX,1,Answer +exten => _33XX,n,Dial(SIP/${EXTEN}) -#[national] +[national] -#exten => _31XX,1,Answer | -#exten => _31XX,n,Dial(SIP/london/${EXTEN}) | - | -#exten => _32XX,1,Answer | -#exten => _32XX,n,Dial(SIP/manchester/${EXTEN}) | +exten => _31XX,1,Answer +exten => _31XX,n,Dial(SIP/london/${EXTEN}) + +exten => _32XX,1,Answer +exten => _32XX,n,Dial(SIP/manchester/${EXTEN}) -#[international] +[international] -#exten => _[12]XXX,1,Answer | -#exten => _[12]XXX,n,Dial(SIP/london/${EXTEN}) +exten => _[12]XXX,1,Answer +exten => _[12]XXX,n,Dial(SIP/london/${EXTEN}) + +[gr1] +include => local +include => national +include => international + +[gr2] +include => local +include => national + +[gr3] +include => local + + |
#vim /etc/asterisk/extensions.conf
|
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-11396.505.14463 2013-11-19 13:16:47.950591336 +0200 +++ /etc/asterisk/extensions.conf 2013-11-19 13:17:33.894591434 +0200 @@ -26,21 +26,21 @@ [local] -exten => _33XX,1,Answer -exten => _33XX,n,Dial(SIP/${EXTEN}) +exten => _23XX,1,Answer +exten => _23XX,n,Dial(SIP/${EXTEN}) [national] -exten => _31XX,1,Answer -exten => _31XX,n,Dial(SIP/london/${EXTEN}) +exten => _21XX,1,Answer +exten => _21XX,n,Dial(SIP/london/${EXTEN}) -exten => _32XX,1,Answer -exten => _32XX,n,Dial(SIP/manchester/${EXTEN}) +exten => _22XX,1,Answer +exten => _22XX,n,Dial(SIP/manchester/${EXTEN}) [international] -exten => _[12]XXX,1,Answer -exten => _[12]XXX,n,Dial(SIP/london/${EXTEN}) +exten => _[13]XXX,1,Answer +exten => _[13]XXX,n,Dial(SIP/london/${EXTEN}) [gr1] include => local |
#vim /etc/asterisk/extensions.conf
|
#[local]
#exten => _[13]XXX,1,Answer [internal]000,n,Pl,n,Dial(SIP/london/${EXTEN}) [internal]000,1, Answer exten => 4000,1, Answer [internationa,n,Playback(demo-thanks) [local]> _23XX,1,Answer exten => _23XX,1,Answer [national][13],n,Dial(SIP/${EXTEN})/${EXTEN}) [national]21XX,1,Answer exten => _21XX,1,Answer ... [gr2] include => national [gr2] include => internal [gr2] [gr3] [gr3] include => internal [gr3]de => local "/etc/asterisk/extensions.conf" 66L, 1877C written |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-11396.9890.10217 2013-11-19 13:40:03.354594262 +0200 +++ /etc/asterisk/extensions.conf 2013-11-19 13:40:28.646594312 +0200 @@ -1,11 +1,11 @@ [default] -exten => 4000,1, Answer -exten => 4000,n,Playback(demo-thanks) +#exten => 4000,1, Answer +#exten => 4000,n,Playback(demo-thanks) -exten => 2301,1,Dial(SIP/2301) -exten => 2302,1,Dial(SIP/2302) +#exten => 2301,1,Dial(SIP/2301) +#exten => 2302,1,Dial(SIP/2302) # exten => _33XX,1,Dial(SIP/${EXTEN} # exten => _44XX,1,Dial(SIP/33${EXTEN:-2}) |
#vim /etc/asterisk/extensions.conf
|
#[ ]
[default] #exten => 4000,1, Answer #exten => 4000,n,Playback(demo-thanks) #exten => 2301,1,Dial(SIP/2301) #exten => 2302,1,Dial(SIP/2302) # exten => _33XX,1,Dial(SIP/${EXTEN} # exten => _44XX,1,Dial(SIP/33${EXTEN:-2}) "/etc/asterisk/extensions.conf" 66L, 1881C #exten => _23XX,1,Answer #exten => _23XX,n,Dial(SIP/${EXTEN}) ... exten => _23XX,n,Dial(SIP/${EXTEN}) "/etc/asterisk/extensions.conf" 68L, 2000C written exten => _21XX,1,Answer exten => _21XX,n,Dial(SIP/london/${EXTEN}) exten => _22XX,1,Answer exten => _22XX,n,Dial(SIP/manchester/${EXTEN}) [international] exten => _[13]XXX,1,Answer exten => _[13]XXX,n,Dial(SIP/london/${EXTEN}) [gr1] |
#mkdir -p /var/tmp/asterisk/records/
|
#chown -R asterisk:asterisk /var/tmp/asterisk/
|
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-11396.6670.21829 2013-11-19 14:22:59.106599658 +0200 +++ /etc/asterisk/extensions.conf 2013-11-19 14:23:16.362599696 +0200 @@ -30,7 +30,7 @@ exten => 4000,n,Playback(demo-thanks) exten => 8000,1,Answer | -exten => 8000,n,Record(var/tmp/asterisk/records/record00:gsm) +exten => 8000,n,Record(/var/tmp/asterisk/records/record00:gsm) [local] |
#vim /etc/asterisk/extensions.conf
|
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-11396.31426.31877 2013-11-19 14:24:38.678599867 +0200 +++ /etc/asterisk/extensions.conf 2013-11-19 14:25:17.562599946 +0200 @@ -29,7 +29,7 @@ exten => 4000,1, Answer exten => 4000,n,Playback(demo-thanks) -exten => 8000,1,Answer | +exten => 8000,1,Answer exten => 8000,n,Record(/var/tmp/asterisk/records/record00:gsm) [local] |
#vim /etc/asterisk/extensions.conf
|
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-11396.29139.5195 2013-11-19 14:29:29.582600477 +0200 +++ /etc/asterisk/extensions.conf 2013-11-19 14:30:13.558600570 +0200 @@ -30,8 +30,8 @@ exten => 4000,n,Playback(demo-thanks) exten => 8000,1,Answer -exten => 8000,n,Record(/var/tmp/asterisk/records/record00:gsm) -exten => 8000,n,Playback(/var/tmp/asterisk/records/record00) +exten => _80XX,n,Record(/var/tmp/asterisk/records/record${EXTEN:2}:gsm) +exten => _80XX,n,Playback(/var/tmp/asterisk/records/record${EXTEN:2}) [local] |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-11396.30527.1019 2013-11-19 14:33:27.018600970 +0200 +++ /etc/asterisk/extensions.conf 2013-11-19 14:33:55.942601035 +0200 @@ -29,7 +29,7 @@ exten => 4000,1, Answer exten => 4000,n,Playback(demo-thanks) -exten => 8000,1,Answer +exten => _80XX,1,Answer exten => _80XX,n,Record(/var/tmp/asterisk/records/record${EXTEN:2}:gsm) exten => _80XX,n,Playback(/var/tmp/asterisk/records/record${EXTEN:2}) |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-11396.7033.20541 2013-11-19 14:38:57.074601666 +0200 +++ /etc/asterisk/extensions.conf 2013-11-19 14:41:25.782601972 +0200 @@ -36,8 +36,10 @@ [local] -exten => _23XX,1,Answer -exten => _23XX,n,Dial(SIP/${EXTEN}) +exten => _23XX,1,Answer +exten => _23XX,n,Monitor(wav,123) +exten => _23XX,n,Dial(SIP/${EXTEN}) + [national] |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-11396.2138.642 2013-11-19 14:46:37.694602629 +0200 +++ /etc/asterisk/extensions.conf 2013-11-19 14:47:06.282602692 +0200 @@ -37,7 +37,8 @@ [local] exten => _23XX,1,Answer -exten => _23XX,n,Monitor(wav,123) +exten => _23XX,n,Set(MON_FILE=${EXTEN}-${CALLERID(num)}-${EPOCH}) +exten => _23XX,n,Monitor(wav,${MON_FILE},m) exten => _23XX,n,Dial(SIP/${EXTEN}) |
#vim /etc/asterisk/extensions.conf
|
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-11396.25772.4597 2013-11-19 15:28:45.078607925 +0200 +++ /etc/asterisk/extensions.conf 2013-11-19 15:30:43.246608177 +0200 @@ -39,7 +39,8 @@ exten => _23XX,1,Answer exten => _23XX,n,Set(MON_FILE=${EXTEN}-${CALLERID(num)}-${EPOCH}) exten => _23XX,n,Monitor(wav,${MON_FILE},m) -exten => _23XX,n,Dial(SIP/${EXTEN}) +exten => _23XX,n,Dial(SIP/${EXTEN},5) +exten => _23XX,n,Voicemail(${EXTEN}@default) [national] |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-11396.7857.5703 2013-11-19 15:48:40.098610429 +0200 +++ /etc/asterisk/extensions.conf 2013-11-19 15:49:11.422610495 +0200 @@ -32,6 +32,7 @@ exten => _80XX,1,Answer exten => _80XX,n,Record(/var/tmp/asterisk/records/record${EXTEN:2}:gsm) exten => _80XX,n,Playback(/var/tmp/asterisk/records/record${EXTEN:2}) +exten => 8100,1,VoiceMailMain() [local] |
#apt-cache search asterisk sounds
asterisk-core-sounds-en - asterisk PBX sound files - US English asterisk-core-sounds-en-g722 - asterisk PBX sound files - en-us/g722 asterisk-core-sounds-en-gsm - asterisk PBX sound files - en-us/gsm asterisk-core-sounds-en-wav - asterisk PBX sound files - en-us/wav asterisk-core-sounds-es - asterisk PBX sound files - Spanish asterisk-core-sounds-es-g722 - asterisk PBX sound files - es-mx/g722 asterisk-core-sounds-es-gsm - asterisk PBX sound files - es-mx/gsm asterisk-core-sounds-es-wav - asterisk PBX sound files - es-mx/wav asterisk-core-sounds-fr - asterisk PBX sound files - Canadian French asterisk-core-sounds-fr-g722 - asterisk PBX sound files - fr-ca/g722 asterisk-core-sounds-fr-gsm - asterisk PBX sound files - fr-ca/gsm asterisk-core-sounds-fr-wav - asterisk PBX sound files - fr-ca/wav asterisk-core-sounds-ru - asterisk PBX sound files - Russian asterisk-core-sounds-ru-g722 - asterisk PBX sound files - ru-ru/g722 asterisk-core-sounds-ru-gsm - asterisk PBX sound files - ru-ru/gsm asterisk-core-sounds-ru-wav - asterisk PBX sound files - ru-ru/wav asterisk-prompt-it-menardi - asterisk PBX Italian sound files |
#apt-cache search asterisk sounds-fr
asterisk-core-sounds-fr - asterisk PBX sound files - Canadian French asterisk-core-sounds-fr-g722 - asterisk PBX sound files - fr-ca/g722 asterisk-core-sounds-fr-gsm - asterisk PBX sound files - fr-ca/gsm asterisk-core-sounds-fr-wav - asterisk PBX sound files - fr-ca/wav |
#apt-cache search asterisk sounds-fr
asterisk-core-sounds-fr - asterisk PBX sound files - Canadian French asterisk-core-sounds-fr-g722 - asterisk PBX sound files - fr-ca/g722 asterisk-core-sounds-fr-gsm - asterisk PBX sound files - fr-ca/gsm asterisk-core-sounds-fr-wav - asterisk PBX sound files - fr-ca/wav |
#apt-get install asterisk-core-sounds-ru
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: asterisk-core-sounds-ru-gsm The following NEW packages will be installed: asterisk-core-sounds-ru asterisk-core-sounds-ru-gsm 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 2,078 kB of archives. After this operation, 2,263 kB of additional disk space will be used. ... Fetched 2,078 kB in 0s (31.1 MB/s) Selecting previously unselected package asterisk-core-sounds-ru-gsm. (Reading database ... 138284 files and directories currently installed.) Unpacking asterisk-core-sounds-ru-gsm (from .../asterisk-core-sounds-ru-gsm_1.4.22-1_all.deb) ... Selecting previously unselected package asterisk-core-sounds-ru. Unpacking asterisk-core-sounds-ru (from .../asterisk-core-sounds-ru_1.4.22-1_all.deb) ... Setting up asterisk-core-sounds-ru-gsm (1.4.22-1) ... Setting up asterisk-core-sounds-ru (1.4.22-1) ... update-alternatives: using /usr/share/asterisk/sounds/ru_RU_f_IvrvoiceRU to provide /usr/share/asterisk/sounds/ru (asterisk-prompt-ru) in auto mode update-alternatives: using /usr/share/asterisk/sounds/ru_RU_f_IvrvoiceRU to provide /usr/share/asterisk/sounds/ru_RU (asterisk-prompt-ru-ru) in auto mode |
#apt-get install asterisk-core-sounds-fr
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: asterisk-core-sounds-fr-gsm The following NEW packages will be installed: asterisk-core-sounds-fr asterisk-core-sounds-fr-gsm 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 2,174 kB of archives. After this operation, 2,441 kB of additional disk space will be used. ... Fetched 2,174 kB in 0s (32.2 MB/s) Selecting previously unselected package asterisk-core-sounds-fr-gsm. (Reading database ... 138753 files and directories currently installed.) Unpacking asterisk-core-sounds-fr-gsm (from .../asterisk-core-sounds-fr-gsm_1.4.22-1_all.deb) ... Selecting previously unselected package asterisk-core-sounds-fr. Unpacking asterisk-core-sounds-fr (from .../asterisk-core-sounds-fr_1.4.22-1_all.deb) ... Setting up asterisk-core-sounds-fr-gsm (1.4.22-1) ... Setting up asterisk-core-sounds-fr (1.4.22-1) ... update-alternatives: using /usr/share/asterisk/sounds/fr_CA_f_June to provide /usr/share/asterisk/sounds/fr (asterisk-prompt-fr) in auto mode update-alternatives: using /usr/share/asterisk/sounds/fr_CA_f_June to provide /usr/share/asterisk/sounds/fr_CA (asterisk-prompt-fr-ca) in auto mode |
#vim /etc/asterisk/sip
|
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-11396.25081.31206 2013-11-19 15:53:06.910610987 +0200 +++ /etc/asterisk/sip.conf 2013-11-19 15:53:39.146611055 +0200 @@ -12,6 +12,7 @@ secret=1234 host=dynamic context=gr1 +language=fr [2302] @@ -19,6 +20,7 @@ secret=1234 host=dynamic context=gr3 +language=ru [london] |
#asterisk -rvvv
Asterisk 1.8.13.1~dfsg-3+deb7u1, Copyright (C) 1999 - 2012 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. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.8.13.1~dfsg-3+deb7u1 currently running on linux3 (pid = 17089) ... -- <SIP/2301-0000003d> Playing 'vm-login.gsm' (language 'fr') [Nov 19 15:56:16] WARNING[20352]: app_voicemail.c:9799 vm_authenticate: Couldn't read username [Nov 19 15:56:19] WARNING[20340]: app_voicemail.c:9842 vm_authenticate: Unable to read password == Using SIP RTP CoS mark 5 -- Executing [8100@gr3:1] VoiceMailMain("SIP/2302-0000003e", "") in new stack -- <SIP/2302-0000003e> Playing 'vm-login.gsm' (language 'ru') [Nov 19 15:56:22] NOTICE[20353]: channel.c:4170 __ast_read: Dropping incompatible voice frame on SIP/2302-0000003e of format ulaw since our native format has changed to 0x80002 (gsm|h263) [Nov 19 15:56:27] WARNING[20353]: app_voicemail.c:9799 vm_authenticate: Couldn't read username linux3*CLI> quit Executing last minute cleanups |
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-11396.6331.26001 2013-11-19 15:56:41.530611437 +0200 +++ /etc/asterisk/sip.conf 2013-11-19 15:57:01.726611480 +0200 @@ -19,7 +19,7 @@ type=friend secret=1234 host=dynamic -context=gr3 +context=gr1 language=ru |
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-11396.24066.3158 2013-11-19 15:57:51.806611582 +0200 +++ /etc/asterisk/sip.conf 2013-11-19 15:58:04.770611611 +0200 @@ -12,7 +12,7 @@ secret=1234 host=dynamic context=gr1 -language=fr +language=ru [2302] |
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-11396.17947.16889 2013-11-19 16:00:08.254611870 +0200 +++ /etc/asterisk/sip.conf 2013-11-19 16:00:23.418611902 +0200 @@ -12,7 +12,7 @@ secret=1234 host=dynamic context=gr1 -language=ru +language=ua [2302] |
#vim /etc/asterisk/sip.conf
|
#mkdir /usr/share/asterisk/sounds/it/
|
[general] context=default [2301] type=friend secret=1234 host=dynamic context=default [2302] type=friend secret=1234 host=dynamic
Время первой команды журнала | 13:19:07 2013-11-18 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 15:03:12 2013-11-19 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 100 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 9.00 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 4.00 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 5.44 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.31 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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