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

Содержание

Журнал

Суббота (11/28/09)

/dev/pts/0
10:15:04
#w
 11:15:06 up 15:14,  3 users,  load average: 0.17, 0.08, 0.04
USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU WHAT
root     tty1     -                25Nov08 367days  0.00s  0.00s -bash
user     tty7     :0               26Nov08  0.00s 41.01s  0.07s x-session-manag
user     pts/0    :0.0             26Nov08  0.00s  0.12s  1.14s gnome-terminal
10:15:06
#l3-agent

/dev/pts/1
10:23:53
#apt-get install asterisk
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  asterisk-config asterisk-sounds-main debhelper gettext html2text
  intltool-debian libc-client2007b libcompress-raw-zlib-perl
  libcompress-zlib-perl libdigest-hmac-perl libdigest-sha1-perl
  libfile-remove-perl libiksemel3 libio-compress-base-perl
  libio-compress-zlib-perl libio-stringy-perl libmail-box-perl
  libmail-sendmail-perl libmailtools-perl libmime-types-perl
...
Setting up libio-stringy-perl (2.110-4) ...
Setting up libmime-types-perl (1.24-1) ...
Setting up libmailtools-perl (2.03-1) ...
Setting up libobject-realize-later-perl (0.18-1) ...
Setting up libuser-identity-perl (0.92-2) ...
Setting up libmail-box-perl (2.082-2) ...
Setting up libsys-hostname-long-perl (1.4-2) ...
Setting up libmail-sendmail-perl (0.79-5) ...
Setting up module-assistant (0.10.11.0) ...
Setting up vpb-driver-source (4.2.38-1) ...
10:26:57
#vi /etc/network/interfaces
--- /tmp/l3-saved-13429.1647.19325	2009-11-28 11:27:32.000000000 +0200
+++ /etc/network/interfaces	2009-11-28 11:28:09.000000000 +0200
@@ -7,4 +7,8 @@
 
 # The primary network interface
 allow-hotplug eth0
-iface eth0 inet dhcp
+iface eth0 inet static
+	address 192.168.7.4
+	netmask 255.255.255.0
+	broadcast 192.168.7.255
+	gateway 192.168.7.254
10:28:14
#ifdown eth0

10:29:06
#ifup eth0

10:29:11
#ifconfig
eth0      Link encap:Ethernet  HWaddr 00:07:e9:0c:45:80
          inet addr:192.168.7.201  Bcast:192.168.7.255  Mask:255.255.255.0
          inet6 addr: fe80::207:e9ff:fe0c:4580/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:590783 errors:0 dropped:0 overruns:0 frame:0
          TX packets:327245 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:871664610 (831.2 MiB)  TX bytes:24231725 (23.1 MiB)
          Base address:0xec00 Memory:dffa0000-dffc0000
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:66 errors:0 dropped:0 overruns:0 frame:0
          TX packets:66 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:4588 (4.4 KiB)  TX bytes:4588 (4.4 KiB)
10:29:47
#ls /etc/rc2.d/*network-manager
/etc/rc2.d/S26network-manager
10:30:10
#mv /etc/rc2.d/{S,s}26network-manager

10:30:29
#ifdown eth0
SIOCDELRT: No such process
10:30:34
#ifup eth0

10:30:43
#ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 00:07:e9:0c:45:80
          inet addr:192.168.7.4  Bcast:192.168.7.255  Mask:255.255.255.0
          inet6 addr: fe80::207:e9ff:fe0c:4580/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:590980 errors:0 dropped:0 overruns:0 frame:0
          TX packets:327465 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:871685660 (831.3 MiB)  TX bytes:24260461 (23.1 MiB)
          Base address:0xec00 Memory:dffa0000-dffc0000
10:30:46
#ping ya.ru
PING ya.ru (213.180.204.8) 56(84) bytes of data.
64 bytes from ya.ru (213.180.204.8): icmp_seq=1 ttl=52 time=60.7 ms
--- ya.ru ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 60.734/60.734/60.734/0.000 ms
10:30:52
#apt-get install iceweasel
Reading package lists... Done
Building dependency tree
Reading state information... Done
iceweasel is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
10:31:09
#apt-get install ssh
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  openssh-blacklist openssh-blacklist-extra openssh-server
Suggested packages:
  ssh-askpass rssh molly-guard
