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

Содержание

Журнал

Среда (06/29/11)

/dev/pts/4
13:17:05
#make && make test && make install
cp lib/Asterisk/Voicemail.pm blib/lib/Asterisk/Voicemail.pm
cp lib/Asterisk/Manager.pm blib/lib/Asterisk/Manager.pm
cp lib/Asterisk/QCall.pm blib/lib/Asterisk/QCall.pm
cp lib/Asterisk/Outgoing.pm blib/lib/Asterisk/Outgoing.pm
cp lib/Asterisk.pm blib/lib/Asterisk.pm
cp lib/Asterisk/AGI.pm blib/lib/Asterisk/AGI.pm
Manifying blib/man3/Asterisk::Manager.3pm
Manifying blib/man3/Asterisk::Voicemail.3pm
Manifying blib/man3/Asterisk::Outgoing.3pm
Manifying blib/man3/Asterisk::AGI.3pm
...
Installing /usr/local/share/perl/5.10.1/Asterisk/QCall.pm
Installing /usr/local/share/perl/5.10.1/Asterisk/Voicemail.pm
Installing /usr/local/share/perl/5.10.1/Asterisk/Outgoing.pm
Installing /usr/local/share/perl/5.10.1/Asterisk/Manager.pm
Installing /usr/local/share/perl/5.10.1/Asterisk/AGI.pm
Installing /usr/local/man/man3/Asterisk::Manager.3pm
Installing /usr/local/man/man3/Asterisk::Outgoing.3pm
Installing /usr/local/man/man3/Asterisk::Voicemail.3pm
Installing /usr/local/man/man3/Asterisk::AGI.3pm
Appending installation info to /usr/local/lib/perl/5.10.1/perllocal.pod
/dev/pts/1
13:17:05
#make && make test && make install
cp lib/Asterisk/Voicemail.pm blib/lib/Asterisk/Voicemail.pm
cp lib/Asterisk/Manager.pm blib/lib/Asterisk/Manager.pm
cp lib/Asterisk/QCall.pm blib/lib/Asterisk/QCall.pm
cp lib/Asterisk/Outgoing.pm blib/lib/Asterisk/Outgoing.pm
cp lib/Asterisk.pm blib/lib/Asterisk.pm
cp lib/Asterisk/AGI.pm blib/lib/Asterisk/AGI.pm
Manifying blib/man3/Asterisk::Manager.3pm
Manifying blib/man3/Asterisk::Voicemail.3pm
Manifying blib/man3/Asterisk::Outgoing.3pm
Manifying blib/man3/Asterisk::AGI.3pm
...
Installing /usr/local/share/perl/5.10.1/Asterisk/QCall.pm
Installing /usr/local/share/perl/5.10.1/Asterisk/Voicemail.pm
Installing /usr/local/share/perl/5.10.1/Asterisk/Outgoing.pm
Installing /usr/local/share/perl/5.10.1/Asterisk/Manager.pm
Installing /usr/local/share/perl/5.10.1/Asterisk/AGI.pm
Installing /usr/local/man/man3/Asterisk::Manager.3pm
Installing /usr/local/man/man3/Asterisk::Outgoing.3pm
Installing /usr/local/man/man3/Asterisk::Voicemail.3pm
Installing /usr/local/man/man3/Asterisk::AGI.3pm
Appending installation info to /usr/local/lib/perl/5.10.1/perllocal.pod
/dev/pts/6
13:17:18
#ls usr/local/bin
ls: невозможно получить доступ к usr/local/bin: Нет такого файла или каталога
/dev/pts/5
13:17:18
#ls usr/local/bin
ls: невозможно получить доступ к usr/local/bin: Нет такого файла или каталога
/dev/pts/2
13:17:18
#ls usr/local/bin
ls: невозможно получить доступ к usr/local/bin: Нет такого файла или каталога
/dev/pts/3
13:17:18
#ls usr/local/bin
ls: невозможно получить доступ к usr/local/bin: Нет такого файла или каталога
/dev/pts/4
13:17:18
#ls usr/local/bin
ls: невозможно получить доступ к usr/local/bin: Нет такого файла или каталога
/dev/pts/1
13:17:18
#ls usr/local/bin
ls: невозможно получить доступ к usr/local/bin: Нет такого файла или каталога
/dev/pts/6
13:18:01
#ls /usr/local/bin
festival-script.pl  l3-agent  l3-config  l3script
/dev/pts/5
13:18:01
#ls /usr/local/bin
festival-script.pl  l3-agent  l3-config  l3script
/dev/pts/2
13:18:01
#ls /usr/local/bin
festival-script.pl  l3-agent  l3-config  l3script
/dev/pts/3
13:18:01
#ls /usr/local/bin
festival-script.pl  l3-agent  l3-config  l3script
/dev/pts/4
13:18:01
#ls /usr/local/bin
festival-script.pl  l3-agent  l3-config  l3script
/dev/pts/1
13:18:01
#ls /usr/local/bin
festival-script.pl  l3-agent  l3-config  l3script
/dev/pts/6
13:18:10
#ls -l /usr/local/bin
итого 44
-rwxr-xr-x 1 root staff   668 Июн 29 14:56 festival-script.pl
-rwxr-xr-x 1 root staff 33439 Июн 27 16:04 l3-agent
-rwxr-xr-x 1 root staff   100 Июн 27 16:04 l3-config
lrwxrwxrwx 1 root staff     9 Июн 27 15:40 l3script -> /bin/bash
/dev/pts/5
13:18:10
#ls -l /usr/local/bin
итого 44
-rwxr-xr-x 1 root staff   668 Июн 29 14:56 festival-script.pl
-rwxr-xr-x 1 root staff 33439 Июн 27 16:04 l3-agent
-rwxr-xr-x 1 root staff   100 Июн 27 16:04 l3-config
lrwxrwxrwx 1 root staff     9 Июн 27 15:40 l3script -> /bin/bash
/dev/pts/2
13:18:10
#ls -l /usr/local/bin
итого 44
-rwxr-xr-x 1 root staff   668 Июн 29 14:56 festival-script.pl
-rwxr-xr-x 1 root staff 33439 Июн 27 16:04 l3-agent
-rwxr-xr-x 1 root staff   100 Июн 27 16:04 l3-config
lrwxrwxrwx 1 root staff     9 Июн 27 15:40 l3script -> /bin/bash
/dev/pts/3
13:18:10
#ls -l /usr/local/bin
итого 44
-rwxr-xr-x 1 root staff   668 Июн 29 14:56 festival-script.pl
-rwxr-xr-x 1 root staff 33439 Июн 27 16:04 l3-agent
-rwxr-xr-x 1 root staff   100 Июн 27 16:04 l3-config
lrwxrwxrwx 1 root staff     9 Июн 27 15:40 l3script -> /bin/bash
/dev/pts/4
13:18:10
#ls -l /usr/local/bin
итого 44
-rwxr-xr-x 1 root staff   668 Июн 29 14:56 festival-script.pl
-rwxr-xr-x 1 root staff 33439 Июн 27 16:04 l3-agent
-rwxr-xr-x 1 root staff   100 Июн 27 16:04 l3-config
lrwxrwxrwx 1 root staff     9 Июн 27 15:40 l3script -> /bin/bash
/dev/pts/1
13:18:10
#ls -l /usr/local/bin
итого 44
-rwxr-xr-x 1 root staff   668 Июн 29 14:56 festival-script.pl
-rwxr-xr-x 1 root staff 33439 Июн 27 16:04 l3-agent
-rwxr-xr-x 1 root staff   100 Июн 27 16:04 l3-config
lrwxrwxrwx 1 root staff     9 Июн 27 15:40 l3script -> /bin/bash
/dev/pts/6
13:18:41
#chmod +x /usr/local/bin/festival-script.pl

