Журнал лабораторных работ

Содержание

Журнал

Среда (10/19/11)

/dev/pts/3
16:36:34
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Asterisk PBX is already running. Use restart.
/dev/pts/4
16:36:34
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Asterisk PBX is already running. Use restart.
/dev/pts/3
16:36:44
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
/dev/pts/4
16:36:44
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
/dev/pts/3
16:37:04
#ls -ld /tmp/
drwxr-xr-x 18 user user 4096 Окт 19 17:38 /tmp/
/dev/pts/4
16:37:04
#ls -ld /tmp/
drwxr-xr-x 18 user user 4096 Окт 19 17:38 /tmp/
/dev/pts/6
16:37:40
#vim /etc/asterisk/extensions.conf
16:38:15
#[ ]
итого 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
16:38:18
#ls -ld /tmp/
drwxr-xr-x 18 user user 4096 Окт 19 17:38 /tmp/
16:38:29
#chmod 1777 /tmp/

/dev/pts/3
16:38:31
#ls -l /tmp/h*
-rw-rw---- 1 asterisk asterisk 35 Окт 19 17:38 /tmp/hello-from-asterisk
/dev/pts/4
16:38:31
#ls -l /tmp/h*
-rw-rw---- 1 asterisk asterisk 35 Окт 19 17:38 /tmp/hello-from-asterisk
/dev/pts/6
16:38:34
#ls -ld /tmp/
drwxrwxrwt 18 user user 4096 Окт 19 17:38 /tmp/
/dev/pts/4
16:38:48
#cat /tmp/hello-from-asterisk
Срд Окт 19 17:38:45 FET 2011
/dev/pts/3
16:38:48
#cat /tmp/hello-from-asterisk
Срд Окт 19 17:38:45 FET 2011
16:43:00
#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
16:43:00
#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
/dev/pts/4
16:43:00
#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
16:43:00
#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
/dev/pts/3
16:43:18
#halt -p

/dev/pts/4
16:43:18
#halt -p

Четверг (10/20/11)

/dev/pts/1
08:28:40
#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
/dev/pts/2
08:28:40
#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
/dev/pts/1
08:28:42
#cd /etc/asterisk/

/dev/pts/2
08:28:42
#cd /etc/asterisk/

/dev/pts/1
08:28:44
#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)
/dev/pts/2
08:28:44
#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)
/dev/pts/1
08:28:45
#less extensions.conf
/dev/pts/2
08:28:45
#less extensions.conf
/dev/pts/1
08:35:39
#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
/dev/pts/2
08:35:39
#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
/dev/pts/1
08:36:18
#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
/dev/pts/2
08:36:18
#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
/dev/pts/1
08:36:51
#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
/dev/pts/2
08:36:51
#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
/dev/pts/1
08:37:20
#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
/dev/pts/2
08:37:20
#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
/dev/pts/1
08:37:41
#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
/dev/pts/2
08:37:41
#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
/dev/pts/1
08:37:44
#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
/dev/pts/2
08:37:44
#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
прошло 11 минут
/dev/pts/1
08:48:56
#vi sip.conf
/dev/pts/2
08:48:56
#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
/dev/pts/1
08:49:36
#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
/dev/pts/2
08:49:36
#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
08:50:35
#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
/dev/pts/1
08:50:35
#vi sip.conf
08:50:51
#vi extensions.conf
/dev/pts/2
08:50:51
#vi extensions.conf
/dev/pts/1
08:51:16
#{EXTEN})
secret=1234
host=dynamic
callerid="Kiev"
context=gr3
[1100]
mailbox=1103@default
callgroup=1
pickupgroup=1
          00
[lv]
[lv]
"sip.conf" 68L, 862C записано
/dev/pts/2
08:51:16
#{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 записано
/dev/pts/1
08:51:30
#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
/dev/pts/2
08:51:30
#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
/dev/pts/1
08:55:07
#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) ...
/dev/pts/2
08:55:07
#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) ...
/dev/pts/7
08:56:45
#cd /etc/asterisk/

