/l3/users/VetymasK/nt-voip-2011-06/linux6.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 |
|
#ls
bin boot dev etc home initrd.img lib lib32 lib64 lost+found media mnt opt proc root sbin selinux srv sys tmp usr var vmlinuz |
#cd tmp
|
#ls
mc-root sip.conf |
#vim sip.conf
--- /tmp/l3-saved-5749.13182.6192 2011-06-20 15:26:07.000000000 +0300 +++ sip.conf 2011-06-20 15:35:52.000000000 +0300 @@ -3,36 +3,14 @@ allowoverlap=no udpbindaddr=0.0.0.0 tcpenable=no -tcpbindaddr=0.0.0.0 - - - - +tcpbindaddr=0.0.0.0 srvlookup=yes - - -[authentication] -[basic-options](!) - dtmfmode=rfc2833 - context=from-office - type=friend -[natted-phone](!,basic-options) - nat=yes - directmedia=no - host=dynamic -[public-phone](!,basic-options) - nat=no - directmedia=yes -[my-codecs](!) - disallow=all - allow=ilbc - allow=g729 - allow=gsm - allow=g723 - allow=ulaw -[ulaw-phone](!) - disallow=all - allow=ulaw +[2201] +type=friend +secret=password +host=dynamic +user=2201 + |
#service asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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 == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux6 (pid = 5863) Verbosity was 0 and is now 3 linux6*CLI> exit Executing last minute cleanups |
#cd ..
|
#cd ..
|
#cp /tmp/sip.conf /etc/asterisk/sip.conf
|
#cd /etc/asterisk/
|
#ls
adsi.conf cdr_adaptive_odbc.conf cli_aliases.conf enum.conf func_odbc.conf logger.conf muted.conf res_odbc.conf skinny.conf vpb.conf adtranvofr.conf cdr.conf cli.conf extconfig.conf gtalk.conf manager.conf osp.conf res_pgsql.conf sla.conf agents.conf cdr_custom.conf cli_permissions.conf extensions.ael h323.conf manager.d oss.conf res_snmp.conf smdi.conf ais.conf cdr_manager.conf codecs.conf extensions.conf http.conf meetme.conf phone.conf rpt.conf telcordia-1.adsi alarmreceiver.conf cdr_odbc.conf console.conf extensions.lua iax.conf mgcp.conf phoneprov.conf rtp.conf udptl.conf alsa.conf cdr_pgsql.conf dbsep.conf extensions_minivm.conf iaxprov.conf minivm.conf queuerules.conf say.conf unistim.conf amd.conf cdr_sqlite3_custom.conf dnsmgr.conf features.conf indications.conf misdn.conf queues.conf sip.conf usbradio.conf asterisk.adsi cdr_tds.conf dsp.conf festival.conf jabber.conf modules.conf res_config_sqlite.conf sip.conf.SAVE users.conf asterisk.conf chan_dahdi.conf dundi.conf followme.conf jingle.conf musiconhold.conf res_ldap.conf sip_notify.conf voicemail.conf |
#vim sip.conf
|
#~
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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 == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux6 (pid = 5999) Verbosity was 0 and is now 3 linux6*CLI> sip show peers Name/username Host Dyn Nat ACL Port Status 2201 (Unspecified) D 5060 Unmonitored 1 sip peers [Monitored: 0 online, 0 offline Unmonitored: 1 online, 0 offline] linux6*CLI> exit Executing last minute cleanups |
#links
|
#w3a
bash: w3a: команда не найдена |
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:0f:fe:7e:b8:53 inet addr:192.168.106.1 Bcast:192.168.106.255 Mask:255.255.255.0 inet6 addr: fe80::20f:feff:fe7e:b853/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:28317 errors:0 dropped:0 overruns:0 frame:0 TX packets:16728 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:33190387 (31.6 MiB) TX bytes:1286968 (1.2 MiB) Memory:f0180000-f01a0000 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:8 errors:0 dropped:0 overruns:0 frame:0 TX packets:8 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:560 (560.0 B) TX bytes:560 (560.0 B) |
#asterisk
Asterisk already running on /var/run/asterisk/asterisk.ctl. Use 'asterisk -r' to connect. |
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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 == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux6 (pid = 5999) ... 2201 (Unspecified) D 5060 Unmonitored 1 sip peers [Monitored: 0 online, 0 offline Unmonitored: 1 online, 0 offline] == Using SIP RTP CoS mark 5 [Jun 20 15:50:01] NOTICE[6043]: chan_sip.c:20281 handle_request_invite: Call from '2201' to extension '2202' rejected because extension not found in context 'default'. linux6*CLI> sip show peers Name/username Host Dyn Nat ACL Port Status 2201 (Unspecified) D 5060 Unmonitored 1 sip peers [Monitored: 0 online, 0 offline Unmonitored: 1 online, 0 offline] linux6*CLI> exit Executing last minute cleanups |
#servise asterisk restart
bash: servise: команда не найдена |
#service asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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 == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux6 (pid = 6158) ... [Jun 20 15:53:19] NOTICE[6202]: chan_sip.c:20281 handle_request_invite: Call from '2201' to extension '2201' rejected because extension not found in context 'default'. == Using SIP RTP CoS mark 5 [Jun 20 15:53:36] NOTICE[6202]: chan_sip.c:20281 handle_request_invite: Call from '2201' to extension '2202' rejected because extension not found in context 'default'. linux6*CLI> sip show peers Name/username Host Dyn Nat ACL Port Status 2201 (Unspecified) D 5060 Unmonitored 2202 (Unspecified) D 5060 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 2 online, 0 offline] linux6*CLI> exit Executing last minute cleanups |
#cd /etc/dhcp/dhc
dhclient.conf dhclient-enter-hooks.d/ dhclient-exit-hooks.d/ dhcpd.conf |
#cd /etc/dhcp/
|
#vim dhcpd.conf
--- /tmp/l3-saved-5749.3859.19270 2011-06-20 15:55:16.000000000 +0300 +++ dhcpd.conf 2011-06-20 15:56:25.000000000 +0300 @@ -34,7 +34,7 @@ subnet 192.168.106.0 netmask 255.255.255.0 { range 192.168.106.200 192.168.106.250; - #option routers rtr-239-0-1.example.org, rtr-239-0-2.example.org; + option routers 192.168.106.253; } # This declaration allows BOOTP clients to get dynamic addresses, |
#/etc/init
init.d/ initramfs-tools/ |
#/etc/init
init.d/ initramfs-tools/ |
#/etc/init.d/isc-dhcp-server restsrt
Usage: /etc/init.d/isc-dhcp-server {start|stop|restart|force-reload|status} |
#/etc/init.d/isc-dhcp-server restart
Stopping ISC DHCP server: dhcpd. Starting ISC DHCP server: dhcpd. |
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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 == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux6 (pid = 6158) ... [Jun 20 16:07:08] NOTICE[6202]: chan_sip.c:20281 handle_request_invite: Call from '2201' to extension '2202' rejected because extension not found in context 'default'. == Using SIP RTP CoS mark 5 [Jun 20 16:07:22] NOTICE[6202]: chan_sip.c:20281 handle_request_invite: Call from '2202' to extension '0' rejected because extension not found in context 'default'. linux6*CLI> sip show peers Name/username Host Dyn Nat ACL Port Status 2201/2201 192.168.106.200 D 5060 Unmonitored 2202/2202 192.168.106.201 D 55976 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 2 online, 0 offline] linux6*CLI> exit Executing last minute cleanups |
#~
dhclient.conf dhclient-enter-hooks.d dhclient-exit-hooks.d dhcpd.conf |
#cd /etc/asterisk/
|
#ls
adsi.conf cdr_adaptive_odbc.conf cli_aliases.conf enum.conf func_odbc.conf logger.conf muted.conf res_odbc.conf skinny.conf vpb.conf adtranvofr.conf cdr.conf cli.conf extconfig.conf gtalk.conf manager.conf osp.conf res_pgsql.conf sla.conf agents.conf cdr_custom.conf cli_permissions.conf extensions.ael h323.conf manager.d oss.conf res_snmp.conf smdi.conf ais.conf cdr_manager.conf codecs.conf extensions.conf http.conf meetme.conf phone.conf rpt.conf telcordia-1.adsi alarmreceiver.conf cdr_odbc.conf console.conf extensions.lua iax.conf mgcp.conf phoneprov.conf rtp.conf udptl.conf alsa.conf cdr_pgsql.conf dbsep.conf extensions_minivm.conf iaxprov.conf minivm.conf queuerules.conf say.conf unistim.conf amd.conf cdr_sqlite3_custom.conf dnsmgr.conf features.conf indications.conf misdn.conf queues.conf sip.conf usbradio.conf asterisk.adsi cdr_tds.conf dsp.conf festival.conf jabber.conf modules.conf res_config_sqlite.conf sip.conf.SAVE users.conf asterisk.conf chan_dahdi.conf dundi.conf followme.conf jingle.conf musiconhold.conf res_ldap.conf sip_notify.conf voicemail.conf |
#vim sip
|
#vim sip.conf
|
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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 == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux6 (pid = 6158) Verbosity is at least 3 linux6*CLI> reboot No such command 'reboot' (type 'core show help reboot' for other possible commands) linux6*CLI> exit Executing last minute cleanups |
#ssh user@192.168.106.253
2402/2402 192.168.108.28 D 22108 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 2 online, 0 offline] [Jun 20 16:34:00] NOTICE[15037]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe fo2 linux8*CLI> sip show peers Name/username Host Dyn Nat ACL Port Status 2401/2401 192.168.108.200 D 5060 Unmonitored 2402/2402 192.168.108.28 D 22108 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 2 online, 0 offline] linux8*CLI> sip show registry Host dnsmgr Username Refresh State Reg.Time ... -- Registered SIP '2401' at 192.168.108.200 port 5060 == Using SIP RTP CoS mark 5 [Jun 20 15:57:28] NOTICE[15037]: chan_sip.c:20281 handle_request_invite: Call from '2401' to extensio. [Jun 20 15:58:00] NOTICE[15037]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe fo2 [Jun 20 16:01:00] NOTICE[15037]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe fo2 [Jun 20 16:04:00] NOTICE[15037]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe fo2 [Jun 20 16:07:00] NOTICE[15037]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe fo2 [Jun 20 16:10:00] NOTICE[15037]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe fo2 linux8*CLI> ------------------------------------------------------------------------------------------------------ |
#vim /etc/asterisk/extensions.conf
|
#; on bugs.digium.com. We have made good progress in providing something
acpi/ adduser.conf adjtime aliases alternatives/ anacrontab apache2/ apm/ apt/ asterisk/ at.deny avahi/ |
#cd /etc/asterisk/
|
#ls
adsi.conf cdr_adaptive_odbc.conf cli_aliases.conf enum.conf func_odbc.conf logger.conf muted.conf res_odbc.conf skinny.conf vpb.conf adtranvofr.conf cdr.conf cli.conf extconfig.conf gtalk.conf manager.conf osp.conf res_pgsql.conf sla.conf agents.conf cdr_custom.conf cli_permissions.conf extensions.ael h323.conf manager.d oss.conf res_snmp.conf smdi.conf ais.conf cdr_manager.conf codecs.conf extensions.conf http.conf meetme.conf phone.conf rpt.conf telcordia-1.adsi alarmreceiver.conf cdr_odbc.conf console.conf extensions.lua iax.conf mgcp.conf phoneprov.conf rtp.conf udptl.conf alsa.conf cdr_pgsql.conf dbsep.conf extensions_minivm.conf iaxprov.conf minivm.conf queuerules.conf say.conf unistim.conf amd.conf cdr_sqlite3_custom.conf dnsmgr.conf features.conf indications.conf misdn.conf queues.conf sip.conf usbradio.conf asterisk.adsi cdr_tds.conf dsp.conf festival.conf jabber.conf modules.conf res_config_sqlite.conf sip.conf.SAVE users.conf asterisk.conf chan_dahdi.conf dundi.conf followme.conf jingle.conf musiconhold.conf res_ldap.conf sip_notify.conf voicemail.conf |
#cp extensions.conf extensions.conf.SAVE
|
#ls
adsi.conf cdr_adaptive_odbc.conf cli_aliases.conf enum.conf followme.conf jingle.conf musiconhold.conf res_ldap.conf sip_notify.conf voicemail.conf adtranvofr.conf cdr.conf cli.conf extconfig.conf func_odbc.conf logger.conf muted.conf res_odbc.conf skinny.conf vpb.conf agents.conf cdr_custom.conf cli_permissions.conf extensions.ael gtalk.conf manager.conf osp.conf res_pgsql.conf sla.conf ais.conf cdr_manager.conf codecs.conf extensions.conf h323.conf manager.d oss.conf res_snmp.conf smdi.conf alarmreceiver.conf cdr_odbc.conf console.conf extensions.conf.SAVE http.conf meetme.conf phone.conf rpt.conf telcordia-1.adsi alsa.conf cdr_pgsql.conf dbsep.conf extensions.lua iax.conf mgcp.conf phoneprov.conf rtp.conf udptl.conf amd.conf cdr_sqlite3_custom.conf dnsmgr.conf extensions_minivm.conf iaxprov.conf minivm.conf queuerules.conf say.conf unistim.conf asterisk.adsi cdr_tds.conf dsp.conf features.conf indications.conf misdn.conf queues.conf sip.conf usbradio.conf asterisk.conf chan_dahdi.conf dundi.conf festival.conf jabber.conf modules.conf res_config_sqlite.conf sip.conf.SAVE users.conf |
#vim extensions.conf
|
#[time]
adsi.conf cdr_adaptive_odbc.conf cli_aliases.conf enum.conf followme.conf jingle.conf musiconhold.conf res_ldap.conf sip_notify.conf voicemail.conf adtranvofr.conf cdr.conf cli.conf extconfig.conf func_odbc.conf logger.conf muted.conf res_odbc.conf skinny.conf vpb.conf agents.conf cdr_custom.conf cli_permissions.conf extensions.ael gtalk.conf manager.conf osp.conf res_pgsql.conf sla.conf ais.conf cdr_manager.conf codecs.conf extensions.conf h323.conf manager.d oss.conf res_snmp.conf smdi.conf alarmreceiver.conf cdr_odbc.conf console.conf extensions.conf.SAVE http.conf meetme.conf phone.conf rpt.conf telcordia-1.adsi alsa.conf cdr_pgsql.conf dbsep.conf extensions.lua iax.conf mgcp.conf phoneprov.conf rtp.conf udptl.conf amd.conf cdr_sqlite3_custom.conf dnsmgr.conf extensions_minivm.conf iaxprov.conf minivm.conf queuerules.conf say.conf unistim.conf asterisk.adsi cdr_tds.conf dsp.conf features.conf indications.conf misdn.conf queues.conf sip.conf usbradio.conf asterisk.conf chan_dahdi.conf dundi.conf festival.conf jabber.conf modules.conf res_config_sqlite.conf sip.conf.SAVE users.conf |
#> extensions.conf
|
#vim ext
|
#vim extensions.conf
--- /tmp/l3-saved-2041.7779.5198 2011-06-20 16:41:52.000000000 +0300 +++ extensions.conf 2011-06-20 16:43:19.000000000 +0300 @@ -0,0 +1,4 @@ +[default] + +exten => 8000,1,Playback(demo-congrats) +:q |
#service asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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 == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux6 (pid = 2180) Verbosity was 0 and is now 3 -- Auto fallthrough, channel 'SIP/2202-00000000' status is 'UNKNOWN' linux6*CLI> exit Executing last minute cleanups |
#vim extensions.conf
--- /tmp/l3-saved-2041.3407.20631 2011-06-20 16:49:10.000000000 +0300 +++ extensions.conf 2011-06-20 17:02:32.000000000 +0300 @@ -1,4 +1,6 @@ [default] -exten => 8000,1,Playback(demo-congrats) -:q +exten => 8000,1,Wait(1) +exten => 8000,n,Playback(demo-congrats) +exten =>_81.,n,Say(${EXTEN}) + |
#service asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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 == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux6 (pid = 2282) Verbosity was 0 and is now 3 == Using SIP RTP CoS mark 5 [Jun 20 17:03:05] NOTICE[2326]: chan_sip.c:20281 handle_request_invite: Call from '2201' to extension '81000' rejected because extension not found in context 'default'. linux6*CLI> exit Executing last minute cleanups |
#vim extensions.conf
--- /tmp/l3-saved-2041.7963.14178 2011-06-20 17:04:21.000000000 +0300 +++ extensions.conf 2011-06-20 17:04:38.000000000 +0300 @@ -2,5 +2,6 @@ exten => 8000,1,Wait(1) exten => 8000,n,Playback(demo-congrats) -exten =>_81.,n,Say(${EXTEN}) +exten => _81.,n,Say(${EXTEN}) + |
#service asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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 == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux6 (pid = 2373) Verbosity was 0 and is now 3 == Using SIP RTP CoS mark 5 [Jun 20 17:04:51] NOTICE[2417]: chan_sip.c:20281 handle_request_invite: Call from '2201' to extension '8125' rejected because extension not found in context 'default'. linux6*CLI> exit Executing last minute cleanups |
#vim extensions.conf
--- /tmp/l3-saved-2041.5928.28874 2011-06-20 17:05:14.000000000 +0300 +++ extensions.conf 2011-06-20 17:09:24.000000000 +0300 @@ -3,5 +3,6 @@ exten => 8000,1,Wait(1) exten => 8000,n,Playback(demo-congrats) exten => _81.,n,Say(${EXTEN}) +exten => _24XX,1,Dial(SIP/${EXTEN}) |
#service asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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 == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux6 (pid = 2464) ... == Using SIP RTP CoS mark 5 [Jun 20 17:12:00] NOTICE[2508]: chan_sip.c:20281 handle_request_invite: Call from '2202' to extension '2201' rejected because extension not found in context 'default'. -- Remote UNIX connection -- Remote UNIX connection disconnected -- Remote UNIX connection Executing last minute cleanups == Destroying musiconhold processes linux6*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2571.24552.32434 2011-06-20 17:11:20.000000000 +0300 +++ /etc/asterisk/extensions.conf 2011-06-20 17:11:41.000000000 +0300 @@ -2,7 +2,7 @@ exten => 8000,1,Wait(1) exten => 8000,n,Playback(demo-congrats) -exten => _81.,n,Say(${EXTEN}) + exten => _24XX,1,Dial(SIP/${EXTEN}) |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2571.28775.6572 2011-06-20 17:11:43.000000000 +0300 +++ /etc/asterisk/extensions.conf 2011-06-20 17:12:36.000000000 +0300 @@ -3,6 +3,7 @@ exten => 8000,1,Wait(1) exten => 8000,n,Playback(demo-congrats) -exten => _24XX,1,Dial(SIP/${EXTEN}) +exten => _22XX,1,Dial(SIP/${EXTEN}) + |
#asterisk -rv .
./ .aptitude/ .bash_history .bashrc .gconf/ .l3rc .mc/ .ssh/ .w3m/ ../ .asterisk_history .bash_profile .dbus/ .gconfd/ .lilalo/ .profile .viminfo |
#service asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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 == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux6 (pid = 2671) Verbosity was 0 and is now 3 -- Remote UNIX connection Executing last minute cleanups == Destroying musiconhold processes linux6*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-2571.28291.25182 2011-06-20 17:23:29.000000000 +0300 +++ /etc/asterisk/sip.conf 2011-06-20 17:24:26.000000000 +0300 @@ -19,3 +19,9 @@ secret=password host=dynamic user=2202 + +[2203] +type=friend +secret=password +host=dynamic +user=2203 |
#vim extensions.conf
--- /tmp/l3-saved-2041.27652.2639 2011-06-20 17:31:56.000000000 +0300 +++ extensions.conf 2011-06-20 17:33:57.000000000 +0300 @@ -5,5 +5,7 @@ exten => _22XX,1,Dial(SIP/${EXTEN}) +exten => 2203/1/Dial(SIP/2201&SIP/2202,10) + |
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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 == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux6 (pid = 2775) ... -- Time to delete the old dialplan: 0.000036 sec -- Total time merge_contexts_delete: 0.000415 sec linux6*CLI> dialplan add debug reload remove set show -- Remote UNIX connection Executing last minute cleanups == Destroying musiconhold processes linux6*CLI> dialplan Disconnected from Asterisk server Executing last minute cleanups |
#vim extensions.conf
--- /tmp/l3-saved-2041.24801.32095 2011-06-20 17:35:42.000000000 +0300 +++ extensions.conf 2011-06-20 17:36:34.000000000 +0300 @@ -5,7 +5,8 @@ exten => _22XX,1,Dial(SIP/${EXTEN}) -exten => 2203/1/Dial(SIP/2201&SIP/2202,10) +exten => 2203/1/Dial(SIP/2202&SIP/2203ZZ,10) + |
#service asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#vim extensions.conf
--- /tmp/l3-saved-2041.5555.13102 2011-06-20 17:36:39.000000000 +0300 +++ extensions.conf 2011-06-20 17:37:19.000000000 +0300 @@ -5,7 +5,8 @@ exten => _22XX,1,Dial(SIP/${EXTEN}) -exten => 2203/1/Dial(SIP/2202&SIP/2203ZZ,10) +exten => 2203/1/Dial(SIP/2202&SIP/2203,10) + |
#service asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#vim extensions.conf
--- /tmp/l3-saved-2041.9832.1205 2011-06-20 17:37:44.000000000 +0300 +++ extensions.conf 2011-06-20 17:37:58.000000000 +0300 @@ -5,7 +5,8 @@ exten => _22XX,1,Dial(SIP/${EXTEN}) -exten => 2203/1/Dial(SIP/2202&SIP/2203,10) +exten => 2203,1,Dial(SIP/2202&SIP/2203,10) + |
#service asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#vim /etc/asterisk/extensions.conf
|
#ping 192.168.105.1
PING 192.168.105.1 (192.168.105.1) 56(84) bytes of data. 64 bytes from 192.168.105.1: icmp_req=1 ttl=63 time=0.742 ms 64 bytes from 192.168.105.1: icmp_req=2 ttl=63 time=0.777 ms ^C --- 192.168.105.1 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 999ms rtt min/avg/max/mdev = 0.742/0.759/0.777/0.032 ms |
#asterisk -rvv
Asterisk 1.6.2.9-2+squeeze2, 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 == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze2 currently running on linux6 (pid = 1350) ... [Jun 21 15:44:50] NOTICE[1696]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2203 [Jun 21 15:47:53] NOTICE[1696]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2203 [Jun 21 15:50:56] NOTICE[1696]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2203 [Jun 21 15:53:59] NOTICE[1696]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2203 [Jun 21 15:57:02] NOTICE[1696]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2203 Executing last minute cleanups == Destroying musiconhold processes linux6*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-1954.6303.30452 2011-06-21 09:36:35.000000000 +0300 +++ /etc/asterisk/sip.conf 2011-06-21 09:39:19.000000000 +0300 @@ -6,7 +6,7 @@ tcpbindaddr=0.0.0.0 srvlookup=yes -register => la:password@192.168.106.1/ny +register => la:password@192.168.105.1/ny [2201] type=friend |
#vim /etc/asterisk/sip.conf
|
#vim /etc/asterisk/sip.conf
|
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-1954.833.16082 2011-06-21 09:50:49.000000000 +0300 +++ /etc/asterisk/sip.conf 2011-06-21 09:51:20.000000000 +0300 @@ -35,4 +35,4 @@ secret=password host=dynamic username=la - +canreinvite=no |
#vim /etc/asterisk/sip.conf
|
#[ny]
[default] exten => 8000,1,Wait(1) exten => 8000,n,Playback(demo-congrats) exten => _22XX,1,Dial(SIP/${EXTEN}) exten => 2203,1,Dial(SIP/2202&SIP/2203,10) ;--------------------------- "/etc/asterisk/extensions.conf" 17L, 234C |
#{EXTEN},10)
[internal] [local] exten => 8000,n,Playback(demo-congrats) exten => _22XX,1,Dial(SIP/${EXTEN}) [national] [international],Dial(SIP/2202&SIP/2203,10) exten => _31XX,1,Dial(SIP/paris/${EXTEN},10) ;---------------------------------- [gr1] include => internal ... ~ ~ ~ ~ ~ ~ ~ ~ ~ "/etc/asterisk/extensions.conf" 37L, 455C записано |
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-1954.29835.28631 2011-06-21 10:50:37.000000000 +0300 +++ /etc/asterisk/sip.conf 2011-06-21 10:51:35.000000000 +0300 @@ -14,6 +14,7 @@ host=dynamic user=2201 callerid="Voip Phone <2201>" +context=gr2 [2202] type=friend @@ -21,6 +22,8 @@ host=dynamic user=2202 callerid="SoftPhone <2202>" +context=gr1 + [2203] type=friend @@ -28,7 +31,7 @@ host=dynamic user=2203 callerid="SoftPhone <2203>" - +context=gr1 [ny] type=friend |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-1954.20793.15069 2011-06-21 10:51:59.000000000 +0300 +++ /etc/asterisk/extensions.conf 2011-06-21 10:52:27.000000000 +0300 @@ -33,5 +33,6 @@ [gr2] include => internal include => local +include => national |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-1954.23318.17959 2011-06-21 10:54:15.000000000 +0300 +++ /etc/asterisk/extensions.conf 2011-06-21 10:57:08.000000000 +0300 @@ -36,3 +36,11 @@ include => national +[gr3] +include => internal +include => local +include => national +include => international + +[gr4] +include => local |
#vim /etc/asterisk/sip.conf
|
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-1954.31321.18061 2011-06-21 11:22:33.000000000 +0300 +++ /etc/asterisk/extensions.conf 2011-06-21 11:23:25.000000000 +0300 @@ -21,9 +21,10 @@ [international] -exten => _31XX,1,Dial(SIP/paris/${EXTEN},10) +exten => _13XX,1,Dial(SIP/paris/${EXTEN},10) -;---------------------------------- + +;--------------------------------- [gr1] include => internal |
#ssh root@192.168.107.1
The authenticity of host '192.168.107.1 (192.168.107.1)' can't be established. RSA key fingerprint is 21:3b:a0:c0:17:c5:a0:ee:97:26:6c:52:f6:ca:df:fe. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.107.1' (RSA) to the list of known hosts. root@192.168.107.1's password: Linux linux7 2.6.32-5-amd64 #1 SMP Wed May 18 23:13:22 UTC 2011 x86_64 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. l3-agent is already running: pid=7887; pidfile=/root/.lilalo/l3-agent.pid |
#vim /etc/asterisk/ext
|
#vim /etc/asterisk/extensions.conf
|
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-1954.14253.30464 2011-06-21 11:33:48.000000000 +0300 +++ /etc/asterisk/extensions.conf 2011-06-21 11:36:42.000000000 +0300 @@ -25,7 +25,7 @@ exten => _3XXX,1,Dial(SIP/ny/${EXTEN},10) exten => _22XX,1,Dial(SIP/ny/${EXTEN},10) exten => _23XX,1,Dial(SIP/ny/${EXTEN},10) - +exten => _24XX,1,Dial(SIP/ny/${EXTEN},10) ;--------------------------------- [gr1] |
Время первой команды журнала | 14:25:54 2011- 6-20 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 10:31:32 2011- 6-21 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 1.98 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 2.97 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 3.58 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.47 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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