The following NEW packages will be installed:
  openssh-blacklist openssh-blacklist-extra openssh-server ssh
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
...
Selecting previously deselected package ssh.
Unpacking ssh (from .../ssh_1%3a5.1p1-5_all.deb) ...
Processing triggers for man-db ...
Setting up openssh-blacklist (0.4.1) ...
Setting up openssh-blacklist-extra (0.4.1) ...
Setting up openssh-server (1:5.1p1-5) ...
Creating SSH2 RSA key; this may take some time ...
Creating SSH2 DSA key; this may take some time ...
Restarting OpenBSD Secure Shell server: sshd.
Setting up ssh (1:5.1p1-5) ...
10:35:17
#dpkg -L asterisk | grep /etc
/etc
/etc/asterisk
/etc/logrotate.d
/etc/logrotate.d/asterisk
/etc/default
/etc/default/asterisk
/etc/init.d
/etc/init.d/asterisk
10:44:21
#ls -l /etc/asterisk/
total 424
-rw-r----- 1 asterisk asterisk   140 2009-01-04 21:26 adsi.conf
-rw-r----- 1 asterisk asterisk   840 2009-01-04 21:26 adtranvofr.conf
-rw-r----- 1 asterisk asterisk  2724 2009-01-04 21:26 agents.conf
-rw-r----- 1 asterisk asterisk  2227 2009-01-04 21:26 alarmreceiver.conf
-rw-r----- 1 asterisk asterisk  2675 2009-01-04 21:26 alsa.conf
-rw-r----- 1 asterisk asterisk   767 2009-01-04 21:26 amd.conf
-rw-r----- 1 asterisk asterisk  3260 2009-01-04 21:26 asterisk.adsi
-rw-r----- 1 asterisk asterisk   247 2009-01-04 21:17 asterisk.conf
-rw-r----- 1 asterisk asterisk  7324 2009-01-04 21:26 cdr.conf
...
-rw-r----- 1 asterisk asterisk  4044 2009-01-04 21:26 skinny.conf
-rw-r----- 1 asterisk asterisk  6691 2009-01-04 21:26 sla.conf
-rw-r----- 1 asterisk asterisk  2665 2009-01-04 21:26 smdi.conf
-rw-r----- 1 asterisk asterisk  1384 2009-01-04 21:26 telcordia-1.adsi
-rw-r----- 1 asterisk asterisk   598 2009-01-04 21:26 udptl.conf
-rw-r----- 1 asterisk asterisk  1804 2009-01-04 21:26 users.conf
-rw-r----- 1 asterisk asterisk 11723 2009-01-04 21:26 voicemail.conf
-rw-r----- 1 asterisk asterisk  2772 2009-01-04 21:26 vpb.conf
-rw-r----- 1 asterisk asterisk   393 2009-01-04 21:26 watchdog.conf
-rw-r----- 1 asterisk asterisk 24193 2009-01-04 21:26 zapata.conf
10:45:44
#ping ya.ru
PING ya.ru (93.158.134.8) 56(84) bytes of data.
64 bytes from ya.ru (93.158.134.8): icmp_seq=1 ttl=50 time=53.1 ms
--- ya.ru ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 53.106/53.106/53.106/0.000 ms
10:45:47
#ifconfig
eth0      Link encap:Ethernet  HWaddr 00:07:e9:0c:45:80
          inet addr:192.168.7.204  Bcast:192.168.7.255  Mask:255.255.255.0
          inet6 addr: fe80::207:e9ff:fe0c:4580/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:596702 errors:0 dropped:0 overruns:0 frame:0
          TX packets:331260 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:879125742 (838.3 MiB)  TX bytes:24673735 (23.5 MiB)
          Base address:0xec00 Memory:dffa0000-dffc0000
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:66 errors:0 dropped:0 overruns:0 frame:0
          TX packets:66 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:4588 (4.4 KiB)  TX bytes:4588 (4.4 KiB)
10:45:51
#ifdown eth0

10:45:57
#ifup eth0

10:46:06
#ifconfig
eth0      Link encap:Ethernet  HWaddr 00:07:e9:0c:45:80
          inet addr:192.168.7.4  Bcast:192.168.7.255  Mask:255.255.255.0
          inet6 addr: fe80::207:e9ff:fe0c:4580/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:596782 errors:0 dropped:0 overruns:0 frame:0
          TX packets:331372 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:879134126 (838.4 MiB)  TX bytes:24709549 (23.5 MiB)
          Base address:0xec00 Memory:dffa0000-dffc0000
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:67 errors:0 dropped:0 overruns:0 frame:0
          TX packets:67 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:4667 (4.5 KiB)  TX bytes:4667 (4.5 KiB)