/dev/pts/8
08:56:45
#cd /etc/asterisk/

/dev/pts/7
08:56:49
#vi sip.conf
/dev/pts/8
08:56:49
#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
/dev/pts/7
08:57:03
#vi extensions.conf
/dev/pts/8
08:57:03
#vi extensions.conf
/dev/pts/7
08:59:02
#[macro-monitor]

/dev/pts/8
08:59:02
#[macro-monitor]

/dev/pts/7
08:59:06
#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
/dev/pts/8
08:59:06
#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
/dev/pts/7
09:03:42
#vi voicemail.conf
/dev/pts/8
09:03:42
#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
 
/dev/pts/7
09:04:01
#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
/dev/pts/8
09:04:01
#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
/dev/pts/1
09:04:42
#chmod +x /etc/init.d/festival

/dev/pts/2
09:04:42
#chmod +x /etc/init.d/festival

/dev/pts/1
09:04:51
#echo RUN_FESTIVAL=yes > /etc/default/festival

/dev/pts/2
09:04:51
#echo RUN_FESTIVAL=yes > /etc/default/festival

/dev/pts/1
09:05:03
#cp /usr/share/doc/festival/examples/festival.scm /etc/

/dev/pts/2
09:05:03
#cp /usr/share/doc/festival/examples/festival.scm /etc/

/dev/pts/1
09:06:04
#/etc/init.d/festival start
Starting Festival server: festival.
/dev/pts/2
09:06:04
#/etc/init.d/festival start
Starting Festival server: festival.
/dev/pts/1
09:06:15
#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
/dev/pts/2
09:06:15
#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
/dev/pts/1
09:08:50
#vi f
/dev/pts/2
09:08:50
#vi f
/dev/pts/1
09:08:50
#vi /etc/festival.scm
/dev/pts/2
09:08:50
#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)
/dev/pts/1
09:10:35
#/etc/init.d/festival restart
Restarting Festival server: festival.
/dev/pts/2
09:10:35
#/etc/init.d/festival restart
Restarting Festival server: festival.
/dev/pts/1
09:11:20
#ps xa | grep fest
 3753 pts/3    S+     0:00 grep fest
/dev/pts/2
09:11:20
#ps xa | grep fest
 3753 pts/3    S+     0:00 grep fest
/dev/pts/1
09:11:26
#ps xa | grep fest
 3762 pts/3    S+     0:00 grep fest
/dev/pts/2
09:11:26
#ps xa | grep fest
 3762 pts/3    S+     0:00 grep fest
/dev/pts/1
09:11:28
#ps xa | grep fest
 3771 pts/3    S+     0:00 grep fest
/dev/pts/2
09:11:28
#ps xa | grep fest
 3771 pts/3    S+     0:00 grep fest
/dev/pts/1
09:11:30
#ps xa | grep -i fext
 3780 pts/3    S+     0:00 grep -i fext
/dev/pts/2
09:11:30
#ps xa | grep -i fext
 3780 pts/3    S+     0:00 grep -i fext
/dev/pts/1
09:11:37
#ps xa | grep -i fest
 3789 pts/3    S+     0:00 grep -i fest
/dev/pts/2
09:11:37
#ps xa | grep -i fest
 3789 pts/3    S+     0:00 grep -i fest
/dev/pts/1
09:12:34
#/etc/init.d/festival restart
Restarting Festival server: festivalNo /usr/bin/festival found running; none killed.
.
/dev/pts/2
09:12:34
#/etc/init.d/festival restart
Restarting Festival server: festivalNo /usr/bin/festival found running; none killed.
.
/dev/pts/1
09:12:43
#less /etc/asterisk/festival.conf
/dev/pts/2
09:12:43
#less /etc/asterisk/festival.conf
/dev/pts/1
09:14:37
#vi /etc/asterisk/festival.conf
/dev/pts/2
09:14:37
#vi /etc/asterisk/festival.conf

