/l3/users/vadik/nt-voip/linux1.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 :19 :20 |
|
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Asterisk PBX is already running. Use restart. |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Asterisk PBX is already running. Use restart. |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#[ ]
итого 2540 -rw-r--r-- 1 root root 2452777 Апр 28 2010 11 -rwxr-xr-x 1 user user 786 Фев 17 2010 convert.py -rw------- 1 user user 1229 Апр 28 2010 dictate.txt -rw------- 1 user user 2643 Апр 28 2010 digits.txt -rw------- 1 user user 782 Апр 28 2010 followme.txt -rw-r--r-- 1 user user 43 Окт 18 11:51 gnash-cookies.2274 drwx------ 2 user user 4096 Окт 19 16:30 keyring-dedniI -rw------- 1 user user 528 Апр 28 2010 letters.txt drwx------ 2 root root 4096 Окт 18 16:00 mc-root ... drwxr-xr-x 9 user user 20480 Апр 28 2010 ru -rw------- 1 user user 34946 Апр 28 2010 ru.txt drwx------ 2 user user 4096 Окт 19 09:35 seahorse-Bg7ok8 drwx------ 2 user user 4096 Окт 19 16:30 seahorse-bHgZEq drwx------ 2 user user 4096 Окт 18 09:38 seahorse-nVmB48 drwx------ 2 user user 4096 Окт 19 16:30 ssh-CMqiVV2122 drwx------ 2 root root 4096 Окт 19 17:37 ssh-QnDCRD7646 drwx------ 2 user user 4096 Окт 18 09:38 virtual-user.0dKPWm drwx------ 2 user user 4096 Окт 19 09:35 virtual-user.oB6EHv drwx------ 2 user user 4096 Окт 19 16:30 virtual-user.uriTKy |
#ls -ld /tmp/
drwxr-xr-x 18 user user 4096 Окт 19 17:38 /tmp/ |
#chmod 1777 /tmp/
|
#ls -l /tmp/h*
-rw-rw---- 1 asterisk asterisk 35 Окт 19 17:38 /tmp/hello-from-asterisk |
#ls -l /tmp/h*
-rw-rw---- 1 asterisk asterisk 35 Окт 19 17:38 /tmp/hello-from-asterisk |
#w
17:43:00 up 1:13, 4 users, load average: 0,03, 0,07, 0,04 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT user tty7 :0 16:30 1:13m 18.77s 0.09s x-session-manag user pts/0 :0.0 16:30 12:01 0.32s 0.10s script -f -c ba user pts/2 :0.0 16:30 0.00s 0.26s 0.10s script -f -c ba root pts/6 note.unix.nt 17:37 4:00 0.14s 0.00s script -f -c ba |
#dmesg
[ 0.000000] Initializing cgroup subsys cpuset [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Linux version 2.6.32-5-686 (Debian 2.6.32-38) (ben@decadent.org.uk) (gcc version 4.3.5 (Debian 4.3.5-4) ) #1 SMP Mon Oct 3 04:15:24 UTC 2011 [ 0.000000] KERNEL supported cpus: [ 0.000000] Intel GenuineIntel [ 0.000000] AMD AuthenticAMD [ 0.000000] NSC Geode by NSC [ 0.000000] Cyrix CyrixInstead [ 0.000000] Centaur CentaurHauls [ 0.000000] Transmeta GenuineTMx86 ... [ 27.449509] groups: group c330370c cpus 6 (cpu_power = 589) group c310370c cpus 2 (cpu_power = 589) [ 27.449512] domain 1: span 0-7 level MC [ 27.449513] groups: group c3103778 cpus 2,6 (cpu_power = 1178) group c3183778 cpus 3,7 (cpu_power = 1178) group c3003778 cpus 0,4 (cpu_power = 1178) group c3083778 cpus 1,5 (cpu_power = 1178) [ 27.449518] CPU7 attaching sched-domain: [ 27.449518] domain 0: span 3,7 level SIBLING [ 27.449519] groups: group c338370c cpus 7 (cpu_power = 589) group c318370c cpus 3 (cpu_power = 589) [ 27.449522] domain 1: span 0-7 level MC [ 27.449523] groups: group c3183778 cpus 3,7 (cpu_power = 1178) group c3003778 cpus 0,4 (cpu_power = 1178) group c3083778 cpus 1,5 (cpu_power = 1178) group c3103778 cpus 2,6 (cpu_power = 1178) [ 1024.081211] dahdi: Telephony Interface Registered on major 196 [ 1024.081215] dahdi: Version: 2.3.0.1 |
#w
17:43:00 up 1:13, 4 users, load average: 0,03, 0,07, 0,04 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT user tty7 :0 16:30 1:13m 18.77s 0.09s x-session-manag user pts/0 :0.0 16:30 12:01 0.32s 0.10s script -f -c ba user pts/2 :0.0 16:30 0.00s 0.26s 0.10s script -f -c ba root pts/6 note.unix.nt 17:37 4:00 0.14s 0.00s script -f -c ba |
#dmesg
[ 0.000000] Initializing cgroup subsys cpuset [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Linux version 2.6.32-5-686 (Debian 2.6.32-38) (ben@decadent.org.uk) (gcc version 4.3.5 (Debian 4.3.5-4) ) #1 SMP Mon Oct 3 04:15:24 UTC 2011 [ 0.000000] KERNEL supported cpus: [ 0.000000] Intel GenuineIntel [ 0.000000] AMD AuthenticAMD [ 0.000000] NSC Geode by NSC [ 0.000000] Cyrix CyrixInstead [ 0.000000] Centaur CentaurHauls [ 0.000000] Transmeta GenuineTMx86 ... [ 27.449509] groups: group c330370c cpus 6 (cpu_power = 589) group c310370c cpus 2 (cpu_power = 589) [ 27.449512] domain 1: span 0-7 level MC [ 27.449513] groups: group c3103778 cpus 2,6 (cpu_power = 1178) group c3183778 cpus 3,7 (cpu_power = 1178) group c3003778 cpus 0,4 (cpu_power = 1178) group c3083778 cpus 1,5 (cpu_power = 1178) [ 27.449518] CPU7 attaching sched-domain: [ 27.449518] domain 0: span 3,7 level SIBLING [ 27.449519] groups: group c338370c cpus 7 (cpu_power = 589) group c318370c cpus 3 (cpu_power = 589) [ 27.449522] domain 1: span 0-7 level MC [ 27.449523] groups: group c3183778 cpus 3,7 (cpu_power = 1178) group c3003778 cpus 0,4 (cpu_power = 1178) group c3083778 cpus 1,5 (cpu_power = 1178) group c3103778 cpus 2,6 (cpu_power = 1178) [ 1024.081211] dahdi: Telephony Interface Registered on major 196 [ 1024.081215] dahdi: Version: 2.3.0.1 |
#dmesg
[ 0.000000] Initializing cgroup subsys cpuset [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Linux version 2.6.32-5-686 (Debian 2.6.32-38) (ben@decadent.org.uk) (gcc version 4.3.5 (Debian 4.3.5-4) ) #1 SMP Mon Oct 3 04:15:24 UTC 2011 [ 0.000000] KERNEL supported cpus: [ 0.000000] Intel GenuineIntel [ 0.000000] AMD AuthenticAMD [ 0.000000] NSC Geode by NSC [ 0.000000] Cyrix CyrixInstead [ 0.000000] Centaur CentaurHauls [ 0.000000] Transmeta GenuineTMx86 ... [ 25.199268] domain 0: span 2,6 level SIBLING [ 25.199269] groups: group c330370c cpus 6 (cpu_power = 589) group c310370c cpus 2 (cpu_power = 589) [ 25.199271] domain 1: span 0-7 level MC [ 25.199272] groups: group c3103778 cpus 2,6 (cpu_power = 1178) group c3183778 cpus 3,7 (cpu_power = 1178) group c3003778 cpus 0,4 (cpu_power = 1178) group c3083778 cpus 1,5 (cpu_power = 1178) [ 25.199277] CPU7 attaching sched-domain: [ 25.199278] domain 0: span 3,7 level SIBLING [ 25.199279] groups: group c338370c cpus 7 (cpu_power = 589) group c318370c cpus 3 (cpu_power = 589) [ 25.199281] domain 1: span 0-7 level MC [ 25.199282] groups: group c3183778 cpus 3,7 (cpu_power = 1178) group c3003778 cpus 0,4 (cpu_power = 1178) group c3083778 cpus 1,5 (cpu_power = 1178) group c3103778 cpus 2,6 (cpu_power = 1178) [ 25.716354] eth0: no IPv6 routers present |
#dmesg
[ 0.000000] Initializing cgroup subsys cpuset [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Linux version 2.6.32-5-686 (Debian 2.6.32-38) (ben@decadent.org.uk) (gcc version 4.3.5 (Debian 4.3.5-4) ) #1 SMP Mon Oct 3 04:15:24 UTC 2011 [ 0.000000] KERNEL supported cpus: [ 0.000000] Intel GenuineIntel [ 0.000000] AMD AuthenticAMD [ 0.000000] NSC Geode by NSC [ 0.000000] Cyrix CyrixInstead [ 0.000000] Centaur CentaurHauls [ 0.000000] Transmeta GenuineTMx86 ... [ 25.199268] domain 0: span 2,6 level SIBLING [ 25.199269] groups: group c330370c cpus 6 (cpu_power = 589) group c310370c cpus 2 (cpu_power = 589) [ 25.199271] domain 1: span 0-7 level MC [ 25.199272] groups: group c3103778 cpus 2,6 (cpu_power = 1178) group c3183778 cpus 3,7 (cpu_power = 1178) group c3003778 cpus 0,4 (cpu_power = 1178) group c3083778 cpus 1,5 (cpu_power = 1178) [ 25.199277] CPU7 attaching sched-domain: [ 25.199278] domain 0: span 3,7 level SIBLING [ 25.199279] groups: group c338370c cpus 7 (cpu_power = 589) group c318370c cpus 3 (cpu_power = 589) [ 25.199281] domain 1: span 0-7 level MC [ 25.199282] groups: group c3183778 cpus 3,7 (cpu_power = 1178) group c3003778 cpus 0,4 (cpu_power = 1178) group c3083778 cpus 1,5 (cpu_power = 1178) group c3103778 cpus 2,6 (cpu_power = 1178) [ 25.716354] eth0: no IPv6 routers present |
#ifconfig
eth0 Link encap:Ethernet HWaddr 2c:27:d7:46:19:8f inet addr:192.168.10.1 Bcast:192.168.10.255 Mask:255.255.255.0 inet6 addr: fe80::2e27:d7ff:fe46:198f/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:611 errors:0 dropped:0 overruns:0 frame:0 TX packets:517 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:121937 (119.0 KiB) TX bytes:159180 (155.4 KiB) Interrupt:20 Memory:fe400000-fe420000 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:39 errors:0 dropped:0 overruns:0 frame:0 TX packets:39 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:7099 (6.9 KiB) TX bytes:7099 (6.9 KiB) |
#ifconfig
eth0 Link encap:Ethernet HWaddr 2c:27:d7:46:19:8f inet addr:192.168.10.1 Bcast:192.168.10.255 Mask:255.255.255.0 inet6 addr: fe80::2e27:d7ff:fe46:198f/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:611 errors:0 dropped:0 overruns:0 frame:0 TX packets:517 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:121937 (119.0 KiB) TX bytes:159180 (155.4 KiB) Interrupt:20 Memory:fe400000-fe420000 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:39 errors:0 dropped:0 overruns:0 frame:0 TX packets:39 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:7099 (6.9 KiB) TX bytes:7099 (6.9 KiB) |
#tail -f /var/log/mail.log
Oct 19 17:37:12 linux1 in.qpopper[7643]: (v4.0.9) POP login by user "user" at (192.168.10.200) 192.168.10.200 [pop_log.c:244] Oct 20 09:15:10 linux1 sm-mta[1450]: starting daemon (8.14.3): SMTP+queueing@00:10:00 Oct 20 09:29:32 linux1 in.qpopper[2414]: (v4.0.9) Unable to get canonical name of client 192.168.10.200: Name or service not known (-2) [pop_init.c:1250] Oct 20 09:29:32 linux1 in.qpopper[2414]: (v4.0.9) Servicing request from "192.168.10.200" at 192.168.10.200 [pop_init.c:1408] Oct 20 09:29:32 linux1 in.qpopper[2414]: Unable to open bulletin directory '/var/spool/popbull': No such file or directory (2) [pop_bull.c:386] Oct 20 09:29:32 linux1 in.qpopper[2414]: (v4.0.9) POP login by user "user" at (192.168.10.200) 192.168.10.200 [pop_log.c:244] Oct 20 09:35:06 linux1 in.qpopper[2424]: (v4.0.9) Unable to get canonical name of client 192.168.10.200: Name or service not known (-2) [pop_init.c:1250] Oct 20 09:35:06 linux1 in.qpopper[2424]: (v4.0.9) Servicing request from "192.168.10.200" at 192.168.10.200 [pop_init.c:1408] Oct 20 09:35:06 linux1 in.qpopper[2424]: Unable to open bulletin directory '/var/spool/popbull': No such file or directory (2) [pop_bull.c:386] Oct 20 09:35:06 linux1 in.qpopper[2424]: (v4.0.9) POP login by user "user" at (192.168.10.200) 192.168.10.200 [pop_log.c:244] Oct 20 09:35:50 linux1 sendmail[2453]: p9K6ZoWN002453: from=asterisk, size=30196, class=0, nrcpts=1, msgid=<Asterisk-4-197038465-1102-1514@linux1>, relay=asterisk@localhost Oct 20 09:35:50 linux1 sm-mta[2454]: p9K6Zoex002454: from=<asterisk@linux1.unix.nt>, size=30334, class=0, nrcpts=1, msgid=<Asterisk-4-197038465-1102-1514@linux1>, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1] Oct 20 09:35:50 linux1 sendmail[2453]: p9K6ZoWN002453: to="User User" <user@linux1.unix.nt>, ctladdr=asterisk (109/114), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=60196, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (p9K6Zoex002454 Message accepted for delivery) Oct 20 09:35:50 linux1 sm-mta[2458]: p9K6Zoex002454: to=<user@linux1.unix.nt>, ctladdr=<asterisk@linux1.unix.nt> (109/114), delay=00:00:00, xdelay=00:00:00, mailer=local, pri=60560, dsn=2.0.0, stat=Sent Oct 20 09:36:01 linux1 in.qpopper[2460]: (v4.0.9) Unable to get canonical name of client 192.168.10.200: Name or service not known (-2) [pop_init.c:1250] Oct 20 09:36:01 linux1 in.qpopper[2460]: (v4.0.9) Servicing request from "192.168.10.200" at 192.168.10.200 [pop_init.c:1408] Oct 20 09:36:01 linux1 in.qpopper[2460]: Unable to open bulletin directory '/var/spool/popbull': No such file or directory (2) [pop_bull.c:386] Oct 20 09:36:01 linux1 in.qpopper[2460]: (v4.0.9) POP login by user "user" at (192.168.10.200) 192.168.10.200 [pop_log.c:244] ^C |
#tail -f /var/log/mail.log
Oct 19 17:37:12 linux1 in.qpopper[7643]: (v4.0.9) POP login by user "user" at (192.168.10.200) 192.168.10.200 [pop_log.c:244] Oct 20 09:15:10 linux1 sm-mta[1450]: starting daemon (8.14.3): SMTP+queueing@00:10:00 Oct 20 09:29:32 linux1 in.qpopper[2414]: (v4.0.9) Unable to get canonical name of client 192.168.10.200: Name or service not known (-2) [pop_init.c:1250] Oct 20 09:29:32 linux1 in.qpopper[2414]: (v4.0.9) Servicing request from "192.168.10.200" at 192.168.10.200 [pop_init.c:1408] Oct 20 09:29:32 linux1 in.qpopper[2414]: Unable to open bulletin directory '/var/spool/popbull': No such file or directory (2) [pop_bull.c:386] Oct 20 09:29:32 linux1 in.qpopper[2414]: (v4.0.9) POP login by user "user" at (192.168.10.200) 192.168.10.200 [pop_log.c:244] Oct 20 09:35:06 linux1 in.qpopper[2424]: (v4.0.9) Unable to get canonical name of client 192.168.10.200: Name or service not known (-2) [pop_init.c:1250] Oct 20 09:35:06 linux1 in.qpopper[2424]: (v4.0.9) Servicing request from "192.168.10.200" at 192.168.10.200 [pop_init.c:1408] Oct 20 09:35:06 linux1 in.qpopper[2424]: Unable to open bulletin directory '/var/spool/popbull': No such file or directory (2) [pop_bull.c:386] Oct 20 09:35:06 linux1 in.qpopper[2424]: (v4.0.9) POP login by user "user" at (192.168.10.200) 192.168.10.200 [pop_log.c:244] Oct 20 09:35:50 linux1 sendmail[2453]: p9K6ZoWN002453: from=asterisk, size=30196, class=0, nrcpts=1, msgid=<Asterisk-4-197038465-1102-1514@linux1>, relay=asterisk@localhost Oct 20 09:35:50 linux1 sm-mta[2454]: p9K6Zoex002454: from=<asterisk@linux1.unix.nt>, size=30334, class=0, nrcpts=1, msgid=<Asterisk-4-197038465-1102-1514@linux1>, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1] Oct 20 09:35:50 linux1 sendmail[2453]: p9K6ZoWN002453: to="User User" <user@linux1.unix.nt>, ctladdr=asterisk (109/114), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=60196, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (p9K6Zoex002454 Message accepted for delivery) Oct 20 09:35:50 linux1 sm-mta[2458]: p9K6Zoex002454: to=<user@linux1.unix.nt>, ctladdr=<asterisk@linux1.unix.nt> (109/114), delay=00:00:00, xdelay=00:00:00, mailer=local, pri=60560, dsn=2.0.0, stat=Sent Oct 20 09:36:01 linux1 in.qpopper[2460]: (v4.0.9) Unable to get canonical name of client 192.168.10.200: Name or service not known (-2) [pop_init.c:1250] Oct 20 09:36:01 linux1 in.qpopper[2460]: (v4.0.9) Servicing request from "192.168.10.200" at 192.168.10.200 [pop_init.c:1408] Oct 20 09:36:01 linux1 in.qpopper[2460]: Unable to open bulletin directory '/var/spool/popbull': No such file or directory (2) [pop_bull.c:386] Oct 20 09:36:01 linux1 in.qpopper[2460]: (v4.0.9) POP login by user "user" at (192.168.10.200) 192.168.10.200 [pop_log.c:244] ^C |
#tail -f /var/log/messages
Oct 20 09:34:40 linux1 dhcpd: DHCPREQUEST for 10.0.88.22 from 00:13:80:78:1c:a2 via eth0: ignored (not authoritative). Oct 20 09:34:44 linux1 dhcpd: DHCPREQUEST for 10.0.88.22 from 00:13:80:78:1c:a2 via eth0: ignored (not authoritative). Oct 20 09:34:52 linux1 dhcpd: DHCPREQUEST for 10.0.88.22 from 00:13:80:78:1c:a2 via eth0: ignored (not authoritative). Oct 20 09:35:08 linux1 dhcpd: DHCPREQUEST for 10.0.88.22 from 00:13:80:78:1c:a2 via eth0: ignored (not authoritative). Oct 20 09:35:19 linux1 dhcpd: DHCPREQUEST for 192.168.10.201 from 00:04:13:24:e5:7e via eth0 Oct 20 09:35:19 linux1 dhcpd: DHCPACK on 192.168.10.201 to 00:04:13:24:e5:7e via eth0 Oct 20 09:35:40 linux1 dhcpd: DHCPDISCOVER from 00:13:80:78:1c:a2 via eth0 Oct 20 09:35:41 linux1 dhcpd: DHCPOFFER on 192.168.10.202 to 00:13:80:78:1c:a2 (SIP001380781CA2) via eth0 Oct 20 09:35:41 linux1 dhcpd: DHCPREQUEST for 192.168.10.202 (192.168.10.1) from 00:13:80:78:1c:a2 (SIP001380781CA2) via eth0 Oct 20 09:35:41 linux1 dhcpd: DHCPACK on 192.168.10.202 to 00:13:80:78:1c:a2 (SIP001380781CA2) via eth0 Oct 20 09:36:32 linux1 dhcpd: DHCPREQUEST for 10.0.88.22 from 00:13:80:78:1c:a2 via eth0: ignored (not authoritative). Oct 20 09:36:36 linux1 dhcpd: DHCPREQUEST for 10.0.88.22 from 00:13:80:78:1c:a2 via eth0: ignored (not authoritative). Oct 20 09:36:44 linux1 dhcpd: DHCPREQUEST for 10.0.88.22 from 00:13:80:78:1c:a2 via eth0: ignored (not authoritative). ^C |
#tail -f /var/log/messages
Oct 20 09:34:40 linux1 dhcpd: DHCPREQUEST for 10.0.88.22 from 00:13:80:78:1c:a2 via eth0: ignored (not authoritative). Oct 20 09:34:44 linux1 dhcpd: DHCPREQUEST for 10.0.88.22 from 00:13:80:78:1c:a2 via eth0: ignored (not authoritative). Oct 20 09:34:52 linux1 dhcpd: DHCPREQUEST for 10.0.88.22 from 00:13:80:78:1c:a2 via eth0: ignored (not authoritative). Oct 20 09:35:08 linux1 dhcpd: DHCPREQUEST for 10.0.88.22 from 00:13:80:78:1c:a2 via eth0: ignored (not authoritative). Oct 20 09:35:19 linux1 dhcpd: DHCPREQUEST for 192.168.10.201 from 00:04:13:24:e5:7e via eth0 Oct 20 09:35:19 linux1 dhcpd: DHCPACK on 192.168.10.201 to 00:04:13:24:e5:7e via eth0 Oct 20 09:35:40 linux1 dhcpd: DHCPDISCOVER from 00:13:80:78:1c:a2 via eth0 Oct 20 09:35:41 linux1 dhcpd: DHCPOFFER on 192.168.10.202 to 00:13:80:78:1c:a2 (SIP001380781CA2) via eth0 Oct 20 09:35:41 linux1 dhcpd: DHCPREQUEST for 192.168.10.202 (192.168.10.1) from 00:13:80:78:1c:a2 (SIP001380781CA2) via eth0 Oct 20 09:35:41 linux1 dhcpd: DHCPACK on 192.168.10.202 to 00:13:80:78:1c:a2 (SIP001380781CA2) via eth0 Oct 20 09:36:32 linux1 dhcpd: DHCPREQUEST for 10.0.88.22 from 00:13:80:78:1c:a2 via eth0: ignored (not authoritative). Oct 20 09:36:36 linux1 dhcpd: DHCPREQUEST for 10.0.88.22 from 00:13:80:78:1c:a2 via eth0: ignored (not authoritative). Oct 20 09:36:44 linux1 dhcpd: DHCPREQUEST for 10.0.88.22 from 00:13:80:78:1c:a2 via eth0: ignored (not authoritative). ^C |
#ping 192.168.10.202
PING 192.168.10.202 (192.168.10.202) 56(84) bytes of data. From 192.168.10.1 icmp_seq=1 Destination Host Unreachable From 192.168.10.1 icmp_seq=2 Destination Host Unreachable From 192.168.10.1 icmp_seq=3 Destination Host Unreachable From 192.168.10.1 icmp_seq=4 Destination Host Unreachable From 192.168.10.1 icmp_seq=5 Destination Host Unreachable From 192.168.10.1 icmp_seq=6 Destination Host Unreachable From 192.168.10.1 icmp_seq=7 Destination Host Unreachable From 192.168.10.1 icmp_seq=8 Destination Host Unreachable From 192.168.10.1 icmp_seq=9 Destination Host Unreachable ... From 192.168.10.1 icmp_seq=14 Destination Host Unreachable From 192.168.10.1 icmp_seq=15 Destination Host Unreachable From 192.168.10.1 icmp_seq=16 Destination Host Unreachable From 192.168.10.1 icmp_seq=17 Destination Host Unreachable From 192.168.10.1 icmp_seq=18 Destination Host Unreachable From 192.168.10.1 icmp_seq=19 Destination Host Unreachable ^C --- 192.168.10.202 ping statistics --- 22 packets transmitted, 0 received, +19 errors, 100% packet loss, time 21110ms pipe 3 |
#ping 192.168.10.202
PING 192.168.10.202 (192.168.10.202) 56(84) bytes of data. From 192.168.10.1 icmp_seq=1 Destination Host Unreachable From 192.168.10.1 icmp_seq=2 Destination Host Unreachable From 192.168.10.1 icmp_seq=3 Destination Host Unreachable From 192.168.10.1 icmp_seq=4 Destination Host Unreachable From 192.168.10.1 icmp_seq=5 Destination Host Unreachable From 192.168.10.1 icmp_seq=6 Destination Host Unreachable From 192.168.10.1 icmp_seq=7 Destination Host Unreachable From 192.168.10.1 icmp_seq=8 Destination Host Unreachable From 192.168.10.1 icmp_seq=9 Destination Host Unreachable ... From 192.168.10.1 icmp_seq=14 Destination Host Unreachable From 192.168.10.1 icmp_seq=15 Destination Host Unreachable From 192.168.10.1 icmp_seq=16 Destination Host Unreachable From 192.168.10.1 icmp_seq=17 Destination Host Unreachable From 192.168.10.1 icmp_seq=18 Destination Host Unreachable From 192.168.10.1 icmp_seq=19 Destination Host Unreachable ^C --- 192.168.10.202 ping statistics --- 22 packets transmitted, 0 received, +19 errors, 100% packet loss, time 21110ms pipe 3 |
#tail -f /var/log/messages
Oct 20 09:35:19 linux1 dhcpd: DHCPREQUEST for 192.168.10.201 from 00:04:13:24:e5:7e via eth0 Oct 20 09:35:19 linux1 dhcpd: DHCPACK on 192.168.10.201 to 00:04:13:24:e5:7e via eth0 Oct 20 09:35:40 linux1 dhcpd: DHCPDISCOVER from 00:13:80:78:1c:a2 via eth0 Oct 20 09:35:41 linux1 dhcpd: DHCPOFFER on 192.168.10.202 to 00:13:80:78:1c:a2 (SIP001380781CA2) via eth0 Oct 20 09:35:41 linux1 dhcpd: DHCPREQUEST for 192.168.10.202 (192.168.10.1) from 00:13:80:78:1c:a2 (SIP001380781CA2) via eth0 Oct 20 09:35:41 linux1 dhcpd: DHCPACK on 192.168.10.202 to 00:13:80:78:1c:a2 (SIP001380781CA2) via eth0 Oct 20 09:36:32 linux1 dhcpd: DHCPREQUEST for 10.0.88.22 from 00:13:80:78:1c:a2 via eth0: ignored (not authoritative). Oct 20 09:36:36 linux1 dhcpd: DHCPREQUEST for 10.0.88.22 from 00:13:80:78:1c:a2 via eth0: ignored (not authoritative). Oct 20 09:36:44 linux1 dhcpd: DHCPREQUEST for 10.0.88.22 from 00:13:80:78:1c:a2 via eth0: ignored (not authoritative). Oct 20 09:37:00 linux1 dhcpd: DHCPREQUEST for 10.0.88.22 from 00:13:80:78:1c:a2 via eth0: ignored (not authoritative). Oct 20 09:37:32 linux1 dhcpd: DHCPDISCOVER from 00:13:80:78:1c:a2 (SIP001380781CA2) via eth0 Oct 20 09:37:33 linux1 dhcpd: DHCPOFFER on 192.168.10.202 to 00:13:80:78:1c:a2 (SIP001380781CA2) via eth0 Oct 20 09:37:33 linux1 dhcpd: DHCPREQUEST for 192.168.10.202 (192.168.10.1) from 00:13:80:78:1c:a2 (SIP001380781CA2) via eth0 Oct 20 09:37:33 linux1 dhcpd: DHCPACK on 192.168.10.202 to 00:13:80:78:1c:a2 (SIP001380781CA2) via eth0 ^C |
#tail -f /var/log/messages
Oct 20 09:35:19 linux1 dhcpd: DHCPREQUEST for 192.168.10.201 from 00:04:13:24:e5:7e via eth0 Oct 20 09:35:19 linux1 dhcpd: DHCPACK on 192.168.10.201 to 00:04:13:24:e5:7e via eth0 Oct 20 09:35:40 linux1 dhcpd: DHCPDISCOVER from 00:13:80:78:1c:a2 via eth0 Oct 20 09:35:41 linux1 dhcpd: DHCPOFFER on 192.168.10.202 to 00:13:80:78:1c:a2 (SIP001380781CA2) via eth0 Oct 20 09:35:41 linux1 dhcpd: DHCPREQUEST for 192.168.10.202 (192.168.10.1) from 00:13:80:78:1c:a2 (SIP001380781CA2) via eth0 Oct 20 09:35:41 linux1 dhcpd: DHCPACK on 192.168.10.202 to 00:13:80:78:1c:a2 (SIP001380781CA2) via eth0 Oct 20 09:36:32 linux1 dhcpd: DHCPREQUEST for 10.0.88.22 from 00:13:80:78:1c:a2 via eth0: ignored (not authoritative). Oct 20 09:36:36 linux1 dhcpd: DHCPREQUEST for 10.0.88.22 from 00:13:80:78:1c:a2 via eth0: ignored (not authoritative). Oct 20 09:36:44 linux1 dhcpd: DHCPREQUEST for 10.0.88.22 from 00:13:80:78:1c:a2 via eth0: ignored (not authoritative). Oct 20 09:37:00 linux1 dhcpd: DHCPREQUEST for 10.0.88.22 from 00:13:80:78:1c:a2 via eth0: ignored (not authoritative). Oct 20 09:37:32 linux1 dhcpd: DHCPDISCOVER from 00:13:80:78:1c:a2 (SIP001380781CA2) via eth0 Oct 20 09:37:33 linux1 dhcpd: DHCPOFFER on 192.168.10.202 to 00:13:80:78:1c:a2 (SIP001380781CA2) via eth0 Oct 20 09:37:33 linux1 dhcpd: DHCPREQUEST for 192.168.10.202 (192.168.10.1) from 00:13:80:78:1c:a2 (SIP001380781CA2) via eth0 Oct 20 09:37:33 linux1 dhcpd: DHCPACK on 192.168.10.202 to 00:13:80:78:1c:a2 (SIP001380781CA2) via eth0 ^C |
#tail -f /var/log/messages
Oct 20 09:35:41 linux1 dhcpd: DHCPREQUEST for 192.168.10.202 (192.168.10.1) from 00:13:80:78:1c:a2 (SIP001380781CA2) via eth0 Oct 20 09:35:41 linux1 dhcpd: DHCPACK on 192.168.10.202 to 00:13:80:78:1c:a2 (SIP001380781CA2) via eth0 Oct 20 09:36:32 linux1 dhcpd: DHCPREQUEST for 10.0.88.22 from 00:13:80:78:1c:a2 via eth0: ignored (not authoritative). Oct 20 09:36:36 linux1 dhcpd: DHCPREQUEST for 10.0.88.22 from 00:13:80:78:1c:a2 via eth0: ignored (not authoritative). Oct 20 09:36:44 linux1 dhcpd: DHCPREQUEST for 10.0.88.22 from 00:13:80:78:1c:a2 via eth0: ignored (not authoritative). Oct 20 09:37:00 linux1 dhcpd: DHCPREQUEST for 10.0.88.22 from 00:13:80:78:1c:a2 via eth0: ignored (not authoritative). Oct 20 09:37:32 linux1 dhcpd: DHCPDISCOVER from 00:13:80:78:1c:a2 (SIP001380781CA2) via eth0 Oct 20 09:37:33 linux1 dhcpd: DHCPOFFER on 192.168.10.202 to 00:13:80:78:1c:a2 (SIP001380781CA2) via eth0 Oct 20 09:37:33 linux1 dhcpd: DHCPREQUEST for 192.168.10.202 (192.168.10.1) from 00:13:80:78:1c:a2 (SIP001380781CA2) via eth0 Oct 20 09:37:33 linux1 dhcpd: DHCPACK on 192.168.10.202 to 00:13:80:78:1c:a2 (SIP001380781CA2) via eth0 ^C |
#tail -f /var/log/messages
Oct 20 09:35:41 linux1 dhcpd: DHCPREQUEST for 192.168.10.202 (192.168.10.1) from 00:13:80:78:1c:a2 (SIP001380781CA2) via eth0 Oct 20 09:35:41 linux1 dhcpd: DHCPACK on 192.168.10.202 to 00:13:80:78:1c:a2 (SIP001380781CA2) via eth0 Oct 20 09:36:32 linux1 dhcpd: DHCPREQUEST for 10.0.88.22 from 00:13:80:78:1c:a2 via eth0: ignored (not authoritative). Oct 20 09:36:36 linux1 dhcpd: DHCPREQUEST for 10.0.88.22 from 00:13:80:78:1c:a2 via eth0: ignored (not authoritative). Oct 20 09:36:44 linux1 dhcpd: DHCPREQUEST for 10.0.88.22 from 00:13:80:78:1c:a2 via eth0: ignored (not authoritative). Oct 20 09:37:00 linux1 dhcpd: DHCPREQUEST for 10.0.88.22 from 00:13:80:78:1c:a2 via eth0: ignored (not authoritative). Oct 20 09:37:32 linux1 dhcpd: DHCPDISCOVER from 00:13:80:78:1c:a2 (SIP001380781CA2) via eth0 Oct 20 09:37:33 linux1 dhcpd: DHCPOFFER on 192.168.10.202 to 00:13:80:78:1c:a2 (SIP001380781CA2) via eth0 Oct 20 09:37:33 linux1 dhcpd: DHCPREQUEST for 192.168.10.202 (192.168.10.1) from 00:13:80:78:1c:a2 (SIP001380781CA2) via eth0 Oct 20 09:37:33 linux1 dhcpd: DHCPACK on 192.168.10.202 to 00:13:80:78:1c:a2 (SIP001380781CA2) via eth0 ^C |
#tail -f /var/log/messages
Oct 20 09:35:41 linux1 dhcpd: DHCPREQUEST for 192.168.10.202 (192.168.10.1) from 00:13:80:78:1c:a2 (SIP001380781CA2) via eth0 Oct 20 09:35:41 linux1 dhcpd: DHCPACK on 192.168.10.202 to 00:13:80:78:1c:a2 (SIP001380781CA2) via eth0 Oct 20 09:36:32 linux1 dhcpd: DHCPREQUEST for 10.0.88.22 from 00:13:80:78:1c:a2 via eth0: ignored (not authoritative). Oct 20 09:36:36 linux1 dhcpd: DHCPREQUEST for 10.0.88.22 from 00:13:80:78:1c:a2 via eth0: ignored (not authoritative). Oct 20 09:36:44 linux1 dhcpd: DHCPREQUEST for 10.0.88.22 from 00:13:80:78:1c:a2 via eth0: ignored (not authoritative). Oct 20 09:37:00 linux1 dhcpd: DHCPREQUEST for 10.0.88.22 from 00:13:80:78:1c:a2 via eth0: ignored (not authoritative). Oct 20 09:37:32 linux1 dhcpd: DHCPDISCOVER from 00:13:80:78:1c:a2 (SIP001380781CA2) via eth0 Oct 20 09:37:33 linux1 dhcpd: DHCPOFFER on 192.168.10.202 to 00:13:80:78:1c:a2 (SIP001380781CA2) via eth0 Oct 20 09:37:33 linux1 dhcpd: DHCPREQUEST for 192.168.10.202 (192.168.10.1) from 00:13:80:78:1c:a2 (SIP001380781CA2) via eth0 Oct 20 09:37:33 linux1 dhcpd: DHCPACK on 192.168.10.202 to 00:13:80:78:1c:a2 (SIP001380781CA2) via eth0 ... Oct 20 09:40:19 linux1 dhcpd: DHCPACK on 192.168.10.201 to 00:04:13:24:e5:7e via eth0 Oct 20 09:42:33 linux1 dhcpd: DHCPREQUEST for 192.168.10.202 from 00:13:80:78:1c:a2 (SIP001380781CA2) via eth0 Oct 20 09:42:33 linux1 dhcpd: DHCPACK on 192.168.10.202 to 00:13:80:78:1c:a2 (SIP001380781CA2) via eth0 Oct 20 09:44:30 linux1 dhcpd: DHCPREQUEST for 192.168.10.200 from f0:4d:a2:cc:4f:9b (sm-nb014) via eth0 Oct 20 09:44:30 linux1 dhcpd: DHCPACK on 192.168.10.200 to f0:4d:a2:cc:4f:9b (sm-nb014) via eth0 Oct 20 09:45:19 linux1 dhcpd: DHCPREQUEST for 192.168.10.201 from 00:04:13:24:e5:7e via eth0 Oct 20 09:45:19 linux1 dhcpd: DHCPACK on 192.168.10.201 to 00:04:13:24:e5:7e via eth0 Oct 20 09:47:33 linux1 dhcpd: DHCPREQUEST for 192.168.10.202 from 00:13:80:78:1c:a2 (SIP001380781CA2) via eth0 Oct 20 09:47:33 linux1 dhcpd: DHCPACK on 192.168.10.202 to 00:13:80:78:1c:a2 (SIP001380781CA2) via eth0 ^C |
#tail -f /var/log/messages
Oct 20 09:35:41 linux1 dhcpd: DHCPREQUEST for 192.168.10.202 (192.168.10.1) from 00:13:80:78:1c:a2 (SIP001380781CA2) via eth0 Oct 20 09:35:41 linux1 dhcpd: DHCPACK on 192.168.10.202 to 00:13:80:78:1c:a2 (SIP001380781CA2) via eth0 Oct 20 09:36:32 linux1 dhcpd: DHCPREQUEST for 10.0.88.22 from 00:13:80:78:1c:a2 via eth0: ignored (not authoritative). Oct 20 09:36:36 linux1 dhcpd: DHCPREQUEST for 10.0.88.22 from 00:13:80:78:1c:a2 via eth0: ignored (not authoritative). Oct 20 09:36:44 linux1 dhcpd: DHCPREQUEST for 10.0.88.22 from 00:13:80:78:1c:a2 via eth0: ignored (not authoritative). Oct 20 09:37:00 linux1 dhcpd: DHCPREQUEST for 10.0.88.22 from 00:13:80:78:1c:a2 via eth0: ignored (not authoritative). Oct 20 09:37:32 linux1 dhcpd: DHCPDISCOVER from 00:13:80:78:1c:a2 (SIP001380781CA2) via eth0 Oct 20 09:37:33 linux1 dhcpd: DHCPOFFER on 192.168.10.202 to 00:13:80:78:1c:a2 (SIP001380781CA2) via eth0 Oct 20 09:37:33 linux1 dhcpd: DHCPREQUEST for 192.168.10.202 (192.168.10.1) from 00:13:80:78:1c:a2 (SIP001380781CA2) via eth0 Oct 20 09:37:33 linux1 dhcpd: DHCPACK on 192.168.10.202 to 00:13:80:78:1c:a2 (SIP001380781CA2) via eth0 ... Oct 20 09:40:19 linux1 dhcpd: DHCPACK on 192.168.10.201 to 00:04:13:24:e5:7e via eth0 Oct 20 09:42:33 linux1 dhcpd: DHCPREQUEST for 192.168.10.202 from 00:13:80:78:1c:a2 (SIP001380781CA2) via eth0 Oct 20 09:42:33 linux1 dhcpd: DHCPACK on 192.168.10.202 to 00:13:80:78:1c:a2 (SIP001380781CA2) via eth0 Oct 20 09:44:30 linux1 dhcpd: DHCPREQUEST for 192.168.10.200 from f0:4d:a2:cc:4f:9b (sm-nb014) via eth0 Oct 20 09:44:30 linux1 dhcpd: DHCPACK on 192.168.10.200 to f0:4d:a2:cc:4f:9b (sm-nb014) via eth0 Oct 20 09:45:19 linux1 dhcpd: DHCPREQUEST for 192.168.10.201 from 00:04:13:24:e5:7e via eth0 Oct 20 09:45:19 linux1 dhcpd: DHCPACK on 192.168.10.201 to 00:04:13:24:e5:7e via eth0 Oct 20 09:47:33 linux1 dhcpd: DHCPREQUEST for 192.168.10.202 from 00:13:80:78:1c:a2 (SIP001380781CA2) via eth0 Oct 20 09:47:33 linux1 dhcpd: DHCPACK on 192.168.10.202 to 00:13:80:78:1c:a2 (SIP001380781CA2) via eth0 ^C |
#vi sip.conf
--- /tmp/l3-saved-2332.9804.32015 2011-10-20 09:49:04.000000000 +0300 +++ sip.conf 2011-10-20 09:49:36.000000000 +0300 @@ -34,6 +34,16 @@ callgroup=1 pickupgroup=1 +[1102] +type=friend +secret=1234 +host=dynamic +callerid="Kiev" +context=gr3 +mailbox=1103@default +callgroup=1 +pickupgroup=1 + [lv] type=friend secret=1234 |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, 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+squeeze3 currently running on linux1 (pid = 1514) Verbosity was 0 and is now 1 [Oct 20 09:49:42] NOTICE[1611]: chan_sip.c:21763 handle_request_register: Registration from 'sip:1103@192.168.10.1' failed for '192.168.10.202' - No matching peer found ... 1102/1102 192.168.10.200 D 38034 Unmonitored lv/kv 192.168.20.1 D 5060 Unmonitored msk/kv 192.168.70.1 D 5060 Unmonitored tbs/kv 192.168.50.1 D 5060 Unmonitored 5 sip peers [Monitored: 0 online, 0 offline Unmonitored: 5 online, 0 offline] linux1*CLI> [Oct 20 09:50:19] NOTICE[2970]: channel.c:3066 __ast_read: Dropping incompatible voice frame on SIP/1101-00000002 of format ulaw since our native format has changed to 0x2 (gsm) linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, 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+squeeze3 currently running on linux1 (pid = 1514) Verbosity was 0 and is now 1 [Oct 20 09:49:42] NOTICE[1611]: chan_sip.c:21763 handle_request_register: Registration from 'sip:1103@192.168.10.1' failed for '192.168.10.202' - No matching peer found ... 1102/1102 192.168.10.200 D 38034 Unmonitored lv/kv 192.168.20.1 D 5060 Unmonitored msk/kv 192.168.70.1 D 5060 Unmonitored tbs/kv 192.168.50.1 D 5060 Unmonitored 5 sip peers [Monitored: 0 online, 0 offline Unmonitored: 5 online, 0 offline] linux1*CLI> [Oct 20 09:50:19] NOTICE[2970]: channel.c:3066 __ast_read: Dropping incompatible voice frame on SIP/1101-00000002 of format ulaw since our native format has changed to 0x2 (gsm) linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#vi sip.conf
--- /tmp/l3-saved-2332.32459.25479 2011-10-20 09:50:36.000000000 +0300 +++ sip.conf 2011-10-20 09:50:51.000000000 +0300 @@ -34,7 +34,7 @@ callgroup=1 pickupgroup=1 -[1102] +[1103] type=friend secret=1234 host=dynamic |
#vi extensions.conf
|
#{EXTEN})
secret=1234 host=dynamic callerid="Kiev" context=gr3 [1100] mailbox=1103@default callgroup=1 pickupgroup=1 00 [lv] [lv] "sip.conf" 68L, 862C записано |
#{EXTEN})
callerid="Kiev" context=gr3 mailbox=1102@default callgroup=1 pickupgroup=1 [1103] [1103] secret=1234 host=dynamic callerid="Kiev" type=friend 41,1 40% context=gr3 [1100] mailbox=1103@default callgroup=1 pickupgroup=1 00 [lv] [lv] "sip.conf" 68L, 862C записано |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, 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+squeeze3 currently running on linux1 (pid = 1514) Verbosity is at least 1 linux1*CLI> sip show peers ... 1102/1102 192.168.10.200 D 38034 Unmonitored lv/kv 192.168.20.1 D 5060 Unmonitored msk/kv 192.168.70.1 D 5060 Unmonitored tbs/kv 192.168.50.1 D 5060 Unmonitored 6 sip peers [Monitored: 0 online, 0 offline Unmonitored: 6 online, 0 offline] linux1*CLI> [Oct 20 09:54:19] NOTICE[3031]: channel.c:3066 __ast_read: Dropping incompatible voice frame on SIP/1101-00000003 of format ulaw since our native format has changed to 0x2 (gsm) linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, 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+squeeze3 currently running on linux1 (pid = 1514) Verbosity is at least 1 linux1*CLI> sip show peers ... 1102/1102 192.168.10.200 D 38034 Unmonitored lv/kv 192.168.20.1 D 5060 Unmonitored msk/kv 192.168.70.1 D 5060 Unmonitored tbs/kv 192.168.50.1 D 5060 Unmonitored 6 sip peers [Monitored: 0 online, 0 offline Unmonitored: 6 online, 0 offline] linux1*CLI> [Oct 20 09:54:19] NOTICE[3031]: channel.c:3066 __ast_read: Dropping incompatible voice frame on SIP/1101-00000003 of format ulaw since our native format has changed to 0x2 (gsm) linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#apt-get install festival festvox-ru
Чтение списков пакетов... Готово Построение дерева зависимостей Чтение информации о состоянии... Готово Следующие пакеты устанавливались автоматически и больше не требуются: mysql-common libmysqlclient16 Для их удаления используйте 'apt-get autoremove'. Будут установлены следующие дополнительные пакеты: alsa-oss festlex-cmu festlex-poslex festvox-kallpc16k libestools2.0 oss-compat Предлагаемые пакеты: ... Обрабатываются триггеры для install-info ... Настраивается пакет alsa-oss (1.0.17-4) ... Настраивается пакет libestools2.0 (1:2.0.95~beta-2) ... Настраивается пакет oss-compat (0.0.4+nmu3) ... FATAL: Module snd_seq_oss not found. Настраивается пакет festival (1:2.0.95~beta-5.1) ... Настраивается пакет festlex-cmu (1.4.0-6) ... Настраивается пакет festlex-poslex (1.4.0-5) ... Настраивается пакет festvox-ru (0.5-1) ... Настраивается пакет festvox-kallpc16k (1.4.0-5) ... |
#apt-get install festival festvox-ru
Чтение списков пакетов... Готово Построение дерева зависимостей Чтение информации о состоянии... Готово Следующие пакеты устанавливались автоматически и больше не требуются: mysql-common libmysqlclient16 Для их удаления используйте 'apt-get autoremove'. Будут установлены следующие дополнительные пакеты: alsa-oss festlex-cmu festlex-poslex festvox-kallpc16k libestools2.0 oss-compat Предлагаемые пакеты: ... Обрабатываются триггеры для install-info ... Настраивается пакет alsa-oss (1.0.17-4) ... Настраивается пакет libestools2.0 (1:2.0.95~beta-2) ... Настраивается пакет oss-compat (0.0.4+nmu3) ... FATAL: Module snd_seq_oss not found. Настраивается пакет festival (1:2.0.95~beta-5.1) ... Настраивается пакет festlex-cmu (1.4.0-6) ... Настраивается пакет festlex-poslex (1.4.0-5) ... Настраивается пакет festvox-ru (0.5-1) ... Настраивается пакет festvox-kallpc16k (1.4.0-5) ... |
#vi sip.conf
--- /tmp/l3-saved-3235.15552.8149 2011-10-20 09:56:52.000000000 +0300 +++ sip.conf 2011-10-20 09:57:03.000000000 +0300 @@ -38,7 +38,7 @@ type=friend secret=1234 host=dynamic -callerid="Kiev" +;callerid="Kiev" context=gr3 mailbox=1100@default callgroup=1 |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, 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+squeeze3 currently running on linux1 (pid = 1514) Verbosity is at least 1 linux1*CLI> sip reload ... '_1103' => 1. Answer() [pbx_config] 2. SetMusicOnHold(default) [pbx_config] 3. Queue(queue1) [pbx_config] '_110X' => 1. Answer() [pbx_config] 2. Macro(monitor,SIP/${EXTEN}) [pbx_config] 3. Voicemail(${EXTEN}@default) [pbx_config] '_1111' => 1. MeetMe(1,McI) [pbx_config] -= 3 extensions (7 priorities) in 1 context. =- linux1*CLI> exit Executing last minute cleanups |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, 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+squeeze3 currently running on linux1 (pid = 1514) Verbosity is at least 1 linux1*CLI> sip reload ... '_1103' => 1. Answer() [pbx_config] 2. SetMusicOnHold(default) [pbx_config] 3. Queue(queue1) [pbx_config] '_110X' => 1. Answer() [pbx_config] 2. Macro(monitor,SIP/${EXTEN}) [pbx_config] 3. Voicemail(${EXTEN}@default) [pbx_config] '_1111' => 1. MeetMe(1,McI) [pbx_config] -= 3 extensions (7 priorities) in 1 context. =- linux1*CLI> exit Executing last minute cleanups |
#vi voicemail.conf
--- /tmp/l3-saved-3235.13138.645 2011-10-20 10:03:46.000000000 +0300 +++ voicemail.conf 2011-10-20 10:04:01.000000000 +0300 @@ -337,6 +337,7 @@ ;4110 => 3443,Rob Flynn,rflynn@blueridge.net ;4235 => 1234,Jim Holmes,jim@astricon.ips,,Tz=european +1100 => 1234,User User,user@linux1.unix.nt 1101 => 1234,User User,user@linux1.unix.nt 1102 => 1234,User User,user@linux1.unix.nt |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, 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+squeeze3 currently running on linux1 (pid = 1514) Verbosity is at least 1 linux1*CLI> voicemail reload ... default 1102 User User 4 other 1234 Company2 User 0 5 voicemail users configured. linux1*CLI> linux1*CLI> linux1*CLI> [Oct 20 10:18:19] NOTICE[1611]: chan_sip.c:20276 handle_request_invite: Call from '1100' to extension '1800' rejected because extension not found in context 'gr3'. linux1*CLI> voicemail show users Disconnected from Asterisk server Executing last minute cleanups |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, 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+squeeze3 currently running on linux1 (pid = 1514) Verbosity is at least 1 linux1*CLI> voicemail reload ... default 1102 User User 4 other 1234 Company2 User 0 5 voicemail users configured. linux1*CLI> linux1*CLI> linux1*CLI> [Oct 20 10:18:19] NOTICE[1611]: chan_sip.c:20276 handle_request_invite: Call from '1100' to extension '1800' rejected because extension not found in context 'gr3'. linux1*CLI> voicemail show users Disconnected from Asterisk server Executing last minute cleanups |
#ping 10.0.88.1
PING 10.0.88.1 (10.0.88.1) 56(84) bytes of data. ^C --- 10.0.88.1 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 1007ms |
#ping 10.0.88.1
PING 10.0.88.1 (10.0.88.1) 56(84) bytes of data. ^C --- 10.0.88.1 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 1007ms |
#vi /etc/festival.scm
--- /tmp/l3-saved-2332.3042.24665 2011-10-20 10:10:10.000000000 +0300 +++ /etc/festival.scm 2011-10-20 10:10:35.000000000 +0300 @@ -28,3 +28,5 @@ (set! server_access_list '("[^.]+" "127.0.0.1" "localhost")) ; Server deny list (hosts) + +(define (tts_textasterisk string mode) |
#/etc/init.d/festival restart
Restarting Festival server: festivalNo /usr/bin/festival found running; none killed. . |
#/etc/init.d/festival restart
Restarting Festival server: festivalNo /usr/bin/festival found running; none killed. . |
Срд Окт 19 17:38:45 FET 2011
Время первой команды журнала | 16:36:34 2011-10-19 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 09:14:37 2011-10-20 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 5.94 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.00 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 0.88 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.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