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

Содержание

Журнал

Понедельник (11/24/14)

/dev/pts/8
16:30:11
#asterisk -rx 'sip show peers'
Name/username              Host                                    Dyn Forcerport ACL Port     Status
2201/2201                  192.168.50.100                           D   N             5060     Unmonitored
2202                       (Unspecified)                            D   N             0        Unmonitored
2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 1 online, 1 offline]
16:31:02
#ЦФÐÐWATCH 'sk -rx 'sip show peers' '
bash: WATCH: command not found
16:32:40
#No such command 'sip' (type 'core show help sip' for other possible comma

16:33:21
#No such command 'sip' (type 'core show help sip' for other possible comma
Usage:
 watch [options] command
Options:
  -b, --beep             beep if command has a non-zero exit
  -c, --color            interpret ANSI color sequences
  -d, --differences[=<permanent>]
                         highlight changes between updates
  -e, --errexit          exit if command has a non-zero exit
  -g, --chgexit          exit when output from command changes
  -n, --interval <secs>  seconds to wait between updates
  -p, --precise          attempt run command in precise intervals
  -t, --no-title         turn off header
  -x, --exec             pass command to exec instead of "sh -c"
 -h, --help     display this help and exit
 -v, --version  output version information and exit
For more details see watch(1).
16:42:28
#less /etc/dhcp/dhcpd.conf
16:47:10
#/etc/init.d/asterisk restart

16:47:10
#vim /etc/default/isc-dhcp-server
16:48:17
#/etc/init.d/asterisk restart
                  /etc/init.d/isc-dhcp-server restart
Stopping ISC DHCP server: dhcpd.
Starting ISC DHCP server: dhcpd.
прошло 13 минут
17:01:32
#мÑvim /etc/asterisk/extentions.conf
[default]
exten => _22xx,1,Dial(SIP/${EXTEN})
~
~
~
~
~
~
~
~
...
~
~
~
~
~
~
~
~
~
"/etc/asterisk/extentions.conf" [New] 5L, 49C written
17:07:22
#asterisk -rvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13187)
Verbosity was 0 and is now 2
  == Using SIP RTP CoS mark 5
[Nov 24 18:07:45] NOTICE[13225]: chan_sip.c:22753 handle_request_invite: Call from '2202' (192.168.50.101:55282) to extension '2201' rejected because extension not found in context 'default'.
debian5*CLI> exit
Executing last minute cleanups
17:08:49
#asterisk -rvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13296)
Verbosity was 0 and is now 2
  == Using SIP RTP CoS mark 5
[Nov 24 18:09:05] NOTICE[13334]: chan_sip.c:22753 handle_request_invite: Call from '2202' (192.168.50.101:55282) to extension '2201' rejected because extension not found in context 'default'.
debian5*CLI> exit
Executing last minute cleanups
17:11:00
#[ ]
# [] -  название секции на каждый номер телефона
context=default
[2201]
type=friend
# направление разрешеного звонка friend в оба направления
secret=1234
# пароль подключения
~
~
~
...
~
~
~
~
~
~
~
~
~
"/etc/asterisk/sip.conf" 16L, 379C written
17:11:58
#asterisk -r
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517)
debian5*CLI> con
config   console
[Nov 24 18:12:35] NOTICE[13555]: chan_sip.c:22753 handle_request_invite: Call from '2202' (192.168.50.101:55282) to extension '2201' rejected because extension not found in context 'default'.
debian5*CLI> -rvv
No such command '-rvv' (type 'core show help -rvv' for other possible commands)
debian5*CLI> exit
17:12:47
#asterisk -rvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517)
Verbosity was 0 and is now 2
  == Using SIP RTP CoS mark 5