Файлы

  • /tmp/hello-from-asterisk
  • /tmp/hello-from-asterisk
    >
    Срд Окт 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
    Частота использования команд
    vi18|===============| 15.93%
    ps10|========| 8.85%
    tail10|========| 8.85%
    grep10|========| 8.85%
    asterisk8|=======| 7.08%
    /etc/init.d/festival6|=====| 5.31%
    ls6|=====| 5.31%
    ping4|===| 3.54%
    /etc/init.d/asterisk4|===| 3.54%
    cd4|===| 3.54%
    dmesg4|===| 3.54%
    less4|===| 3.54%
    chmod3|==| 2.65%
    ifconfig2|=| 1.77%
    {EXTEN})2|=| 1.77%
    halt2|=| 1.77%
    cp2|=| 1.77%
    echo2|=| 1.77%
    /etc/default/festival2|=| 1.77%
    cat2|=| 1.77%
    apt-get2|=| 1.77%
    [macro-monitor]2|=| 1.77%
    w2|=| 1.77%
    vim1|| 0.88%
    [1|| 0.88%
    ____
    *) Интервалы неактивности длительностью 30 минут и более не учитываются

    Справка

    Для того чтобы использовать LiLaLo, не нужно знать ничего особенного: всё происходит само собой. Однако, чтобы ведение и последующее использование журналов было как можно более эффективным, желательно иметь в виду следующее:
    1. В журнал автоматически попадают все команды, данные в любом терминале системы.

    2. Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.

    3. Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
      $ l s-l
      bash: l: command not found
      

    4. Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
      $ test 5 -lt 4
      Обратите внимание на то, что код завершения команды может быть отличен от нуля не только в тех случаях, когда команда была выполнена с ошибкой. Многие команды используют код завершения, например, для того чтобы показать результаты проверки

    5. Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
      $ 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
      

    6. Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
      # id
      uid=0(root) gid=0(root) Gruppen=0(root)
      

    7. Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
      $ vi ~/.bashrc
      2a3,5
      >    if [ -f /usr/local/etc/bash_completion ]; then
      >         . /usr/local/etc/bash_completion
      >        fi
      

    8. Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
      $ patch ~/.bashrc
      В данном случае изменения применяются к файлу ~/.bashrc

    9. Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.

      Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.

    10. Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.

    11. Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора

    12. Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.

    13. Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.

    14. Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:

      $ whoami
      
      user
      
      $ #^ Интересно, кто я?
      
      в журнале это будет выглядеть так:
      $ whoami
      
      user
      
      Интересно, кто я?

    15. Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:

      $ whoami
      
      user
      
      $ cat > /dev/null #^ Интересно, кто я?
      
      Программа whoami выводит имя пользователя, под которым 
      мы зарегистрировались в системе.
      -
      Она не может ответить на вопрос о нашем назначении 
      в этом мире.
      
      В журнале это будет выглядеть так:
      $ whoami
      user
      
      Интересно, кто я?
      Программа whoami выводит имя пользователя, под которым
      мы зарегистрировались в системе.

      Она не может ответить на вопрос о нашем назначении
      в этом мире.
      Для разделения нескольких абзацев между собой используйте символ "-", один в строке.

    16. Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=

    17. Содержимое файла может быть показано в журнале. Для этого его нужно вывести с помощью программы cat. Если вывод команды отметить симоволами #!, содержимое файла будет показано в журнале в специально отведённой для этого секции.
    18. Для того чтобы вставить скриншот интересующего вас окна в журнал, нужно воспользоваться командой l3shot. После того как команда вызвана, нужно с помощью мыши выбрать окно, которое должно быть в журнале.
    19. Команды в журнале расположены в хронологическом порядке. Если две команды давались одна за другой, но на разных терминалах, в журнале они будут рядом, даже если они не имеют друг к другу никакого отношения.
      1
          2
      3   
          4
      
      Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.

    О программе

    LiLaLo (L3) расшифровывается как Live Lab Log.
    Программа разработана для повышения эффективности обучения Unix/Linux-системам.
    (c) Игорь Чубин, 2004-2008

    $Id$