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

Содержание

Журнал

Пятница (06/24/11)

/dev/pts/1
08:17:01
#ls /etc/asterisk/mobile
ls: невозможно получить доступ к /etc/asterisk/mobile: Нет такого файла или каталога
/dev/pts/0
08:17:24
#ls /etc/asterisk
adsi.conf                codecs.conf             iaxprov.conf            res_ldap.conf
adtranvofr.conf          console.conf            indications.conf        res_odbc.conf
agents.conf              dbsep.conf              jabber.conf             res_pgsql.conf
ais.conf                 dnsmgr.conf             jingle.conf             res_snmp.conf
alarmreceiver.conf       dsp.conf                logger.conf             rpt.conf
alsa.conf                dundi.conf              manager.conf            rtp.conf
amd.conf                 enum.conf               manager.d               say.conf
asterisk.adsi            extconfig.conf          meetme.conf             sip.conf
asterisk.conf            extensions.ael          mgcp.conf               sip.conf.SAVE
cdr_adaptive_odbc.conf   extensions.conf         minivm.conf             sip_notify.conf
cdr.conf                 extensions.conf.SAVE    misdn.conf              skinny.conf
cdr_custom.conf          extensions.lua          modules.conf            sla.conf
cdr_manager.conf         extensions_minivm.conf  musiconhold.conf        smdi.conf
cdr_odbc.conf            features.conf           muted.conf              telcordia-1.adsi
cdr_pgsql.conf           festival.conf           osp.conf                udptl.conf
cdr_sqlite3_custom.conf  followme.conf           oss.conf                unistim.conf
cdr_tds.conf             func_odbc.conf          phone.conf              usbradio.conf
chan_dahdi.conf          gtalk.conf              phoneprov.conf          users.conf
cli_aliases.conf         h323.conf               queuerules.conf         voicemail.conf
cli.conf                 http.conf               queues.conf             vpb.conf
cli_permissions.conf     iax.conf                res_config_sqlite.conf
/dev/pts/1
08:17:24
#ls /etc/asterisk
adsi.conf                codecs.conf             iaxprov.conf            res_ldap.conf
adtranvofr.conf          console.conf            indications.conf        res_odbc.conf
agents.conf              dbsep.conf              jabber.conf             res_pgsql.conf
ais.conf                 dnsmgr.conf             jingle.conf             res_snmp.conf
alarmreceiver.conf       dsp.conf                logger.conf             rpt.conf
alsa.conf                dundi.conf              manager.conf            rtp.conf
amd.conf                 enum.conf               manager.d               say.conf
asterisk.adsi            extconfig.conf          meetme.conf             sip.conf
asterisk.conf            extensions.ael          mgcp.conf               sip.conf.SAVE
cdr_adaptive_odbc.conf   extensions.conf         minivm.conf             sip_notify.conf
cdr.conf                 extensions.conf.SAVE    misdn.conf              skinny.conf
cdr_custom.conf          extensions.lua          modules.conf            sla.conf
cdr_manager.conf         extensions_minivm.conf  musiconhold.conf        smdi.conf
cdr_odbc.conf            features.conf           muted.conf              telcordia-1.adsi
cdr_pgsql.conf           festival.conf           osp.conf                udptl.conf
cdr_sqlite3_custom.conf  followme.conf           oss.conf                unistim.conf
cdr_tds.conf             func_odbc.conf          phone.conf              usbradio.conf
chan_dahdi.conf          gtalk.conf              phoneprov.conf          users.conf
cli_aliases.conf         h323.conf               queuerules.conf         voicemail.conf
cli.conf                 http.conf               queues.conf             vpb.conf
cli_permissions.conf     iax.conf                res_config_sqlite.conf
/dev/pts/0
08:17:37
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux7 (pid = 5269)
...
/jid/2303                                         : user2@kiev.unix.nt
/jid/2304                                         : user1@kiev.unix.nt
/mobile/2320                                      : 380976335163
/mobile/2321                                      : 380979691759
9 results found.
    -- Registered SIP '2304' at 192.168.107.2 port 18628
[Jun 24 09:19:14] NOTICE[5293]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2304
[Jun 24 09:20:14] NOTICE[5293]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2304
linux7*CLI> exit
Executing last minute cleanups
/dev/pts/1
08:17:37
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux7 (pid = 5269)
...
/jid/2303                                         : user2@kiev.unix.nt
/jid/2304                                         : user1@kiev.unix.nt
/mobile/2320                                      : 380976335163
/mobile/2321                                      : 380979691759
9 results found.
    -- Registered SIP '2304' at 192.168.107.2 port 18628
[Jun 24 09:19:14] NOTICE[5293]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2304
[Jun 24 09:20:14] NOTICE[5293]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2304
linux7*CLI> exit
Executing last minute cleanups
/dev/pts/0
08:23:20
#asterisk -rx 'dialplan reload'
Dialplan reloaded.
/dev/pts/1
08:23:20
#asterisk -rx 'dialplan reload'
Dialplan reloaded.
/dev/pts/0
08:23:33
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux7 (pid = 5269)
...
  == Using SIP RTP CoS mark 5