/dev/pts/5
13:18:41
#chmod +x /usr/local/bin/festival-script.pl

/dev/pts/2
13:18:41
#chmod +x /usr/local/bin/festival-script.pl

/dev/pts/3
13:18:41
#chmod +x /usr/local/bin/festival-script.pl

/dev/pts/4
13:18:41
#chmod +x /usr/local/bin/festival-script.pl

/dev/pts/1
13:18:41
#chmod +x /usr/local/bin/festival-script.pl

/dev/pts/6
13:19:20
#mkdir /var/lib/asterisk/sounds/tts

/dev/pts/5
13:19:20
#mkdir /var/lib/asterisk/sounds/tts

/dev/pts/2
13:19:20
#mkdir /var/lib/asterisk/sounds/tts

/dev/pts/3
13:19:20
#mkdir /var/lib/asterisk/sounds/tts

/dev/pts/4
13:19:20
#mkdir /var/lib/asterisk/sounds/tts

/dev/pts/1
13:19:20
#mkdir /var/lib/asterisk/sounds/tts

/dev/pts/6
13:22:23
#chown asterisk:asterisk /var/lib/asterisk/sounds/

/dev/pts/5
13:22:23
#chown asterisk:asterisk /var/lib/asterisk/sounds/

/dev/pts/2
13:22:23
#chown asterisk:asterisk /var/lib/asterisk/sounds/

/dev/pts/3
13:22:23
#chown asterisk:asterisk /var/lib/asterisk/sounds/

/dev/pts/4
13:22:23
#chown asterisk:asterisk /var/lib/asterisk/sounds/

/dev/pts/1
13:22:23
#chown asterisk:asterisk /var/lib/asterisk/sounds/

/dev/pts/6
13:22:32
#chown asterisk:asterisk /var/lib/asterisk/sounds/tts

/dev/pts/5
13:22:32
#chown asterisk:asterisk /var/lib/asterisk/sounds/tts

/dev/pts/2
13:22:32
#chown asterisk:asterisk /var/lib/asterisk/sounds/tts

/dev/pts/3
13:22:32
#chown asterisk:asterisk /var/lib/asterisk/sounds/tts

/dev/pts/4
13:22:32
#chown asterisk:asterisk /var/lib/asterisk/sounds/tts

/dev/pts/1
13:22:32
#chown asterisk:asterisk /var/lib/asterisk/sounds/tts

/dev/pts/6
13:23:10
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-6655.13809.525	2011-06-29 15:23:46.000000000 +0400
+++ /etc/asterisk/extensions.conf	2011-06-29 15:25:44.000000000 +0400
@@ -2,6 +2,8 @@
 
 [internal]
 exten =>8000,1,Playback(limit-simul-calls)
+exten =>8001,1,AGI(/usr/local/bin/festival-script.pl, /var/tmp/asterisk/ru-moskva.txt)
+
 exten =>8100,1,VoicemailMain()
 exten => _81XX,1,VoicemailMain(11${EXTEN:2})
 
/dev/pts/5
13:23:10
#vim /etc/asterisk/extensions.conf
/dev/pts/2
13:23:10
#vim /etc/asterisk/extensions.conf
/dev/pts/3
13:23:10
#vim /etc/asterisk/extensions.conf
/dev/pts/4
13:23:10
#vim /etc/asterisk/extensions.conf
/dev/pts/1
13:23:10
#vim /etc/asterisk/extensions.conf
/dev/pts/6
13:30:35
#asterisk -rvvvvvv
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 linux1 (pid = 1629)
...
linux1*CLI>
linux1*CLI>
  == Using SIP RTP CoS mark 5
    -- Executing [8001@grp1:1] AGI("SIP/1102-000000a4", "/usr/local/bin/festival-script.pl, /var/tmp/asterisk/ru-moskva.txt") in new stack
    -- Launched AGI Script /usr/local/bin/festival-script.pl
    -- AGI Script Executing Application: (Playback) Options: (/var/lib/asterisk/sounds/tts/tts-5d947ab11881ba44dc12254f56faae68)
    -- <SIP/1102-000000a4> Playing '/var/lib/asterisk/sounds/tts/tts-5d947ab11881ba44dc12254f56faae68.slin' (language 'ru')
    -- <SIP/1102-000000a4>AGI Script /usr/local/bin/festival-script.pl completed, returning -1
linux1*CLI> exit
Executing last minute cleanups
/dev/pts/5
13:30:35
#asterisk -rvvvvvv
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 linux1 (pid = 1629)
...
linux1*CLI>
linux1*CLI>
  == Using SIP RTP CoS mark 5
    -- Executing [8001@grp1:1] AGI("SIP/1102-000000a4", "/usr/local/bin/festival-script.pl, /var/tmp/asterisk/ru-moskva.txt") in new stack
    -- Launched AGI Script /usr/local/bin/festival-script.pl
    -- AGI Script Executing Application: (Playback) Options: (/var/lib/asterisk/sounds/tts/tts-5d947ab11881ba44dc12254f56faae68)
    -- <SIP/1102-000000a4> Playing '/var/lib/asterisk/sounds/tts/tts-5d947ab11881ba44dc12254f56faae68.slin' (language 'ru')
    -- <SIP/1102-000000a4>AGI Script /usr/local/bin/festival-script.pl completed, returning -1