[Nov 24 18:12:57] NOTICE[13555]: chan_sip.c:22753 handle_request_invite: Call from '2202' (192.168.50.101:55282) to extension '2201' rejected because extension not found in context 'default'.
debian5*CLI> exit
Executing last minute cleanups
17:13:20
#vim /etc/asterisk/extentions.conf
17:14:04
#[ ]
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517)
Verbosity is at least 2
debian5*CLI> dialplan reload
Dialplan reloaded.
debian5*CLI> asterisk -rvv
No such command 'asterisk -rvv' (type 'core show help asterisk -rvv' for other possible commands)
debian5*CLI> exit
17:14:28
#asterisk -rvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517)
Verbosity is at least 2
  == Using SIP RTP CoS mark 5
[Nov 24 18:14:39] NOTICE[13555]: chan_sip.c:22753 handle_request_invite: Call from '2202' (192.168.50.101:55282) to extension '2201' rejected because extension not found in context 'default'.
debian5*CLI> exit
Executing last minute cleanups
17:16:36
#vim /etc/asterisk/exten
17:16:36
#vim /etc/asterisk/extensions
17:16:36
#vim /etc/asterisk/extensions.
17:16:36
#vim /etc/asterisk/extensions.
17:16:36
#vim /etc/asterisk/extensions.conf.bak .
17:16:36
#vim /etc/asterisk/extensions.conf
17:17:22
#~
4 -rw-r--r-- 1 root root 49 Nov 24 18:07 /etc/asterisk/extentions.conf
17:17:31
#ls -ls /etc/asterisk/ | grep ext
 4 -rw-r----- 1 asterisk asterisk  3397 Jan  4  2014 extconfig.conf
16 -rw-r----- 1 asterisk asterisk 12776 Jan  4  2014 extensions.ael
32 -rw-r----- 1 asterisk asterisk 30823 Jan  4  2014 extensions.conf.bak
 8 -rw-r----- 1 asterisk asterisk  5253 Jan  4  2014 extensions.lua
 8 -rw-r----- 1 asterisk asterisk  7480 Jan  4  2014 extensions_minivm.conf
 4 -rw-r--r-- 1 root     root        49 Nov 24 18:07 extentions.conf
17:18:45
#ls -ls /etc/asterisk/ | grep ext
 4 -rw-r----- 1 asterisk asterisk  3397 Jan  4  2014 extconfig.conf
 4 -rw-r--r-- 1 root     root        49 Nov 24 18:07 extension.conf
16 -rw-r----- 1 asterisk asterisk 12776 Jan  4  2014 extensions.ael
32 -rw-r----- 1 asterisk asterisk 30823 Jan  4  2014 extensions.conf.bak
 8 -rw-r----- 1 asterisk asterisk  5253 Jan  4  2014 extensions.lua
 8 -rw-r----- 1 asterisk asterisk  7480 Jan  4  2014 extensions_minivm.conf
17:18:47
#ls -ls /etc/asterisk/ | grep ext
exten => _22XX,1,Dial(SIP/${EXTEN})
~
~
~
~
~
~
~
~
~
...
~
~
~
~
~
~
~
~
~
"/etc/asterisk/extensions.conf" [New] 5L, 49C written
17:20:38
#asterisk -rvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517)
Verbosity is at least 2
  == Using SIP RTP CoS mark 5
  == Using SIP RTP CoS mark 5
  == Spawn extension (default, 2201, 1) exited non-zero on 'SIP/2202-00000002'
debian5*CLI> exit
Executing last minute cleanups
17:21:04
#asterisk -r
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517)
Verbosity is at least 2
  == Using SIP RTP CoS mark 5
  == Using SIP RTP CoS mark 5
  == Spawn extension (default, 2201, 1) exited non-zero on 'SIP/2202-00000004'
  == Using SIP RTP CoS mark 5
  == Using SIP RTP CoS mark 5
  == Spawn extension (default, 2201, 1) exited non-zero on 'SIP/2202-00000006'
debian5*CLI> exit
17:23:07
#asterisk -r
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517)
Verbosity is at least 2
debian5*CLI> exit
/dev/pts/4
17:28:15
#quit
bash: quit: command not found

