/l3/users/YOUR-L3BACKEND-USER/SET-YOUR-FIRSTLAB-NAME-HERE/debian6/root :1 :2 :3 :4 |
|
#l3pwd
/users/YOUR-L3BACKEND-USER/SET-YOUR-FIRSTLAB-NAME-HERE/debian6/root |
#vim install
|
#nano install
--- /tmp/l3-saved-5159.6610.18550 2014-04-22 14:00:40.633807249 +0300 +++ install 2014-04-22 14:01:10.933806838 +0300 @@ -7,8 +7,8 @@ # # Set this variables before installation: -lilalo_user=${lilalo_user:-YOUR-L3BACKEND-USER} -lab=${lab:-SET-YOUR-FIRSTLAB-NAME-HERE} +lilalo_user=briksi4 +lab=NT-VOIP install_l3bashrc_for_this_users=${users:-"root user"} # users who will use l3agent and l3script lilalo_context="/users/${lilalo_user}/${lab}/${hostname}" |
#apt-cache asterisk
E: Invalid operation asterisk |
#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 ... 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 asterisk-prompt-es - Spanish prompts for the Asterisk PBX dahdi-firmware-nonfree - DAHDI non-free firmware |
#apt-get install asterisk
Reading package lists... Done Building dependency tree Reading state information... Done asterisk is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. |
#apt-get install asterisk
Reading package lists... Done Building dependency tree Reading state information... Done asterisk is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. |
#apt-cash show asterisk
l3script: apt-cash: command not found |
#apt-cash show asterisk
l3script: apt-cash: command not found |
#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~d amd64 Open Source Private Branch Exchan |
#dpkg -l asterisk | less
|
#asterisk -rvvvvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, 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~dfsg1-3+deb7u3 currently running on debian6 (pid = 2274) Verbosity was 0 and is now 5 debian6*CLI> co No such command 'co' (type 'core show help co' for other possible commands) debian6*CLI> coreshowversion No such command 'coreshowversion' (type 'core show help coreshowversion' for other possible commands) debian6*CLI> core show version Asterisk 1.8.13.1~dfsg1-3+deb7u3 built by pbuilder @ pungenday on a x86_64 running Linux on 2014-01-04 01:03:48 UTC debian6*CLI> quit Executing last minute cleanups |
#/etc/init.d/asterisk stop
Stopping Asterisk PBX: asterisk. |
#/etc/init.d/asterisk start
Starting Asterisk PBX: asterisk. |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#/etc/init.d/asterisk start
Asterisk PBX is already running. Use restart. |
#mv /etc/asterisk/sip.conf{,.SAVED}
|
#echo /etc/asterisk/sip.conf.SAVED
/etc/asterisk/sip.conf.SAVED |
#context=default
|
#apt-get install isc-dhcp-server
Reading package lists... Done Building dependency tree Reading state information... Done Suggested packages: isc-dhcp-server-ldap The following NEW packages will be installed: isc-dhcp-server 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 935 kB of archives. After this operation, 2,075 kB of additional disk space will be used. ... Preconfiguring packages ... Selecting previously unselected package isc-dhcp-server. (Reading database ... 128750 files and directories currently installed.) Unpacking isc-dhcp-server (from .../isc-dhcp-server_4.2.2.dfsg.1-5+deb70u6_amd64.deb) ... Processing triggers for man-db ... Setting up isc-dhcp-server (4.2.2.dfsg.1-5+deb70u6) ... Generating /etc/default/isc-dhcp-server... [FAIL] Starting ISC DHCP server: dhcpd[....] check syslog for diagnostics. ... failed! failed! invoke-rc.d: initscript isc-dhcp-server, action "start" failed. |
#vim /etc/d
|
#vim /etc/dhcp/dhcp.conf
|
#nano /etc/dhcp/dhcp.conf
|
#dpkg -Lisc-dhcp-server | gerp /etc/
l3script: gerp: command not found dpkg: error: conflicting actions -i (--install) and -L (--listfiles) Type dpkg --help for help about installing and deinstalling packages [*]; Use `dselect' or `aptitude' for user-friendly package management; Type dpkg -Dhelp for a list of dpkg debug flag values; Type dpkg --force-help for a list of forcing options; Type dpkg-deb --help for help about manipulating *.deb files; Options marked [*] produce a lot of output - pipe it through `less' or `more' ! |
#dpkg -L isc-dhcp-server | gerp /etc/
l3script: gerp: command not found |
#dpkg -L isc-dhcp-server | grep /etc
/etc /etc/init.d /etc/init.d/isc-dhcp-server /etc/dhcp /etc/dhcp/dhcpd.conf |
#vim /etc/default/isc-dhcp-server
|
#Defaults for isc-dhcp-server initscript
l3script: nono: command not found |
#nano /etc/bash.bashrc
--- /tmp/l3-saved-5972.14786.4581 2014-04-22 16:43:20.429676499 +0300 +++ /etc/bash.bashrc 2014-04-22 16:43:30.057676360 +0300 @@ -29,13 +29,13 @@ #esac # enable bash completion in interactive shells -#if ! shopt -oq posix; then -# if [ -f /usr/share/bash-completion/bash_completion ]; then -# . /usr/share/bash-completion/bash_completion -# elif [ -f /etc/bash_completion ]; then -# . /etc/bash_completion -# fi -#fi +if ! shopt -oq posix; then + if [ -f /usr/share/bash-completion/bash_completion ]; then + . /usr/share/bash-completion/bash_completion + elif [ -f /etc/bash_completion ]; then + . /etc/bash_completion + fi +fi # if the command-not-found package is installed, use it if [ -x /usr/lib/command-not-found -o -x /usr/share/command-not-found/command-not-found ]; then |
#System-wide .bashrc file for interactive bash(1) shells.
root@debian6:/home/user# exit exit |
#exit
exit There are stopped jobs. |
#apt-get purge isc-dhcp-server
Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be REMOVED: isc-dhcp-server* 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. After this operation, 2,075 kB disk space will be freed. Do you want to continue [Y/n]? y (Reading database ... 128764 files and directories currently installed.) Removing isc-dhcp-server ... [FAIL] Stopping ISC DHCP server: dhcpd failed! Purging configuration files for isc-dhcp-server ... Processing triggers for man-db ... |
#apt-get install vim
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: vim-runtime Suggested packages: ctags vim-doc vim-scripts The following NEW packages will be installed: vim vim-runtime 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. ... Setting up vim-runtime (2:7.3.547-7) ... Processing /usr/share/vim/addons/doc Setting up vim (2:7.3.547-7) ... update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vim (vim) in auto mode update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vimdiff (vimdiff) in auto mode update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rvim (rvim) in auto mode update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rview (rview) in auto mode update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vi (vi) in auto mode update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/view (view) in auto mode update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/ex (ex) in auto mode |
#asterisk -rv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, 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~dfsg1-3+deb7u3 currently running on debian6 (pid = 6128) Verbosity is at least 1 debian6*CLI> sip reload ... 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 1 online, 1 offline] debian6*CLI> sip reload Reloading SIP debian6*CLI> sip show peers Name/username Host Dyn Forcerport ACL Port Status 2301/2301 192.168.12.204 D N 5060 Unmonitored 2302 (Unspecified) D N 0 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 1 online, 1 offline] debian6*CLI> quit Executing last minute cleanups |
#user
l3script: user: command not found |
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-7871.21987.26411 2014-04-22 17:22:14.117645225 +0300 +++ /etc/asterisk/extensions.conf 2014-04-22 17:24:50.249643130 +0300 @@ -12,6 +12,8 @@ ; The "General" category is for certain variables. ; [general] +exten => 2301,1,Dial(SIP/2301) + ; ; If static is set to no, or omitted, then the pbx_config will rewrite ; this file when extensions are modified. Remember that all comments |
#asterisk -rv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, 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~dfsg1-3+deb7u3 currently running on debian6 (pid = 6128) Verbosity is at least 3 debian6*CLI> dialplan show ... [ Context 'dundi-e164-local' created by 'pbx_config' ] Include => 'dundi-e164-canonical' [pbx_config] Include => 'dundi-e164-customers' [pbx_config] Include => 'dundi-e164-via-pstn' [pbx_config] [ Context 'dundi-e164-via-pstn' created by 'pbx_config' ] [ Context 'dundi-e164-customers' created by 'pbx_config' ] [ Context 'dundi-e164-canonical' created by 'pbx_config' ] -= 83 extensions (205 priorities) in 50 contexts. =- debian6*CLI> quit Executing last minute cleanups |
#nano /etc/asterisk/extensions.conf
|
#nano /etc/asterisk/extensions.conf
|
#vim /etc/asterisk/extensions.conf
|
#mv /etc/asterisk/extensions.conf{,.default}
|
#vim /etc/asterisk/extensions.conf
|
#Vituser
l3script: Vituser: command not found |
#ssh 192.168.12.254
The authenticity of host '192.168.12.254 (192.168.12.254)' can't be established. ECDSA key fingerprint is 54:92:13:d7:57:6c:9e:fa:73:5f:e5:c9:bf:f5:cb:18. Are you sure you want to continue connecting (yes/no)? y Please type 'yes' or 'no': y Please type 'yes' or 'no': yes Warning: Permanently added '192.168.12.254' (ECDSA) to the list of known hosts. root@192.168.12.254's password: Permission denied, please try again. root@192.168.12.254's password: Permission denied, please try again. root@192.168.12.254's password: |
#exit
exit There are stopped jobs. |
#Hi
l3script: Hi: command not found |
## Hi :)
|
## ÐобавлÑйÑе новоÐÑÑ Ð·Ð°Ð¿Ð¸ÑÑ
|
#asteriks -rv
l3script: asteriks: command not found |
#asterisk -rv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, 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~dfsg1-3+deb7u3 currently running on debian6 (pid = 6128) Verbosity is at least 3 debian6*CLI> show peers ... == Using SIP RTP CoS mark 5 -- Executing [2301@default:1] Dial("SIP/2302-00000006", "SIP/2301") in new stack == Using SIP RTP CoS mark 5 -- Called SIP/2301 -- SIP/2301-00000007 is ringing -- SIP/2301-00000007 answered SIP/2302-00000006 -- Remotely bridging SIP/2302-00000006 and SIP/2301-00000007 == Spawn extension (default, 2301, 1) exited non-zero on 'SIP/2302-00000006' debian6*CLI> quit Executing last minute cleanups |
#nano /etc/asterisk/sip.conf
--- /tmp/l3-saved-10598.22560.19174 2014-04-23 11:33:58.440767626 +0300 +++ /etc/asterisk/sip.conf 2014-04-23 11:47:16.272756938 +0300 @@ -1,5 +1,8 @@ [general] context=default +directmedia=no + +register => frankfurt:1234@192.168.12.3/berlin ; peer ; 2301-2399 @@ -12,3 +15,9 @@ type=friend secret=1234 host=dynamic + +[berlin] +type=friend +secret=1234 +host=dynamic +username=frankfurt |
#[general]
|
#nano /etc/asterisk/sip.conf
|
#nano /etc/asterisk/extensions.conf
|
#[default]
|
#[general]
|
#sip show peers
l3script: sip: command not found |
#nano /etc/asterisk/extensions.conf
|
#[default]
|
#[default]
|
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-10598.15020.2204 2014-04-23 13:24:33.924678726 +0300 +++ /etc/asterisk/extensions.conf 2014-04-23 13:27:16.956676544 +0300 @@ -3,4 +3,6 @@ exten => _23XX,1,Dial(SIP/${EXTEN}) exten => _13XX,1,Dial(SIP/berlin/${EXTEN}) -exten => _12XX,1,Dial(SIP/kiev/${EXTEN}) +exten => _12XX,1,Dial(SIP/berlin/${EXTEN}) +exten => _13XX,1,Dial(SIP/berlin/${EXTEN}) + |
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-10598.5104.186 2014-04-23 13:28:29.288675574 +0300 +++ /etc/asterisk/extensions.conf 2014-04-23 13:28:44.460675370 +0300 @@ -3,6 +3,7 @@ exten => _23XX,1,Dial(SIP/${EXTEN}) exten => _13XX,1,Dial(SIP/berlin/${EXTEN}) -exten => _12XX,1,Dial(SIP/berlin/${EXTEN}) -exten => _13XX,1,Dial(SIP/berlin/${EXTEN}) +exten => _12XX,1,Dial(SIP/kiev/${EXTEN}) +exten => _13XX,1,Dial(SIP/kiev/${EXTEN}) + |
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-10598.25037.13035 2014-04-23 13:30:36.536673869 +0300 +++ /etc/asterisk/extensions.conf 2014-04-23 13:32:30.060672355 +0300 @@ -3,7 +3,7 @@ exten => _23XX,1,Dial(SIP/${EXTEN}) exten => _13XX,1,Dial(SIP/berlin/${EXTEN}) -exten => _12XX,1,Dial(SIP/kiev/${EXTEN}) -exten => _13XX,1,Dial(SIP/kiev/${EXTEN}) +exten => _12XX,1,Dial(SIP/berlin/${EXTEN}) +exten => _11XX,1,Dial(SIP/berlin/${EXTEN}) |
#asterisk -rv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, 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~dfsg1-3+deb7u3 currently running on debian6 (pid = 6128) Verbosity is at least 3 == Using SIP RTP CoS mark 5 -- Executing [1101@default:1] Dial("SIP/2301-00000026", "SIP/berlin/1101") in new stack == Using SIP RTP CoS mark 5 -- Called SIP/berlin/1101 -- Got SIP response 503 "Service Unavailable" back from 192.168.12.3:5060 -- SIP/berlin-00000027 is circuit-busy == Everyone is busy/congested at this time (1:0/1/0) -- Auto fallthrough, channel 'SIP/2301-00000026' status is 'CONGESTION' debian6*CLI> quit Executing last minute cleanups |
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-10598.10108.25325 2014-04-23 13:33:00.320671941 +0300 +++ /etc/asterisk/extensions.conf 2014-04-23 13:34:42.016670581 +0300 @@ -3,7 +3,7 @@ exten => _23XX,1,Dial(SIP/${EXTEN}) exten => _13XX,1,Dial(SIP/berlin/${EXTEN}) -exten => _12XX,1,Dial(SIP/berlin/${EXTEN}) -exten => _11XX,1,Dial(SIP/berlin/${EXTEN}) +exten => _12XX,1,Dial(SIP/kiev/${EXTEN}) +exten => _11XX,1,Dial(SIP/kiev/${EXTEN}) |
#nano /etc/asterisk/sip.conf
--- /tmp/l3-saved-10598.14357.11056 2014-04-23 13:39:27.972666748 +0300 +++ /etc/asterisk/sip.conf 2014-04-23 13:41:23.120665204 +0300 @@ -6,6 +6,7 @@ register => frankfurt:1234@192.168.12.2/kiev + ; peer ; 2301-2399 [2301] @@ -23,3 +24,10 @@ secret=1234 host=dynamic username=frankfurt + +[kiev] +type=friend +secret=1234 +host=dynamic +username=frankfurt + |
#nano /etc/asterisk/sip.conf
--- /tmp/l3-saved-10598.484.19328 2014-04-23 13:41:47.404664888 +0300 +++ /etc/asterisk/sip.conf 2014-04-23 13:42:18.700664461 +0300 @@ -3,7 +3,7 @@ directmedia=no register => frankfurt:1234@192.168.12.3/berlin -register => frankfurt:1234@192.168.12.2/kiev +;register => frankfurt:1234@192.168.12.2/kiev |
#[default]
|
#nano /etc/asterisk/extensions.conf
|
#[default]
Asterisk 1.8.13.1~dfsg1-3+deb7u3, 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~dfsg1-3+deb7u3 currently running on debian6 (pid = 6128) Verbosity is at least 3 == Using SIP RTP CoS mark 5 [Apr 23 13:52:10] NOTICE[6166]: chan_sip.c:22753 handle_request_invite: Call from '2301' (192.168.12.204:5060) to extension '2102' rejected because extension not found in context 'default'. == Using SIP RTP CoS mark 5 [Apr 23 13:52:18] NOTICE[6166]: chan_sip.c:22753 handle_request_invite: Call from '2301' (192.168.12.204:5060) to extension '3201' rejected because extension not found in context 'default'. debian6*CLI> quit Executing last minute cleanups |
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-10598.16119.31800 2014-04-23 13:52:32.304656241 +0300 +++ /etc/asterisk/extensions.conf 2014-04-23 13:54:19.856654799 +0300 @@ -6,7 +6,9 @@ exten => _12XX,1,Dial(SIP/berlin/${EXTEN}) exten => _11XX,1,Dial(SIP/berlin/${EXTEN}) -exten => _3[123]XX,Dial(SIP/berlin/${EXTEN}) +exten => _2[12]XX,1,Dial(SIP/berlin/${EXTEN}) + +exten => _3[123]XX,1,Dial(SIP/berlin/${EXTEN}) |
#asterisk -rvvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, 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~dfsg1-3+deb7u3 currently running on debian6 (pid = 6128) ... -- SIP/berlin-00000058 is ringing == Spawn extension (default, 3301, 1) exited non-zero on 'SIP/2301-00000057' == Using SIP RTP CoS mark 5 -- Executing [3101@default:1] Dial("SIP/2301-00000059", "SIP/berlin/3101") in new stack == Using SIP RTP CoS mark 5 -- Called SIP/berlin/3101 -- SIP/berlin-0000005a is ringing == Spawn extension (default, 3101, 1) exited non-zero on 'SIP/2301-00000059' debian6*CLI> quit Executing last minute cleanups |
#nano /etc/asterisk/extensions.conf
|
#nano /etc/asterisk/sip.conf
--- /tmp/l3-saved-10598.840.14389 2014-04-23 14:38:57.268618930 +0300 +++ /etc/asterisk/sip.conf 2014-04-23 14:40:07.948617980 +0300 @@ -3,8 +3,6 @@ directmedia=no register => frankfurt:1234@192.168.12.3/berlin -;register => frankfurt:1234@192.168.12.2/kiev - ; peer @@ -13,17 +11,17 @@ type=friend secret=1234 host=dynamic -context=gr3 +context=gr1 [2302] type=friend secret=1234 -context=gr2 +context=gr3 host=dynamic -[berlin] -type=friend -secret=1234 -host=dynamic -conext=gr1 -username=frankfurt +;[berlin] +;type=friend +;secret=1234 +;host=dynamic +;conext=gr1 +;username=frankfurt |
#[general]
|
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-10598.22827.20274 2014-04-23 14:47:35.072611990 +0300 +++ /etc/asterisk/extensions.conf 2014-04-23 14:49:42.328610136 +0300 @@ -10,8 +10,10 @@ ;exten => _3[123]XX,1,Dial(SIP/berlin/${EXTEN}) +[group_relay] + [internal] -exten => _23XX,1,Dial(SIP/{EXTEN}) + [local] exten => _23XX,1,Dial(SIP/{EXTEN}) |
#nano /etc/asterisk/extensions.conf
|
#[general]
|
#[national]
|
#nano /etc/asterisk/sip.conf
|
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-10598.29872.29199 2014-04-23 14:56:19.900604958 +0300 +++ /etc/asterisk/extensions.conf 2014-04-23 15:02:49.908599733 +0300 @@ -11,10 +11,11 @@ ;exten => _3[123]XX,1,Dial(SIP/berlin/${EXTEN}) [group_relay] -include => internal +;include => internal include => local include => national include => international + [internal] [local] @@ -22,7 +23,6 @@ [national] -;exten => _13XX,1,Dial(SIP/{EXTEN}) exten => _2301,1,Dial(SIP/{EXTEN}) [international] |
#nano /etc/asterisk/extensions.conf
|
#nano /etc/asterisk/sip.conf
|
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-10598.6541.6571 2014-04-23 15:10:20.400593699 +0300 +++ /etc/asterisk/extensions.conf 2014-04-23 15:12:32.288591932 +0300 @@ -11,7 +11,6 @@ ;exten => _3[123]XX,1,Dial(SIP/berlin/${EXTEN}) [group_relay] -;include => internal include => local include => national include => international @@ -21,8 +20,8 @@ [national] -exten => _13XX,1,Dial(SIP/{EXTEN}) -exten => _23XX,1,Dial(SIP/{EXTEN}) +exten => _13XX,1,Dial(SIP/berlin/{EXTEN}) +exten => _23XX,1,Dial(SIP/berlin/{EXTEN}) [international] |
#less /etc/asterisk/sip.conf
|
#nano /etc/asterisk/sip.conf
--- /tmp/l3-saved-10598.30652.3380 2014-04-23 15:16:45.556588538 +0300 +++ /etc/asterisk/sip.conf 2014-04-23 15:17:12.780588172 +0300 @@ -25,6 +25,6 @@ type=friend secret=1234 host=dynamic -conext=gr1 +conext=gr_relay username=frankfurt |
#[default]
|
#[default]
|
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-10598.3164.18143 2014-04-23 15:20:28.108585557 +0300 +++ /etc/asterisk/extensions.conf 2014-04-23 15:22:20.428584052 +0300 @@ -16,8 +16,10 @@ ;include => international [internal] -exten => _23XX,1,Dial(SIP/{EXTEN}) +;exten => _23XX,1,Dial(SIP/{EXTEN}) +[local] +exten => _23XX,1,Dial(SIP/{EXTEN}) [national] exten => _13XX,1,Dial(SIP/berlin/{EXTEN}) @@ -39,7 +41,7 @@ [gr1] include => internal -include =-> national +include => national include => international [gr2] |
#vim /etc/asterisk/sip.conf
|
#less /etc/asterisk/sip.conf
|
#less /etc/asterisk/sip.conf
|
#q
l3script: q: command not found |
#nano /etc/asterisk/sip.conf
|
#[general]
l3script: y: command not found |
#asterisk -rvvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, 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~dfsg1-3+deb7u3 currently running on debian6 (pid = 6128) Verbosity is at least 3 debian6*CLI> Disconnected from Asterisk server Executing last minute cleanups |
Время первой команды журнала | 12:59:50 2014- 4-22 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 14:31:28 2014- 4-23 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 100 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 9.00 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 14.00 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 5.80 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.29 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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