[Jun 24 09:23:48] WARNING[8053]: chan_sip.c:5467 create_addr: No such host: external
[Jun 24 09:23:48] WARNING[8053]: app_dial.c:1747 dial_exec_full: Unable to create channel of type 'SIP' (cause 20 - Unknown)
  == Everyone is busy/congested at this time (1:0/0/1)
    -- Executing [2321@gr3:2] Monitor("SIP/2303-00000022", "wav,,m") in new stack
    -- Executing [2321@gr3:3] SetMusicOnHold("SIP/2303-00000022", "") in new stack
[Jun 24 09:23:48] WARNING[8053]: res_musiconhold.c:750 set_moh_exec: SetMusicOnHold requires an argument (class)
  == Spawn extension (gr3, 2321, 3) exited non-zero on 'SIP/2303-00000022'
linux7*CLI> exit
Executing last minute cleanups
/dev/pts/1
08:23:33
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux7 (pid = 5269)
...
  == Using SIP RTP CoS mark 5
[Jun 24 09:23:48] WARNING[8053]: chan_sip.c:5467 create_addr: No such host: external
[Jun 24 09:23:48] WARNING[8053]: app_dial.c:1747 dial_exec_full: Unable to create channel of type 'SIP' (cause 20 - Unknown)
  == Everyone is busy/congested at this time (1:0/0/1)
    -- Executing [2321@gr3:2] Monitor("SIP/2303-00000022", "wav,,m") in new stack
    -- Executing [2321@gr3:3] SetMusicOnHold("SIP/2303-00000022", "") in new stack
[Jun 24 09:23:48] WARNING[8053]: res_musiconhold.c:750 set_moh_exec: SetMusicOnHold requires an argument (class)
  == Spawn extension (gr3, 2321, 3) exited non-zero on 'SIP/2303-00000022'
linux7*CLI> exit
Executing last minute cleanups
/dev/pts/0
08:29:13
#vim /etc/asterisk/extensions.conf
/dev/pts/1
08:29:13
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2126.16108.14914	2011-06-24 09:29:15.000000000 +0300
+++ /etc/asterisk/extensions.conf	2011-06-24 09:30:21.000000000 +0300
@@ -119,7 +119,7 @@
 
 [local]
 exten => 2310,1,Dial(SIP/2303&SIP/2304.10)