Вторник (11/25/14)

/dev/pts/11
08:31:42
#фыÐasterisk -r
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517)
Verbosity is at least 2
debian5*CLI> sip show pee
peers  peer
debian5*CLI> sip show peers
Name/username              Host                                    Dyn Forcerport ACL Port     Status
2201/2201                  192.168.50.100                           D   N             5060     Unmonitored
2202/2202                  192.168.50.101                           D   N             61523    Unmonitored
2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 2 online, 0 offline]
debian5*CLI> exit
/dev/pts/10
08:31:42
#фыÐasterisk -r
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517)
Verbosity is at least 2
debian5*CLI> sip show pee
peers  peer
debian5*CLI> sip show peers
Name/username              Host                                    Dyn Forcerport ACL Port     Status
2201/2201                  192.168.50.100                           D   N             5060     Unmonitored
2202/2202                  192.168.50.101                           D   N             61523    Unmonitored
2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 2 online, 0 offline]
debian5*CLI> exit
прошло 14 минут
/dev/pts/13
08:46:09
#screen -x
/dev/pts/11
08:51:41
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-15112.16336.6886	2014-11-25 09:51:54.515469325 +0200
+++ /etc/asterisk/sip.conf	2014-11-25 09:52:35.775469804 +0200
@@ -1,6 +1,7 @@
 [general]
 ; [] - 	название секции на каждый номер телефона
 context=default
+qualify=yes
 
 [2201]
 type=friend
/dev/pts/10
08:51:41
#vim /etc/asterisk/sip.conf
/dev/pts/11
08:52:35
#sip reload
bash: sip: command not found
/dev/pts/10
08:52:35
#sip reload
bash: sip: command not found
/dev/pts/11
08:52:39
#asterisk -r
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517)
Verbosity is at least 2
debian5*CLI> sip reload
...
  == Using SIP CoS mark 4
  == Parsing '/etc/asterisk/sip_notify.conf':   == Found
[Nov 25 09:52:47] NOTICE[13555]: chan_sip.c:20886 handle_response_peerpoke: Peer '2201' is now Reachable. (37ms / 2000ms)
[Nov 25 09:52:47] NOTICE[13555]: chan_sip.c:20886 handle_response_peerpoke: Peer '2202' is now Reachable. (108ms / 2000ms)
debian5*CLI> sip show peers
Name/username              Host                                    Dyn Forcerport ACL Port     Status
2201/2201                  192.168.50.100                           D   N             5060     OK (37 ms)
2202/2202                  192.168.50.101                           D   N             61523    OK (108 ms)
2 sip peers [Monitored: 2 online, 0 offline Unmonitored: 0 online, 0 offline]
debian5*CLI> quit
/dev/pts/10
08:52:39
#asterisk -r
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517)
Verbosity is at least 2
debian5*CLI> sip reload
...
  == Using SIP CoS mark 4
  == Parsing '/etc/asterisk/sip_notify.conf':   == Found
[Nov 25 09:52:47] NOTICE[13555]: chan_sip.c:20886 handle_response_peerpoke: Peer '2201' is now Reachable. (37ms / 2000ms)
[Nov 25 09:52:47] NOTICE[13555]: chan_sip.c:20886 handle_response_peerpoke: Peer '2202' is now Reachable. (108ms / 2000ms)
debian5*CLI> sip show peers
Name/username              Host                                    Dyn Forcerport ACL Port     Status
2201/2201                  192.168.50.100                           D   N             5060     OK (37 ms)
2202/2202                  192.168.50.101                           D   N             61523    OK (108 ms)
2 sip peers [Monitored: 2 online, 0 offline Unmonitored: 0 online, 0 offline]
debian5*CLI> quit
прошло 34 минуты
/dev/pts/11
09:27:29
#asterisk 'sip reload'
Privilege escalation protection disabled!
See https://wiki.asterisk.org/wiki/x/1gKfAQ for more details.
Asterisk already running on /var/run/asterisk/asterisk.ctl.  Use 'asterisk -r' to connect.
/dev/pts/10
09:27:29
#asterisk 'sip reload'
Privilege escalation protection disabled!
See https://wiki.asterisk.org/wiki/x/1gKfAQ for more details.
Asterisk already running on /var/run/asterisk/asterisk.ctl.  Use 'asterisk -r' to connect.
/dev/pts/11
09:27:46
#asterisk -r
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517)
Verbosity is at least 2
debian5*CLI> sip reload
 Reloading SIP
  == Parsing '/etc/asterisk/sip.conf':   == Found