linux1*CLI> exit
Executing last minute cleanups
/dev/pts/2
13:30:35
#asterisk -rvvvvvv
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 linux1 (pid = 1629)
...
linux1*CLI>
linux1*CLI>
  == Using SIP RTP CoS mark 5
    -- Executing [8001@grp1:1] AGI("SIP/1102-000000a4", "/usr/local/bin/festival-script.pl, /var/tmp/asterisk/ru-moskva.txt") in new stack
    -- Launched AGI Script /usr/local/bin/festival-script.pl
    -- AGI Script Executing Application: (Playback) Options: (/var/lib/asterisk/sounds/tts/tts-5d947ab11881ba44dc12254f56faae68)
    -- <SIP/1102-000000a4> Playing '/var/lib/asterisk/sounds/tts/tts-5d947ab11881ba44dc12254f56faae68.slin' (language 'ru')
    -- <SIP/1102-000000a4>AGI Script /usr/local/bin/festival-script.pl completed, returning -1
linux1*CLI> exit
Executing last minute cleanups
/dev/pts/3
13:30:35
#asterisk -rvvvvvv
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 linux1 (pid = 1629)
...
linux1*CLI>
linux1*CLI>
  == Using SIP RTP CoS mark 5
    -- Executing [8001@grp1:1] AGI("SIP/1102-000000a4", "/usr/local/bin/festival-script.pl, /var/tmp/asterisk/ru-moskva.txt") in new stack
    -- Launched AGI Script /usr/local/bin/festival-script.pl
    -- AGI Script Executing Application: (Playback) Options: (/var/lib/asterisk/sounds/tts/tts-5d947ab11881ba44dc12254f56faae68)
    -- <SIP/1102-000000a4> Playing '/var/lib/asterisk/sounds/tts/tts-5d947ab11881ba44dc12254f56faae68.slin' (language 'ru')
    -- <SIP/1102-000000a4>AGI Script /usr/local/bin/festival-script.pl completed, returning -1
linux1*CLI> exit
Executing last minute cleanups
/dev/pts/4
13:30:35
#asterisk -rvvvvvv
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 linux1 (pid = 1629)
...
linux1*CLI>
linux1*CLI>
  == Using SIP RTP CoS mark 5
    -- Executing [8001@grp1:1] AGI("SIP/1102-000000a4", "/usr/local/bin/festival-script.pl, /var/tmp/asterisk/ru-moskva.txt") in new stack
    -- Launched AGI Script /usr/local/bin/festival-script.pl
    -- AGI Script Executing Application: (Playback) Options: (/var/lib/asterisk/sounds/tts/tts-5d947ab11881ba44dc12254f56faae68)
    -- <SIP/1102-000000a4> Playing '/var/lib/asterisk/sounds/tts/tts-5d947ab11881ba44dc12254f56faae68.slin' (language 'ru')
    -- <SIP/1102-000000a4>AGI Script /usr/local/bin/festival-script.pl completed, returning -1
linux1*CLI> exit
Executing last minute cleanups
/dev/pts/1
13:30:35
#asterisk -rvvvvvv
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 linux1 (pid = 1629)
...
linux1*CLI>
linux1*CLI>
  == Using SIP RTP CoS mark 5
    -- Executing [8001@grp1:1] AGI("SIP/1102-000000a4", "/usr/local/bin/festival-script.pl, /var/tmp/asterisk/ru-moskva.txt") in new stack
    -- Launched AGI Script /usr/local/bin/festival-script.pl
    -- AGI Script Executing Application: (Playback) Options: (/var/lib/asterisk/sounds/tts/tts-5d947ab11881ba44dc12254f56faae68)
    -- <SIP/1102-000000a4> Playing '/var/lib/asterisk/sounds/tts/tts-5d947ab11881ba44dc12254f56faae68.slin' (language 'ru')
    -- <SIP/1102-000000a4>AGI Script /usr/local/bin/festival-script.pl completed, returning -1
linux1*CLI> exit
Executing last minute cleanups
прошло 12 минут
/dev/pts/6
13:43:09
#cd /etc/asterisk

/dev/pts/5
13:43:09
#cd /etc/asterisk

/dev/pts/2
13:43:09
#cd /etc/asterisk

/dev/pts/3
13:43:09
#cd /etc/asterisk

/dev/pts/4
13:43:09
#cd /etc/asterisk

/dev/pts/1
13:43:09
#cd /etc/asterisk