-exten => 2321,1,Dial(SIP/msk/${DB(mobile/{EXTEN})),20)
+exten => 2321,1,Dial(SIP/msk/${DB(mobile/{EXTEN}),20)
 exten => _23XX,1,Set(MON_FILENAME=record-${STRFTIME(${EPOCH},,%Y-%m-%d-%H-%M-%S)}-${EXTEN}-${CALLERID(num)})
 exten => _23XX,n,Monitor(wav,${MON_FILENAME},m)
 ;exten => _23XX,n,System(/usr/local/bin/asterisk-jabber-logger Vam zvonyat s ${CALLER(num)})
/dev/pts/0
08:30:25
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux7 (pid = 5269)
...
  == Using SIP RTP CoS mark 5
[Jun 24 09:31:27] WARNING[8169]: pbx.c:3473 pbx_substitute_variables_helper_full: Error in extension logic (missing '}')
    -- Executing [2321@gr3:1] Dial("SIP/2303-00000035", "SIP/msk/") in new stack
  == Using SIP RTP CoS mark 5
    -- Called msk/
    -- SIP/msk-00000036 answered SIP/2303-00000035
    -- Packet2Packet bridging SIP/2303-00000035 and SIP/msk-00000036
  == Spawn extension (gr3, 2321, 1) exited non-zero on 'SIP/2303-00000035'
linux7*CLI> exit
Executing last minute cleanups
/dev/pts/1
08:30:25
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux7 (pid = 5269)
...
  == Using SIP RTP CoS mark 5
[Jun 24 09:31:27] WARNING[8169]: pbx.c:3473 pbx_substitute_variables_helper_full: Error in extension logic (missing '}')
    -- Executing [2321@gr3:1] Dial("SIP/2303-00000035", "SIP/msk/") in new stack
  == Using SIP RTP CoS mark 5
    -- Called msk/
    -- SIP/msk-00000036 answered SIP/2303-00000035
    -- Packet2Packet bridging SIP/2303-00000035 and SIP/msk-00000036
  == Spawn extension (gr3, 2321, 1) exited non-zero on 'SIP/2303-00000035'
linux7*CLI> exit
Executing last minute cleanups
/dev/pts/0
08:37:22
#vim /etc/asterisk/extensions.conf
/dev/pts/1
08:37:22
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2126.20244.24361	2011-06-24 09:37:24.000000000 +0300
+++ /etc/asterisk/extensions.conf	2011-06-24 09:38:07.000000000 +0300
@@ -119,7 +119,7 @@
 
 [local]
 exten => 2310,1,Dial(SIP/2303&SIP/2304.10)
-exten => 2321,1,Dial(SIP/msk/${DB(mobile/{EXTEN})},20)
+exten => 2321,1,Dial(SIP/msk/${DB(mobile/2321)},20)
 exten => _23XX,1,Set(MON_FILENAME=record-${STRFTIME(${EPOCH},,%Y-%m-%d-%H-%M-%S)}-${EXTEN}-${CALLERID(num)})
 exten => _23XX,n,Monitor(wav,${MON_FILENAME},m)
 ;exten => _23XX,n,System(/usr/local/bin/asterisk-jabber-logger Vam zvonyat s ${CALLER(num)})
/dev/pts/0
08:44:18
#ls /var/tmp/asterisk/
02 - theme of SSS.mp3  record10.gsm  record1.gsm  record4.gsm  record7.gsm  reel_around_the_sun.gsm
1                      record11.gsm  record2.gsm  record5.gsm  record8.gsm  theme_of_SSS.gsm
record06.gsm           record11.txt  record3.gsm  record6.gsm  record9.gsm  wav
/dev/pts/1
08:44:18
#ls /var/tmp/asterisk/
02 - theme of SSS.mp3  record10.gsm  record1.gsm  record4.gsm  record7.gsm  reel_around_the_sun.gsm
1                      record11.gsm  record2.gsm  record5.gsm  record8.gsm  theme_of_SSS.gsm
record06.gsm           record11.txt  record3.gsm  record6.gsm  record9.gsm  wav
/dev/pts/0
08:44:53
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux7 (pid = 5269)
...
/SIP/Registry/msk                                 : 192.168.101.1:5060:120:kiev:sip:kiev@192.168.101.1
/dundi/secret                                     : EBVBXwcUX1GsdalhLu8TMg==;WQWSBw5ZbD+dtn5oFvXUAA==
/dundi/secretexpiry                               : 1308898236
/jid/2303                                         : user2@kiev.unix.nt
/jid/2304                                         : user1@kiev.unix.nt
/mobile/2320                                      : 380976335163
/mobile/2321                                      : 380979691759
10 results found.
linux7*CLI> exit
Executing last minute cleanups
/dev/pts/1
08:44:53
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux7 (pid = 5269)
...
/SIP/Registry/msk                                 : 192.168.101.1:5060:120:kiev:sip:kiev@192.168.101.1
/dundi/secret                                     : EBVBXwcUX1GsdalhLu8TMg==;WQWSBw5ZbD+dtn5oFvXUAA==
/dundi/secretexpiry                               : 1308898236
/jid/2303                                         : user2@kiev.unix.nt
/jid/2304                                         : user1@kiev.unix.nt
/mobile/2320                                      : 380976335163
/mobile/2321                                      : 380979691759
10 results found.
linux7*CLI> exit
Executing last minute cleanups
прошло 15 минут
/dev/pts/0
09:00:32
#vim /tmp/call
/dev/pts/1
09:00:32
#vim /tmp/call
--- /dev/null	2011-06-20 11:55:56.325714881 +0300
+++ /tmp/call	2011-06-24 10:01:47.000000000 +0300
@@ -0,0 +1,3 @@
+channel:SIP/1101
+Extension:8500
+Context:internal
/dev/pts/0
09:01:47
#mv /tmp/call /tmp/call/call
mv: обращение к «/tmp/call/call»: Это не каталог
/dev/pts/1
09:01:47
#mv /tmp/call /tmp/call/call
mv: обращение к «/tmp/call/call»: Это не каталог
/dev/pts/0
09:02:41
#mv /tmp/call /tmp/call.call

/dev/pts/1
09:02:41
#mv /tmp/call /tmp/call.call

/dev/pts/0
09:02:49
#chown asterisk:asterisk /tmp/call.call

/dev/pts/1
09:02:49
#chown asterisk:asterisk /tmp/call.call

/dev/pts/0
09:03:06
#cat /tmp/call.call
channel:SIP/1101
Extension:8500
Context:internal
/dev/pts/1
09:03:06
#cat /tmp/call.call
channel:SIP/1101
Extension:8500
Context:internal
/dev/pts/0
09:03:51
#vim /tmp/call.call
/dev/pts/1
09:03:51
#vim /tmp/call.call
--- /tmp/l3-saved-2126.22065.30680	2011-06-24 10:04:00.000000000 +0300
+++ /tmp/call.call	2011-06-24 10:04:52.000000000 +0300
@@ -1,3 +1,3 @@
-channel:SIP/1101
+channel:SIP/2304
 Extension:8500
 Context:internal
/dev/pts/0
09:04:52
#cp -p /tmp/call.call /var/spool/asterisk/outgoing/

/dev/pts/1
09:04:52
#cp -p /tmp/call.call /var/spool/asterisk/outgoing/

/dev/pts/0
09:05:44
#vim /tmp/call.call
/dev/pts/1
09:05:44
#vim /tmp/call.call
--- /tmp/l3-saved-2126.13579.17027	2011-06-24 10:07:06.000000000 +0300
+++ /tmp/call.call	2011-06-24 10:07:25.000000000 +0300
@@ -1,3 +1,3 @@
-channel:SIP/2304
+channel:SIP/380676335163
 Extension:8500
 Context:internal
/dev/pts/0
09:07:31
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux7 (pid = 5269)
Verbosity is at least 3
linux7*CLI> exit
Executing last minute cleanups
/dev/pts/1
09:07:31
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux7 (pid = 5269)
Verbosity is at least 3
linux7*CLI> exit
Executing last minute cleanups
09:08:09
#cp -p /tmp/call.call /var/spool/asterisk/outgoing/

/dev/pts/0
09:08:09
#cp -p /tmp/call.call /var/spool/asterisk/outgoing/

09:09:20
#cp -p /tmp/call.call /var/spool/asterisk/outgoing/

/dev/pts/1
09:09:20
#cp -p /tmp/call.call /var/spool/asterisk/outgoing/

/dev/pts/5
09:09:48
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux7 (pid = 5269)
...
[Jun 24 10:22:57] NOTICE[5308]: pbx_spool.c:163 apply_outgoing: Channel should be in form Tech/Dest at line 4 of /var/spool/asterisk/outgoing/call.call
[Jun 24 10:22:57] NOTICE[5308]: pbx_spool.c:237 apply_outgoing: Syntax error at line 7 of /var/spool/asterisk/outgoing/call.call
[Jun 24 10:22:57] WARNING[5308]: pbx_spool.c:234 apply_outgoing: Unknown keyword ' chown asterisk' at line 8 of /var/spool/asterisk/outgoing/call.call
[Jun 24 10:22:57] NOTICE[5308]: pbx_spool.c:237 apply_outgoing: Syntax error at line 9 of /var/spool/asterisk/outgoing/call.call
[Jun 24 10:22:57] NOTICE[5308]: pbx_spool.c:237 apply_outgoing: Syntax error at line 10 of /var/spool/asterisk/outgoing/call.call
[Jun 24 10:22:57] WARNING[5308]: pbx_spool.c:242 apply_outgoing: At least one of app or extension must be specified, along with tech and dest in file /var/spool/asterisk/outgoing/call.call
[Jun 24 10:22:57] WARNING[5308]: pbx_spool.c:400 scan_service: Invalid file contents in /var/spool/asterisk/outgoing/call.call, deleting
[Jun 24 10:22:57] WARNING[5308]: pbx_spool.c:492 scan_thread: Failed to scan service '/var/spool/asterisk/outgoing/call.call'
linux7*CLI> exit
Executing last minute cleanups
/dev/pts/4
09:09:48
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux7 (pid = 5269)
...
[Jun 24 10:22:57] NOTICE[5308]: pbx_spool.c:163 apply_outgoing: Channel should be in form Tech/Dest at line 4 of /var/spool/asterisk/outgoing/call.call
[Jun 24 10:22:57] NOTICE[5308]: pbx_spool.c:237 apply_outgoing: Syntax error at line 7 of /var/spool/asterisk/outgoing/call.call
[Jun 24 10:22:57] WARNING[5308]: pbx_spool.c:234 apply_outgoing: Unknown keyword ' chown asterisk' at line 8 of /var/spool/asterisk/outgoing/call.call
[Jun 24 10:22:57] NOTICE[5308]: pbx_spool.c:237 apply_outgoing: Syntax error at line 9 of /var/spool/asterisk/outgoing/call.call
[Jun 24 10:22:57] NOTICE[5308]: pbx_spool.c:237 apply_outgoing: Syntax error at line 10 of /var/spool/asterisk/outgoing/call.call
[Jun 24 10:22:57] WARNING[5308]: pbx_spool.c:242 apply_outgoing: At least one of app or extension must be specified, along with tech and dest in file /var/spool/asterisk/outgoing/call.call
[Jun 24 10:22:57] WARNING[5308]: pbx_spool.c:400 scan_service: Invalid file contents in /var/spool/asterisk/outgoing/call.call, deleting
[Jun 24 10:22:57] WARNING[5308]: pbx_spool.c:492 scan_thread: Failed to scan service '/var/spool/asterisk/outgoing/call.call'
linux7*CLI> exit
Executing last minute cleanups
/dev/pts/0
09:09:59
#cp -p /tmp/call.call /var/spool/asterisk/outgoing/

/dev/pts/1
09:09:59
#cp -p /tmp/call.call /var/spool/asterisk/outgoing/

/dev/pts/0
09:16:30
#vim /etc/asterisk/extensions.conf
/dev/pts/1
09:16:30
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2126.12934.8059	2011-06-24 10:16:31.000000000 +0300
+++ /etc/asterisk/extensions.conf	2011-06-24 10:17:06.000000000 +0300
@@ -125,7 +125,7 @@
 exten => _23XX,1,Set(MON_FILENAME=record-${STRFTIME(${EPOCH},,%Y-%m-%d-%H-%M-%S)}-${EXTEN}-${CALLERID(num)})
 exten => _23XX,n,Monitor(wav,${MON_FILENAME},m)
 ;exten => _23XX,n,System(/usr/local/bin/asterisk-jabber-logger Vam zvonyat s ${CALLER(num)})
-exten => _23XX,n,SetMusicOnHold(${DB(moh/${EXTEN})})
+;exten => _23XX,n,SetMusicOnHold(${DB(moh/${EXTEN})})
 exten => _23XX,n,Dial(SIP/${EXTEN},10)
 exten => _23XX,n,GotoIf($["${DIALSTATUS}" = "BUSY"]?voicemail)
 exten => _23XX,n,GotoIf($["${DIALSTATUS}" = "NOANSWER"]?voicemail)
прошло 12 минут
/dev/pts/0
09:29:08
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux7 (pid = 5269)
...
  == Using SIP RTP CoS mark 5
    -- Called lvov/2402
    -- SIP/lvov-0000008b answered SIP/2303-0000008a
    -- Packet2Packet bridging SIP/2303-0000008a and SIP/lvov-0000008b
  == Using SIP RTP CoS mark 5
[Jun 24 10:30:20] WARNING[5293]: chan_sip.c:12856 check_auth: username mismatch, have <2303>, digest has <lvov>
[Jun 24 10:30:20] NOTICE[5293]: chan_sip.c:20200 handle_request_invite: Failed to authenticate device "VOIP Phone" <sip:2303@192.168.108.1>;tag=as56dc56eb
  == Spawn extension (gr3, 2402, 1) exited non-zero on 'SIP/2303-0000008a'
linux7*CLI> exit
Executing last minute cleanups
/dev/pts/1
09:29:08
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux7 (pid = 5269)
...
  == Using SIP RTP CoS mark 5
    -- Called lvov/2402
    -- SIP/lvov-0000008b answered SIP/2303-0000008a
    -- Packet2Packet bridging SIP/2303-0000008a and SIP/lvov-0000008b
  == Using SIP RTP CoS mark 5
[Jun 24 10:30:20] WARNING[5293]: chan_sip.c:12856 check_auth: username mismatch, have <2303>, digest has <lvov>
[Jun 24 10:30:20] NOTICE[5293]: chan_sip.c:20200 handle_request_invite: Failed to authenticate device "VOIP Phone" <sip:2303@192.168.108.1>;tag=as56dc56eb
  == Spawn extension (gr3, 2402, 1) exited non-zero on 'SIP/2303-0000008a'
linux7*CLI> exit
Executing last minute cleanups
/dev/pts/0
09:30:27
#vim /etc/asterisk/sip.conf
/dev/pts/1
09:30:27
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-2126.25701.17184	2011-06-24 10:30:29.000000000 +0300
+++ /etc/asterisk/sip.conf	2011-06-24 10:31:54.000000000 +0300
@@ -37,6 +37,7 @@
 callerid="Softphone <2304>"
 context=gr1
 language=ru
+callgroup=100
 
 [lvov]
 type=friend
/dev/pts/0
09:32:13
#vim /etc/asterisk/sip.conf
/dev/pts/1
09:32:13
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-2126.17728.17683	2011-06-24 10:32:15.000000000 +0300
+++ /etc/asterisk/sip.conf	2011-06-24 10:32:28.000000000 +0300
@@ -26,8 +26,8 @@
 context=gr3
 mailbox=2301@default
 language=ru
-callgroup=100
-pickupgroup=100
+callgroup=20
+pickupgroup=20
 
 [2304]
 type=friend
@@ -37,7 +37,7 @@
 callerid="Softphone <2304>"
 context=gr1
 language=ru
-callgroup=100
+callgroup=20
 
 [lvov]
 type=friend
/dev/pts/0
09:32:57
#vim /etc/asterisk/sip.conf
/dev/pts/1
09:32:57
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-2126.3789.21158	2011-06-24 10:32:58.000000000 +0300
+++ /etc/asterisk/sip.conf	2011-06-24 10:33:10.000000000 +0300
@@ -38,6 +38,7 @@
 context=gr1
 language=ru
 callgroup=20
+pickupgroup=20
 
 [lvov]
 type=friend
прошло 46 минут
/dev/pts/0
10:18:57
#vim /etc/asterisk/queues.conf
/dev/pts/1
10:18:57
#vim /etc/asterisk/queues.conf
--- /tmp/l3-saved-2126.28305.18302	2011-06-24 11:19:03.000000000 +0300
+++ /etc/asterisk/queues.conf	2011-06-24 11:21:37.000000000 +0300
@@ -498,3 +498,6 @@
 ;member => Agent/:1,1		; Any agent in group 1, wait for first
                                 ; available, but consider with penalty
 
+[queue1]
+member => SIP/2303
+member => SIP/2304
10:25:45
#asterisk -rx 'dialplan reload'
Dialplan reloaded.
/dev/pts/0
10:25:45
#asterisk -rx 'dialplan reload'
Dialplan reloaded.
10:28:30
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux7 (pid = 5269)
...
    -- Executing [2303@gr1:3] Dial("SIP/2304-000000b3", "SIP/2303,10") in new stack
  == Using SIP RTP CoS mark 5
    -- Called 2303
    -- SIP/2303-000000b4 is ringing
    -- SIP/2303-000000b4 answered SIP/2304-000000b3
    -- Started music on hold, class 'default', on SIP/2304-000000b3
    -- Stopped music on hold on SIP/2304-000000b3
  == Spawn extension (gr1, 2303, 3) exited non-zero on 'SIP/2304-000000b3'
linux7*CLI> exit
Executing last minute cleanups
/dev/pts/1
10:28:30
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux7 (pid = 5269)
...
    -- Executing [2303@gr1:3] Dial("SIP/2304-000000b3", "SIP/2303,10") in new stack
  == Using SIP RTP CoS mark 5
    -- Called 2303
    -- SIP/2303-000000b4 is ringing
    -- SIP/2303-000000b4 answered SIP/2304-000000b3
    -- Started music on hold, class 'default', on SIP/2304-000000b3
    -- Stopped music on hold on SIP/2304-000000b3
  == Spawn extension (gr1, 2303, 3) exited non-zero on 'SIP/2304-000000b3'
linux7*CLI> exit
Executing last minute cleanups
прошло 11 минут
/dev/pts/0
10:39:54
#vim /etc/asterisk/a
/dev/pts/1
10:39:54
#vim /etc/asterisk/a
/dev/pts/0
10:39:54
#vim /etc/asterisk/agents.conf
/dev/pts/1
10:39:54
#vim /etc/asterisk/agents.conf
--- /tmp/l3-saved-2126.20365.21069	2011-06-24 11:40:07.000000000 +0300
+++ /etc/asterisk/agents.conf	2011-06-24 11:40:24.000000000 +0300
@@ -109,5 +109,5 @@
 ;
 ; agent => agentid,agentpassword,name
 ;
-;agent => 1001,4321,Mark Spencer
-;agent => 1002,4321,Will Meadows
+agent => 1001,4321,Mark Spencer
+agent => 1002,4321,Will Meadows
10:43:46
#vim /etc/asterisk/agents.conf
/dev/pts/0
10:43:46
#vim /etc/asterisk/agents.conf
10:45:48
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
/dev/pts/1
10:45:48
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
прошло 11 минут
/dev/pts/0
10:57:36
#apt-get install dahdi-source
Чтение списков пакетов... Готово
Построение дерева зависимостей
Чтение информации о состоянии... Готово
Следующие пакеты устанавливались автоматически и больше не требуются:
  libmysqlclient16 mysql-common
Для их удаления используйте 'apt-get autoremove'.
НОВЫЕ пакеты, которые будут установлены:
  dahdi-source
обновлено 0, установлено 1 новых пакетов, для удаления отмечено 0 пакетов, и 4 пакетов не обновлено.
Необходимо скачать 912 kБ архивов.
После данной операции, объём занятого дискового пространства возрастёт на 1.044 kB.
Получено:1 http://10.0.35.1/debian/ squeeze/main dahdi-source all 1:2.3.0.1+dfsg-2 [912 kB]
Получено 912 kБ за 0с (10,3 MБ/c)
Выбор ранее не выбранного пакета dahdi-source.
(Чтение базы данных ... на данный момент установлено 135212 файлов и каталогов.)
Распаковывается пакет dahdi-source (из файла .../dahdi-source_1%3a2.3.0.1+dfsg-2_all.deb)...
Настраивается пакет dahdi-source (1:2.3.0.1+dfsg-2) ...
/dev/pts/1
10:57:36
#apt-get install dahdi-source
Чтение списков пакетов... Готово
Построение дерева зависимостей
Чтение информации о состоянии... Готово
Следующие пакеты устанавливались автоматически и больше не требуются:
  libmysqlclient16 mysql-common
Для их удаления используйте 'apt-get autoremove'.
НОВЫЕ пакеты, которые будут установлены:
  dahdi-source
обновлено 0, установлено 1 новых пакетов, для удаления отмечено 0 пакетов, и 4 пакетов не обновлено.
Необходимо скачать 912 kБ архивов.
После данной операции, объём занятого дискового пространства возрастёт на 1.044 kB.
Получено:1 http://10.0.35.1/debian/ squeeze/main dahdi-source all 1:2.3.0.1+dfsg-2 [912 kB]
Получено 912 kБ за 0с (10,3 MБ/c)
Выбор ранее не выбранного пакета dahdi-source.
(Чтение базы данных ... на данный момент установлено 135212 файлов и каталогов.)
Распаковывается пакет dahdi-source (из файла .../dahdi-source_1%3a2.3.0.1+dfsg-2_all.deb)...
Настраивается пакет dahdi-source (1:2.3.0.1+dfsg-2) ...
/dev/pts/0
10:58:01
#m-a a-i dahdi
Получено:5 http://10.0.35.1/debian/ squeeze/main linux-kbuild-2.6.32 amd64 2.6.32-1 [238 kB]
Получено:6 http://security.debian.org/ squeeze/updates/main linux-headers-2.6.32-5-amd64 amd64 2.6.32-34squeeze1 [526 kB]
Получено 10,7 MБ за 26с (400 kБ/c)
Выбор ранее не выбранного пакета gcc-4.3-base.
(Чтение базы данных ... на данный момент установлено 135223 файла и каталога.)
Распаковывается пакет gcc-4.3-base (из файла .../gcc-4.3-base_4.3.5-4_amd64.deb)...
Выбор ранее не выбранного пакета cpp-4.3.
Распаковывается пакет cpp-4.3 (из файла .../cpp-4.3_4.3.5-4_amd64.deb)...
Выбор ранее не выбранного пакета gcc-4.3.
Распаковывается пакет gcc-4.3 (из файла .../gcc-4.3_4.3.5-4_amd64.deb)...
...
            │                                                                         │
            │                                100%                                     │
            │                                                                         │
            └─────────────────────────────────────────────────────────────────────────┘
Завершено с /usr/src/dahdi-modules-2.6.32-5-amd64_2.3.0.1+dfsg-2+2.6.32-34squeeze1_amd64.deb .
dpkg -Ei /usr/src/dahdi-modules-2.6.32-5-amd64_2.3.0.1+dfsg-2+2.6.32-34squeeze1_amd64.deb
Выбор ранее не выбранного пакета dahdi-modules-2.6.32-5-amd64.
(Чтение базы данных ... на данный момент установлено 142814 файлов и каталогов.)
Распаковывается пакет dahdi-modules-2.6.32-5-amd64 (из файла .../dahdi-modules-2.6.32-5-amd64_2.3.0.1+dfsg-2+2.6.32-34squeeze1_amd64.deb)...
Настраивается пакет dahdi-modules-2.6.32-5-amd64 (1:2.3.0.1+dfsg-2+2.6.32-34squeeze1) ...
/dev/pts/1
10:58:01
#m-a a-i dahdi
  cpp-4.3 gcc-4.3 gcc-4.3-base linux-headers-2.6.32-5-common linux-kbuild-2.6.32
Предлагаемые пакеты:
  gcc-4.3-locales gcc-4.3-multilib libmudflap0-4.3-dev gcc-4.3-doc libgcc1-dbg libgomp1-dbg
  libmudflap0-dbg
НОВЫЕ пакеты, которые будут установлены:
  cpp-4.3 gcc-4.3 gcc-4.3-base linux-headers-2.6.32-5-amd64 linux-headers-2.6.32-5-common
  linux-kbuild-2.6.32
обновлено 0, установлено 6 новых пакетов, для удаления отмечено 0 пакетов, и 4 пакетов не обновлено.
Необходимо скачать 10,7 MБ архивов.
После данной операции, объём занятого дискового пространства возрастёт на 41,5 MB.
...
            │                                                                         │
            │                                100%                                     │
            │                                                                         │
            └─────────────────────────────────────────────────────────────────────────┘
Завершено с /usr/src/dahdi-modules-2.6.32-5-amd64_2.3.0.1+dfsg-2+2.6.32-34squeeze1_amd64.deb .
dpkg -Ei /usr/src/dahdi-modules-2.6.32-5-amd64_2.3.0.1+dfsg-2+2.6.32-34squeeze1_amd64.deb
Выбор ранее не выбранного пакета dahdi-modules-2.6.32-5-amd64.
(Чтение базы данных ... на данный момент установлено 142814 файлов и каталогов.)
Распаковывается пакет dahdi-modules-2.6.32-5-amd64 (из файла .../dahdi-modules-2.6.32-5-amd64_2.3.0.1+dfsg-2+2.6.32-34squeeze1_amd64.deb)...
Настраивается пакет dahdi-modules-2.6.32-5-amd64 (1:2.3.0.1+dfsg-2+2.6.32-34squeeze1) ...
/dev/pts/0
11:01:30
#depmod -a

/dev/pts/1
11:01:30
#depmod -a

/dev/pts/0
11:02:21
#modprobe dahdi

/dev/pts/1
11:02:21
#modprobe dahdi

/dev/pts/0
11:03:22
#lsmod |head
Module                  Size  Used by
dahdi                 188201  0
crc_ccitt               1323  1 dahdi
snd_pcm_oss            32591  0
snd_mixer_oss          12606  1 snd_pcm_oss
acpi_cpufreq            5571  0
cpufreq_stats           2659  0
cpufreq_conservative     5162  0
cpufreq_powersave        902  0
cpufreq_userspace       1992  0
/dev/pts/1
11:03:22
#lsmod |head
Module                  Size  Used by
dahdi                 188201  0
crc_ccitt               1323  1 dahdi
snd_pcm_oss            32591  0
snd_mixer_oss          12606  1 snd_pcm_oss
acpi_cpufreq            5571  0
cpufreq_stats           2659  0
cpufreq_conservative     5162  0
cpufreq_powersave        902  0
cpufreq_userspace       1992  0
/dev/pts/0
11:05:37
#vim /etc/asterisk/meetme.conf
/dev/pts/1
11:05:37
#vim /etc/asterisk/meetme.conf
--- /tmp/l3-saved-2126.20951.6585	2011-06-24 12:05:44.000000000 +0300
+++ /etc/asterisk/meetme.conf	2011-06-24 12:06:23.000000000 +0300
@@ -43,3 +43,4 @@
 ;
 ;conf => 1234 
 ;conf => 2345,9938
+conf =>5555,5555
прошло 20 минут
/dev/pts/0
11:26:00
#[local]
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux7 (pid = 14319)
...
Dynamic Feature           Default Current
---------------           ------- -------
(none)
Call parking (Parking lot: default)
------------
Parking extension     :      700
Parking context       :      parkedcalls
Parked call extensions:      701-720
linux7*CLI> quit
Executing last minute cleanups
/dev/pts/1
11:26:00
#[local]
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux7 (pid = 14319)
...
Dynamic Feature           Default Current
---------------           ------- -------
(none)
Call parking (Parking lot: default)
------------
Parking extension     :      700
Parking context       :      parkedcalls
Parked call extensions:      701-720
linux7*CLI> quit
Executing last minute cleanups
/dev/pts/0
11:28:24
#vim /etc/asterisk/features.conf
/dev/pts/1
11:28:24
#vim /etc/asterisk/features.conf
--- /tmp/l3-saved-2126.27465.17075	2011-06-24 12:28:35.000000000 +0300
+++ /etc/asterisk/features.conf	2011-06-24 12:30:32.000000000 +0300
@@ -61,7 +61,7 @@
 ;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!
-;atxfer => *2			; Attended transfer  -- Make sure to set the T and/or t 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
11:31:04
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux7 (pid = 14502)
...
  == Using SIP RTP CoS mark 5
    -- Executing [2303@gr4:1] Set("SIP/lvov-00000008", "MON_FILENAME=record-2011-06-24-12-34-52-2303-2402") in new stack
    -- Executing [2303@gr4:2] Monitor("SIP/lvov-00000008", "wav,record-2011-06-24-12-34-52-2303-2402,m") in new stack
    -- Executing [2303@gr4:3] Dial("SIP/lvov-00000008", "SIP/2303,10.tT") in new stack
  == Using SIP RTP CoS mark 5
    -- Called 2303
    -- SIP/2303-00000009 is ringing
    -- SIP/2303-00000009 answered SIP/lvov-00000008
linux7*CLI> exit
Executing last minute cleanups
/dev/pts/1
11:31:04
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux7 (pid = 14502)
...
  == Using SIP RTP CoS mark 5
    -- Executing [2303@gr4:1] Set("SIP/lvov-00000008", "MON_FILENAME=record-2011-06-24-12-34-52-2303-2402") in new stack
    -- Executing [2303@gr4:2] Monitor("SIP/lvov-00000008", "wav,record-2011-06-24-12-34-52-2303-2402,m") in new stack
    -- Executing [2303@gr4:3] Dial("SIP/lvov-00000008", "SIP/2303,10.tT") in new stack
  == Using SIP RTP CoS mark 5
    -- Called 2303
    -- SIP/2303-00000009 is ringing
    -- SIP/2303-00000009 answered SIP/lvov-00000008
linux7*CLI> exit
Executing last minute cleanups
/dev/pts/3
11:39:47
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux7 (pid = 14775)
...
    -- Called msk/1101
    -- SIP/msk-00000007 answered SIP/lvov-00000006
    -- Packet2Packet bridging SIP/lvov-00000006 and SIP/msk-00000007
  == Spawn extension (gr4, 1101, 1) exited non-zero on 'SIP/lvov-00000006'
    -- Remote UNIX connection
Executing last minute cleanups
  == Destroying musiconhold processes
linux7*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
прошло 78 минут
/dev/pts/2
12:58:44
#ping 192,168,107,1
ping: unknown host 192,168,107,1
/dev/pts/1
12:58:44
#ping 192,168,107,1
ping: unknown host 192,168,107,1
прошла 21 минута
/dev/pts/1
13:20:04
#vim /etc/asterisk/iax.conf
13:20:04
#vim /etc/asterisk/iax.conf
/dev/pts/2
13:20:04
#vim /etc/asterisk/iax.conf
13:20:04
#vim /etc/asterisk/iax.conf
/dev/pts/1
13:20:04
#vim /etc/asterisk/iax.conf
/dev/pts/2
13:20:04
#vim /etc/asterisk/iax.conf

Файлы

  • /tmp/call.call
  • /tmp/call.call
    >
    channel:SIP/1101
    Extension:8500
    Context:internal
    

    Статистика

    Время первой команды журнала08:17:01 2011- 6-24
    Время последней команды журнала13:20:04 2011- 6-24
    Количество командных строк в журнале96
    Процент команд с ненулевым кодом завершения, %15.62
    Процент синтаксически неверно набранных команд, % 0.00
    Суммарное время работы с терминалом *, час 2.97
    Количество командных строк в единицу времени, команда/мин 0.54
    Частота использования команд
    vim36|====================================| 36.73%
    asterisk23|=======================| 23.47%
    cp8|========| 8.16%
    ls5|=====| 5.10%
    mv4|====| 4.08%
    m-a2|==| 2.04%
    modprobe2|==| 2.04%
    ping2|==| 2.04%
    apt-get2|==| 2.04%
    cat2|==| 2.04%
    [local]2|==| 2.04%
    chown2|==| 2.04%
    /etc/init.d/asterisk2|==| 2.04%
    lsmod2|==| 2.04%
    depmod2|==| 2.04%
    head2|==| 2.04%
    ____
    *) Интервалы неактивности длительностью 30 минут и более не учитываются

    Справка

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

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

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

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

    5. Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
      $ find / -name abc
      find: /home/devi-orig/.gnome2: Keine Berechtigung
      find: /home/devi-orig/.gnome2_private: Keine Berechtigung
      find: /home/devi-orig/.nautilus/metafiles: Keine Berechtigung
      find: /home/devi-orig/.metacity: Keine Berechtigung
      find: /home/devi-orig/.inkscape: Keine Berechtigung
      ^C
      

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    О программе

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

    $Id$