[Nov 25 10:27:58] WARNING[13555]: config.c:1354 process_text_line: No '=' (equal sign) in line 23 of /etc/asterisk/sip.conf
  == Parsing '/etc/asterisk/users.conf':   == Found
  == Using SIP CoS mark 4
  == Parsing '/etc/asterisk/sip_notify.conf':   == Found
debian5*CLI> exit
/dev/pts/10
09:27:46
#asterisk -r
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517)
Verbosity is at least 2
debian5*CLI> sip reload
 Reloading SIP
  == Parsing '/etc/asterisk/sip.conf':   == Found
[Nov 25 10:27:58] WARNING[13555]: config.c:1354 process_text_line: No '=' (equal sign) in line 23 of /etc/asterisk/sip.conf
  == Parsing '/etc/asterisk/users.conf':   == Found
  == Using SIP CoS mark 4
  == Parsing '/etc/asterisk/sip_notify.conf':   == Found
debian5*CLI> exit
/dev/pts/11
09:29:06
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-15112.23887.7703	2014-11-25 10:29:09.179495793 +0200
+++ /etc/asterisk/sip.conf	2014-11-25 10:31:57.771497765 +0200
@@ -3,6 +3,10 @@
 context=default
 qualify=yes
 
+#include "/etc/asterisk/sip.conf.kiev"
+#include "/etc/asterisk/sip.conf.kharkov"
+#include "/etc/asterisk/sip.conf.odessa"
+
 [2201]
 type=friend
 ; направление разрешеного звонка friend в оба направления
/dev/pts/10
09:29:06
#vim /etc/asterisk/sip.conf
/dev/pts/11
09:31:57
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-15112.31092.18777	2014-11-25 10:32:07.075497876 +0200
+++ /etc/asterisk/sip.conf	2014-11-25 10:34:59.523499919 +0200
@@ -3,9 +3,9 @@
 context=default
 qualify=yes
 
-#include "/etc/asterisk/sip.conf.kiev"
-#include "/etc/asterisk/sip.conf.kharkov"
-#include "/etc/asterisk/sip.conf.odessa"
+;#include "/etc/asterisk/sip.conf.kiev"
+;#include "/etc/asterisk/sip.conf.kharkov"
+;#include "/etc/asterisk/sip.conf.odessa"
 
 [2201]
 type=friend
/dev/pts/10
09:31:57
#vim /etc/asterisk/sip.conf
/dev/pts/11
09:34:59
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-15112.6949.8607	2014-11-25 10:35:26.779500241 +0200
+++ /etc/asterisk/sip.conf	2014-11-25 10:36:03.095500659 +0200
@@ -29,12 +29,12 @@
 secret=password
 
 
-[softphone](!)
+;[softphone](!)
 ;....
-qualify=no
+;qualify=no
 
-[smartphone](!,softphone)
+;[smartphone](!,softphone)
 ;....
-quialify=yes
+;quialify=yes
 
 [2203](phone)
