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

Содержание

Журнал

Вторник (04/09/13)

/dev/pts/6
16:14:21
#cp /home/user/music/* /usr/share/asterisk/sounds/ru/
cp: cannot stat `/home/user/music/*': No such file or directory
/dev/pts/7
16:14:21
#cp /home/user/music/* /usr/share/asterisk/sounds/ru/
cp: cannot stat `/home/user/music/*': No such file or directory
/dev/pts/6
16:17:15
#ls /etc/asterisk/*.conf
/etc/asterisk/adsi.conf                /etc/asterisk/indications.conf
/etc/asterisk/adtranvofr.conf          /etc/asterisk/jabber.conf
/etc/asterisk/agents.conf              /etc/asterisk/jingle.conf
/etc/asterisk/ais.conf                 /etc/asterisk/logger.conf
/etc/asterisk/alarmreceiver.conf       /etc/asterisk/manager.conf
/etc/asterisk/alsa.conf                /etc/asterisk/meetme.conf
/etc/asterisk/amd.conf                 /etc/asterisk/mgcp.conf
/etc/asterisk/asterisk.conf            /etc/asterisk/minivm.conf
/etc/asterisk/cdr_adaptive_odbc.conf   /etc/asterisk/misdn.conf
/etc/asterisk/cdr.conf                 /etc/asterisk/modules.conf
...
/etc/asterisk/extensions_minivm.conf   /etc/asterisk/skinny.conf
/etc/asterisk/features.conf            /etc/asterisk/sla.conf
/etc/asterisk/festival.conf            /etc/asterisk/smdi.conf
/etc/asterisk/followme.conf            /etc/asterisk/udptl.conf
/etc/asterisk/func_odbc.conf           /etc/asterisk/unistim.conf
/etc/asterisk/gtalk.conf               /etc/asterisk/usbradio.conf
/etc/asterisk/h323.conf                /etc/asterisk/users.conf
/etc/asterisk/http.conf                /etc/asterisk/voicemail.conf
/etc/asterisk/iax.conf                 /etc/asterisk/vpb.conf
/etc/asterisk/iaxprov.conf
/dev/pts/7
16:17:15
#ls /etc/asterisk/*.conf
/etc/asterisk/adsi.conf                /etc/asterisk/indications.conf
/etc/asterisk/adtranvofr.conf          /etc/asterisk/jabber.conf
/etc/asterisk/agents.conf              /etc/asterisk/jingle.conf
/etc/asterisk/ais.conf                 /etc/asterisk/logger.conf
/etc/asterisk/alarmreceiver.conf       /etc/asterisk/manager.conf
/etc/asterisk/alsa.conf                /etc/asterisk/meetme.conf
/etc/asterisk/amd.conf                 /etc/asterisk/mgcp.conf
/etc/asterisk/asterisk.conf            /etc/asterisk/minivm.conf
/etc/asterisk/cdr_adaptive_odbc.conf   /etc/asterisk/misdn.conf
/etc/asterisk/cdr.conf                 /etc/asterisk/modules.conf
...
/etc/asterisk/extensions_minivm.conf   /etc/asterisk/skinny.conf
/etc/asterisk/features.conf            /etc/asterisk/sla.conf
/etc/asterisk/festival.conf            /etc/asterisk/smdi.conf
/etc/asterisk/followme.conf            /etc/asterisk/udptl.conf
/etc/asterisk/func_odbc.conf           /etc/asterisk/unistim.conf
/etc/asterisk/gtalk.conf               /etc/asterisk/usbradio.conf
/etc/asterisk/h323.conf                /etc/asterisk/users.conf
/etc/asterisk/http.conf                /etc/asterisk/voicemail.conf
/etc/asterisk/iax.conf                 /etc/asterisk/vpb.conf
/etc/asterisk/iaxprov.conf
/dev/pts/6
16:17:36
#ls /etc/asterisk/s*.conf
/etc/asterisk/say.conf  /etc/asterisk/sip_notify.conf  /etc/asterisk/sla.conf
/etc/asterisk/sip.conf  /etc/asterisk/skinny.conf      /etc/asterisk/smdi.conf
/dev/pts/7
16:17:36
#ls /etc/asterisk/s*.conf
/etc/asterisk/say.conf  /etc/asterisk/sip_notify.conf  /etc/asterisk/sla.conf
/etc/asterisk/sip.conf  /etc/asterisk/skinny.conf      /etc/asterisk/smdi.conf
/dev/pts/6
16:19:43
#ls /etc/asterisk/say.conf
/etc/asterisk/say.conf
/dev/pts/7
16:19:43
#ls /etc/asterisk/say.conf
/etc/asterisk/say.conf
/dev/pts/6
16:21:50
#init 0

/dev/pts/7
16:21:50
#init 0

Среда (04/10/13)

/dev/pts/6
08:27:55
#jobs

/dev/pts/5
08:27:55
#jobs

/dev/pts/10
08:35:33
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on Linux2 (pid = 1482)
Verbosity was 0 and is now 3
...
    -- Registered extension context 'ael-dundi-e164-customers' (0x983ae28) in local table 0x9832a08; registrar: pbx_ael
    -- merging incls/swits/igpats from old(ael-dundi-e164-customers) to new(ael-dundi-e164-customers) context, registrar = pbx_config
    -- Registered extension context 'ael-dundi-e164-canonical' (0x984efc0) in local table 0x9832a08; registrar: pbx_ael
    -- merging incls/swits/igpats from old(ael-dundi-e164-canonical) to new(ael-dundi-e164-canonical) context, registrar = pbx_config
    -- Time to scan old dialplan and merge leftovers back into the new: 0.000466 sec
    -- Time to restore hints and swap in new dialplan: 0.000000 sec
    -- Time to delete the old dialplan: 0.000040 sec
    -- Total time merge_contexts_delete: 0.000506 sec
Linux2*CLI> quit
Executing last minute cleanups
/dev/pts/9
08:35:33
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on Linux2 (pid = 1482)
Verbosity was 0 and is now 3
...
    -- Registered extension context 'ael-dundi-e164-customers' (0x983ae28) in local table 0x9832a08; registrar: pbx_ael
    -- merging incls/swits/igpats from old(ael-dundi-e164-customers) to new(ael-dundi-e164-customers) context, registrar = pbx_config
    -- Registered extension context 'ael-dundi-e164-canonical' (0x984efc0) in local table 0x9832a08; registrar: pbx_ael
    -- merging incls/swits/igpats from old(ael-dundi-e164-canonical) to new(ael-dundi-e164-canonical) context, registrar = pbx_config
    -- Time to scan old dialplan and merge leftovers back into the new: 0.000466 sec
    -- Time to restore hints and swap in new dialplan: 0.000000 sec
    -- Time to delete the old dialplan: 0.000040 sec
    -- Total time merge_contexts_delete: 0.000506 sec
Linux2*CLI> quit
Executing last minute cleanups
/dev/pts/6
08:36:26
#ls /etc/asterisk/*.conf
/etc/asterisk/adsi.conf                /etc/asterisk/indications.conf
/etc/asterisk/adtranvofr.conf          /etc/asterisk/jabber.conf
/etc/asterisk/agents.conf              /etc/asterisk/jingle.conf
/etc/asterisk/ais.conf                 /etc/asterisk/logger.conf
/etc/asterisk/alarmreceiver.conf       /etc/asterisk/manager.conf
/etc/asterisk/alsa.conf                /etc/asterisk/meetme.conf
/etc/asterisk/amd.conf                 /etc/asterisk/mgcp.conf
/etc/asterisk/asterisk.conf            /etc/asterisk/minivm.conf
/etc/asterisk/cdr_adaptive_odbc.conf   /etc/asterisk/misdn.conf
/etc/asterisk/cdr.conf                 /etc/asterisk/modules.conf
...
/etc/asterisk/extensions_minivm.conf   /etc/asterisk/skinny.conf
/etc/asterisk/features.conf            /etc/asterisk/sla.conf
/etc/asterisk/festival.conf            /etc/asterisk/smdi.conf
/etc/asterisk/followme.conf            /etc/asterisk/udptl.conf
/etc/asterisk/func_odbc.conf           /etc/asterisk/unistim.conf
/etc/asterisk/gtalk.conf               /etc/asterisk/usbradio.conf
/etc/asterisk/h323.conf                /etc/asterisk/users.conf
/etc/asterisk/http.conf                /etc/asterisk/voicemail.conf
/etc/asterisk/iax.conf                 /etc/asterisk/vpb.conf
/etc/asterisk/iaxprov.conf
/dev/pts/5
08:36:26
#ls /etc/asterisk/*.conf
/etc/asterisk/adsi.conf                /etc/asterisk/indications.conf
/etc/asterisk/adtranvofr.conf          /etc/asterisk/jabber.conf
/etc/asterisk/agents.conf              /etc/asterisk/jingle.conf
/etc/asterisk/ais.conf                 /etc/asterisk/logger.conf
/etc/asterisk/alarmreceiver.conf       /etc/asterisk/manager.conf
/etc/asterisk/alsa.conf                /etc/asterisk/meetme.conf
/etc/asterisk/amd.conf                 /etc/asterisk/mgcp.conf
/etc/asterisk/asterisk.conf            /etc/asterisk/minivm.conf
/etc/asterisk/cdr_adaptive_odbc.conf   /etc/asterisk/misdn.conf
/etc/asterisk/cdr.conf                 /etc/asterisk/modules.conf
...
/etc/asterisk/extensions_minivm.conf   /etc/asterisk/skinny.conf
/etc/asterisk/features.conf            /etc/asterisk/sla.conf
/etc/asterisk/festival.conf            /etc/asterisk/smdi.conf
/etc/asterisk/followme.conf            /etc/asterisk/udptl.conf
/etc/asterisk/func_odbc.conf           /etc/asterisk/unistim.conf
/etc/asterisk/gtalk.conf               /etc/asterisk/usbradio.conf
/etc/asterisk/h323.conf                /etc/asterisk/users.conf
/etc/asterisk/http.conf                /etc/asterisk/voicemail.conf
/etc/asterisk/iax.conf                 /etc/asterisk/vpb.conf
/etc/asterisk/iaxprov.conf
/dev/pts/6
08:36:35
#ls
install  install.1  install.2  lilalo  lilalo.1  test.txt
/dev/pts/5
08:36:35
#ls
install  install.1  install.2  lilalo  lilalo.1  test.txt
/dev/pts/6
08:38:24
#vim /etc/asterisk/sip.conf
/dev/pts/5
08:38:24
#vim /etc/asterisk/sip.conf
/dev/pts/6
08:43:05
#vim test.txt
/dev/pts/5
08:43:05
#vim test.txt
/dev/pts/6
08:44:08
#jobs

/dev/pts/5
08:44:08
#jobs

/dev/pts/6
08:44:16
#vim test.txt
/dev/pts/5
08:44:16
#vim test.txt
/dev/pts/6
08:46:13
#jobs
[1]+  Stopped                 /usr/bin/vim "$@"
/dev/pts/5
08:46:13
#jobs
[1]+  Stopped                 /usr/bin/vim "$@"
08:46:15
#vim /etc/asterisk/extensions.conf
/dev/pts/6
08:46:15
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2299.7114.31588	2013-04-10 09:46:36.000000000 +0300
+++ /etc/asterisk/extensions.conf	2013-04-10 09:49:31.000000000 +0300
@@ -19,6 +19,7 @@
 exten => _12XX,n,Voicemail(${EXTEN}@default)
            
                                                 
+exten => _380XXXXXXXXX,n,Voicemail(${EXTEN}@default)
                                                
 ;exten => _12XX,1,Answer                    
 ;exten => _12XX,n,Set(CALLFILENAME=${EXTEN}-${CALLERID(num)}-${EPOCH})
08:53:20
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2299.23016.6930	2013-04-10 09:53:23.000000000 +0300
+++ /etc/asterisk/extensions.conf	2013-04-10 09:56:46.000000000 +0300
@@ -17,9 +17,6 @@
 ;exten => _12XX,n,Monitor(wav,${CALLFILENAME},m)               
 exten => _12XX,n,Dial(SIP/${EXTEN},10,wW)                      
 exten => _12XX,n,Voicemail(${EXTEN}@default)
-           
-                                                
-exten => _380XXXXXXXXX,n,Voicemail(${EXTEN}@default)
                                                
 ;exten => _12XX,1,Answer                    
 ;exten => _12XX,n,Set(CALLFILENAME=${EXTEN}-${CALLERID(num)}-${EPOCH})
@@ -44,6 +41,8 @@
 exten => _13XX,1,Dial(SIP/boston/${EXTEN})
 exten => _21XX,1,Dial(SIP/boston/${EXTEN})
 
+exten => _380XXXXXXXXX,1,Dial(SIP/minsk${EXTEN})
+
 [gr1]
 include => internal
 include => local
/dev/pts/5
08:53:20
#vim /etc/asterisk/extensions.conf
/dev/pts/6
08:56:46
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-2299.26644.13800	2013-04-10 09:59:12.000000000 +0300
+++ /etc/asterisk/sip.conf	2013-04-10 10:00:19.000000000 +0300
@@ -2,7 +2,8 @@
 context=default
 register => chicago:1234@192.168.10.1/boston
 
-register => minsk:1234@192.168.10.1/boston
+
+;register => minsk:1234@192.168.60.1/boston
 ;register => chicago:1234@192.168.10.1/boston
 
 ; SIP-peer
/dev/pts/5
08:56:46
#vim /etc/asterisk/sip.conf
/dev/pts/10
08:57:11
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on Linux2 (pid = 1482)
Verbosity is at least 3
Linux2*CLI> dialplan reload
...
    -- Registered extension context 'ael-dundi-e164-customers' (0xb52bdc08) in local table 0xb52b44c8; registrar: pbx_ael
    -- merging incls/swits/igpats from old(ael-dundi-e164-customers) to new(ael-dundi-e164-customers) context, registrar = pbx_config
    -- Registered extension context 'ael-dundi-e164-canonical' (0xb52d1e80) in local table 0xb52b44c8; registrar: pbx_ael
    -- merging incls/swits/igpats from old(ael-dundi-e164-canonical) to new(ael-dundi-e164-canonical) context, registrar = pbx_config
    -- Time to scan old dialplan and merge leftovers back into the new: 0.000523 sec
    -- Time to restore hints and swap in new dialplan: 0.000001 sec
    -- Time to delete the old dialplan: 0.000051 sec
    -- Total time merge_contexts_delete: 0.000575 sec
Linux2*CLI>
Disconnected from Asterisk server
/dev/pts/9
08:57:11
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on Linux2 (pid = 1482)
Verbosity is at least 3
Linux2*CLI> dialplan reload
...
    -- Registered extension context 'ael-dundi-e164-customers' (0xb52bdc08) in local table 0xb52b44c8; registrar: pbx_ael
    -- merging incls/swits/igpats from old(ael-dundi-e164-customers) to new(ael-dundi-e164-customers) context, registrar = pbx_config
    -- Registered extension context 'ael-dundi-e164-canonical' (0xb52d1e80) in local table 0xb52b44c8; registrar: pbx_ael
    -- merging incls/swits/igpats from old(ael-dundi-e164-canonical) to new(ael-dundi-e164-canonical) context, registrar = pbx_config
    -- Time to scan old dialplan and merge leftovers back into the new: 0.000523 sec
    -- Time to restore hints and swap in new dialplan: 0.000001 sec
    -- Time to delete the old dialplan: 0.000051 sec
    -- Total time merge_contexts_delete: 0.000575 sec
Linux2*CLI>
Disconnected from Asterisk server
/dev/pts/6
09:00:19
#vim /etc/asterisk/sip.conf
/dev/pts/5
09:00:19
#vim /etc/asterisk/sip.conf
/dev/pts/6
09:09:26
#register => chicago:1234@192.168.10.1/boston
ping: unknown host /?
/dev/pts/5
09:09:26
#register => chicago:1234@192.168.10.1/boston
ping: unknown host /?
/dev/pts/6
09:09:49
#ping 192.168.20.100
PING 192.168.20.100 (192.168.20.100) 56(84) bytes of data.
64 bytes from 192.168.20.100: icmp_req=1 ttl=250 time=68.5 ms
64 bytes from 192.168.20.100: icmp_req=2 ttl=250 time=67.3 ms
64 bytes from 192.168.20.100: icmp_req=3 ttl=250 time=66.3 ms
64 bytes from 192.168.20.100: icmp_req=4 ttl=250 time=65.4 ms
64 bytes from 192.168.20.100: icmp_req=5 ttl=250 time=64.4 ms
64 bytes from 192.168.20.100: icmp_req=6 ttl=250 time=63.9 ms
^X64 bytes from 192.168.20.100: icmp_req=7 ttl=250 time=62.4 ms
64 bytes from 192.168.20.100: icmp_req=8 ttl=250 time=61.5 ms
^Z
[2]+  Stopped                 ping 192.168.20.100
/dev/pts/5
09:09:49
#ping 192.168.20.100
PING 192.168.20.100 (192.168.20.100) 56(84) bytes of data.
64 bytes from 192.168.20.100: icmp_req=1 ttl=250 time=68.5 ms
64 bytes from 192.168.20.100: icmp_req=2 ttl=250 time=67.3 ms
64 bytes from 192.168.20.100: icmp_req=3 ttl=250 time=66.3 ms
64 bytes from 192.168.20.100: icmp_req=4 ttl=250 time=65.4 ms
64 bytes from 192.168.20.100: icmp_req=5 ttl=250 time=64.4 ms
64 bytes from 192.168.20.100: icmp_req=6 ttl=250 time=63.9 ms
^X64 bytes from 192.168.20.100: icmp_req=7 ttl=250 time=62.4 ms
64 bytes from 192.168.20.100: icmp_req=8 ttl=250 time=61.5 ms
^Z
[2]+  Stopped                 ping 192.168.20.100
/dev/pts/6
09:10:02
#jobs
[1]-  Stopped                 /usr/bin/vim "$@"
[2]+  Stopped                 ping 192.168.20.100
/dev/pts/5
09:10:02
#jobs
[1]-  Stopped                 /usr/bin/vim "$@"
[2]+  Stopped                 ping 192.168.20.100
/dev/pts/6
09:10:12
#fg 2
ping 192.168.20.100
64 bytes from 192.168.20.100: icmp_req=9 ttl=250 time=65.6 ms
64 bytes from 192.168.20.100: icmp_req=10 ttl=250 time=64.3 ms
64 bytes from 192.168.20.100: icmp_req=11 ttl=250 time=63.4 ms
64 bytes from 192.168.20.100: icmp_req=12 ttl=250 time=62.3 ms
^[x64 bytes from 192.168.20.100: icmp_req=13 ttl=250 time=61.5 ms
64 bytes from 192.168.20.100: icmp_req=14 ttl=250 time=60.4 ms
^[z64 bytes from 192.168.20.100: icmp_req=15 ttl=250 time=69.5 ms
^[x64 bytes from 192.168.20.100: icmp_req=16 ttl=250 time=68.4 ms
^[c^[z64 bytes from 192.168.20.100: icmp_req=17 ttl=250 time=67.4 ms
64 bytes from 192.168.20.100: icmp_req=18 ttl=250 time=66.8 ms
^Z
[2]+  Stopped                 ping 192.168.20.100
/dev/pts/5
09:10:12
#fg 2
ping 192.168.20.100
64 bytes from 192.168.20.100: icmp_req=9 ttl=250 time=65.6 ms
64 bytes from 192.168.20.100: icmp_req=10 ttl=250 time=64.3 ms
64 bytes from 192.168.20.100: icmp_req=11 ttl=250 time=63.4 ms
64 bytes from 192.168.20.100: icmp_req=12 ttl=250 time=62.3 ms
^[x64 bytes from 192.168.20.100: icmp_req=13 ttl=250 time=61.5 ms
64 bytes from 192.168.20.100: icmp_req=14 ttl=250 time=60.4 ms
^[z64 bytes from 192.168.20.100: icmp_req=15 ttl=250 time=69.5 ms
^[x64 bytes from 192.168.20.100: icmp_req=16 ttl=250 time=68.4 ms
^[c^[z64 bytes from 192.168.20.100: icmp_req=17 ttl=250 time=67.4 ms
64 bytes from 192.168.20.100: icmp_req=18 ttl=250 time=66.8 ms
^Z
[2]+  Stopped                 ping 192.168.20.100
/dev/pts/6
09:10:31
#help ping
bash: help: no help topics match `ping'.  Try `help help' or `man -k ping' or `info ping'.
/dev/pts/5
09:10:31
#help ping
bash: help: no help topics match `ping'.  Try `help help' or `man -k ping' or `info ping'.
/dev/pts/6
09:10:40
#ping -k3 192.168.20.100
ping: invalid option -- 'k'
Usage: ping [-LRUbdfnqrvVaAD] [-c count] [-i interval] [-w deadline]
            [-p pattern] [-s packetsize] [-t ttl] [-I interface]
            [-M pmtudisc-hint] [-m mark] [-S sndbuf]
            [-T tstamp-options] [-Q tos] [hop1 ...] destination
/dev/pts/5
09:10:40
#ping -k3 192.168.20.100
ping: invalid option -- 'k'
Usage: ping [-LRUbdfnqrvVaAD] [-c count] [-i interval] [-w deadline]
            [-p pattern] [-s packetsize] [-t ttl] [-I interface]
            [-M pmtudisc-hint] [-m mark] [-S sndbuf]
            [-T tstamp-options] [-Q tos] [hop1 ...] destination
/dev/pts/6
09:11:05
#ping -c3 192.168.20.100
PING 192.168.20.100 (192.168.20.100) 56(84) bytes of data.
64 bytes from 192.168.20.100: icmp_req=1 ttl=250 time=61.6 ms
64 bytes from 192.168.20.100: icmp_req=2 ttl=250 time=60.3 ms
64 bytes from 192.168.20.100: icmp_req=3 ttl=250 time=69.4 ms
--- 192.168.20.100 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 60.383/63.807/69.403/4.000 ms
/dev/pts/5
09:11:05
#ping -c3 192.168.20.100
PING 192.168.20.100 (192.168.20.100) 56(84) bytes of data.
64 bytes from 192.168.20.100: icmp_req=1 ttl=250 time=61.6 ms
64 bytes from 192.168.20.100: icmp_req=2 ttl=250 time=60.3 ms
64 bytes from 192.168.20.100: icmp_req=3 ttl=250 time=69.4 ms
--- 192.168.20.100 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 60.383/63.807/69.403/4.000 ms
/dev/pts/6
09:11:15
#ping -c3 192.168.20.101
PING 192.168.20.101 (192.168.20.101) 56(84) bytes of data.
--- 192.168.20.101 ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 2015ms
/dev/pts/5
09:11:15
#ping -c3 192.168.20.101
PING 192.168.20.101 (192.168.20.101) 56(84) bytes of data.
--- 192.168.20.101 ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 2015ms
/dev/pts/6
09:11:42
#ping -c3 192.168.20.101
PING 192.168.20.101 (192.168.20.101) 56(84) bytes of data.
--- 192.168.20.101 ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 2016ms
/dev/pts/5
09:11:42
#ping -c3 192.168.20.101
PING 192.168.20.101 (192.168.20.101) 56(84) bytes of data.
--- 192.168.20.101 ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 2016ms
прошло 12 минут
/dev/pts/6
09:24:18
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-2299.6510.10172	2013-04-10 10:24:49.000000000 +0300
+++ /etc/asterisk/sip.conf	2013-04-10 10:26:17.000000000 +0300
@@ -32,7 +32,7 @@
 
 [boston]
 type=friend
-secret=1234
+secret=1234xxx
 host=dynamic
 username=chicago
 context=gr1
/dev/pts/5
09:24:18
#vim /etc/asterisk/sip.conf
/dev/pts/6
09:26:17
#vim /etc/asterisk/sip.conf
/dev/pts/5
09:26:17
#vim /etc/asterisk/sip.conf
/dev/pts/6
09:28:19
#register => 223:rootpass22@178.63.229.229/external sername=Cisco
[       ]
secret=12345
"/etc/asterisk/sip.conf" 41L, 506C
host=dynamic
context=gr1
username=Cisco
[1202]
type=friend
ster => brest:1234@192.168.60.1/minsk
secret=12345
host=dynamic
context=gr1
-- INSERT --                                                  17,1          Top
/dev/pts/5
09:28:19
#register => 223:rootpass22@178.63.229.229/external sername=Cisco
[       ]
secret=12345
"/etc/asterisk/sip.conf" 41L, 506C
host=dynamic
context=gr1
username=Cisco
[1202]
type=friend
ster => brest:1234@192.168.60.1/minsk
secret=12345
host=dynamic
context=gr1
-- INSERT --                                                  17,1          Top
/dev/pts/6
09:30:33
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-2299.18734.4906	2013-04-10 10:31:06.000000000 +0300
+++ /etc/asterisk/sip.conf	2013-04-10 10:31:26.000000000 +0300
@@ -6,8 +6,8 @@
 ;register => 223:rootpass22@178.63.229.229/external             
 
 
-register => brest:1234@192.168.60.1/chicago
-register => 223:rootpass22@178.63.229.229/external             
+;register => brest:1234@192.168.60.1/chicago
+;register => 223:rootpass22@178.63.229.229/external             
 
 
 ;xxx;register => minsk:1234@192.168.60.1/boston
/dev/pts/5
09:30:33
#vim /etc/asterisk/sip.conf
/dev/pts/6
09:31:26
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-2299.21557.8437	2013-04-10 10:31:50.000000000 +0300
+++ /etc/asterisk/sip.conf	2013-04-10 10:32:11.000000000 +0300
@@ -39,7 +39,7 @@
 
 [boston]
 type=friend
-secret=1234xxx
+secret=1234
 host=dynamic
 username=chicago
 context=gr1
/dev/pts/5
09:31:26
#vim /etc/asterisk/sip.conf
/dev/pts/6
09:37:47
#fg 1
callerid="Igor Chubin" cret=1234cret=1234 cret=123cret=123cret=123444
callerid="Igor Chubin" cret=1234cret=1234 cret=123cret=123cret=123444
callerid="Igor Chubin" cret=1234cret=1234 cret=123cret=123cret=123444
callerid="Igor Chubin" cret=1234cret=1234 cret=123cret=123cret=123444
[root@linux7:~]# # http://db.tt/I6AEo6jh
[             ]
[             ]
[root@linux7:~]# sip                                          41,0-1        Bot
[1]+  Stopped                 /usr/bin/vim "$@"
ping: unknown host c3
cret=123cret=123cret=123444
cret=1234cret=1234cret=1234cret=1234cret=1234
[minsk]
[minsk]
[minsk]
cret=1234cret=1234
type=friend secret=1234
host=dynamic
defaultuser=brest
canreinvite=no
/dev/pts/5
09:37:47
#fg 1
callerid="Igor Chubin" cret=1234cret=1234 cret=123cret=123cret=123444
callerid="Igor Chubin" cret=1234cret=1234 cret=123cret=123cret=123444
callerid="Igor Chubin" cret=1234cret=1234 cret=123cret=123cret=123444
callerid="Igor Chubin" cret=1234cret=1234 cret=123cret=123cret=123444
[root@linux7:~]# # http://db.tt/I6AEo6jh
[             ]
[             ]
[root@linux7:~]# sip                                          41,0-1        Bot
[1]+  Stopped                 /usr/bin/vim "$@"
ping: unknown host c3
cret=123cret=123cret=123444
cret=1234cret=1234cret=1234cret=1234cret=1234
[minsk]
[minsk]
[minsk]
cret=1234cret=1234
type=friend secret=1234
host=dynamic
defaultuser=brest
canreinvite=no
/dev/pts/6
09:38:15
#jobs
[1]+  Stopped                 /usr/bin/vim "$@"
[2]-  Stopped                 ping 192.168.20.100
/dev/pts/5
09:38:15
#jobs
[1]+  Stopped                 /usr/bin/vim "$@"
[2]-  Stopped                 ping 192.168.20.100
/dev/pts/6
09:38:17
#fg 1
ot@linux7:~]# mkdir /var/tmp/message/
[root@linux7:~]# chown asterisk:asterisk /var/tmp/message/
[root@linux7:~]# cat /etc/asterisk/extensions.conf
[             ]
include => internal
ot@linux7:~]#
[general]
[       ]
register => br
; SIP-peer
...
                                                              3,1           11%
defaultuser=brest
canreinvite=no
qualify=yes
callerid="Igor Chubin" cret=1234cret=1234 cret=123cret=123cret=123444
callerid="Igor Chubin" cret=1234cret=1234 cret=123cret=123cret=123444
callerid="Igor Chubin" cret=1234cret=1234 cret=123cret=123cret=123444
callerid="Igor Chubin" cret=1234cret=1234 cret=123cret=123cret=123444
[root@linux7:~]# # http://db.tt/I6AEo6jh
[root@linux7:~]# sip
/dev/pts/5
09:38:17
#fg 1
ot@linux7:~]# mkdir /var/tmp/message/
[root@linux7:~]# chown asterisk:asterisk /var/tmp/message/
[root@linux7:~]# cat /etc/asterisk/extensions.conf
[             ]
include => internal
ot@linux7:~]#
[general]
[       ]
register => br
; SIP-peer
...
                                                              3,1           11%
defaultuser=brest
canreinvite=no
qualify=yes
callerid="Igor Chubin" cret=1234cret=1234 cret=123cret=123cret=123444
callerid="Igor Chubin" cret=1234cret=1234 cret=123cret=123cret=123444
callerid="Igor Chubin" cret=1234cret=1234 cret=123cret=123cret=123444
callerid="Igor Chubin" cret=1234cret=1234 cret=123cret=123cret=123444
[root@linux7:~]# # http://db.tt/I6AEo6jh
[root@linux7:~]# sip
/dev/pts/6
09:43:39
#vim /etc/asterisk/extensions.conf
/dev/pts/5
09:43:39
#vim /etc/asterisk/extensions.conf
/dev/pts/6
09:44:03
#include => internal
exten => 8000,n,Playback(welcome)
;exten => 1201,1,Dial(Sip/1201)
;exten => 1202,1,Dial(Sip/1202)
exten => _81XX,nDial(SIP1202&SIP/1203)
[local]
exten => 8300,1,Voicemailmain()
"/etc/asterisk/extensions.conf" 61L, 1790C
exten => _12XX,1,Answer
;exten => _12XX,n,Set(CALLFILENAME=${EXTEN}-${CALLERID(num)}-${EPOCH})
;exten => _12XX,n,Monitor(wav,${CALLFILENAME},m)
/dev/pts/5
09:44:03
#include => internal
exten => 8000,n,Playback(welcome)
;exten => 1201,1,Dial(Sip/1201)
;exten => 1202,1,Dial(Sip/1202)
exten => _81XX,nDial(SIP1202&SIP/1203)
[local]
exten => 8300,1,Voicemailmain()
"/etc/asterisk/extensions.conf" 61L, 1790C
exten => _12XX,1,Answer
;exten => _12XX,n,Set(CALLFILENAME=${EXTEN}-${CALLERID(num)}-${EPOCH})
;exten => _12XX,n,Monitor(wav,${CALLFILENAME},m)
/dev/pts/10
09:44:28
#jobs

/dev/pts/9
09:44:28
#jobs

/dev/pts/10
09:44:34
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on Linux2 (pid = 1482)
Verbosity is at least 3
Linux2*CLI>
...
  == Spawn extension (gr1, 1205, 2) exited non-zero on 'SIP/1201-0000000a'
  == Using SIP RTP CoS mark 5
    -- Executing [1203@gr1:1] Answer("SIP/1201-0000000b", "") in new stack
    -- Executing [1203@gr1:2] Dial("SIP/1201-0000000b", "SIP/1203,10,wW") in new stack
  == Using SIP RTP CoS mark 5
    -- Called 1203
    -- SIP/1203-0000000c is ringing
  == Spawn extension (gr1, 1203, 2) exited non-zero on 'SIP/1201-0000000b'
Linux2*CLI> dialplan reload
[1]+  Stopped                 asterisk -r
/dev/pts/9
09:44:34
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on Linux2 (pid = 1482)
Verbosity is at least 3
Linux2*CLI>
...
  == Spawn extension (gr1, 1205, 2) exited non-zero on 'SIP/1201-0000000a'
  == Using SIP RTP CoS mark 5
    -- Executing [1203@gr1:1] Answer("SIP/1201-0000000b", "") in new stack
    -- Executing [1203@gr1:2] Dial("SIP/1201-0000000b", "SIP/1203,10,wW") in new stack
  == Using SIP RTP CoS mark 5
    -- Called 1203
    -- SIP/1203-0000000c is ringing
  == Spawn extension (gr1, 1203, 2) exited non-zero on 'SIP/1201-0000000b'
Linux2*CLI> dialplan reload
[1]+  Stopped