/l3/users/goddan/nt-voip/linux4.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 |
|
#ping 192.168.30.1
PING 192.168.30.1 (192.168.30.1) 56(84) bytes of data. 64 bytes from 192.168.30.1: icmp_req=1 ttl=63 time=0.263 ms ^C --- 192.168.30.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.263/0.263/0.263/0.000 ms |
#ping 192.168.30.1
PING 192.168.30.1 (192.168.30.1) 56(84) bytes of data. 64 bytes from 192.168.30.1: icmp_req=1 ttl=63 time=0.263 ms ^C --- 192.168.30.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.263/0.263/0.263/0.000 ms |
#{EXTEN},10,wW))
GNU nano 2.2.4 File: /etc/asterisk/sip.conf Modified [general]mic context=defaulte big brother" register=>harare:1234@192.168.30.1/gweru register=>harare:1234@192.168.10.1/boston register=>harare:1234@192.168.60.1/minsk [1402] ;SIP-peernd [1401]=1234 context=gr_all [gweru]iendarare big brother" type=friendcountry secret=1234c host=dynamicare username=harare canreinvite=nore laptop" context=gr_all [boston]amic ^G Get Help ^O WriteOut ^R Read File ^Y Prev Page ^K Cut Text ^C Cur Pos ^X Exit ^J Justify ^W Where Is ^V Next Page ^U UnCut Text^T To Spell |
#{EXTEN},10,wW))
GNU nano 2.2.4 File: /etc/asterisk/sip.conf Modified [general]mic context=defaulte big brother" register=>harare:1234@192.168.30.1/gweru register=>harare:1234@192.168.10.1/boston register=>harare:1234@192.168.60.1/minsk [1402] ;SIP-peernd [1401]=1234 context=gr_all [gweru]iendarare big brother" type=friendcountry secret=1234c host=dynamicare username=harare canreinvite=nore laptop" context=gr_all [boston]amic ^G Get Help ^O WriteOut ^R Read File ^Y Prev Page ^K Cut Text ^C Cur Pos ^X Exit ^J Justify ^W Where Is ^V Next Page ^U UnCut Text^T To Spell |
#host=dynamicll
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 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.6.2.9-2+squeeze10 currently running on linux4 (pid = 1290) linux4*CLI> sip reload linux4*CLI> dialplan reload Dialplan reloaded. [Apr 10 09:51:54] WARNING[2264]: pbx_config.c:1588 pbx_load_config: ==!!== Unknown directive: include> at line 58 -- IGNORING!!! [Apr 10 09:51:54] WARNING[2264]: pbx.c:9553 ast_context_verify_includes: Context 'gr_all' tries to include nonexistent context 'local' [Apr 10 09:51:54] WARNING[2264]: pbx.c:9553 ast_context_verify_includes: Context 'gr_city' tries to include nonexistent context 'local' [Apr 10 09:51:54] WARNING[2264]: pbx.c:9553 ast_context_verify_includes: Context 'gr_country' tries to include nonexistent context 'local' linux4*CLI> quit |
#host=dynamicll
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 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.6.2.9-2+squeeze10 currently running on linux4 (pid = 1290) linux4*CLI> sip reload linux4*CLI> dialplan reload Dialplan reloaded. [Apr 10 09:51:54] WARNING[2264]: pbx_config.c:1588 pbx_load_config: ==!!== Unknown directive: include> at line 58 -- IGNORING!!! [Apr 10 09:51:54] WARNING[2264]: pbx.c:9553 ast_context_verify_includes: Context 'gr_all' tries to include nonexistent context 'local' [Apr 10 09:51:54] WARNING[2264]: pbx.c:9553 ast_context_verify_includes: Context 'gr_city' tries to include nonexistent context 'local' [Apr 10 09:51:54] WARNING[2264]: pbx.c:9553 ast_context_verify_includes: Context 'gr_country' tries to include nonexistent context 'local' linux4*CLI> quit |
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-1876.29020.27160 2013-04-10 09:52:44.000000000 +0300 +++ /etc/asterisk/extensions.conf 2013-04-10 09:53:53.000000000 +0300 @@ -28,8 +28,8 @@ ;exten=>_16XX,1,Dial(SIP/minsk/${EXTEN}) ;exten=>_2XXX,1,Dial(SIP/minsk/${EXTEN}) -;[local] -;exten =>_14XX,1,Dial(SIP/${EXTEN}) +[local] +exten =>_14XX,1,Dial(SIP/${EXTEN}) [national] exten=>_13XX,1,Dial(SIP/gweru/${EXTEN}) |
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-1876.27406.7903 2013-04-10 09:54:15.000000000 +0300 +++ /etc/asterisk/extensions.conf 2013-04-10 09:55:05.000000000 +0300 @@ -55,4 +55,4 @@ include=>international [gr_ua] -include>=ua +include=>ua |
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-1876.32733.11956 2013-04-10 09:55:36.000000000 +0300 +++ /etc/asterisk/extensions.conf 2013-04-10 09:55:52.000000000 +0300 @@ -53,6 +53,7 @@ include=>national include=>local include=>international +include=>ua [gr_ua] include=>ua |
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-1876.22649.2003 2013-04-10 09:56:29.000000000 +0300 +++ /etc/asterisk/extensions.conf 2013-04-10 09:56:49.000000000 +0300 @@ -39,7 +39,7 @@ exten=>_2[123]XX,1,Dial(SIP/minsk/${EXTEN}) [ua] -exten=>_+380XXXXXXXXX,1,Dial(SIP/minsk/${EXTEN}) +exten=>_380XXXXXXXXX,1,Dial(SIP/minsk/${EXTEN}) [gr_country] include=>local |
#nano /etc/asterisk/extensions.conf
|
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-1876.13423.25576 2013-04-10 10:02:15.000000000 +0300 +++ /etc/asterisk/extensions.conf 2013-04-10 10:05:08.000000000 +0300 @@ -10,11 +10,11 @@ exten=>_82XX,1,Playback(/var/tmp/message/$(EXTEN:2}) exten=>8300,1,Voicemailmain() -exten=>_14XX,1,Answer +;exten=>_14XX,1,Answer ;exten=>_14XX,n,Set(CALLFILENAME=${EXTEN}-${CALLERID(num)}-${EPOCH}) ;exten=>_14XX,n,Monitor(wav,${CALLFILENAME},m) -exten=>_14XX,n,Dial(SIP/${EXTEN},10,wW) -exten=>_14XX,n,Voicemail(${EXTEN}@default) +;exten=>_14XX,n,Dial(SIP/${EXTEN},10,wW) +;exten=>_14XX,n,Voicemail(${EXTEN}@default) @@ -29,7 +29,16 @@ ;exten=>_2XXX,1,Dial(SIP/minsk/${EXTEN}) [local] -exten =>_14XX,1,Dial(SIP/${EXTEN}) +;exten =>_14XX,1,Dial(SIP/${EXTEN}) + +exten=>_14XX,1,Answer +;exten=>_14XX,n,Set(CALLFILENAME=${EXTEN}-${CALLERID(num)}-${EPOCH}) +;exten=>_14XX,n,Monitor(wav,${CALLFILENAME},m) +exten=>_14XX,n,Dial(SIP/${EXTEN},10,wW) +exten=>_14XX,n,Voicemail(${EXTEN}@default) + + + [national] exten=>_13XX,1,Dial(SIP/gweru/${EXTEN}) |
#cd /var/log/asterisk/cdr-csv/
|
#[default]
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 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.6.2.9-2+squeeze10 currently running on linux4 (pid = 1290) linux4*CLI> dialplan reload Dialplan reloaded. [Apr 10 10:45:37] WARNING[2619]: pbx.c:7485 add_pri_lockopt: Unable to register extension '1402', priority 1 in 'local', already in use linux4*CLI> quit |
#[default]
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 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.6.2.9-2+squeeze10 currently running on linux4 (pid = 1290) linux4*CLI> dialplan reload Dialplan reloaded. [Apr 10 10:45:37] WARNING[2619]: pbx.c:7485 add_pri_lockopt: Unable to register extension '1402', priority 1 in 'local', already in use linux4*CLI> quit |
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-1876.24004.3924 2013-04-10 10:45:44.000000000 +0300 +++ /etc/asterisk/extensions.conf 2013-04-10 10:46:37.000000000 +0300 @@ -37,8 +37,8 @@ ;exten=>_14XX,n,Dial(SIP/${EXTEN},10,wW) ;exten=>_14XX,n,Voicemail(${EXTEN}@default) -exten=>1402,1,Answer -exten=>1402,1,Dial(SIP/1401&SIP/1301) +exten=>1405,1,Answer +exten=>1405,n,Dial(SIP/1401&SIP/1401) [national] |
#scp
usage: scp [-1246BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file] [-l limit] [-o ssh_option] [-P port] [-S program] [[user@]host1:]file1 ... [[user@]host2:]file2 |
#scp
usage: scp [-1246BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file] [-l limit] [-o ssh_option] [-P port] [-S program] [[user@]host1:]file1 ... [[user@]host2:]file2 |
#nano /etc/asterisk/features.conf
--- /tmp/l3-saved-1876.10674.4758 2013-04-10 10:56:19.000000000 +0300 +++ /etc/asterisk/features.conf 2013-04-10 10:57:39.000000000 +0300 @@ -58,10 +58,10 @@ [featuremap] -;blindxfer => #1 ; Blind transfer (default is #) -- Make sure to set the T and/or t option in the Dial() or Queue() app call! +blindxfer => #1 ; Blind transfer (default is #) -- Make sure to set the T and/or t option in the Dial() or Queue() app call! ;disconnect => *0 ; Disconnect (default is *) -- Make sure to set the H and/or h option in the Dial() or Queue() app call! automon => *1 ; One Touch Record a.k.a. Touch Monitor -- Make sure to set the W and/or w option in the Dial() or Queue() app call! -;atxfer => *2 ; Attended transfer -- Make sure to set the T and/or t option in the Dial() or Queue() app call! +atxfer => *2 ; Attended transfer -- Make sure to set the T and/or t option in the Dial() or Queue() app call! ;parkcall => #72 ; Park call (one step parking) -- Make sure to set the K and/or k option in the Dial() app call! ;automixmon => *3 ; One Touch Record a.k.a. Touch MixMonitor -- Make sure to set the X and/or x option in the Dial() or Queue() app call! |
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 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.6.2.9-2+squeeze10 currently running on linux4 (pid = 1290) linux4*CLI> sip reload linux4*CLI> dialplan reload Dialplan reloaded. [Apr 10 11:00:15] WARNING[2850]: pbx.c:7485 add_pri_lockopt: Unable to register extension '_14XX', priority 1 in 'local', already in use linux4*CLI> quuit No such command 'quuit' (type 'core show help quuit' for other possible commands) linux4*CLI> quit |
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 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.6.2.9-2+squeeze10 currently running on linux4 (pid = 1290) linux4*CLI> sip reload linux4*CLI> dialplan reload Dialplan reloaded. [Apr 10 11:00:15] WARNING[2850]: pbx.c:7485 add_pri_lockopt: Unable to register extension '_14XX', priority 1 in 'local', already in use linux4*CLI> quuit No such command 'quuit' (type 'core show help quuit' for other possible commands) linux4*CLI> quit |
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-1876.23932.7998 2013-04-10 11:00:27.000000000 +0300 +++ /etc/asterisk/extensions.conf 2013-04-10 11:00:44.000000000 +0300 @@ -29,7 +29,7 @@ ;exten=>_2XXX,1,Dial(SIP/minsk/${EXTEN}) [local] -exten =>_14XX,1,Dial(SIP/${EXTEN}) +;exten =>_14XX,1,Dial(SIP/${EXTEN}) exten=>_14XX,1,Answer ;exten=>_14XX,n,Set(CALLFILENAME=${EXTEN}-${CALLERID(num)}-${EPOCH}) |
#apt-get install urce
Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package urce |
#apt-get install urce
Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package urce |
#apt-get install urce
Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package urce |
#apt-get install urce
Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package urce |
#apt-get install dahdi-source
Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: dahdi-source 0 upgraded, 1 newly installed, 0 to remove and 29 not upgraded. Need to get 912 kB of archives. After this operation, 1,044 kB of additional disk space will be used. Get:1 http://192.168.15.253/debian/ squeeze/main dahdi-source all 1:2.3.0.1+dfsg-2 [912 kB] Fetched 912 kB in 0s (22.2 MB/s) Selecting previously deselected package dahdi-source. (Reading database ... 110182 files and directories currently installed.) Unpacking dahdi-source (from .../dahdi-source_1%3a2.3.0.1+dfsg-2_all.deb) ... Setting up dahdi-source (1:2.3.0.1+dfsg-2) ... |
#apt-get install dahdi-source
Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: dahdi-source 0 upgraded, 1 newly installed, 0 to remove and 29 not upgraded. Need to get 912 kB of archives. After this operation, 1,044 kB of additional disk space will be used. Get:1 http://192.168.15.253/debian/ squeeze/main dahdi-source all 1:2.3.0.1+dfsg-2 [912 kB] Fetched 912 kB in 0s (22.2 MB/s) Selecting previously deselected package dahdi-source. (Reading database ... 110182 files and directories currently installed.) Unpacking dahdi-source (from .../dahdi-source_1%3a2.3.0.1+dfsg-2_all.deb) ... Setting up dahdi-source (1:2.3.0.1+dfsg-2) ... |
#uname -a
Linux linux4 2.6.39-bpo.2-686-pae #1 SMP Thu Aug 4 11:02:22 UTC 2011 i686 GNU/Linux |
#uname -a
Linux linux4 2.6.39-bpo.2-686-pae #1 SMP Thu Aug 4 11:02:22 UTC 2011 i686 GNU/Linux |
#apt-get install linux-image-3.2.0-0.bpo.4-686-pae
Reading package lists... Done Building dependency tree Reading state information... Done Suggested packages: linux-doc-3.2 debian-kernel-handbook Recommended packages: firmware-linux-free The following NEW packages will be installed: linux-image-3.2.0-0.bpo.4-686-pae 0 upgraded, 1 newly installed, 0 to remove and 31 not upgraded. Need to get 23.0 MB of archives. After this operation, 90.4 MB of additional disk space will be used. Get:1 http://192.168.15.253/debian-backports/ squeeze-backports/main linux-image-3.2.0-0.bpo.4-686-pae i386 3.2.41-2~bpo60+1 [23.0 MB] |
#apt-get install linux-image-3.2.0-0.bpo.4-686-pae
Reading package lists... Done Building dependency tree Reading state information... Done Suggested packages: linux-doc-3.2 debian-kernel-handbook Recommended packages: firmware-linux-free The following NEW packages will be installed: linux-image-3.2.0-0.bpo.4-686-pae 0 upgraded, 1 newly installed, 0 to remove and 31 not upgraded. Need to get 23.0 MB of archives. After this operation, 90.4 MB of additional disk space will be used. Get:1 http://192.168.15.253/debian-backports/ squeeze-backports/main linux-image-3.2.0-0.bpo.4-686-pae i386 3.2.41-2~bpo60+1 [23.0 MB] |
#apt-get install linux-headers-3.2.0.0.bpo.4-686-pae
Reading package lists... Done Building dependency tree Reading state information... Done Note, selecting 'linux-headers-3.2.0-0.bpo.4-686-pae' for regex 'linux-headers-3.2.0.0.bpo.4-686-pae' The following extra packages will be installed: linux-headers-3.2.0-0.bpo.4-686-pae linux-headers-3.2.0-0.bpo.4-common linux-kbuild-3.2 The following NEW packages will be installed: linux-headers-3.2.0-0.bpo.4-686-pae linux-headers-3.2.0-0.bpo.4-common linux-kbuild-3.2 ... Selecting previously deselected package linux-headers-3.2.0-0.bpo.4-common. (Reading database ... 113879 files and directories currently installed.) Unpacking linux-headers-3.2.0-0.bpo.4-common (from .../linux-headers-3.2.0-0.bpo.4-common_3.2.41-2~bpo60+1_i386.deb) ... Selecting previously deselected package linux-kbuild-3.2. Unpacking linux-kbuild-3.2 (from .../linux-kbuild-3.2_3.2.1-2~bpo60+1_i386.deb) ... Selecting previously deselected package linux-headers-3.2.0-0.bpo.4-686-pae. Unpacking linux-headers-3.2.0-0.bpo.4-686-pae (from .../linux-headers-3.2.0-0.bpo.4-686-pae_3.2.41-2~bpo60+1_i386.deb) ... Setting up linux-headers-3.2.0-0.bpo.4-common (3.2.41-2~bpo60+1) ... Setting up linux-kbuild-3.2 (3.2.1-2~bpo60+1) ... Setting up linux-headers-3.2.0-0.bpo.4-686-pae (3.2.41-2~bpo60+1) ... |
#apt-get install linux-headers-3.2.0.0.bpo.4-686-pae
Reading package lists... Done Building dependency tree Reading state information... Done Note, selecting 'linux-headers-3.2.0-0.bpo.4-686-pae' for regex 'linux-headers-3.2.0.0.bpo.4-686-pae' The following extra packages will be installed: linux-headers-3.2.0-0.bpo.4-686-pae linux-headers-3.2.0-0.bpo.4-common linux-kbuild-3.2 The following NEW packages will be installed: linux-headers-3.2.0-0.bpo.4-686-pae linux-headers-3.2.0-0.bpo.4-common linux-kbuild-3.2 ... Selecting previously deselected package linux-headers-3.2.0-0.bpo.4-common. (Reading database ... 113879 files and directories currently installed.) Unpacking linux-headers-3.2.0-0.bpo.4-common (from .../linux-headers-3.2.0-0.bpo.4-common_3.2.41-2~bpo60+1_i386.deb) ... Selecting previously deselected package linux-kbuild-3.2. Unpacking linux-kbuild-3.2 (from .../linux-kbuild-3.2_3.2.1-2~bpo60+1_i386.deb) ... Selecting previously deselected package linux-headers-3.2.0-0.bpo.4-686-pae. Unpacking linux-headers-3.2.0-0.bpo.4-686-pae (from .../linux-headers-3.2.0-0.bpo.4-686-pae_3.2.41-2~bpo60+1_i386.deb) ... Setting up linux-headers-3.2.0-0.bpo.4-common (3.2.41-2~bpo60+1) ... Setting up linux-kbuild-3.2 (3.2.1-2~bpo60+1) ... Setting up linux-headers-3.2.0-0.bpo.4-686-pae (3.2.41-2~bpo60+1) ... |
#module-assistants auto-install dahdi
bash: module-assistants: command not found |
#m-a a-i dahdi
|
#scp linux7:/usr/src/dahdi/dahdi-linux-2.6.2.tar.gz /usr/src
The authenticity of host 'linux7 (192.168.70.1)' can't be established. RSA key fingerprint is 73:fd:3b:ee:91:b1:73:e4:99:4a:bf:1e:12:f3:c3:8e. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'linux7,192.168.70.1' (RSA) to the list of known hosts. root@linux7's password: dahdi-linux-2.6.2.tar.gz 100% 1686KB 1.7MB/s 00:00 |
#scp linux7:/usr/src/dahdi/dahdi-linux-2.6.2.tar.gz /usr/src
The authenticity of host 'linux7 (192.168.70.1)' can't be established. RSA key fingerprint is 73:fd:3b:ee:91:b1:73:e4:99:4a:bf:1e:12:f3:c3:8e. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'linux7,192.168.70.1' (RSA) to the list of known hosts. root@linux7's password: dahdi-linux-2.6.2.tar.gz 100% 1686KB 1.7MB/s 00:00 |
#cd dahdi-linux-2.6.2
|
#make -j32
make -C drivers/dahdi/firmware firmware-loaders make[1]: Entering directory `/usr/src/dahdi-linux-2.6.2/drivers/dahdi/firmware' Attempting to download dahdi-fwload-vpmadt032-1.25.0.tar.gz --2013-04-10 13:58:42-- http://downloads.digium.com/pub/telephony/firmware/releases/dahdi-fwload-vpmadt032-1.25.0.tar.gz Resolving downloads.digium.com... 76.164.171.238, 2001:470:e0d4::ee Connecting to downloads.digium.com|76.164.171.238|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 149360 (146K) [application/x-gzip] Saving to: “dahdi-fwload-vpmadt032-1.25.0.tar.gz” 100%[======================================>] 149,360 35.6K/s in 4.1s ... LD [M] /usr/src/dahdi-linux-2.6.2/drivers/dahdi/wcte11xp.ko LD [M] /usr/src/dahdi-linux-2.6.2/drivers/dahdi/wcte12xp/wcte12xp.ko LD [M] /usr/src/dahdi-linux-2.6.2/drivers/dahdi/xpp/xpd_bri.ko LD [M] /usr/src/dahdi-linux-2.6.2/drivers/dahdi/wctc4xxp/wctc4xxp.ko LD [M] /usr/src/dahdi-linux-2.6.2/drivers/dahdi/xpp/xpd_echo.ko LD [M] /usr/src/dahdi-linux-2.6.2/drivers/dahdi/xpp/xpp_usb.ko LD [M] /usr/src/dahdi-linux-2.6.2/drivers/dahdi/xpp/xpd_fxo.ko LD [M] /usr/src/dahdi-linux-2.6.2/drivers/dahdi/xpp/xpd_pri.ko LD [M] /usr/src/dahdi-linux-2.6.2/drivers/dahdi/xpp/xpp.ko make[1]: Leaving directory `/usr/src/linux-headers-3.2.0-0.bpo.4-686-pae' |
#make -j32
make -C drivers/dahdi/firmware firmware-loaders make[1]: Entering directory `/usr/src/dahdi-linux-2.6.2/drivers/dahdi/firmware' Attempting to download dahdi-fwload-vpmadt032-1.25.0.tar.gz --2013-04-10 13:58:42-- http://downloads.digium.com/pub/telephony/firmware/releases/dahdi-fwload-vpmadt032-1.25.0.tar.gz Resolving downloads.digium.com... 76.164.171.238, 2001:470:e0d4::ee Connecting to downloads.digium.com|76.164.171.238|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 149360 (146K) [application/x-gzip] Saving to: “dahdi-fwload-vpmadt032-1.25.0.tar.gz” 100%[======================================>] 149,360 35.6K/s in 4.1s ... LD [M] /usr/src/dahdi-linux-2.6.2/drivers/dahdi/wcte11xp.ko LD [M] /usr/src/dahdi-linux-2.6.2/drivers/dahdi/wcte12xp/wcte12xp.ko LD [M] /usr/src/dahdi-linux-2.6.2/drivers/dahdi/xpp/xpd_bri.ko LD [M] /usr/src/dahdi-linux-2.6.2/drivers/dahdi/wctc4xxp/wctc4xxp.ko LD [M] /usr/src/dahdi-linux-2.6.2/drivers/dahdi/xpp/xpd_echo.ko LD [M] /usr/src/dahdi-linux-2.6.2/drivers/dahdi/xpp/xpp_usb.ko LD [M] /usr/src/dahdi-linux-2.6.2/drivers/dahdi/xpp/xpd_fxo.ko LD [M] /usr/src/dahdi-linux-2.6.2/drivers/dahdi/xpp/xpd_pri.ko LD [M] /usr/src/dahdi-linux-2.6.2/drivers/dahdi/xpp/xpp.ko make[1]: Leaving directory `/usr/src/linux-headers-3.2.0-0.bpo.4-686-pae' |
#make -j32 install
make -C drivers/dahdi/firmware firmware-loaders install -d /etc/udev/rules.d make[1]: Entering directory `/usr/src/dahdi-linux-2.6.2/drivers/dahdi/firmware' make[1]: Leaving directory `/usr/src/dahdi-linux-2.6.2/drivers/dahdi/firmware' for hdr in kernel.h user.h fasthdlc.h wctdm_user.h dahdi_config.h; do \ install -D -m 644 include/dahdi/$hdr /usr/include/dahdi/$hdr; \ done make -C drivers/dahdi/firmware hotplug-install DESTDIR= HOTPLUG_FIRMWARE=yes make -C drivers/dahdi/xpp/firmwares install build_tools/genudevrules > /etc/udev/rules.d/dahdi.rules ... Installing dahdi-fw-vpmoct032.bin to hotplug firmware directories Installing dahdi-fw-te820.bin to hotplug firmware directories make[1]: Leaving directory `/usr/src/dahdi-linux-2.6.2/drivers/dahdi/firmware' ################################################### ### ### DAHDI installed successfully. ### If you have not done so before, install the package ### dahdi-tools. ### ################################################### |
#make -j32 install
make -C drivers/dahdi/firmware firmware-loaders install -d /etc/udev/rules.d make[1]: Entering directory `/usr/src/dahdi-linux-2.6.2/drivers/dahdi/firmware' make[1]: Leaving directory `/usr/src/dahdi-linux-2.6.2/drivers/dahdi/firmware' for hdr in kernel.h user.h fasthdlc.h wctdm_user.h dahdi_config.h; do \ install -D -m 644 include/dahdi/$hdr /usr/include/dahdi/$hdr; \ done make -C drivers/dahdi/firmware hotplug-install DESTDIR= HOTPLUG_FIRMWARE=yes make -C drivers/dahdi/xpp/firmwares install build_tools/genudevrules > /etc/udev/rules.d/dahdi.rules ... Installing dahdi-fw-vpmoct032.bin to hotplug firmware directories Installing dahdi-fw-te820.bin to hotplug firmware directories make[1]: Leaving directory `/usr/src/dahdi-linux-2.6.2/drivers/dahdi/firmware' ################################################### ### ### DAHDI installed successfully. ### If you have not done so before, install the package ### dahdi-tools. ### ################################################### |
#nano /etc/asterisk/meetme.conf
--- /tmp/l3-saved-2245.9829.19141 2013-04-10 14:02:59.000000000 +0300 +++ /etc/asterisk/meetme.conf 2013-04-10 14:03:49.000000000 +0300 @@ -41,5 +41,7 @@ ; in the conference and it goes away. When it is created again, it will have ; the new pin number. ; -;conf => 1234 +conf => 1234 ;conf => 2345,9938 + + |
#[default]00,1,Voicemailmain()
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 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.6.2.9-2+squeeze10 currently running on linux4 (pid = 1664) linux4*CLI> dialplan reload Dialplan reloaded. linux4*CLI> quit |
#[default]00,1,Voicemailmain()
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 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.6.2.9-2+squeeze10 currently running on linux4 (pid = 1664) linux4*CLI> dialplan reload Dialplan reloaded. linux4*CLI> quit |
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 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.6.2.9-2+squeeze10 currently running on linux4 (pid = 1664) linux4*CLI> module reload app_amd.so app_followme.so app_meetme.so ... rtp udptl plc linux4*CLI> module reload ap app_amd.so app_followme.so app_meetme.so app_minivm.so app_playback.so app_voicemail.so app_queue.so linux4*CLI> module reload app_m app_meetme.so app_minivm.so linux4*CLI> module reload app_meetme.so [Apr 10 14:05:51] NOTICE[5890]: app_meetme.c:6438 load_config: A reload of the SLA configuration has been requested and will be completed when the system is idle. [Apr 10 14:06:21] WARNING[5891]: app_meetme.c:1097 build_conf: Unable to open pseudo device linux4*CLI> quit |
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 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.6.2.9-2+squeeze10 currently running on linux4 (pid = 1664) linux4*CLI> module reload app_amd.so app_followme.so app_meetme.so ... rtp udptl plc linux4*CLI> module reload ap app_amd.so app_followme.so app_meetme.so app_minivm.so app_playback.so app_voicemail.so app_queue.so linux4*CLI> module reload app_m app_meetme.so app_minivm.so linux4*CLI> module reload app_meetme.so [Apr 10 14:05:51] NOTICE[5890]: app_meetme.c:6438 load_config: A reload of the SLA configuration has been requested and will be completed when the system is idle. [Apr 10 14:06:21] WARNING[5891]: app_meetme.c:1097 build_conf: Unable to open pseudo device linux4*CLI> quit |
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2245.11402.21620 2013-04-10 14:06:31.000000000 +0300 +++ /etc/asterisk/extensions.conf 2013-04-10 14:06:43.000000000 +0300 @@ -9,7 +9,7 @@ exten=>_81XX,n,Playback(/var/tmp/message/${EXTEN:2}) exten=>_82XX,1,Playback(/var/tmp/message/$(EXTEN:2}) exten=>8300,1,Voicemailmain() -exten=8301,1,Meetme(1234) +exten=>8301,1,Meetme(1234) ;exten=>_14XX,1,Answer ;exten=>_14XX,n,Set(CALLFILENAME=${EXTEN}-${CALLERID(num)}-${EPOCH}) |
Время первой команды журнала | 08:39:40 2013- 4-10 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 13:06:28 2013- 4-10 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 20.79 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 7.92 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 2.83 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.59 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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