/dev/pts/10
09:34:59
#vim /etc/asterisk/sip.conf
/dev/pts/11
09:36:03
#vim /etc/asterisk/sip.conf
/dev/pts/10
09:36:03
#vim /etc/asterisk/sip.conf
/dev/pts/11
09:40:42
#ls -l /etc/asterisk/extension.*
-rw-r--r-- 1 root root 49 Nov 24 18:07 /etc/asterisk/extension.conf
/dev/pts/10
09:40:42
#ls -l /etc/asterisk/extension.*
-rw-r--r-- 1 root root 49 Nov 24 18:07 /etc/asterisk/extension.conf
/dev/pts/11
09:40:51
#vim /etc/asterisk/extension.conf
--- /tmp/l3-saved-15112.13890.15807	2014-11-25 10:41:50.271504782 +0200
+++ /etc/asterisk/extension.conf	2014-11-25 11:04:12.187520666 +0200
@@ -1,5 +1,22 @@
+[default]
 
+                                                                                     
+exten => 2201,1,NoOp(Starting call processing)
+exten => 2201,2,NoOp(to extension 2201)
+exten => 2201,3,Dial(SIP/2201)
 
-[default]
+exten => 2202,1,NoOp(Starting call processing)
+exten => 2202,2,NoOp(to extension 2202)
+exten => 2202,3,Dial(SIP/2202)
+
+; using ${EXTEN}
+
+exten => _22XX,1,NoOp(Starting call processing)
+exten => _22XX,n,NoOp(to extension {EXTEN})
+exten => _22XX,n,Dial(SIP/${EXTEN})
+
+; using same
 
-exten => _22xx,1,Dial(SIP/${EXTEN})
+exten => _22XX,1,NoOp(Starting call processing)
+ same =>       n,NoOp(to extension {EXTEN})
+ same =>       n,Dial(SIP/${EXTEN})   [default]
/dev/pts/10
09:40:51
#vim /etc/asterisk/extension.conf
прошла 41 минута
/dev/pts/11
10:22:45
#[ ]
; ÐÑÐÐÑÑи ÐÑÐо п ÑÐп н 1101
; Dial приложение (
; SIP/ ÐÐÐÐÐÐи ÐÐÐÐÐа ÐÑд Ðг ÐÑÐн ÐÐÑÐÐÐÐÑÐÐÐть
exten => 2201,1,NoOp(Starting call processing)
exten => 2201,2,NoOp(to extension 2201)
exten => 2201,3,Dial(SIP/2201)
         {EXTEN}
exten => _81XX,n,Record(/var/tmp/asterisk/record${EXTEN:2}:gsm)
                         (                         {       })
; using ${EXTEN}
...
; same =>       n,NoOp(to extension {EXTEN})
; same =>       n,Dial(SIP/${EXTEN})   [default]
~
~
~
~
~
~
~
"/etc/asterisk/extension.conf" 28L, 945C written
/dev/pts/10
10:22:45
#[ ]
; ÐÑÐÐÑÑи ÐÑÐо п ÑÐп н 1101
; Dial приложение (
; SIP/ ÐÐÐÐÐÐи ÐÐÐÐÐа ÐÑд Ðг ÐÑÐн ÐÐÑÐÐÐÐÑÐÐÐть
exten => 2201,1,NoOp(Starting call processing)
exten => 2201,2,NoOp(to extension 2201)
exten => 2201,3,Dial(SIP/2201)
         {EXTEN}
exten => _81XX,n,Record(/var/tmp/asterisk/record${EXTEN:2}:gsm)
                         (                         {       })
; using ${EXTEN}
...
; same =>       n,NoOp(to extension {EXTEN})
; same =>       n,Dial(SIP/${EXTEN})   [default]
~
~
~
~
~
~
~
"/etc/asterisk/extension.conf" 28L, 945C written
прошло 35 минут
/dev/pts/11
10:58:19
#mkdir /var/tmp/asterisk

/dev/pts/10
10:58:19
#mkdir /var/tmp/asterisk

/dev/pts/11
10:58:43
#chown asterisk:asterisk /var/tmp/asterisk/

/dev/pts/10
10:58:43
#chown asterisk:asterisk /var/tmp/asterisk/

/dev/pts/11
10:59:04
#asterisk -r
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517)
Verbosity is at least 2
debian5*CLI> sip  reload
 Reloading SIP
  == Parsing '/etc/asterisk/sip.conf':   == Found
  == Parsing '/etc/asterisk/users.conf':   == Found
  == Using SIP CoS mark 4
  == Parsing '/etc/asterisk/sip_notify.conf':   == Found
  == Using SIP RTP CoS mark 5
[Nov 25 12:00:04] NOTICE[13555]: chan_sip.c:22753 handle_request_invite: Call from '2201' (192.168.50.100:5060) to extension '8100' rejected because extension not found in context 'default'.
debian5*CLI> exit
/dev/pts/10
10:59:04
#asterisk -r
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517)
Verbosity is at least 2
debian5*CLI> sip  reload
 Reloading SIP
  == Parsing '/etc/asterisk/sip.conf':   == Found
  == Parsing '/etc/asterisk/users.conf':   == Found
  == Using SIP CoS mark 4
  == Parsing '/etc/asterisk/sip_notify.conf':   == Found
  == Using SIP RTP CoS mark 5