10:46:07
#ps aux | grep netw
root     16696  0.0  0.0   3116   728 pts/2    S+   11:46   0:00 grep netw
10:46:13
#ps aux | grep -i netw
root     29342  0.0  0.0   3668  1348 ?        Ss   Nov27   0:00 /usr/sbin/NetworkManagerDispatcher --pid-file /var/run/NetworkManager/NetworkManagerDispatcher.pid
root     16712  0.0  0.0   3124   800 pts/2    R+   11:46   0:00 grep -i netw
10:46:19
#kill 29324
bash: kill: (29324) - No such process
10:46:26
#kill 29342

10:46:30
#ps aux | grep -i netw
root     16749  0.0  0.0   3116   788 pts/2    S+   11:46   0:00 grep -i netw
10:46:49
#ls /etc/rc2.d/
README           S20cpufrequtils     s26network-manager
S05loadcpufreq   S20cups             S26network-manager-dispatcher
S10sysklogd      S20exim4            S30gdm
S11klogd         S20hotkey-setup     S30system-tools-backends
S12acpid         S20nfs-common       S89anacron
S12dbus          S20openbsd-inetd    S89atd
S14avahi-daemon  S20policycoreutils  S89cron
S16ssh           S21asterisk         S99rc.local
S18portmap       S24dhcdbd           S99rmnologin
S20bittorrent    S24hal              S99stop-bootlogd
10:46:56
#mv /etc/rc2.d/{S,s}26network-manager-dispatcher

10:48:46
#dpkg -L asterisk | grep bin/
/usr/sbin/astman
/usr/sbin/smsq
/usr/sbin/aelparse
/usr/sbin/muted
/usr/sbin/asterisk
/usr/sbin/astgenkey
/usr/sbin/autosupport
/usr/sbin/safe_asterisk
/usr/sbin/rasterisk
10:57:29
#dpkg -S /etc/asterisk/sip.conf
asterisk-config: /etc/asterisk/sip.conf
10:58:53
#dpkg -l | grep asterisk
ii  asterisk                             1:1.4.21.2~dfsg-3           Open Source Private Branch Exchange (PBX)
ii  asterisk-config                      1:1.4.21.2~dfsg-3           Configuration files for Asterisk
ii  asterisk-sounds-main                 1:1.4.21.2~dfsg-3           Core Sound files for Asterisk (English)
10:59:48
#ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 00:07:e9:0c:45:80
          inet addr:192.168.7.204  Bcast:192.168.7.255  Mask:255.255.255.0
          inet6 addr: fe80::207:e9ff:fe0c:4580/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:597456 errors:0 dropped:0 overruns:0 frame:0
          TX packets:331912 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:879196521 (838.4 MiB)  TX bytes:24803737 (23.6 MiB)
          Base address:0xec00 Memory:dffa0000-dffc0000
10:59:58
#ps aux | grep -i netw
root     16883  0.0  0.0   3116   744 pts/2    R+   12:00   0:00 grep -i netw
11:00:05
#ps aux | grep -i dhc
root      3150  0.0  0.0   2300   824 ?        S<s  Nov27   0:00 dhclient3 -pf /var/run/dhclient.eth0.pid -lf /var/lib/dhcp3/dhclient.eth0.leases eth0
root     16978  0.0  0.0   2580  1416 ?        Ss   Nov27   0:00 /usr/sbin/dhcdbd --system
root     16892  0.0  0.0   3120   796 pts/2    R+   12:00   0:00 grep -i dhc
11:00:09
#kill 3150

11:00:13
#ifdown eth0

11:00:31
#ifup eth0

11:00:37
#ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 00:07:e9:0c:45:80
          inet addr:192.168.7.4  Bcast:192.168.7.255  Mask:255.255.255.0
          inet6 addr: fe80::207:e9ff:fe0c:4580/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:597522 errors:0 dropped:0 overruns:0 frame:0
          TX packets:332009 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:879204747 (838.4 MiB)  TX bytes:24820155 (23.6 MiB)
          Base address:0xec00 Memory:dffa0000-dffc0000
