/l3/users/olef-alex/ais-voip-2011-jun/linux1.unix.ais/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 |
|
#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 |
#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 |
#ls usr/local/bin
ls: невозможно получить доступ к usr/local/bin: Нет такого файла или каталога |
#ls usr/local/bin
ls: невозможно получить доступ к usr/local/bin: Нет такого файла или каталога |
#ls usr/local/bin
ls: невозможно получить доступ к usr/local/bin: Нет такого файла или каталога |
#ls usr/local/bin
ls: невозможно получить доступ к usr/local/bin: Нет такого файла или каталога |
#ls usr/local/bin
ls: невозможно получить доступ к usr/local/bin: Нет такого файла или каталога |
#ls usr/local/bin
ls: невозможно получить доступ к usr/local/bin: Нет такого файла или каталога |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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}) |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#~
[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% |
#~
"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% |
#~
; ; 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% |
#~
; 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% |
#~
; ; 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% |
#~
; 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% |
#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 записано |
#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 записано |
#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 записано |
#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 записано |
#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 записано |
#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 записано |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 | ||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.
Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
$ l s-l bash: l: command not found |
Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
$ test 5 -lt 4 |
Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
$ 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 |
Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
# id uid=0(root) gid=0(root) Gruppen=0(root) |
Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
$ vi ~/.bashrc
|
Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
$ patch ~/.bashrc |
Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.
Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.
Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.
Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора
Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.
Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.
Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:
$ whoami
user
$ #^ Интересно, кто я?в журнале это будет выглядеть так:
$ whoami
user
Интересно, кто я? |
Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:
$ whoami
user
$ cat > /dev/null #^ Интересно, кто я?
Программа whoami выводит имя пользователя, под которым мы зарегистрировались в системе. - Она не может ответить на вопрос о нашем назначении в этом мире.В журнале это будет выглядеть так:
$ whoami user
|
Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=
1 2 3 4Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.
LiLaLo (L3) расшифровывается как Live Lab Log.
Программа разработана для повышения эффективности обучения Unix/Linux-системам.
(c) Игорь Чубин, 2004-2008