[Nov 25 12:00:04] NOTICE[13555]: chan_sip.c:22753 handle_request_invite: Call from '2201' (192.168.50.100:5060) to extension '8100' rejected because extension not found in context 'default'.
debian5*CLI> exit
/dev/pts/11
11:00:10
#asterisk -rvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517)
Verbosity is at least 2
  == Using SIP RTP CoS mark 5
[Nov 25 12:00:18] NOTICE[13555]: chan_sip.c:22753 handle_request_invite: Call from '2201' (192.168.50.100:5060) to extension '81100' rejected because extension not found in context 'default'.
debian5*CLI> exit
Executing last minute cleanups
/dev/pts/10
11:00:10
#asterisk -rvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517)
Verbosity is at least 2
  == Using SIP RTP CoS mark 5
[Nov 25 12:00:18] NOTICE[13555]: chan_sip.c:22753 handle_request_invite: Call from '2201' (192.168.50.100:5060) to extension '81100' rejected because extension not found in context 'default'.
debian5*CLI> exit
Executing last minute cleanups
11:01:19
#[ ]
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517)
Verbosity was 2 and is now 3
  == Using SIP RTP CoS mark 5
[Nov 25 12:01:40] NOTICE[13555]: chan_sip.c:22753 handle_request_invite: Call from '2201' (192.168.50.100:5060) to extension '8110' rejected because extension not found in context 'default'.
  == Using SIP RTP CoS mark 5
[Nov 25 12:02:07] NOTICE[13555]: chan_sip.c:22753 handle_request_invite: Call from '2201' (192.168.50.100:5060) to extension '8199' rejected because extension not found in context 'default'.
debian5*CLI> exit
Executing last minute cleanups
/dev/pts/11
11:01:19
#[ ]
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517)
Verbosity was 2 and is now 3
  == Using SIP RTP CoS mark 5
[Nov 25 12:01:40] NOTICE[13555]: chan_sip.c:22753 handle_request_invite: Call from '2201' (192.168.50.100:5060) to extension '8110' rejected because extension not found in context 'default'.
  == Using SIP RTP CoS mark 5
[Nov 25 12:02:07] NOTICE[13555]: chan_sip.c:22753 handle_request_invite: Call from '2201' (192.168.50.100:5060) to extension '8199' rejected because extension not found in context 'default'.
debian5*CLI> exit
Executing last minute cleanups
11:02:13
#vim /etc/asterisk/extension.conf
--- /tmp/l3-saved-15112.19579.23057	2014-11-25 12:02:17.327561916 +0200
+++ /etc/asterisk/extension.conf	2014-11-25 12:02:35.279562128 +0200
@@ -12,8 +12,8 @@
 exten => 2202,2,NoOp(to extension 2202)
 exten => 2202,3,Dial(SIP/2202)
 