11:02:21
#man asterisk
11:03:20
#man asterisk
11:13:19
#vi /etc/asterisk/sip.conf
прошло 16 минут
11:29:50
#vi /etc/asterisk/sip.conf
11:29:55
#;tos_sip=cs3 ; Sets TOS for SIP packets.
Do you want to ping broadcast? Then -b
11:30:03
#ping -b 192.168.7.255
WARNING: pinging broadcast address
PING 192.168.7.255 (192.168.7.255) 56(84) bytes of data.
64 bytes from 192.168.7.202: icmp_seq=1 ttl=64 time=1.10 ms
64 bytes from 192.168.7.209: icmp_seq=1 ttl=64 time=1.72 ms (DUP!)
64 bytes from 192.168.7.202: icmp_seq=2 ttl=64 time=0.462 ms
64 bytes from 192.168.7.209: icmp_seq=2 ttl=64 time=0.466 ms (DUP!)
64 bytes from 192.168.7.202: icmp_seq=3 ttl=64 time=0.484 ms
64 bytes from 192.168.7.209: icmp_seq=3 ttl=64 time=0.490 ms (DUP!)
64 bytes from 192.168.7.202: icmp_seq=4 ttl=64 time=0.538 ms
64 bytes from 192.168.7.209: icmp_seq=4 ttl=64 time=0.542 ms (DUP!)
...
64 bytes from 192.168.7.209: icmp_seq=9 ttl=64 time=0.492 ms (DUP!)
64 bytes from 192.168.7.209: icmp_seq=10 ttl=64 time=0.519 ms
64 bytes from 192.168.7.202: icmp_seq=10 ttl=64 time=0.523 ms (DUP!)
64 bytes from 192.168.7.202: icmp_seq=11 ttl=64 time=0.466 ms
64 bytes from 192.168.7.209: icmp_seq=11 ttl=64 time=0.469 ms (DUP!)
64 bytes from 192.168.7.202: icmp_seq=12 ttl=64 time=0.581 ms
64 bytes from 192.168.7.209: icmp_seq=12 ttl=64 time=0.585 ms (DUP!)
--- 192.168.7.255 ping statistics ---
12 packets transmitted, 12 received, +12 duplicates, 0% packet loss, time 11006ms
rtt min/avg/max/mdev = 0.462/0.598/1.728/0.270 ms
11:30:17
#ping -b 192.168.7.255
WARNING: pinging broadcast address
PING 192.168.7.255 (192.168.7.255) 56(84) bytes of data.
64 bytes from 192.168.7.202: icmp_seq=1 ttl=64 time=0.548 ms
64 bytes from 192.168.7.209: icmp_seq=1 ttl=64 time=1.04 ms (DUP!)
64 bytes from 192.168.7.209: icmp_seq=2 ttl=64 time=0.537 ms
64 bytes from 192.168.7.202: icmp_seq=2 ttl=64 time=0.542 ms (DUP!)
64 bytes from 192.168.7.209: icmp_seq=3 ttl=64 time=0.565 ms
64 bytes from 192.168.7.202: icmp_seq=3 ttl=64 time=0.569 ms (DUP!)
64 bytes from 192.168.7.202: icmp_seq=4 ttl=64 time=0.598 ms
64 bytes from 192.168.7.209: icmp_seq=4 ttl=64 time=0.602 ms (DUP!)
64 bytes from 192.168.7.202: icmp_seq=5 ttl=64 time=0.592 ms
64 bytes from 192.168.7.209: icmp_seq=5 ttl=64 time=0.597 ms (DUP!)
64 bytes from 192.168.7.202: icmp_seq=6 ttl=64 time=0.472 ms
64 bytes from 192.168.7.209: icmp_seq=6 ttl=64 time=0.597 ms (DUP!)
--- 192.168.7.255 ping statistics ---
6 packets transmitted, 6 received, +6 duplicates, 0% packet loss, time 5006ms
rtt min/avg/max/mdev = 0.472/0.605/1.048/0.140 ms
11:36:07
#grep -v '^;' /etc/asterisk/sip.conf
[general]
context=default                 ; Default context for incoming calls
allowoverlap=no                 ; Disable overlap dialing support. (Default is yes)
                                ; Default is enabled
                                ; defaults to "asterisk". If you set a system name in
                                ; asterisk.conf, it defaults to that system name
                                ; Realms MUST be globally unique according to RFC 3261
                                ; Set this to your host name or domain name
bindport=5060                   ; UDP Port to bind to (SIP standard port is 5060)
                                ; bindport is the local UDP port that Asterisk will listen on