/dev/pts/6
13:43:28
#ls
adsi.conf               cdr_manager.conf         dnsmgr.conf             followme.conf     manager.d         queuerules.conf         sip_notify.conf
adtranvofr.conf         cdr_odbc.conf            dsp.conf                func_odbc.conf    meetme.conf       queues.conf             skinny.conf
agents.conf             cdr_pgsql.conf           dundi.conf              gtalk.conf        mgcp.conf         res_config_sqlite.conf  sla.conf
ais.conf                cdr_sqlite3_custom.conf  enum.conf               h323.conf         minivm.conf       res_ldap.conf           smdi.conf
alarmreceiver.conf      cdr_tds.conf             extconfig.conf          http.conf         misdn.conf        res_odbc.conf           telcordia-1.adsi
alsa.conf               chan_dahdi.conf          extensions.ael          iax.conf          modules.conf      res_pgsql.conf          udptl.conf
amd.conf                cli_aliases.conf         extensions.conf         iaxprov.conf      musiconhold.conf  res_snmp.conf           unistim.conf
asterisk.adsi           cli.conf                 extensions.conf.SAVE    indications.conf  muted.conf        rpt.conf                usbradio.conf
asterisk.conf           cli_permissions.conf     extensions.lua          jabber.conf       osp.conf          rtp.conf                users.conf
cdr_adaptive_odbc.conf  codecs.conf              extensions_minivm.conf  jingle.conf       oss.conf          say.conf                voicemail.conf
cdr.conf                console.conf             features.conf           logger.conf       phone.conf        sip.conf                vpb.conf
cdr_custom.conf         dbsep.conf               festival.conf           manager.conf      phoneprov.conf    sip.conf.SAVE
/dev/pts/5
13:43:28
#ls
adsi.conf               cdr_manager.conf         dnsmgr.conf             followme.conf     manager.d         queuerules.conf         sip_notify.conf
adtranvofr.conf         cdr_odbc.conf            dsp.conf                func_odbc.conf    meetme.conf       queues.conf             skinny.conf
agents.conf             cdr_pgsql.conf           dundi.conf              gtalk.conf        mgcp.conf         res_config_sqlite.conf  sla.conf
ais.conf                cdr_sqlite3_custom.conf  enum.conf               h323.conf         minivm.conf       res_ldap.conf           smdi.conf
alarmreceiver.conf      cdr_tds.conf             extconfig.conf          http.conf         misdn.conf        res_odbc.conf           telcordia-1.adsi
alsa.conf               chan_dahdi.conf          extensions.ael          iax.conf          modules.conf      res_pgsql.conf          udptl.conf
amd.conf                cli_aliases.conf         extensions.conf         iaxprov.conf      musiconhold.conf  res_snmp.conf           unistim.conf
asterisk.adsi           cli.conf                 extensions.conf.SAVE    indications.conf  muted.conf        rpt.conf                usbradio.conf
asterisk.conf           cli_permissions.conf     extensions.lua          jabber.conf       osp.conf          rtp.conf                users.conf
cdr_adaptive_odbc.conf  codecs.conf              extensions_minivm.conf  jingle.conf       oss.conf          say.conf                voicemail.conf
cdr.conf                console.conf             features.conf           logger.conf       phone.conf        sip.conf                vpb.conf
cdr_custom.conf         dbsep.conf               festival.conf           manager.conf      phoneprov.conf    sip.conf.SAVE
/dev/pts/2
13:43:28
#ls
adsi.conf               cdr_manager.conf         dnsmgr.conf             followme.conf     manager.d         queuerules.conf         sip_notify.conf
adtranvofr.conf         cdr_odbc.conf            dsp.conf                func_odbc.conf    meetme.conf       queues.conf             skinny.conf
agents.conf             cdr_pgsql.conf           dundi.conf              gtalk.conf        mgcp.conf         res_config_sqlite.conf  sla.conf
ais.conf                cdr_sqlite3_custom.conf  enum.conf               h323.conf         minivm.conf       res_ldap.conf           smdi.conf
alarmreceiver.conf      cdr_tds.conf             extconfig.conf          http.conf         misdn.conf        res_odbc.conf           telcordia-1.adsi
alsa.conf               chan_dahdi.conf          extensions.ael          iax.conf          modules.conf      res_pgsql.conf          udptl.conf
amd.conf                cli_aliases.conf         extensions.conf         iaxprov.conf      musiconhold.conf  res_snmp.conf           unistim.conf
asterisk.adsi           cli.conf                 extensions.conf.SAVE    indications.conf  muted.conf        rpt.conf                usbradio.conf
asterisk.conf           cli_permissions.conf     extensions.lua          jabber.conf       osp.conf          rtp.conf                users.conf
cdr_adaptive_odbc.conf  codecs.conf              extensions_minivm.conf  jingle.conf       oss.conf          say.conf                voicemail.conf
cdr.conf                console.conf             features.conf           logger.conf       phone.conf        sip.conf                vpb.conf
cdr_custom.conf         dbsep.conf               festival.conf           manager.conf      phoneprov.conf    sip.conf.SAVE
/dev/pts/3
13:43:28
#ls
adsi.conf               cdr_manager.conf         dnsmgr.conf             followme.conf     manager.d         queuerules.conf         sip_notify.conf
adtranvofr.conf         cdr_odbc.conf            dsp.conf                func_odbc.conf    meetme.conf       queues.conf             skinny.conf
agents.conf             cdr_pgsql.conf           dundi.conf              gtalk.conf        mgcp.conf         res_config_sqlite.conf  sla.conf
ais.conf                cdr_sqlite3_custom.conf  enum.conf               h323.conf         minivm.conf       res_ldap.conf           smdi.conf
alarmreceiver.conf      cdr_tds.conf             extconfig.conf          http.conf         misdn.conf        res_odbc.conf           telcordia-1.adsi
alsa.conf               chan_dahdi.conf          extensions.ael          iax.conf          modules.conf      res_pgsql.conf          udptl.conf
amd.conf                cli_aliases.conf         extensions.conf         iaxprov.conf      musiconhold.conf  res_snmp.conf           unistim.conf
asterisk.adsi           cli.conf                 extensions.conf.SAVE    indications.conf  muted.conf        rpt.conf                usbradio.conf
asterisk.conf           cli_permissions.conf     extensions.lua          jabber.conf       osp.conf          rtp.conf                users.conf
cdr_adaptive_odbc.conf  codecs.conf              extensions_minivm.conf  jingle.conf       oss.conf          say.conf                voicemail.conf
cdr.conf                console.conf             features.conf           logger.conf       phone.conf        sip.conf                vpb.conf
cdr_custom.conf         dbsep.conf               festival.conf           manager.conf      phoneprov.conf    sip.conf.SAVE
/dev/pts/4
13:43:28
#ls
adsi.conf               cdr_manager.conf         dnsmgr.conf             followme.conf     manager.d         queuerules.conf         sip_notify.conf
adtranvofr.conf         cdr_odbc.conf            dsp.conf                func_odbc.conf    meetme.conf       queues.conf             skinny.conf
agents.conf             cdr_pgsql.conf           dundi.conf              gtalk.conf        mgcp.conf         res_config_sqlite.conf  sla.conf
ais.conf                cdr_sqlite3_custom.conf  enum.conf               h323.conf         minivm.conf       res_ldap.conf           smdi.conf
alarmreceiver.conf      cdr_tds.conf             extconfig.conf          http.conf         misdn.conf        res_odbc.conf           telcordia-1.adsi
alsa.conf               chan_dahdi.conf          extensions.ael          iax.conf          modules.conf      res_pgsql.conf          udptl.conf
amd.conf                cli_aliases.conf         extensions.conf         iaxprov.conf      musiconhold.conf  res_snmp.conf           unistim.conf
asterisk.adsi           cli.conf                 extensions.conf.SAVE    indications.conf  muted.conf        rpt.conf                usbradio.conf
asterisk.conf           cli_permissions.conf     extensions.lua          jabber.conf       osp.conf          rtp.conf                users.conf
cdr_adaptive_odbc.conf  codecs.conf              extensions_minivm.conf  jingle.conf       oss.conf          say.conf                voicemail.conf
cdr.conf                console.conf             features.conf           logger.conf       phone.conf        sip.conf                vpb.conf
cdr_custom.conf         dbsep.conf               festival.conf           manager.conf      phoneprov.conf    sip.conf.SAVE
/dev/pts/1
13:43:28
#ls
adsi.conf               cdr_manager.conf         dnsmgr.conf             followme.conf     manager.d         queuerules.conf         sip_notify.conf
adtranvofr.conf         cdr_odbc.conf            dsp.conf                func_odbc.conf    meetme.conf       queues.conf             skinny.conf
agents.conf             cdr_pgsql.conf           dundi.conf              gtalk.conf        mgcp.conf         res_config_sqlite.conf  sla.conf
ais.conf                cdr_sqlite3_custom.conf  enum.conf               h323.conf         minivm.conf       res_ldap.conf           smdi.conf
alarmreceiver.conf      cdr_tds.conf             extconfig.conf          http.conf         misdn.conf        res_odbc.conf           telcordia-1.adsi
alsa.conf               chan_dahdi.conf          extensions.ael          iax.conf          modules.conf      res_pgsql.conf          udptl.conf
amd.conf                cli_aliases.conf         extensions.conf         iaxprov.conf      musiconhold.conf  res_snmp.conf           unistim.conf
asterisk.adsi           cli.conf                 extensions.conf.SAVE    indications.conf  muted.conf        rpt.conf                usbradio.conf
asterisk.conf           cli_permissions.conf     extensions.lua          jabber.conf       osp.conf          rtp.conf                users.conf
cdr_adaptive_odbc.conf  codecs.conf              extensions_minivm.conf  jingle.conf       oss.conf          say.conf                voicemail.conf
cdr.conf                console.conf             features.conf           logger.conf       phone.conf        sip.conf                vpb.conf
cdr_custom.conf         dbsep.conf               festival.conf           manager.conf      phoneprov.conf    sip.conf.SAVE
/dev/pts/6
13:43:37
#vim sip.conf.save
/dev/pts/5
13:43:37
#vim sip.conf.save
/dev/pts/2
13:43:37
#vim sip.conf.save
/dev/pts/3
13:43:37
#vim sip.conf.save
/dev/pts/4
13:43:37
#vim sip.conf.save
/dev/pts/1
13:43:37
#vim sip.conf.save
/dev/pts/6
13:44:20
#~
[general]
[       ]
;allowguest=no                  ; Allow or reject guest calls (default is yes)
;match_auth_username=yes        ; if available, match user entry using the
                                ; 'username' field from the authentication line
                                ; instead of the From: field.