-exten => _81XX,n,Record(/var/tmp/asterisk/record${EXTEN:2}:gsm)
-exten => _82XX,n,Playback(/var/tmp/asterisk/record${EXTEN:2})
+exten => _81XX,1,Record(/var/tmp/asterisk/record${EXTEN:2}:gsm)
+exten => _82XX,1,Playback(/var/tmp/asterisk/record${EXTEN:2})
 
 ; using ${EXTEN}
 
/dev/pts/10
11:02:13
#vim /etc/asterisk/extension.conf
/dev/pts/11
11:02:35
#asterisk -r
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517)
Verbosity is at least 3
debian5*CLI> sip reload
 Reloading SIP
  == Using SIP RTP CoS mark 5
[Nov 25 12:02:52] NOTICE[13555]: chan_sip.c:22753 handle_request_invite: Call from '2201' (192.168.50.100:5060) to extension '8199' rejected because extension not found in context 'default'.
debian5*CLI> exit
/dev/pts/10
11:02:35
#asterisk -r
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517)
Verbosity is at least 3
debian5*CLI> sip reload
 Reloading SIP
  == Using SIP RTP CoS mark 5
[Nov 25 12:02:52] NOTICE[13555]: chan_sip.c:22753 handle_request_invite: Call from '2201' (192.168.50.100:5060) to extension '8199' rejected because extension not found in context 'default'.
debian5*CLI> exit
/dev/pts/11
11:03:02
#vim /etc/asterisk/extension.conf
/dev/pts/10
11:03:02
#vim /etc/asterisk/extension.conf
/dev/pts/11
11:03:54
#[ ]
Privilege escalation protection disabled!
See https://wiki.asterisk.org/wiki/x/1gKfAQ for more details.
Asterisk already running on /var/run/asterisk/asterisk.ctl.  Use 'asterisk -r' to connect.
/dev/pts/10
11:03:54
#[ ]
Privilege escalation protection disabled!
See https://wiki.asterisk.org/wiki/x/1gKfAQ for more details.
Asterisk already running on /var/run/asterisk/asterisk.ctl.  Use 'asterisk -r' to connect.
/dev/pts/11
11:03:56
#asterisk -r
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517)
Verbosity is at least 3
debian5*CLI> dialplan reload
...
    -- 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'; 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.001653 sec
    -- Time to restore hints and swap in new dialplan: 0.000005 sec
    -- Time to delete the old dialplan: 0.000069 sec
    -- Total time merge_contexts_delete: 0.001727 sec
  == Using SIP RTP CoS mark 5
[Nov 25 12:04:20] NOTICE[13555]: chan_sip.c:22753 handle_request_invite: Call from '2201' (192.168.50.100:5060) to extension '8199' rejected because extension not found in context 'default'.
debian5*CLI> exit
/dev/pts/10
11:03:56
#asterisk -r
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517)
Verbosity is at least 3
debian5*CLI> dialplan reload
...
    -- 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'; 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.001653 sec
    -- Time to restore hints and swap in new dialplan: 0.000005 sec
    -- Time to delete the old dialplan: 0.000069 sec
    -- Total time merge_contexts_delete: 0.001727 sec
  == Using SIP RTP CoS mark 5
[Nov 25 12:04:20] NOTICE[13555]: chan_sip.c:22753 handle_request_invite: Call from '2201' (192.168.50.100:5060) to extension '8199' rejected because extension not found in context 'default'.
debian5*CLI> exit
/dev/pts/11
11:04:25
#asterisk -rvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517)
Verbosity is at least 3
  == Using SIP RTP CoS mark 5