...
                                ; received from instead of trusting SIP headers
                                ; RTP media stream (audio) to go directly from
                                ; the caller to the callee.  Some devices do not
                                ; support this (especially if one of them is
                                ; behind a NAT).
                                ; Normally you do NOT need to set this parameter
                                ; You must have this turned on or DTMF reception will work improperly.
                                ; if the nat option is enabled. If a single RTP packet is received Asterisk will know the
                                ; external IP address of the remote device. If port forwarding is done at the client side
                                ; then UDPTL will flow to the remote device.
11:36:40
#grep -v '^ *;' /etc/asterisk/sip.conf
[general]
context=default                 ; Default context for incoming calls
allowoverlap=no                 ; Disable overlap dialing support. (Default is yes)
                                ; Default is enabled
                                ; defaults to "asterisk". If you set a system name in
                                ; asterisk.conf, it defaults to that system name
                                ; Realms MUST be globally unique according to RFC 3261
                                ; Set this to your host name or domain name
bindport=5060                   ; UDP Port to bind to (SIP standard port is 5060)
                                ; bindport is the local UDP port that Asterisk will listen on
...
                                ; Helps with NAT session
                                ; qualify=yes uses default value
                                ; Send SIP and RTP to the IP address that packet is
                                ; received from instead of trusting SIP headers
                                ; RTP media stream (audio) to go directly from
                                ; the caller to the callee.  Some devices do not
                                ; support this (especially if one of them is
                                ; behind a NAT).
                                ; Normally you do NOT need to set this parameter
                                ; You must have this turned on or DTMF reception will work improperly.
11:36:54
#grep -v '^\t*;' /etc/asterisk/sip.conf
[general]
context=default                 ; Default context for incoming calls
allowoverlap=no                 ; Disable overlap dialing support. (Default is yes)
                                ; Default is enabled
                                ; defaults to "asterisk". If you set a system name in
                                ; asterisk.conf, it defaults to that system name
                                ; Realms MUST be globally unique according to RFC 3261
                                ; Set this to your host name or domain name
bindport=5060                   ; UDP Port to bind to (SIP standard port is 5060)
                                ; bindport is the local UDP port that Asterisk will listen on
...
                                ; received from instead of trusting SIP headers
                                ; RTP media stream (audio) to go directly from
                                ; the caller to the callee.  Some devices do not
                                ; support this (especially if one of them is
                                ; behind a NAT).
                                ; Normally you do NOT need to set this parameter
                                ; You must have this turned on or DTMF reception will work improperly.
                                ; if the nat option is enabled. If a single RTP packet is received Asterisk will know the
                                ; external IP address of the remote device. If port forwarding is done at the client side
                                ; then UDPTL will flow to the remote device.
