/l3/users/user2-yuriy/nt-voip/Linux2.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 |
|
#cp /home/user/music/* /usr/share/asterisk/sounds/ru/
cp: cannot stat `/home/user/music/*': No such file or directory |
#cp /home/user/music/* /usr/share/asterisk/sounds/ru/
cp: cannot stat `/home/user/music/*': No such file or directory |
#ls /etc/asterisk/*.conf
/etc/asterisk/adsi.conf /etc/asterisk/indications.conf /etc/asterisk/adtranvofr.conf /etc/asterisk/jabber.conf /etc/asterisk/agents.conf /etc/asterisk/jingle.conf /etc/asterisk/ais.conf /etc/asterisk/logger.conf /etc/asterisk/alarmreceiver.conf /etc/asterisk/manager.conf /etc/asterisk/alsa.conf /etc/asterisk/meetme.conf /etc/asterisk/amd.conf /etc/asterisk/mgcp.conf /etc/asterisk/asterisk.conf /etc/asterisk/minivm.conf /etc/asterisk/cdr_adaptive_odbc.conf /etc/asterisk/misdn.conf /etc/asterisk/cdr.conf /etc/asterisk/modules.conf ... /etc/asterisk/extensions_minivm.conf /etc/asterisk/skinny.conf /etc/asterisk/features.conf /etc/asterisk/sla.conf /etc/asterisk/festival.conf /etc/asterisk/smdi.conf /etc/asterisk/followme.conf /etc/asterisk/udptl.conf /etc/asterisk/func_odbc.conf /etc/asterisk/unistim.conf /etc/asterisk/gtalk.conf /etc/asterisk/usbradio.conf /etc/asterisk/h323.conf /etc/asterisk/users.conf /etc/asterisk/http.conf /etc/asterisk/voicemail.conf /etc/asterisk/iax.conf /etc/asterisk/vpb.conf /etc/asterisk/iaxprov.conf |
#ls /etc/asterisk/*.conf
/etc/asterisk/adsi.conf /etc/asterisk/indications.conf /etc/asterisk/adtranvofr.conf /etc/asterisk/jabber.conf /etc/asterisk/agents.conf /etc/asterisk/jingle.conf /etc/asterisk/ais.conf /etc/asterisk/logger.conf /etc/asterisk/alarmreceiver.conf /etc/asterisk/manager.conf /etc/asterisk/alsa.conf /etc/asterisk/meetme.conf /etc/asterisk/amd.conf /etc/asterisk/mgcp.conf /etc/asterisk/asterisk.conf /etc/asterisk/minivm.conf /etc/asterisk/cdr_adaptive_odbc.conf /etc/asterisk/misdn.conf /etc/asterisk/cdr.conf /etc/asterisk/modules.conf ... /etc/asterisk/extensions_minivm.conf /etc/asterisk/skinny.conf /etc/asterisk/features.conf /etc/asterisk/sla.conf /etc/asterisk/festival.conf /etc/asterisk/smdi.conf /etc/asterisk/followme.conf /etc/asterisk/udptl.conf /etc/asterisk/func_odbc.conf /etc/asterisk/unistim.conf /etc/asterisk/gtalk.conf /etc/asterisk/usbradio.conf /etc/asterisk/h323.conf /etc/asterisk/users.conf /etc/asterisk/http.conf /etc/asterisk/voicemail.conf /etc/asterisk/iax.conf /etc/asterisk/vpb.conf /etc/asterisk/iaxprov.conf |
#ls /etc/asterisk/s*.conf
/etc/asterisk/say.conf /etc/asterisk/sip_notify.conf /etc/asterisk/sla.conf /etc/asterisk/sip.conf /etc/asterisk/skinny.conf /etc/asterisk/smdi.conf |
#ls /etc/asterisk/s*.conf
/etc/asterisk/say.conf /etc/asterisk/sip_notify.conf /etc/asterisk/sla.conf /etc/asterisk/sip.conf /etc/asterisk/skinny.conf /etc/asterisk/smdi.conf |
#asterisk -rvvv
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. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on Linux2 (pid = 1482) Verbosity was 0 and is now 3 ... -- Registered extension context 'ael-dundi-e164-customers' (0x983ae28) in local table 0x9832a08; registrar: pbx_ael -- merging incls/swits/igpats from old(ael-dundi-e164-customers) to new(ael-dundi-e164-customers) context, registrar = pbx_config -- Registered extension context 'ael-dundi-e164-canonical' (0x984efc0) in local table 0x9832a08; registrar: pbx_ael -- merging incls/swits/igpats from old(ael-dundi-e164-canonical) to new(ael-dundi-e164-canonical) context, registrar = pbx_config -- Time to scan old dialplan and merge leftovers back into the new: 0.000466 sec -- Time to restore hints and swap in new dialplan: 0.000000 sec -- Time to delete the old dialplan: 0.000040 sec -- Total time merge_contexts_delete: 0.000506 sec Linux2*CLI> quit Executing last minute cleanups |
#asterisk -rvvv
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. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on Linux2 (pid = 1482) Verbosity was 0 and is now 3 ... -- Registered extension context 'ael-dundi-e164-customers' (0x983ae28) in local table 0x9832a08; registrar: pbx_ael -- merging incls/swits/igpats from old(ael-dundi-e164-customers) to new(ael-dundi-e164-customers) context, registrar = pbx_config -- Registered extension context 'ael-dundi-e164-canonical' (0x984efc0) in local table 0x9832a08; registrar: pbx_ael -- merging incls/swits/igpats from old(ael-dundi-e164-canonical) to new(ael-dundi-e164-canonical) context, registrar = pbx_config -- Time to scan old dialplan and merge leftovers back into the new: 0.000466 sec -- Time to restore hints and swap in new dialplan: 0.000000 sec -- Time to delete the old dialplan: 0.000040 sec -- Total time merge_contexts_delete: 0.000506 sec Linux2*CLI> quit Executing last minute cleanups |
#ls /etc/asterisk/*.conf
/etc/asterisk/adsi.conf /etc/asterisk/indications.conf /etc/asterisk/adtranvofr.conf /etc/asterisk/jabber.conf /etc/asterisk/agents.conf /etc/asterisk/jingle.conf /etc/asterisk/ais.conf /etc/asterisk/logger.conf /etc/asterisk/alarmreceiver.conf /etc/asterisk/manager.conf /etc/asterisk/alsa.conf /etc/asterisk/meetme.conf /etc/asterisk/amd.conf /etc/asterisk/mgcp.conf /etc/asterisk/asterisk.conf /etc/asterisk/minivm.conf /etc/asterisk/cdr_adaptive_odbc.conf /etc/asterisk/misdn.conf /etc/asterisk/cdr.conf /etc/asterisk/modules.conf ... /etc/asterisk/extensions_minivm.conf /etc/asterisk/skinny.conf /etc/asterisk/features.conf /etc/asterisk/sla.conf /etc/asterisk/festival.conf /etc/asterisk/smdi.conf /etc/asterisk/followme.conf /etc/asterisk/udptl.conf /etc/asterisk/func_odbc.conf /etc/asterisk/unistim.conf /etc/asterisk/gtalk.conf /etc/asterisk/usbradio.conf /etc/asterisk/h323.conf /etc/asterisk/users.conf /etc/asterisk/http.conf /etc/asterisk/voicemail.conf /etc/asterisk/iax.conf /etc/asterisk/vpb.conf /etc/asterisk/iaxprov.conf |
#ls /etc/asterisk/*.conf
/etc/asterisk/adsi.conf /etc/asterisk/indications.conf /etc/asterisk/adtranvofr.conf /etc/asterisk/jabber.conf /etc/asterisk/agents.conf /etc/asterisk/jingle.conf /etc/asterisk/ais.conf /etc/asterisk/logger.conf /etc/asterisk/alarmreceiver.conf /etc/asterisk/manager.conf /etc/asterisk/alsa.conf /etc/asterisk/meetme.conf /etc/asterisk/amd.conf /etc/asterisk/mgcp.conf /etc/asterisk/asterisk.conf /etc/asterisk/minivm.conf /etc/asterisk/cdr_adaptive_odbc.conf /etc/asterisk/misdn.conf /etc/asterisk/cdr.conf /etc/asterisk/modules.conf ... /etc/asterisk/extensions_minivm.conf /etc/asterisk/skinny.conf /etc/asterisk/features.conf /etc/asterisk/sla.conf /etc/asterisk/festival.conf /etc/asterisk/smdi.conf /etc/asterisk/followme.conf /etc/asterisk/udptl.conf /etc/asterisk/func_odbc.conf /etc/asterisk/unistim.conf /etc/asterisk/gtalk.conf /etc/asterisk/usbradio.conf /etc/asterisk/h323.conf /etc/asterisk/users.conf /etc/asterisk/http.conf /etc/asterisk/voicemail.conf /etc/asterisk/iax.conf /etc/asterisk/vpb.conf /etc/asterisk/iaxprov.conf |
#vim /etc/asterisk/extensions.conf
|
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2299.7114.31588 2013-04-10 09:46:36.000000000 +0300 +++ /etc/asterisk/extensions.conf 2013-04-10 09:49:31.000000000 +0300 @@ -19,6 +19,7 @@ exten => _12XX,n,Voicemail(${EXTEN}@default) +exten => _380XXXXXXXXX,n,Voicemail(${EXTEN}@default) ;exten => _12XX,1,Answer ;exten => _12XX,n,Set(CALLFILENAME=${EXTEN}-${CALLERID(num)}-${EPOCH}) |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2299.23016.6930 2013-04-10 09:53:23.000000000 +0300 +++ /etc/asterisk/extensions.conf 2013-04-10 09:56:46.000000000 +0300 @@ -17,9 +17,6 @@ ;exten => _12XX,n,Monitor(wav,${CALLFILENAME},m) exten => _12XX,n,Dial(SIP/${EXTEN},10,wW) exten => _12XX,n,Voicemail(${EXTEN}@default) - - -exten => _380XXXXXXXXX,n,Voicemail(${EXTEN}@default) ;exten => _12XX,1,Answer ;exten => _12XX,n,Set(CALLFILENAME=${EXTEN}-${CALLERID(num)}-${EPOCH}) @@ -44,6 +41,8 @@ exten => _13XX,1,Dial(SIP/boston/${EXTEN}) exten => _21XX,1,Dial(SIP/boston/${EXTEN}) +exten => _380XXXXXXXXX,1,Dial(SIP/minsk${EXTEN}) + [gr1] include => internal include => local |
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-2299.26644.13800 2013-04-10 09:59:12.000000000 +0300 +++ /etc/asterisk/sip.conf 2013-04-10 10:00:19.000000000 +0300 @@ -2,7 +2,8 @@ context=default register => chicago:1234@192.168.10.1/boston -register => minsk:1234@192.168.10.1/boston + +;register => minsk:1234@192.168.60.1/boston ;register => chicago:1234@192.168.10.1/boston ; SIP-peer |
#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 Linux2 (pid = 1482) Verbosity is at least 3 Linux2*CLI> dialplan reload ... -- Registered extension context 'ael-dundi-e164-customers' (0xb52bdc08) in local table 0xb52b44c8; registrar: pbx_ael -- merging incls/swits/igpats from old(ael-dundi-e164-customers) to new(ael-dundi-e164-customers) context, registrar = pbx_config -- Registered extension context 'ael-dundi-e164-canonical' (0xb52d1e80) in local table 0xb52b44c8; registrar: pbx_ael -- merging incls/swits/igpats from old(ael-dundi-e164-canonical) to new(ael-dundi-e164-canonical) context, registrar = pbx_config -- Time to scan old dialplan and merge leftovers back into the new: 0.000523 sec -- Time to restore hints and swap in new dialplan: 0.000001 sec -- Time to delete the old dialplan: 0.000051 sec -- Total time merge_contexts_delete: 0.000575 sec Linux2*CLI> Disconnected from Asterisk server |
#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 Linux2 (pid = 1482) Verbosity is at least 3 Linux2*CLI> dialplan reload ... -- Registered extension context 'ael-dundi-e164-customers' (0xb52bdc08) in local table 0xb52b44c8; registrar: pbx_ael -- merging incls/swits/igpats from old(ael-dundi-e164-customers) to new(ael-dundi-e164-customers) context, registrar = pbx_config -- Registered extension context 'ael-dundi-e164-canonical' (0xb52d1e80) in local table 0xb52b44c8; registrar: pbx_ael -- merging incls/swits/igpats from old(ael-dundi-e164-canonical) to new(ael-dundi-e164-canonical) context, registrar = pbx_config -- Time to scan old dialplan and merge leftovers back into the new: 0.000523 sec -- Time to restore hints and swap in new dialplan: 0.000001 sec -- Time to delete the old dialplan: 0.000051 sec -- Total time merge_contexts_delete: 0.000575 sec Linux2*CLI> Disconnected from Asterisk server |
#ping 192.168.20.100
PING 192.168.20.100 (192.168.20.100) 56(84) bytes of data. 64 bytes from 192.168.20.100: icmp_req=1 ttl=250 time=68.5 ms 64 bytes from 192.168.20.100: icmp_req=2 ttl=250 time=67.3 ms 64 bytes from 192.168.20.100: icmp_req=3 ttl=250 time=66.3 ms 64 bytes from 192.168.20.100: icmp_req=4 ttl=250 time=65.4 ms 64 bytes from 192.168.20.100: icmp_req=5 ttl=250 time=64.4 ms 64 bytes from 192.168.20.100: icmp_req=6 ttl=250 time=63.9 ms ^X64 bytes from 192.168.20.100: icmp_req=7 ttl=250 time=62.4 ms 64 bytes from 192.168.20.100: icmp_req=8 ttl=250 time=61.5 ms ^Z [2]+ Stopped ping 192.168.20.100 |
#ping 192.168.20.100
PING 192.168.20.100 (192.168.20.100) 56(84) bytes of data. 64 bytes from 192.168.20.100: icmp_req=1 ttl=250 time=68.5 ms 64 bytes from 192.168.20.100: icmp_req=2 ttl=250 time=67.3 ms 64 bytes from 192.168.20.100: icmp_req=3 ttl=250 time=66.3 ms 64 bytes from 192.168.20.100: icmp_req=4 ttl=250 time=65.4 ms 64 bytes from 192.168.20.100: icmp_req=5 ttl=250 time=64.4 ms 64 bytes from 192.168.20.100: icmp_req=6 ttl=250 time=63.9 ms ^X64 bytes from 192.168.20.100: icmp_req=7 ttl=250 time=62.4 ms 64 bytes from 192.168.20.100: icmp_req=8 ttl=250 time=61.5 ms ^Z [2]+ Stopped ping 192.168.20.100 |
#fg 2
ping 192.168.20.100 64 bytes from 192.168.20.100: icmp_req=9 ttl=250 time=65.6 ms 64 bytes from 192.168.20.100: icmp_req=10 ttl=250 time=64.3 ms 64 bytes from 192.168.20.100: icmp_req=11 ttl=250 time=63.4 ms 64 bytes from 192.168.20.100: icmp_req=12 ttl=250 time=62.3 ms ^[x64 bytes from 192.168.20.100: icmp_req=13 ttl=250 time=61.5 ms 64 bytes from 192.168.20.100: icmp_req=14 ttl=250 time=60.4 ms ^[z64 bytes from 192.168.20.100: icmp_req=15 ttl=250 time=69.5 ms ^[x64 bytes from 192.168.20.100: icmp_req=16 ttl=250 time=68.4 ms ^[c^[z64 bytes from 192.168.20.100: icmp_req=17 ttl=250 time=67.4 ms 64 bytes from 192.168.20.100: icmp_req=18 ttl=250 time=66.8 ms ^Z [2]+ Stopped ping 192.168.20.100 |
#fg 2
ping 192.168.20.100 64 bytes from 192.168.20.100: icmp_req=9 ttl=250 time=65.6 ms 64 bytes from 192.168.20.100: icmp_req=10 ttl=250 time=64.3 ms 64 bytes from 192.168.20.100: icmp_req=11 ttl=250 time=63.4 ms 64 bytes from 192.168.20.100: icmp_req=12 ttl=250 time=62.3 ms ^[x64 bytes from 192.168.20.100: icmp_req=13 ttl=250 time=61.5 ms 64 bytes from 192.168.20.100: icmp_req=14 ttl=250 time=60.4 ms ^[z64 bytes from 192.168.20.100: icmp_req=15 ttl=250 time=69.5 ms ^[x64 bytes from 192.168.20.100: icmp_req=16 ttl=250 time=68.4 ms ^[c^[z64 bytes from 192.168.20.100: icmp_req=17 ttl=250 time=67.4 ms 64 bytes from 192.168.20.100: icmp_req=18 ttl=250 time=66.8 ms ^Z [2]+ Stopped ping 192.168.20.100 |
#help ping
bash: help: no help topics match `ping'. Try `help help' or `man -k ping' or `info ping'. |
#help ping
bash: help: no help topics match `ping'. Try `help help' or `man -k ping' or `info ping'. |
#ping -k3 192.168.20.100
ping: invalid option -- 'k' Usage: ping [-LRUbdfnqrvVaAD] [-c count] [-i interval] [-w deadline] [-p pattern] [-s packetsize] [-t ttl] [-I interface] [-M pmtudisc-hint] [-m mark] [-S sndbuf] [-T tstamp-options] [-Q tos] [hop1 ...] destination |
#ping -k3 192.168.20.100
ping: invalid option -- 'k' Usage: ping [-LRUbdfnqrvVaAD] [-c count] [-i interval] [-w deadline] [-p pattern] [-s packetsize] [-t ttl] [-I interface] [-M pmtudisc-hint] [-m mark] [-S sndbuf] [-T tstamp-options] [-Q tos] [hop1 ...] destination |
#ping -c3 192.168.20.100
PING 192.168.20.100 (192.168.20.100) 56(84) bytes of data. 64 bytes from 192.168.20.100: icmp_req=1 ttl=250 time=61.6 ms 64 bytes from 192.168.20.100: icmp_req=2 ttl=250 time=60.3 ms 64 bytes from 192.168.20.100: icmp_req=3 ttl=250 time=69.4 ms --- 192.168.20.100 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2003ms rtt min/avg/max/mdev = 60.383/63.807/69.403/4.000 ms |
#ping -c3 192.168.20.100
PING 192.168.20.100 (192.168.20.100) 56(84) bytes of data. 64 bytes from 192.168.20.100: icmp_req=1 ttl=250 time=61.6 ms 64 bytes from 192.168.20.100: icmp_req=2 ttl=250 time=60.3 ms 64 bytes from 192.168.20.100: icmp_req=3 ttl=250 time=69.4 ms --- 192.168.20.100 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2003ms rtt min/avg/max/mdev = 60.383/63.807/69.403/4.000 ms |
#ping -c3 192.168.20.101
PING 192.168.20.101 (192.168.20.101) 56(84) bytes of data. --- 192.168.20.101 ping statistics --- 3 packets transmitted, 0 received, 100% packet loss, time 2015ms |
#ping -c3 192.168.20.101
PING 192.168.20.101 (192.168.20.101) 56(84) bytes of data. --- 192.168.20.101 ping statistics --- 3 packets transmitted, 0 received, 100% packet loss, time 2015ms |
#ping -c3 192.168.20.101
PING 192.168.20.101 (192.168.20.101) 56(84) bytes of data. --- 192.168.20.101 ping statistics --- 3 packets transmitted, 0 received, 100% packet loss, time 2016ms |
#ping -c3 192.168.20.101
PING 192.168.20.101 (192.168.20.101) 56(84) bytes of data. --- 192.168.20.101 ping statistics --- 3 packets transmitted, 0 received, 100% packet loss, time 2016ms |
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-2299.6510.10172 2013-04-10 10:24:49.000000000 +0300 +++ /etc/asterisk/sip.conf 2013-04-10 10:26:17.000000000 +0300 @@ -32,7 +32,7 @@ [boston] type=friend -secret=1234 +secret=1234xxx host=dynamic username=chicago context=gr1 |
#register => 223:rootpass22@178.63.229.229/external sername=Cisco
[ ] secret=12345 "/etc/asterisk/sip.conf" 41L, 506C host=dynamic context=gr1 username=Cisco [1202] type=friend ster => brest:1234@192.168.60.1/minsk secret=12345 host=dynamic context=gr1 -- INSERT -- 17,1 Top |
#register => 223:rootpass22@178.63.229.229/external sername=Cisco
[ ] secret=12345 "/etc/asterisk/sip.conf" 41L, 506C host=dynamic context=gr1 username=Cisco [1202] type=friend ster => brest:1234@192.168.60.1/minsk secret=12345 host=dynamic context=gr1 -- INSERT -- 17,1 Top |
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-2299.18734.4906 2013-04-10 10:31:06.000000000 +0300 +++ /etc/asterisk/sip.conf 2013-04-10 10:31:26.000000000 +0300 @@ -6,8 +6,8 @@ ;register => 223:rootpass22@178.63.229.229/external -register => brest:1234@192.168.60.1/chicago -register => 223:rootpass22@178.63.229.229/external +;register => brest:1234@192.168.60.1/chicago +;register => 223:rootpass22@178.63.229.229/external ;xxx;register => minsk:1234@192.168.60.1/boston |
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-2299.21557.8437 2013-04-10 10:31:50.000000000 +0300 +++ /etc/asterisk/sip.conf 2013-04-10 10:32:11.000000000 +0300 @@ -39,7 +39,7 @@ [boston] type=friend -secret=1234xxx +secret=1234 host=dynamic username=chicago context=gr1 |
#fg 1
callerid="Igor Chubin" cret=1234cret=1234 cret=123cret=123cret=123444 callerid="Igor Chubin" cret=1234cret=1234 cret=123cret=123cret=123444 callerid="Igor Chubin" cret=1234cret=1234 cret=123cret=123cret=123444 callerid="Igor Chubin" cret=1234cret=1234 cret=123cret=123cret=123444 [root@linux7:~]# # http://db.tt/I6AEo6jh [ ] [ ] [root@linux7:~]# sip 41,0-1 Bot [1]+ Stopped /usr/bin/vim "$@" ping: unknown host c3 cret=123cret=123cret=123444 cret=1234cret=1234cret=1234cret=1234cret=1234 [minsk] [minsk] [minsk] cret=1234cret=1234 type=friend secret=1234 host=dynamic defaultuser=brest canreinvite=no |
#fg 1
callerid="Igor Chubin" cret=1234cret=1234 cret=123cret=123cret=123444 callerid="Igor Chubin" cret=1234cret=1234 cret=123cret=123cret=123444 callerid="Igor Chubin" cret=1234cret=1234 cret=123cret=123cret=123444 callerid="Igor Chubin" cret=1234cret=1234 cret=123cret=123cret=123444 [root@linux7:~]# # http://db.tt/I6AEo6jh [ ] [ ] [root@linux7:~]# sip 41,0-1 Bot [1]+ Stopped /usr/bin/vim "$@" ping: unknown host c3 cret=123cret=123cret=123444 cret=1234cret=1234cret=1234cret=1234cret=1234 [minsk] [minsk] [minsk] cret=1234cret=1234 type=friend secret=1234 host=dynamic defaultuser=brest canreinvite=no |
#fg 1
ot@linux7:~]# mkdir /var/tmp/message/ [root@linux7:~]# chown asterisk:asterisk /var/tmp/message/ [root@linux7:~]# cat /etc/asterisk/extensions.conf [ ] include => internal ot@linux7:~]# [general] [ ] register => br ; SIP-peer ... 3,1 11% defaultuser=brest canreinvite=no qualify=yes callerid="Igor Chubin" cret=1234cret=1234 cret=123cret=123cret=123444 callerid="Igor Chubin" cret=1234cret=1234 cret=123cret=123cret=123444 callerid="Igor Chubin" cret=1234cret=1234 cret=123cret=123cret=123444 callerid="Igor Chubin" cret=1234cret=1234 cret=123cret=123cret=123444 [root@linux7:~]# # http://db.tt/I6AEo6jh [root@linux7:~]# sip |
#fg 1
ot@linux7:~]# mkdir /var/tmp/message/ [root@linux7:~]# chown asterisk:asterisk /var/tmp/message/ [root@linux7:~]# cat /etc/asterisk/extensions.conf [ ] include => internal ot@linux7:~]# [general] [ ] register => br ; SIP-peer ... 3,1 11% defaultuser=brest canreinvite=no qualify=yes callerid="Igor Chubin" cret=1234cret=1234 cret=123cret=123cret=123444 callerid="Igor Chubin" cret=1234cret=1234 cret=123cret=123cret=123444 callerid="Igor Chubin" cret=1234cret=1234 cret=123cret=123cret=123444 callerid="Igor Chubin" cret=1234cret=1234 cret=123cret=123cret=123444 [root@linux7:~]# # http://db.tt/I6AEo6jh [root@linux7:~]# sip |
#include => internal
exten => 8000,n,Playback(welcome) ;exten => 1201,1,Dial(Sip/1201) ;exten => 1202,1,Dial(Sip/1202) exten => _81XX,nDial(SIP1202&SIP/1203) [local] exten => 8300,1,Voicemailmain() "/etc/asterisk/extensions.conf" 61L, 1790C exten => _12XX,1,Answer ;exten => _12XX,n,Set(CALLFILENAME=${EXTEN}-${CALLERID(num)}-${EPOCH}) ;exten => _12XX,n,Monitor(wav,${CALLFILENAME},m) |
#include => internal
exten => 8000,n,Playback(welcome) ;exten => 1201,1,Dial(Sip/1201) ;exten => 1202,1,Dial(Sip/1202) exten => _81XX,nDial(SIP1202&SIP/1203) [local] exten => 8300,1,Voicemailmain() "/etc/asterisk/extensions.conf" 61L, 1790C exten => _12XX,1,Answer ;exten => _12XX,n,Set(CALLFILENAME=${EXTEN}-${CALLERID(num)}-${EPOCH}) ;exten => _12XX,n,Monitor(wav,${CALLFILENAME},m) |
#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 Linux2 (pid = 1482) Verbosity is at least 3 Linux2*CLI> ... == Spawn extension (gr1, 1205, 2) exited non-zero on 'SIP/1201-0000000a' == Using SIP RTP CoS mark 5 -- Executing [1203@gr1:1] Answer("SIP/1201-0000000b", "") in new stack -- Executing [1203@gr1:2] Dial("SIP/1201-0000000b", "SIP/1203,10,wW") in new stack == Using SIP RTP CoS mark 5 -- Called 1203 -- SIP/1203-0000000c is ringing == Spawn extension (gr1, 1203, 2) exited non-zero on 'SIP/1201-0000000b' Linux2*CLI> dialplan reload [1]+ Stopped asterisk -r |
#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 Linux2 (pid = 1482) Verbosity is at least 3 Linux2*CLI> ... == Spawn extension (gr1, 1205, 2) exited non-zero on 'SIP/1201-0000000a' == Using SIP RTP CoS mark 5 -- Executing [1203@gr1:1] Answer("SIP/1201-0000000b", "") in new stack -- Executing [1203@gr1:2] Dial("SIP/1201-0000000b", "SIP/1203,10,wW") in new stack == Using SIP RTP CoS mark 5 -- Called 1203 -- SIP/1203-0000000c is ringing == Spawn extension (gr1, 1203, 2) exited non-zero on 'SIP/1201-0000000b' Linux2*CLI> dialplan reload [1]+ Stopped asterisk -r |
#asterisk -rv
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 Linux2 (pid = 1482) Verbosity is at least 3 Linux2*CLI> dialplan reload ... Linux2*CLI> dialplan show 1101@gr1 [ Included context 'international' created by 'pbx_config' ] '_11XX' => 1. Dial(SIP/boston/${EXTEN}) [pbx_config] -= 1 extension (1 priority) in 1 context. =- -- Remote UNIX connection Executing last minute cleanups == Destroying musiconhold processes Linux2*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#asterisk -rv
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 Linux2 (pid = 1482) Verbosity is at least 3 Linux2*CLI> dialplan reload ... Linux2*CLI> dialplan show 1101@gr1 [ Included context 'international' created by 'pbx_config' ] '_11XX' => 1. Dial(SIP/boston/${EXTEN}) [pbx_config] -= 1 extension (1 priority) in 1 context. =- -- Remote UNIX connection Executing last minute cleanups == Destroying musiconhold processes Linux2*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#vim /etc/asterisk/features.conf
--- /tmp/l3-saved-2299.26967.22015 2013-04-10 10:51:00.000000000 +0300 +++ /etc/asterisk/features.conf 2013-04-10 10:52:10.000000000 +0300 @@ -38,7 +38,7 @@ ; (default is 3 seconds) ;xfersound = beep ; to indicate an attended transfer is complete ;xferfailsound = beeperr ; to indicate a failed transfer -;pickupexten = *8 ; Configure the pickup extension. (default is *8) +pickupexten = *8 ; Configure the pickup extension. (default is *8) ;pickupsound = beep ; to indicate a successful pickup (default: no sound) ;pickupfailsound = beeperr ; to indicate that the pickup failed (default: no sound) ;featuredigittimeout = 1000 ; Max time (ms) between digits for |
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-2299.24640.12547 2013-04-10 10:54:02.000000000 +0300 +++ /etc/asterisk/sip.conf 2013-04-10 10:54:27.000000000 +0300 @@ -42,6 +42,8 @@ host=dynamic context=gr1 username=Asus 2 +callgroup=1 +pickupgroup=1 [boston] |
#~
[gr1] [gr1] include => local exten => 1205,1,Answer ,n,Dial(SIP/1202&SIP/1203) [gr1] [gr2] include => local [gr2] [gr3] [gr3] "/etc/asterisk/extensions.conf" 61L, 1793C written |
#~
[ ] [/etc/ast]risk/extensions.conf" 61L, 1792C [local] ] exten => 8300,1,Voicemailmain() exten => _12XX,1,Answer ;exten => _12XX,n,Set(CALLFILENAME=${EXTEN}-${CALLERID(num)}-${EPOCH}) ;exten => _12XX,n,Monitor(wav,${CALLFILENAME},m) exten => _12XX,n,Dial(SIP/${EXTEN},10,wW) exten => _12XX,n,Voicemail(${EXTEN}@default) ;exten => _12XX,1,Answer ... include => local exten => 1205,1,Answer ,n,Dial(SIP/1202&SIP/1203) [gr1] [gr2] include => local [gr2] [gr3] [gr3] "/etc/asterisk/extensions.conf" 61L, 1793C written |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2299.14815.31512 2013-04-10 11:02:55.000000000 +0300 +++ /etc/asterisk/extensions.conf 2013-04-10 11:08:46.000000000 +0300 @@ -7,9 +7,15 @@ ;exten => 1201,1,Dial(Sip/1201) -;exten => 1202,1,Dial(Sip/1202) +;exten => 1205,1,Dial(Sip/1202&Sip/1203) exten => _81XX,n +exten => 1205,1,Answer +exten => 1205,n,Dial(SIP/1202&SIP/1203) + + + + [local] exten => 8300,1,Voicemailmain() @@ -44,8 +50,8 @@ exten => _380XXXXXXXXX,1,Dial(SIP/minsk${EXTEN}) -exten => 1205,1,Answer -exten => 1205,n,Dial(SIP/1202&SIP/1203) +;exten => 1205,1,Answer +;exten => 1205,n,Dial(SIP/1202&SIP/1203) [gr1] |
#[ ]
PING 192.168.10.1 (192.168.10.1) 56(84) bytes of data. 64 bytes from 192.168.10.1: icmp_req=1 ttl=63 time=0.201 ms 64 bytes from 192.168.10.1: icmp_req=2 ttl=63 time=0.157 ms 64 bytes from 192.168.10.1: icmp_req=3 ttl=63 time=0.150 ms 64 bytes from 192.168.10.1: icmp_req=4 ttl=63 time=0.151 ms 64 bytes from 192.168.10.1: icmp_req=5 ttl=63 time=0.155 ms 64 bytes from 192.168.10.1: icmp_req=6 ttl=63 time=0.139 ms ^[q64 bytes from 192.168.10.1: icmp_req=7 ttl=63 time=0.155 ms ^[z64 bytes from 192.168.10.1: icmp_req=8 ttl=63 time=0.149 ms ^[x64 bytes from 192.168.10.1: icmp_req=9 ttl=63 time=0.206 ms ... ^X^X^X64 bytes from 192.168.10.1: icmp_req=14 ttl=63 time=0.216 ms 64 bytes from 192.168.10.1: icmp_req=15 ttl=63 time=0.237 ms 64 bytes from 192.168.10.1: icmp_req=16 ttl=63 time=0.210 ms 64 bytes from 192.168.10.1: icmp_req=17 ttl=63 time=0.240 ms ^A64 bytes from 192.168.10.1: icmp_req=18 ttl=63 time=0.233 ms 64 bytes from 192.168.10.1: icmp_req=19 ttl=63 time=0.153 ms 64 bytes from 192.168.10.1: icmp_req=20 ttl=63 time=0.156 ms 64 bytes from 192.168.10.1: icmp_req=21 ttl=63 time=0.153 ms ^Z [3]+ Stopped ping 192.168.10.1 |
#[ ]
PING 192.168.10.1 (192.168.10.1) 56(84) bytes of data. 64 bytes from 192.168.10.1: icmp_req=1 ttl=63 time=0.201 ms 64 bytes from 192.168.10.1: icmp_req=2 ttl=63 time=0.157 ms 64 bytes from 192.168.10.1: icmp_req=3 ttl=63 time=0.150 ms 64 bytes from 192.168.10.1: icmp_req=4 ttl=63 time=0.151 ms 64 bytes from 192.168.10.1: icmp_req=5 ttl=63 time=0.155 ms 64 bytes from 192.168.10.1: icmp_req=6 ttl=63 time=0.139 ms ^[q64 bytes from 192.168.10.1: icmp_req=7 ttl=63 time=0.155 ms ^[z64 bytes from 192.168.10.1: icmp_req=8 ttl=63 time=0.149 ms ^[x64 bytes from 192.168.10.1: icmp_req=9 ttl=63 time=0.206 ms ... ^X^X^X64 bytes from 192.168.10.1: icmp_req=14 ttl=63 time=0.216 ms 64 bytes from 192.168.10.1: icmp_req=15 ttl=63 time=0.237 ms 64 bytes from 192.168.10.1: icmp_req=16 ttl=63 time=0.210 ms 64 bytes from 192.168.10.1: icmp_req=17 ttl=63 time=0.240 ms ^A64 bytes from 192.168.10.1: icmp_req=18 ttl=63 time=0.233 ms 64 bytes from 192.168.10.1: icmp_req=19 ttl=63 time=0.153 ms 64 bytes from 192.168.10.1: icmp_req=20 ttl=63 time=0.156 ms 64 bytes from 192.168.10.1: icmp_req=21 ttl=63 time=0.153 ms ^Z [3]+ Stopped ping 192.168.10.1 |
#ping -g sd
ping: invalid option -- 'g' Usage: ping [-LRUbdfnqrvVaAD] [-c count] [-i interval] [-w deadline] [-p pattern] [-s packetsize] [-t ttl] [-I interface] [-M pmtudisc-hint] [-m mark] [-S sndbuf] [-T tstamp-options] [-Q tos] [hop1 ...] destination |
Время первой команды журнала | 16:14:21 2013- 4- 9 | ||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 10:10:02 2013- 4-10 | ||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 61.39 | ||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.00 | ||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.83 | ||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.92 | ||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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