[Nov 25 12:04:35] NOTICE[13555]: chan_sip.c:22753 handle_request_invite: Call from '2201' (192.168.50.100:5060) to extension '8100' rejected because extension not found in context 'default'.
debian5*CLI> exit
Executing last minute cleanups
/dev/pts/10
11:04:25
#asterisk -rvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517)
Verbosity is at least 3
  == Using SIP RTP CoS mark 5
[Nov 25 12:04:35] NOTICE[13555]: chan_sip.c:22753 handle_request_invite: Call from '2201' (192.168.50.100:5060) to extension '8100' rejected because extension not found in context 'default'.
debian5*CLI> exit
Executing last minute cleanups
/dev/pts/11
11:04:51
#vim /etc/asterisk/extension.conf
--- /tmp/l3-saved-15112.1531.21853	2014-11-25 12:04:56.147563794 +0200
+++ /etc/asterisk/extension.conf	2014-11-25 12:06:46.179565096 +0200
@@ -13,6 +13,7 @@
 exten => 2202,3,Dial(SIP/2202)
 
 exten => _81XX,1,Record(/var/tmp/asterisk/record${EXTEN:2}:gsm)
+
 exten => _82XX,1,Playback(/var/tmp/asterisk/record${EXTEN:2})
 
 ; using ${EXTEN}
/dev/pts/10
11:04:51
#vim /etc/asterisk/extension.conf
/dev/pts/11
11:06:46
#vim /etc/asterisk/extension.conf
/dev/pts/10
11:06:46
#vim /etc/asterisk/extension.conf
/dev/pts/11
11:07:15
#[ ]
Privilege escalation protection disabled!
See https://wiki.asterisk.org/wiki/x/1gKfAQ for more details.
Asterisk already running on /var/run/asterisk/asterisk.ctl.  Use 'asterisk -r' to connect.
/dev/pts/10
11:07:15
#[ ]
Privilege escalation protection disabled!
See https://wiki.asterisk.org/wiki/x/1gKfAQ for more details.
Asterisk already running on /var/run/asterisk/asterisk.ctl.  Use 'asterisk -r' to connect.
/dev/pts/11
11:07:19
#asterisk -r
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517)
Verbosity is at least 3
debian5*CLI> dialplan reload
...
    -- Registered extension context 'demo'; registrar: pbx_lua
    -- merging incls/swits/igpats from old(demo) to new(demo) context, registrar = pbx_config
    -- Including switch 'Lua/' in context 'demo'
    -- Time to scan old dialplan and merge leftovers back into the new: 0.001521 sec
    -- Time to restore hints and swap in new dialplan: 0.000006 sec
    -- Time to delete the old dialplan: 0.000095 sec
    -- Total time merge_contexts_delete: 0.001622 sec
  == Using SIP RTP CoS mark 5
[Nov 25 12:07:34] NOTICE[13555]: chan_sip.c:22753 handle_request_invite: Call from '2201' (192.168.50.100:5060) to extension '8100' rejected because extension not found in context 'default'.
debian5*CLI> exit
/dev/pts/10
11:07:19
#asterisk -r
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517)
Verbosity is at least 3
debian5*CLI> dialplan reload
...
    -- Registered extension context 'demo'; registrar: pbx_lua
    -- merging incls/swits/igpats from old(demo) to new(demo) context, registrar = pbx_config
    -- Including switch 'Lua/' in context 'demo'
    -- Time to scan old dialplan and merge leftovers back into the new: 0.001521 sec
    -- Time to restore hints and swap in new dialplan: 0.000006 sec
    -- Time to delete the old dialplan: 0.000095 sec
    -- Total time merge_contexts_delete: 0.001622 sec
  == Using SIP RTP CoS mark 5
[Nov 25 12:07:34] NOTICE[13555]: chan_sip.c:22753 handle_request_invite: Call from '2201' (192.168.50.100:5060) to extension '8100' rejected because extension not found in context 'default'.
debian5*CLI> exit
/dev/pts/11
11:07:39