allowoverlap=no                 ; Disable overlap dialing support. (Default is yes)
;allowtransfer=no               ; Disable all transfers (unless enabled in peers or users)
                                ; Default is enabled. The Dial() options 't' and 'T' are not
                                ; related as to whether SIP transfers are allowed or not.
...
                                ; ability to place SIP calls based on domain
                                ; names to some other SIP users on the Internet
                                ; Specifying a port in a SIP peer definition or
                                ; when dialing outbound calls will supress SRV
                                ; lookups for that peer or call.
;pedantic=yes                   ; Enable checking of tags in headers,
                                ; international character conversions in URIs
                                ; and multiline formatted headers for strict
                                ; SIP compatibility (defaults to "no")
                                                                                                                                          170,1         12%
/dev/pts/5
13:44:20
#~
"sip.conf.SAVE" 1153L, 63882C
; Devicename
;        devicename is defined as a peer in a section below.
;
; username@domain
;        Call any SIP user on the Internet
;        (Don't forget to enable DNS SRV records if you want to use this)
;
; devicename/extension
;        If you define a SIP proxy as a peer below, you may call
...
                                ; ability to place SIP calls based on domain
                                ; names to some other SIP users on the Internet
                                ; Specifying a port in a SIP peer definition or
                                ; when dialing outbound calls will supress SRV
                                ; lookups for that peer or call.
;pedantic=yes                   ; Enable checking of tags in headers,
                                ; international character conversions in URIs
                                ; and multiline formatted headers for strict
                                ; SIP compatibility (defaults to "no")
                                                                                                                                          170,1         12%
/dev/pts/2
13:44:20
#~
;
; CLI Commands
; -------------------------------------------------------------
; Useful CLI commands to check peers/users:
;   sip show peers               Show all SIP peers (including friends)
;   sip show registry            Show status of hosts we register with
;
;   sip set debug on             Show all SIP messages
;
;   module reload chan_sip.so    Reload configuration file
...
                                ; ability to place SIP calls based on domain
                                ; names to some other SIP users on the Internet
                                ; Specifying a port in a SIP peer definition or
                                ; when dialing outbound calls will supress SRV
                                ; lookups for that peer or call.
;pedantic=yes                   ; Enable checking of tags in headers,
                                ; international character conversions in URIs
                                ; and multiline formatted headers for strict
                                ; SIP compatibility (defaults to "no")
                                                                                                                                          170,1         12%
/dev/pts/3
13:44:20
#~
; When setting up trunks, make sure there's no risk that any From: username
; (caller ID) will match any of your device names, because then Asterisk
; might match the wrong device.
;
; Note: The parameter "username" is not the username and in most cases is
;       not needed at all. Check below. In later releases, it's renamed
;       to "defaultuser" which is a better name, since it is used in
;       combination with the "defaultip" setting.
;-----------------------------------------------------------------------------
; ** Deprecated configuration options **
...
                                ; ability to place SIP calls based on domain
                                ; names to some other SIP users on the Internet
                                ; Specifying a port in a SIP peer definition or
                                ; when dialing outbound calls will supress SRV
                                ; lookups for that peer or call.
;pedantic=yes                   ; Enable checking of tags in headers,
                                ; international character conversions in URIs
                                ; and multiline formatted headers for strict
                                ; SIP compatibility (defaults to "no")
context=default                 ; Default context for incoming calls                                                                      170,1         12%
/dev/pts/4
13:44:20
#~
;
; SIP Configuration example for Asterisk
;
; SIP dial strings
;-----------------------------------------------------------
; In the dialplan (extensions.conf) you can use several
"sip.conf.SAVE" 1153L, 63882C
;allowtransfer=no               ; Disable all transfers (unless enabled in peers or users)
                                ; Default is enabled. The Dial() options 't' and 'T' are not
                                ; related as to whether SIP transfers are allowed or not.
...
                                ; ability to place SIP calls based on domain
                                ; names to some other SIP users on the Internet
                                ; Specifying a port in a SIP peer definition or
                                ; when dialing outbound calls will supress SRV
                                ; lookups for that peer or call.
;pedantic=yes                   ; Enable checking of tags in headers,
                                ; international character conversions in URIs
                                ; and multiline formatted headers for strict
                                ; SIP compatibility (defaults to "no")
                                                                                                                                          170,1         12%
/dev/pts/1
13:44:20
#~
;        If you define a SIP proxy as a peer below, you may call
;        SIP/proxyhostname/user or SIP/user@proxyhostname
;        where the proxyhostname is defined in a section below
;
; SIP/username[:password[:md5secret[:authname]]]@host[:port]
;        This form allows you to specify password or md5secret and authname
;        without altering any authentication data in config.
;        Examples:
;
;        SIP/*98@mysipproxy
...
                                ; ability to place SIP calls based on domain
                                ; names to some other SIP users on the Internet
                                ; Specifying a port in a SIP peer definition or
                                ; when dialing outbound calls will supress SRV
                                ; lookups for that peer or call.
;pedantic=yes                   ; Enable checking of tags in headers,
                                ; international character conversions in URIs
                                ; and multiline formatted headers for strict
                                ; SIP compatibility (defaults to "no")
                                                                                                                                          170,1         12%
/dev/pts/6
13:52:27
#exten => _11XX,n,Hangup
local]
[       ]
exten => 1,1,AGI(/usr/local/bin/festival-script.pl, /var/tmp/asterisk/ru-moskva.txt)
exten => 2,1,AGI(/usr/local/bin/festival-script.pl, /var/tmp/asterisk/ru-burunduk.txt)
exten => 9,1,Goto(submenu,s,1)
local]           (            )
exten => _11XX,n,Set(CALLFILENAME=${EXTEN}-${STRFTIME(${EPOCH},Europe/Moscow,"%Y-%m-%d-%H-%M-%S")})
exten => _11XX,n,Monitor(wav,${CALLFILENAME}, m)
exten => _11XX,n,Dial(SIP/${EXTEN},15)
exten => _11XX,n,GotoIf($["${DIALSTATUS}" = "BUSY"])?voicemail)
...
[    ]
exten => s,1,Answer
exten => s,n,Background(/var/tmp/asterisk/message01)
exten => s,n(start),Background(/var/tmp/asterisk/message02)
exten => s,n,WaitExten(2)
exten => s,n,Background(/var/tmp/asterisk/message04)
exten => s,n,WaitExten(2)
exten => s,n,Background(/var/tmp/asterisk/message05)
exten => s,n,Hangup
"extensions.conf" 82L, 2066C записано
/dev/pts/5
13:52:27
#exten => _11XX,n,Hangup
local]
exten => s,1,Answer
exten => 1,1,AGI(/usr/local/bin/festival-script.pl, /var/tmp/asterisk/ru-moskva.txt
exten => 1,1,AGI(/usr/local/bin/festival-script.pl, /var/tmp/asterisk/ru-moskva.txt)
exten => 2,1,AGI(/usr/local/bin/festival-script.pl, /var/tmp/asterisk/ru-burunduk.txt)
exten => 9,1,Goto(submenu,s,1)
local]           (            )
exten => _11XX,n,Set(CALLFILENAME=${EXTEN}-${STRFTIME(${EPOCH},Europe/Moscow,"%Y-%m-%d-%H-%M-%S")})
exten => _11XX,n,Monitor(wav,${CALLFILENAME}, m)
exten => _11XX,n,Dial(SIP/${EXTEN},15)
...
exten => s,1,Answer
exten => s,n,Background(/var/tmp/asterisk/message01)
exten => s,n(start),Background(/var/tmp/asterisk/message02)
exten => s,n,WaitExten(2)
exten => s,n,Background(/var/tmp/asterisk/message04)
exten => s,n,WaitExten(2)
exten => s,n,Background(/var/tmp/asterisk/message05)
exten => s,n,Hangup
[       ]
"extensions.conf" 82L, 2066C записано
/dev/pts/2
13:52:27
#exten => _11XX,n,Hangup
local]
exten => s,1,Answer
exten => s,n,Background(/var/tmp/asterisk/message03)
exten => 1,1,AGI(/usr/local/bin/festival-script.pl, /var/tmp/asterisk/ru-moskva.txt
exten => 1,1,AGI(/usr/local/bin/festival-script.pl, /var/tmp/asterisk/ru-moskva.txt)
exten => 2,1,AGI(/usr/local/bin/festival-script.pl, /var/tmp/asterisk/ru-burunduk.txt)
exten => 9,1,Goto(submenu,s,1)
local]           (            )
exten => _11XX,1,Answer
exten => _11XX,n,Set(CALLFILENAME=${EXTEN}-${STRFTIME(${EPOCH},Europe/Moscow,"%Y-%m-%d-%H-%M-%S")})
...
exten => s,1,Answer
exten => s,n,Background(/var/tmp/asterisk/message01)
exten => s,n(start),Background(/var/tmp/asterisk/message02)
exten => s,n,WaitExten(2)
exten => s,n,Background(/var/tmp/asterisk/message04)
exten => s,n,WaitExten(2)
exten => s,n,Background(/var/tmp/asterisk/message05)
exten => s,n,Hangup
[       ]
"extensions.conf" 82L, 2066C записано
/dev/pts/3
13:52:27
#exten => _11XX,n,Hangup
local]
exten => s,1,Answer
exten => s,n,Background(/var/tmp/asterisk/message03)
exten => 1,1,AGI(/usr/local/bin/festival-script.pl, /var/tmp/asterisk/ru-moskva.txt
exten => 1,1,AGI(/usr/local/bin/festival-script.pl, /var/tmp/asterisk/ru-moskva.txt)
exten => 2,1,AGI(/usr/local/bin/festival-script.pl, /var/tmp/asterisk/ru-burunduk.txt)
local]
exten => _11XX,1,Answer
exten => _11XX,n,Set(CALLFILENAME=${EXTEN}-${STRFTIME(${EPOCH},Europe/Moscow,"%Y-%m-%d-%H-%M-%S")})
exten => 0,1,Goto(menu,s,start)                                                                                                           37,31         35%
...
exten => s,n,WaitExten(2)
exten => s,n,Background(/var/tmp/asterisk/message04)
exten => s,n,WaitExten(2)
exten => s,n,Background(/var/tmp/asterisk/message05)
exten => s,n,Hangup
[       ]
exten => 9,1,Goto(submenu,s,1)
                 (            )
exten => _11XX,n,Monitor(wav,${CALLFILENAME}, m)
"extensions.conf" 82L, 2066C записано
/dev/pts/4
13:52:27
#exten => _11XX,n,Hangup
local]
exten => s,1,Answer
exten => s,n,Background(/var/tmp/asterisk/message03)
exten => 1,1,AGI(/usr/local/bin/festival-script.pl, /var/tmp/asterisk/ru-moskva.txt
exten => 1,1,AGI(/usr/local/bin/festival-script.pl, /var/tmp/asterisk/ru-moskva.txt)
xt)
local]
exten => 0,1,Goto(menu,s,start)                                                                                                           36,84         34%
[    ]
exten => s,1,Answer
...
exten => s,n,WaitExten(2)
exten => s,n,Background(/var/tmp/asterisk/message05)
exten => s,n,Hangup
[       ]
exten => 2,1,AGI(/usr/local/bin/festival-script.pl, /var/tmp/asterisk/ru-burunduk.txt)
exten => 9,1,Goto(submenu,s,1)
                 (            )
exten => _11XX,n,Set(CALLFILENAME=${EXTEN}-${STRFTIME(${EPOCH},Europe/Moscow,"%Y-%m-%d-%H-%M-%S")})
exten => _11XX,n,Monitor(wav,${CALLFILENAME}, m)
"extensions.conf" 82L, 2066C записано
/dev/pts/1
13:52:27
#exten => _11XX,n,Hangup
local]
exten => s,1,Answer
exten => s,n,Background(/var/tmp/asterisk/message03)
exten => 1,1,AGI(/usr/local/bin/festival-script.pl, /var/tmp/asterisk/ru-moskva.txt
exten => 1,1,AGI(/usr/local/bin/festival-script.pl, /var/tmp/asterisk/ru-moskva.txt)
                (
xt)
local]
exten => 0,1,Goto(menu,s,start)                                                                                                           36,16         34%
[    ]
...
exten => s,n,Background(/var/tmp/asterisk/message05)
exten => s,n,Hangup
xt)
[       ]
exten => 2,1,AGI(/usr/local/bin/festival-script.pl, /var/tmp/asterisk/ru-burunduk.txt)
exten => 9,1,Goto(submenu,s,1)
                 (            )
exten => _11XX,n,Set(CALLFILENAME=${EXTEN}-${STRFTIME(${EPOCH},Europe/Moscow,"%Y-%m-%d-%H-%M-%S")})
exten => _11XX,n,Monitor(wav,${CALLFILENAME}, m)
"extensions.conf" 82L, 2066C записано
прошло 45 минут
/dev/pts/6
14:38:24
#asterisk -rvvvvvv
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 linux1 (pid = 1629)
...
    -- Added extension 's' priority 1 to app_queue_gosub_virtual_context (0x7f6eac540880)
    -- Time to scan old dialplan and merge leftovers back into the new: 0.000328 sec
    -- Time to restore hints and swap in new dialplan: 0.000001 sec
    -- Time to delete the old dialplan: 0.000052 sec
    -- Total time merge_contexts_delete: 0.000381 sec
[Jun 29 16:39:30] WARNING[13079]: pbx.c:9553 ast_context_verify_includes: Context 'grp3' tries to include nonexistent context 'local'
[Jun 29 16:39:30] WARNING[13079]: pbx.c:9553 ast_context_verify_includes: Context 'grp2' tries to include nonexistent context 'local'
[Jun 29 16:39:30] WARNING[13079]: pbx.c:9553 ast_context_verify_includes: Context 'grp1' tries to include nonexistent context 'local'
linux1*CLI> exit
Executing last minute cleanups
/dev/pts/5
14:38:24
#asterisk -rvvvvvv
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 linux1 (pid = 1629)
...
    -- Added extension 's' priority 1 to app_queue_gosub_virtual_context (0x7f6eac540880)
    -- Time to scan old dialplan and merge leftovers back into the new: 0.000328 sec
    -- Time to restore hints and swap in new dialplan: 0.000001 sec
    -- Time to delete the old dialplan: 0.000052 sec
    -- Total time merge_contexts_delete: 0.000381 sec
[Jun 29 16:39:30] WARNING[13079]: pbx.c:9553 ast_context_verify_includes: Context 'grp3' tries to include nonexistent context 'local'
[Jun 29 16:39:30] WARNING[13079]: pbx.c:9553 ast_context_verify_includes: Context 'grp2' tries to include nonexistent context 'local'
[Jun 29 16:39:30] WARNING[13079]: pbx.c:9553 ast_context_verify_includes: Context 'grp1' tries to include nonexistent context 'local'
linux1*CLI> exit
Executing last minute cleanups
/dev/pts/2
14:38:24
#asterisk -rvvvvvv
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 linux1 (pid = 1629)
...
    -- Added extension 's' priority 1 to app_queue_gosub_virtual_context (0x7f6eac540880)
    -- Time to scan old dialplan and merge leftovers back into the new: 0.000328 sec
    -- Time to restore hints and swap in new dialplan: 0.000001 sec
    -- Time to delete the old dialplan: 0.000052 sec
    -- Total time merge_contexts_delete: 0.000381 sec
[Jun 29 16:39:30] WARNING[13079]: pbx.c:9553 ast_context_verify_includes: Context 'grp3' tries to include nonexistent context 'local'
[Jun 29 16:39:30] WARNING[13079]: pbx.c:9553 ast_context_verify_includes: Context 'grp2' tries to include nonexistent context 'local'
[Jun 29 16:39:30] WARNING[13079]: pbx.c:9553 ast_context_verify_includes: Context 'grp1' tries to include nonexistent context 'local'
linux1*CLI> exit
Executing last minute cleanups
/dev/pts/3
14:38:24
#asterisk -rvvvvvv
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 linux1 (pid = 1629)
...
    -- Added extension 's' priority 1 to app_queue_gosub_virtual_context (0x7f6eac540880)
    -- Time to scan old dialplan and merge leftovers back into the new: 0.000328 sec
    -- Time to restore hints and swap in new dialplan: 0.000001 sec
    -- Time to delete the old dialplan: 0.000052 sec
    -- Total time merge_contexts_delete: 0.000381 sec
[Jun 29 16:39:30] WARNING[13079]: pbx.c:9553 ast_context_verify_includes: Context 'grp3' tries to include nonexistent context 'local'
[Jun 29 16:39:30] WARNING[13079]: pbx.c:9553 ast_context_verify_includes: Context 'grp2' tries to include nonexistent context 'local'
[Jun 29 16:39:30] WARNING[13079]: pbx.c:9553 ast_context_verify_includes: Context 'grp1' tries to include nonexistent context 'local'
linux1*CLI> exit
Executing last minute cleanups
/dev/pts/4
14:38:24
#asterisk -rvvvvvv
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 linux1 (pid = 1629)
...
    -- Added extension 's' priority 1 to app_queue_gosub_virtual_context (0x7f6eac540880)
    -- Time to scan old dialplan and merge leftovers back into the new: 0.000328 sec
    -- Time to restore hints and swap in new dialplan: 0.000001 sec
    -- Time to delete the old dialplan: 0.000052 sec
    -- Total time merge_contexts_delete: 0.000381 sec
[Jun 29 16:39:30] WARNING[13079]: pbx.c:9553 ast_context_verify_includes: Context 'grp3' tries to include nonexistent context 'local'
[Jun 29 16:39:30] WARNING[13079]: pbx.c:9553 ast_context_verify_includes: Context 'grp2' tries to include nonexistent context 'local'
[Jun 29 16:39:30] WARNING[13079]: pbx.c:9553 ast_context_verify_includes: Context 'grp1' tries to include nonexistent context 'local'
linux1*CLI> exit
Executing last minute cleanups
/dev/pts/1
14:38:24
#asterisk -rvvvvvv
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 linux1 (pid = 1629)
...
    -- Added extension 's' priority 1 to app_queue_gosub_virtual_context (0x7f6eac540880)
    -- Time to scan old dialplan and merge leftovers back into the new: 0.000328 sec
    -- Time to restore hints and swap in new dialplan: 0.000001 sec
    -- Time to delete the old dialplan: 0.000052 sec
    -- Total time merge_contexts_delete: 0.000381 sec
[Jun 29 16:39:30] WARNING[13079]: pbx.c:9553 ast_context_verify_includes: Context 'grp3' tries to include nonexistent context 'local'
[Jun 29 16:39:30] WARNING[13079]: pbx.c:9553 ast_context_verify_includes: Context 'grp2' tries to include nonexistent context 'local'
[Jun 29 16:39:30] WARNING[13079]: pbx.c:9553 ast_context_verify_includes: Context 'grp1' tries to include nonexistent context 'local'
linux1*CLI> exit
Executing last minute cleanups
/dev/pts/6
14:39:35
#vim extensions.conf
--- /tmp/l3-saved-6655.22043.7180	2011-06-29 16:39:38.000000000 +0400
+++ extensions.conf	2011-06-29 16:39:58.000000000 +0400
@@ -34,7 +34,8 @@
 exten => 9,1,Goto(submenu,s,1)
 exten => 0,1,Goto(menu,s,start)
 
-local]
+[local]
+
 
 
 exten => _11XX,1,Answer
/dev/pts/5
14:39:35
#vim extensions.conf
/dev/pts/2
14:39:35
#vim extensions.conf
/dev/pts/3
14:39:35
#vim extensions.conf
/dev/pts/4
14:39:35
#vim extensions.conf
/dev/pts/1
14:39:35
#vim extensions.conf
/dev/pts/6
14:39:58
#asterisk -rvvvvvv
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 linux1 (pid = 1629)
...
    -- Executing [s@menu:5] BackGround("SIP/1102-000000b0", "/var/tmp/asterisk/message04") in new stack
    -- <SIP/1102-000000b0> Playing '/var/tmp/asterisk/message04.gsm' (language 'ru')
    -- Executing [s@menu:6] WaitExten("SIP/1102-000000b0", "2") in new stack
    -- Timeout on SIP/1102-000000b0, continuing...
    -- Executing [s@menu:7] BackGround("SIP/1102-000000b0", "/var/tmp/asterisk/message05") in new stack
    -- <SIP/1102-000000b0> Playing '/var/tmp/asterisk/message05.gsm' (language 'ru')
    -- Executing [s@menu:8] Hangup("SIP/1102-000000b0", "") in new stack
  == Spawn extension (menu, s, 8) exited non-zero on 'SIP/1102-000000b0'
linux1*CLI> exit
Executing last minute cleanups
/dev/pts/5
14:39:58
#asterisk -rvvvvvv
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 linux1 (pid = 1629)
...
    -- Executing [s@menu:5] BackGround("SIP/1102-000000b0", "/var/tmp/asterisk/message04") in new stack
    -- <SIP/1102-000000b0> Playing '/var/tmp/asterisk/message04.gsm' (language 'ru')
    -- Executing [s@menu:6] WaitExten("SIP/1102-000000b0", "2") in new stack
    -- Timeout on SIP/1102-000000b0, continuing...
    -- Executing [s@menu:7] BackGround("SIP/1102-000000b0", "/var/tmp/asterisk/message05") in new stack
    -- <SIP/1102-000000b0> Playing '/var/tmp/asterisk/message05.gsm' (language 'ru')
    -- Executing [s@menu:8] Hangup("SIP/1102-000000b0", "") in new stack
  == Spawn extension (menu, s, 8) exited non-zero on 'SIP/1102-000000b0'
linux1*CLI> exit
Executing last minute cleanups
/dev/pts/2
14:39:58
#asterisk -rvvvvvv
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 linux1 (pid = 1629)
...
    -- Executing [s@menu:5] BackGround("SIP/1102-000000b0", "/var/tmp/asterisk/message04") in new stack
    -- <SIP/1102-000000b0> Playing '/var/tmp/asterisk/message04.gsm' (language 'ru')
    -- Executing [s@menu:6] WaitExten("SIP/1102-000000b0", "2") in new stack
    -- Timeout on SIP/1102-000000b0, continuing...
    -- Executing [s@menu:7] BackGround("SIP/1102-000000b0", "/var/tmp/asterisk/message05") in new stack
    -- <SIP/1102-000000b0> Playing '/var/tmp/asterisk/message05.gsm' (language 'ru')
    -- Executing [s@menu:8] Hangup("SIP/1102-000000b0", "") in new stack
  == Spawn extension (menu, s, 8) exited non-zero on 'SIP/1102-000000b0'
linux1*CLI> exit
Executing last minute cleanups

Статистика

Время первой команды журнала13:17:05 2011- 6-29
Время последней команды журнала14:39:58 2011- 6-29
Количество командных строк в журнале101
Процент команд с ненулевым кодом завершения, %35.64
Процент синтаксически неверно набранных команд, % 0.00
Суммарное время работы с терминалом *, час 0.62
Количество командных строк в единицу времени, команда/мин 2.73
Частота использования команд
ls24|======================| 22.02%
vim18|================| 16.51%
asterisk15|=============| 13.76%
chown12|===========| 11.01%
_11XX,n,Hangup6|=====| 5.50%
mkdir6|=====| 5.50%
~6|=====| 5.50%
chmod6|=====| 5.50%
exten6|=====| 5.50%
cd6|=====| 5.50%
&2|=| 1.83%
make2|=| 1.83%
____
*) Интервалы неактивности длительностью 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$