11:37:05
#grep -v '^[^a-z]*;' /etc/asterisk/sip.conf
[general]
context=default                 ; Default context for incoming calls
allowoverlap=no                 ; Disable overlap dialing support. (Default is yes)
bindport=5060                   ; UDP Port to bind to (SIP standard port is 5060)
bindaddr=0.0.0.0                ; IP address to bind to (0.0.0.0 binds to all)
srvlookup=yes                   ; Enable DNS SRV lookups on outbound calls
[authentication]
11:37:23
#grep -v '^[^a-z]*;?' /etc/asterisk/sip.conf
;
; SIP Configuration example for Asterisk
;
; Syntax for specifying a SIP device in extensions.conf is
; SIP/devicename where devicename is defined in a section below.
;
; You may also use
; SIP/username@domain to call any SIP user on the Internet
; (Don't forget to enable DNS SRV records if you want to use this)
;
...
;[pre14-asterisk]
;type=friend
;secret=digium
;host=dynamic
;rfc2833compensate=yes          ; Compensate for pre-1.4 DTMF transmission from another Asterisk machine.
                                ; You must have this turned on or DTMF reception will work improperly.
;t38pt_usertpsource=yes         ; Use the source IP address of RTP as the destination IP address for UDPTL packets
                                ; if the nat option is enabled. If a single RTP packet is received Asterisk will know the
                                ; external IP address of the remote device. If port forwarding is done at the client side
                                ; then UDPTL will flow to the remote device.
11:37:35
#grep -v '^[^a-z]*;' /etc/asterisk/sip.conf
[general]
context=default                 ; Default context for incoming calls
allowoverlap=no                 ; Disable overlap dialing support. (Default is yes)
bindport=5060                   ; UDP Port to bind to (SIP standard port is 5060)
bindaddr=0.0.0.0                ; IP address to bind to (0.0.0.0 binds to all)
srvlookup=yes                   ; Enable DNS SRV lookups on outbound calls
[authentication]
11:37:46
#grep -v '^[^a-z]*;' /etc/asterisk/sip.conf | less
11:38:07
#;allow=ulaw

11:39:30
#grep -v '^[^a-z]*;' /etc/asterisk/sip.conf | grep -xv ''
[general]
context=default                 ; Default context for incoming calls
allowoverlap=no                 ; Disable overlap dialing support. (Default is yes)
bindport=5060                   ; UDP Port to bind to (SIP standard port is 5060)
bindaddr=0.0.0.0                ; IP address to bind to (0.0.0.0 binds to all)
srvlookup=yes                   ; Enable DNS SRV lookups on outbound calls
[authentication]
[xlite1]
type=friend
regexten=4444
callerid="Igor Chubin"
host=dynamic                    ; This device needs to register
nat=no
canreinvite=no                  ; Typically set to NO if behind NAT
disallow=all
allow=gsm                       ; GSM consumes far less bandwidth than ulaw
allow=ulaw
allow=alaw
11:40:04
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
11:42:13
#ls /var/log/asterisk/
cdr-csv  cdr-custom  event_log  messages  queue_log
11:42:27
#ls -l /var/log/asterisk/
total 8
drwxr-xr-x 2 asterisk asterisk   48 2009-01-04 21:27 cdr-csv
drwxr-xr-x 2 asterisk asterisk   48 2009-01-04 21:27 cdr-custom
-rw-rw---- 1 asterisk asterisk    0 2009-11-28 11:24 event_log
-rw-rw---- 1 asterisk asterisk 3084 2009-11-28 12:42 messages
-rw-rw---- 1 asterisk asterisk   76 2009-11-28 12:42 queue_log
11:42:30
#less /var/log/asterisk/messages
11:43:02
#ping 192.168.7.209
PING 192.168.7.209 (192.168.7.209) 56(84) bytes of data.
64 bytes from 192.168.7.209: icmp_seq=1 ttl=64 time=1.13 ms
--- 192.168.7.209 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 1.138/1.138/1.138/0.000 ms
11:43:35
#tail -f /var/log/asterisk/messages
[Nov 28 12:42:13] NOTICE[17660] res_odbc.c: res_odbc loaded.
[Nov 28 12:42:13] ERROR[17660] chan_vpb.cc: No Voicetronix cards detected
[Nov 28 12:42:13] NOTICE[17660] pbx_ael.c: Starting AEL load process.
[Nov 28 12:42:13] NOTICE[17660] pbx_ael.c: AEL load process: calculated config file name '/etc/asterisk/extensions.ael'.
[Nov 28 12:42:13] NOTICE[17660] pbx_ael.c: AEL load process: parsed config file name '/etc/asterisk/extensions.ael'.
[Nov 28 12:42:13] NOTICE[17660] pbx_ael.c: AEL load process: checked config file name '/etc/asterisk/extensions.ael'.
[Nov 28 12:42:13] NOTICE[17660] pbx_ael.c: AEL load process: compiled config file name '/etc/asterisk/extensions.ael'.
[Nov 28 12:42:13] NOTICE[17660] pbx_ael.c: AEL load process: merged config file name '/etc/asterisk/extensions.ael'.
[Nov 28 12:42:13] NOTICE[17660] pbx_ael.c: AEL load process: verified config file name '/etc/asterisk/extensions.ael'.
[Nov 28 12:42:13] WARNING[17660] chan_iax2.c: Unable to open IAX timing interface: No such file or directory
[Nov 28 12:43:51] NOTICE[17698] chan_sip.c: Registration from '"4444@192.168.7.4" <sip:4444@192.168.7.4>' failed for '192.168.7.209' - No matching peer found
11:44:04
#less
11:45:31
#asterisk
Asterisk already running on /var/run/asterisk/asterisk.ctl.  Use 'asterisk -r' to connect.
11:45:35
#asterisk -r
Asterisk 1.4.21.2~dfsg-3, Copyright (C) 1999 - 2008 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.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
Connected to Asterisk 1.4.21.2~dfsg-3 currently running on debian4 (pid = 17793)
debian4*CLI>
debian4*CLI>
debian4*CLI> quit
11:45:59