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

Содержание

Журнал

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

/dev/pts/1
13:23:54
#ls

/dev/pts/0
13:23:54
#ls

/dev/pts/1
13:23:56
#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 linux4 (pid = 1311)
linux4*CLI> dialplan reload
Dialplan reloaded.
linux4*CLI> quit
/dev/pts/0
13:23:56
#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 linux4 (pid = 1311)
linux4*CLI> dialplan reload
Dialplan reloaded.
linux4*CLI> quit
/dev/pts/1
13:25:35
#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 linux4 (pid = 1311)
linux4*CLI> dialplan reload
Dialplan reloaded.
linux4*CLI> quit
/dev/pts/0
13:25:35
#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 linux4 (pid = 1311)
linux4*CLI> dialplan reload
Dialplan reloaded.
linux4*CLI> quit
/dev/pts/1
13:26:04
#ls /var/spool/asterisk/monitor/
$({CALLFILENAME},m-in.wav  $({CALLFILENAME},m-out.wav
/dev/pts/0
13:26:04
#ls /var/spool/asterisk/monitor/
$({CALLFILENAME},m-in.wav  $({CALLFILENAME},m-out.wav
/dev/pts/1
13:26:06
#ls /var/spool/asterisk/monitor/
$({CALLFILENAME},m-in.wav  $({CALLFILENAME},m-out.wav
/dev/pts/0
13:26:06
#ls /var/spool/asterisk/monitor/
$({CALLFILENAME},m-in.wav  $({CALLFILENAME},m-out.wav
/dev/pts/1
13:26:08
#ls /var/spool/asterisk/monitor/
$({CALLFILENAME},m-in.wav  $({CALLFILENAME},m-out.wav
/dev/pts/0
13:26:08
#ls /var/spool/asterisk/monitor/
$({CALLFILENAME},m-in.wav  $({CALLFILENAME},m-out.wav
/dev/pts/1
13:26:31
#rm /var/spool/asterisk/monitor/
rm: cannot remove `/var/spool/asterisk/monitor/': Is a directory
/dev/pts/0
13:26:31
#rm /var/spool/asterisk/monitor/
rm: cannot remove `/var/spool/asterisk/monitor/': Is a directory
/dev/pts/1
13:26:42
#cd /var/spool/asterisk/monitor/

/dev/pts/0
13:26:42
#cd /var/spool/asterisk/monitor/

/dev/pts/1
13:26:54
#ls

/dev/pts/0
13:26:54
#ls

/dev/pts/1
13:26:55
#ls -l
total 0
/dev/pts/0
13:26:55
#ls -l
total 0
/dev/pts/1
13:27:02
#ls -l
total 0
/dev/pts/0
13:27:02
#ls -l
total 0
/dev/pts/1
13:27:15
#ls -l
total 0
/dev/pts/0
13:27:15
#ls -l
total 0
/dev/pts/1
13:27:16
#ls -l
total 0
13:27:16
#cd /var/spool/asterisk/monitor/

/dev/pts/0
13:27:16
#ls -l
total 0
13:27:16
#cd /var/spool/asterisk/monitor/

/dev/pts/1
13:27:48
#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 linux4 (pid = 1311)
linux4*CLI> dialplan reload
Dialplan reloaded.
linux4*CLI> sip reload
linux4*CLI> quit
/dev/pts/0
13:27:48
#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 linux4 (pid = 1311)
linux4*CLI> dialplan reload
Dialplan reloaded.
linux4*CLI> sip reload
linux4*CLI> quit
/dev/pts/1
13:28:08
#ls

/dev/pts/0
13:28:08
#ls

/dev/pts/1
13:28:09
#ls

/dev/pts/0
13:28:09
#ls

/dev/pts/1
13:28:20
#ls

13:28:20
#ls

/dev/pts/0
13:28:20
#ls

13:28:20
#ls

/dev/pts/1
13:28:21
#ls

/dev/pts/0
13:28:21
#ls

/dev/pts/1
13:28:21
#ls

/dev/pts/0
13:28:21
#ls

/dev/pts/1
13:28:25
#ls

/dev/pts/0
13:28:25
#ls

13:33:14
#nano /etc/asterisk/extensions.conf
/dev/pts/1
13:33:14
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-1821.25381.20231	2013-04-09 14:33:16.000000000 +0300
+++ /etc/asterisk/extensions.conf	2013-04-09 14:33:42.000000000 +0300
@@ -28,7 +28,7 @@
 ;exten=>_2XXX,1,Dial(SIP/minsk/${EXTEN})
 
 [local]
-exten =>_14XX,1,Dial(SIP/${EXTEN})
+;exten =>_14XX,1,Dial(SIP/${EXTEN})
 
 [national]
 exten=>_13XX,1,Dial(SIP/gweru/${EXTEN})
13:33:42
#[default]
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
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux4 (pid = 1311)
...
    -- Executing [1402@gr_country:2] Set("SIP/1401-000000a3", "CALLFILENAME=1402-1401-1365507239") in new stack
    -- Executing [1402@gr_country:3] Monitor("SIP/1401-000000a3", "wav,1402-1401-1365507239,m") in new stack
    -- Executing [1402@gr_country:4] Dial("SIP/1401-000000a3", "SIP/1402") in new stack
  == Using SIP RTP CoS mark 5
    -- Called 1402
    -- SIP/1402-000000a4 is ringing
    -- SIP/1402-000000a4 answered SIP/1401-000000a3
  == Spawn extension (gr_country, 1402, 4) exited non-zero on 'SIP/1401-000000a3'
linux4*CLI> quit
Executing last minute cleanups
/dev/pts/0
13:33:42
#[default]
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
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux4 (pid = 1311)
...
    -- Executing [1402@gr_country:2] Set("SIP/1401-000000a3", "CALLFILENAME=1402-1401-1365507239") in new stack
    -- Executing [1402@gr_country:3] Monitor("SIP/1401-000000a3", "wav,1402-1401-1365507239,m") in new stack
    -- Executing [1402@gr_country:4] Dial("SIP/1401-000000a3", "SIP/1402") in new stack
  == Using SIP RTP CoS mark 5
    -- Called 1402
    -- SIP/1402-000000a4 is ringing
    -- SIP/1402-000000a4 answered SIP/1401-000000a3
  == Spawn extension (gr_country, 1402, 4) exited non-zero on 'SIP/1401-000000a3'
linux4*CLI> quit
Executing last minute cleanups
/dev/pts/1
13:34:18
#ls /var/spool/asterisk/
dictate  meetme  monitor  outgoing  system  tmp  voicemail
/dev/pts/0
13:34:18
#ls /var/spool/asterisk/
dictate  meetme  monitor  outgoing  system  tmp  voicemail
/dev/pts/1
13:34:31
#ls /var/spool/asterisk/monitor/
1402-1401-1365507239.wav
/dev/pts/0
13:34:31
#ls /var/spool/asterisk/monitor/
1402-1401-1365507239.wav
/dev/pts/1
13:37:26
#nano /etc/asterisk/features.conf
--- /tmp/l3-saved-1821.30979.23872	2013-04-09 14:37:50.000000000 +0300
+++ /etc/asterisk/features.conf	2013-04-09 14:38:34.000000000 +0300
@@ -60,7 +60,7 @@
 [featuremap]
 ;blindxfer => #1		; Blind transfer  (default is #) -- Make sure to set the T and/or t option in the Dial() or Queue() app call!
 ;disconnect => *0		; Disconnect  (default is *) -- Make sure to set the H and/or h option in the Dial() or Queue() app call!
-;automon => *1			; One Touch Record a.k.a. Touch Monitor -- Make sure to set the W and/or w option in the Dial() or Queue() app call!
+automon => *1			; One Touch Record a.k.a. Touch Monitor -- Make sure to set the W and/or w option in the Dial() or Queue() app call!
 ;atxfer => *2			; Attended transfer  -- Make sure to set the T and/or t option in the Dial() or Queue()  app call!
 ;parkcall => #72        ; Park call (one step parking)  -- Make sure to set the K and/or k option in the Dial() app call!
 ;automixmon => *3		; One Touch Record a.k.a. Touch MixMonitor -- Make sure to set the X and/or x option in the Dial() or Queue() app call!
/dev/pts/0
13:37:26
#nano /etc/asterisk/features.conf
/dev/pts/1
13:38:34
# ; not be attempted and the transfer will just fail.

/dev/pts/0
13:38:34
# ; not be attempted and the transfer will just fail.

/dev/pts/1
13:41:26
#nano /etc/asterisk/features.conf
/dev/pts/0
13:41:26
#nano /etc/asterisk/features.conf
/dev/pts/1
13:41:49
#ls /var/spool/asterisk/
dictate/   meetme/    monitor/   outgoing/  system/    tmp/       voicemail/
/dev/pts/0
13:41:49
#ls /var/spool/asterisk/
dictate/   meetme/    monitor/   outgoing/  system/    tmp/       voicemail/
/dev/pts/1
13:41:49