/l3/users/2014-11-nt-voip/nt-voip/debian6/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 |
|
#apt-cache search asterisk
asterisk - Open Source Private Branch Exchange (PBX) asterisk-config - Configuration files for Asterisk asterisk-dahdi - DAHDI devices support for the Asterisk PBX asterisk-dbg - Debugging symbols for Asterisk asterisk-dev - Development files for Asterisk asterisk-doc - Source code documentation for Asterisk asterisk-mobile - Bluetooth phone support for the Asterisk PBX asterisk-modules - loadable modules for the Asterisk PBX asterisk-mp3 - MP3 playback support for the Asterisk PBX asterisk-mysql - MySQL database protocol support for the Asterisk PBX ... linphone-dbg - Debugging symbols for linphone and its libraries op-panel - switchboard type application for the Asterisk PBX libopenr2-3 - MFC/R2 (telephony) call setup library python-asterisk - Asterisk Manager API interface module for Python libsipwitch-dev - secure peer-to-peer SIP VoIP server - development files libsipwitch1 - secure peer-to-peer SIP VoIP server - development files libsipwitch1-dbg - secure peer-to-peer SIP VoIP server - development files sipwitch - secure peer-to-peer VoIP server for the SIP protocol sipwitch-cgi - secure peer-to-peer SIP VoIP server - CGI XML-RPC interface python-starpy - Asterisk (AMI) protocols for Twisted Python |
#apt-cache search asterisk
asterisk - Open Source Private Branch Exchange (PBX) asterisk-config - Configuration files for Asterisk asterisk-dahdi - DAHDI devices support for the Asterisk PBX asterisk-dbg - Debugging symbols for Asterisk asterisk-dev - Development files for Asterisk asterisk-doc - Source code documentation for Asterisk asterisk-mobile - Bluetooth phone support for the Asterisk PBX asterisk-modules - loadable modules for the Asterisk PBX asterisk-mp3 - MP3 playback support for the Asterisk PBX asterisk-mysql - MySQL database protocol support for the Asterisk PBX ... linphone-dbg - Debugging symbols for linphone and its libraries op-panel - switchboard type application for the Asterisk PBX libopenr2-3 - MFC/R2 (telephony) call setup library python-asterisk - Asterisk Manager API interface module for Python libsipwitch-dev - secure peer-to-peer SIP VoIP server - development files libsipwitch1 - secure peer-to-peer SIP VoIP server - development files libsipwitch1-dbg - secure peer-to-peer SIP VoIP server - development files sipwitch - secure peer-to-peer VoIP server for the SIP protocol sipwitch-cgi - secure peer-to-peer SIP VoIP server - CGI XML-RPC interface python-starpy - Asterisk (AMI) protocols for Twisted Python |
#apt-get install asterisk
Selecting previously unselected package freetds-common. Unpacking freetds-common (from .../freetds-common_0.91-2+deb7u1_all.deb) ... Selecting previously unselected package libsybdb5:amd64. Unpacking libsybdb5:amd64 (from .../libsybdb5_0.91-2+deb7u1_amd64.deb) ... Selecting previously unselected package asterisk-config. Unpacking asterisk-config (from .../asterisk-config_1%3a1.8.13.1~dfsg1-3+deb7u3_all.deb) ... Selecting previously unselected package libiksemel3. Unpacking libiksemel3 (from .../libiksemel3_1.2-4_amd64.deb) ... Selecting previously unselected package libpq5. Unpacking libpq5 (from .../libpq5_9.1.14-0+deb7u1_amd64.deb) ... ... Setting up libmail-sendmail-perl (0.79.16-1) ... Setting up libsox2 (14.4.0-3) ... Setting up libsox-fmt-alsa (14.4.0-3) ... Setting up libsox-fmt-base (14.4.0-3) ... Setting up module-assistant (0.11.4) ... Setting up rsync (3.0.9-4) ... update-rc.d: using dependency based boot sequencing Setting up sox (14.4.0-3) ... Setting up vpb-driver-source (4.2.55-1) ... Setting up asterisk-moh-opsound-gsm (2.03-1) ... |
#apt-get install asterisk
â ITU-T telephone code: â â â â3801___________________________________________________________________________________________________________________________ â â â â <Ok> â â â âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ Selecting previously unselected package libgettextpo0:amd64. (Reading database ... 130802 files and directories currently installed.) Unpacking libgettextpo0:amd64 (from .../libgettextpo0_0.18.1.1-9_amd64.deb) ... ... Setting up libmail-sendmail-perl (0.79.16-1) ... Setting up libsox2 (14.4.0-3) ... Setting up libsox-fmt-alsa (14.4.0-3) ... Setting up libsox-fmt-base (14.4.0-3) ... Setting up module-assistant (0.11.4) ... Setting up rsync (3.0.9-4) ... update-rc.d: using dependency based boot sequencing Setting up sox (14.4.0-3) ... Setting up vpb-driver-source (4.2.55-1) ... Setting up asterisk-moh-opsound-gsm (2.03-1) ... |
#dpkg -i asterisk
dpkg: error processing asterisk (--install): cannot access archive: No such file or directory Errors were encountered while processing: asterisk |
#dpkg -i asterisk
dpkg: error processing asterisk (--install): cannot access archive: No such file or directory Errors were encountered while processing: asterisk |
#dpkg -L asterisk-config
/. /usr /usr/share /usr/share/lintian /usr/share/lintian/overrides /usr/share/lintian/overrides/asterisk-config /usr/share/doc /usr/share/doc/asterisk-config /usr/share/doc/asterisk-config/NEWS.Debian.gz /usr/share/doc/asterisk-config/changelog.gz ... /etc/asterisk/iaxprov.conf /etc/asterisk/alsa.conf /etc/asterisk/manager.conf /etc/asterisk/cdr_adaptive_odbc.conf /etc/asterisk/extconfig.conf /etc/asterisk/enum.conf /etc/asterisk/extensions_minivm.conf /etc/asterisk/cli.conf /etc/asterisk/cel_tds.conf /etc/asterisk/dnsmgr.conf |
#dpkg -L asterisk-config
/. /usr /usr/share /usr/share/lintian /usr/share/lintian/overrides /usr/share/lintian/overrides/asterisk-config /usr/share/doc /usr/share/doc/asterisk-config /usr/share/doc/asterisk-config/NEWS.Debian.gz /usr/share/doc/asterisk-config/changelog.gz ... /etc/asterisk/iaxprov.conf /etc/asterisk/alsa.conf /etc/asterisk/manager.conf /etc/asterisk/cdr_adaptive_odbc.conf /etc/asterisk/extconfig.conf /etc/asterisk/enum.conf /etc/asterisk/extensions_minivm.conf /etc/asterisk/cli.conf /etc/asterisk/cel_tds.conf /etc/asterisk/dnsmgr.conf |
#dpkg -L asterisk-config /etc
/. /usr /usr/share /usr/share/lintian /usr/share/lintian/overrides /usr/share/lintian/overrides/asterisk-config /usr/share/doc /usr/share/doc/asterisk-config /usr/share/doc/asterisk-config/NEWS.Debian.gz /usr/share/doc/asterisk-config/changelog.gz ... /etc/asterisk/manager.conf /etc/asterisk/cdr_adaptive_odbc.conf /etc/asterisk/extconfig.conf /etc/asterisk/enum.conf /etc/asterisk/extensions_minivm.conf /etc/asterisk/cli.conf /etc/asterisk/cel_tds.conf /etc/asterisk/dnsmgr.conf dpkg-query: error: --listfiles needs a valid package name but '/etc' is not: illegal package name in specifier '/etc': must start with an alphanumeric character Use --help for help about querying packages. |
#dpkg -L asterisk-config /etc
/. /usr /usr/share /usr/share/lintian /usr/share/lintian/overrides /usr/share/lintian/overrides/asterisk-config /usr/share/doc /usr/share/doc/asterisk-config /usr/share/doc/asterisk-config/NEWS.Debian.gz /usr/share/doc/asterisk-config/changelog.gz ... /etc/asterisk/manager.conf /etc/asterisk/cdr_adaptive_odbc.conf /etc/asterisk/extconfig.conf /etc/asterisk/enum.conf /etc/asterisk/extensions_minivm.conf /etc/asterisk/cli.conf /etc/asterisk/cel_tds.conf /etc/asterisk/dnsmgr.conf dpkg-query: error: --listfiles needs a valid package name but '/etc' is not: illegal package name in specifier '/etc': must start with an alphanumeric character Use --help for help about querying packages. |
#dpkg -L asterisk-modules | less | grep app
/usr/lib/asterisk/modules/app_softhangup.so /usr/lib/asterisk/modules/app_waituntil.so /usr/lib/asterisk/modules/app_senddtmf.so /usr/lib/asterisk/modules/app_celgenuserevent.so /usr/lib/asterisk/modules/app_parkandannounce.so /usr/lib/asterisk/modules/app_userevent.so /usr/lib/asterisk/modules/app_transfer.so /usr/lib/asterisk/modules/app_playback.so /usr/lib/asterisk/modules/app_waitforring.so /usr/lib/asterisk/modules/app_read.so ... /usr/lib/asterisk/modules/app_nbscat.so /usr/lib/asterisk/modules/app_dictate.so /usr/lib/asterisk/modules/app_directory.so /usr/lib/asterisk/modules/app_festival.so /usr/lib/asterisk/modules/app_test.so /usr/lib/asterisk/modules/app_authenticate.so /usr/lib/asterisk/modules/app_externalivr.so /usr/lib/asterisk/modules/app_amd.so /usr/lib/asterisk/modules/app_morsecode.so /usr/lib/asterisk/modules/app_saycountpl.so |
#dpkg -L asterisk-modules | less | grep app
/usr/lib/asterisk/modules/app_softhangup.so /usr/lib/asterisk/modules/app_waituntil.so /usr/lib/asterisk/modules/app_senddtmf.so /usr/lib/asterisk/modules/app_celgenuserevent.so /usr/lib/asterisk/modules/app_parkandannounce.so /usr/lib/asterisk/modules/app_userevent.so /usr/lib/asterisk/modules/app_transfer.so /usr/lib/asterisk/modules/app_playback.so /usr/lib/asterisk/modules/app_waitforring.so /usr/lib/asterisk/modules/app_read.so ... /usr/lib/asterisk/modules/app_nbscat.so /usr/lib/asterisk/modules/app_dictate.so /usr/lib/asterisk/modules/app_directory.so /usr/lib/asterisk/modules/app_festival.so /usr/lib/asterisk/modules/app_test.so /usr/lib/asterisk/modules/app_authenticate.so /usr/lib/asterisk/modules/app_externalivr.so /usr/lib/asterisk/modules/app_amd.so /usr/lib/asterisk/modules/app_morsecode.so /usr/lib/asterisk/modules/app_saycountpl.so |
#dpkg -L asterisk-modules | less | grep chan
/usr/lib/asterisk/modules/chan_iax2.so /usr/lib/asterisk/modules/chan_agent.so /usr/lib/asterisk/modules/chan_bridge.so /usr/lib/asterisk/modules/res_calendar_exchange.so /usr/lib/asterisk/modules/chan_alsa.so /usr/lib/asterisk/modules/chan_skinny.so /usr/lib/asterisk/modules/app_chanisavail.so /usr/lib/asterisk/modules/chan_unistim.so /usr/lib/asterisk/modules/chan_local.so /usr/lib/asterisk/modules/chan_jingle.so ... /usr/lib/asterisk/modules/chan_phone.so /usr/lib/asterisk/modules/chan_multicast_rtp.so /usr/lib/asterisk/modules/app_chanspy.so /usr/lib/asterisk/modules/func_channel.so /usr/lib/asterisk/modules/chan_vpb.so /usr/lib/asterisk/modules/chan_gtalk.so /usr/lib/asterisk/modules/chan_oss.so /usr/lib/asterisk/modules/chan_sip.so /usr/share/doc/asterisk-modules/changelog.gz /usr/share/doc/asterisk-modules/changelog.Debian.gz |
#dpkg -L asterisk-modules | less | grep chan
/usr/lib/asterisk/modules/chan_iax2.so /usr/lib/asterisk/modules/chan_agent.so /usr/lib/asterisk/modules/chan_bridge.so /usr/lib/asterisk/modules/res_calendar_exchange.so /usr/lib/asterisk/modules/chan_alsa.so /usr/lib/asterisk/modules/chan_skinny.so /usr/lib/asterisk/modules/app_chanisavail.so /usr/lib/asterisk/modules/chan_unistim.so /usr/lib/asterisk/modules/chan_local.so /usr/lib/asterisk/modules/chan_jingle.so ... /usr/lib/asterisk/modules/chan_phone.so /usr/lib/asterisk/modules/chan_multicast_rtp.so /usr/lib/asterisk/modules/app_chanspy.so /usr/lib/asterisk/modules/func_channel.so /usr/lib/asterisk/modules/chan_vpb.so /usr/lib/asterisk/modules/chan_gtalk.so /usr/lib/asterisk/modules/chan_oss.so /usr/lib/asterisk/modules/chan_sip.so /usr/share/doc/asterisk-modules/changelog.gz /usr/share/doc/asterisk-modules/changelog.Debian.gz |
#ps -aux | grep [a]sterisk
warning: bad ps syntax, perhaps a bogus '-'? See http://gitorious.org/procps/procps/blobs/master/Documentation/FAQ asterisk 12316 0.1 0.1 755300 30176 ? Ssl 16:03 0:01 /usr/sbin/asterisk -p -U asterisk asterisk 12317 0.0 0.0 13916 772 ? S 16:03 0:00 astcanary /var/run/asterisk/alt.asterisk.canary.tweet.tweet.tweet 12316 |
#ps -aux | grep [a]sterisk
warning: bad ps syntax, perhaps a bogus '-'? See http://gitorious.org/procps/procps/blobs/master/Documentation/FAQ asterisk 12316 0.1 0.1 755300 30176 ? Ssl 16:03 0:01 /usr/sbin/asterisk -p -U asterisk asterisk 12317 0.0 0.0 13916 772 ? S 16:03 0:00 astcanary /var/run/asterisk/alt.asterisk.canary.tweet.tweet.tweet 12316 |
#ps aux | grep [a]sterisk
asterisk 12316 0.1 0.1 755300 30176 ? Ssl 16:03 0:01 /usr/sbin/asterisk -p -U asterisk asterisk 12317 0.0 0.0 13916 772 ? S 16:03 0:00 astcanary /var/run/asterisk/alt.asterisk.canary.tweet.tweet.tweet 12316 |
#ps aux | grep [a]sterisk
asterisk 12316 0.1 0.1 755300 30176 ? Ssl 16:03 0:01 /usr/sbin/asterisk -p -U asterisk asterisk 12317 0.0 0.0 13916 772 ? S 16:03 0:00 astcanary /var/run/asterisk/alt.asterisk.canary.tweet.tweet.tweet 12316 |
#asterisk -r
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian6 (pid = 12316) debian6*CLI> exit |
#asterisk -r
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian6 (pid = 12316) debian6*CLI> exit |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#ps aux | grep asterisk
asterisk 12608 1.8 0.1 756100 30292 ? Ssl 16:37 0:00 /usr/sbin/asterisk -p -U asterisk asterisk 12609 0.0 0.0 13916 772 ? S 16:37 0:00 astcanary /var/run/asterisk/alt.asterisk.canary.tweet.tweet.tweet 12608 root 12667 0.0 0.0 7836 888 pts/10 S+ 16:37 0:00 grep asterisk |
#ps aux | grep asterisk
asterisk 12608 1.8 0.1 756100 30292 ? Ssl 16:37 0:00 /usr/sbin/asterisk -p -U asterisk asterisk 12609 0.0 0.0 13916 772 ? S 16:37 0:00 astcanary /var/run/asterisk/alt.asterisk.canary.tweet.tweet.tweet 12608 root 12667 0.0 0.0 7836 888 pts/10 S+ 16:37 0:00 grep asterisk |
#ps aux | grep [a]sterisk
asterisk 12608 1.3 0.1 756100 30292 ? Ssl 16:37 0:00 /usr/sbin/asterisk -p -U asterisk asterisk 12609 0.0 0.0 13916 772 ? S 16:37 0:00 astcanary /var/run/asterisk/alt.asterisk.canary.tweet.tweet.tweet 12608 |
#ps aux | grep [a]sterisk
asterisk 12608 1.3 0.1 756100 30292 ? Ssl 16:37 0:00 /usr/sbin/asterisk -p -U asterisk asterisk 12609 0.0 0.0 13916 772 ? S 16:37 0:00 astcanary /var/run/asterisk/alt.asterisk.canary.tweet.tweet.tweet 12608 |
#netstat -lnp | grep aster
tcp 0 0 127.0.0.1:5038 0.0.0.0:* LISTEN 12608/asterisk tcp 0 0 0.0.0.0:2000 0.0.0.0:* LISTEN 12608/asterisk udp 0 0 0.0.0.0:4520 0.0.0.0:* 12608/asterisk udp 0 0 0.0.0.0:4569 0.0.0.0:* 12608/asterisk udp 0 0 0.0.0.0:5000 0.0.0.0:* 12608/asterisk udp 0 0 0.0.0.0:5060 0.0.0.0:* 12608/asterisk unix 2 [ ACC ] STREAM LISTENING 44934 12608/asterisk /var/run/asterisk/asterisk.ctl |
#netstat -lnp | grep aster
tcp 0 0 127.0.0.1:5038 0.0.0.0:* LISTEN 12608/asterisk tcp 0 0 0.0.0.0:2000 0.0.0.0:* LISTEN 12608/asterisk udp 0 0 0.0.0.0:4520 0.0.0.0:* 12608/asterisk udp 0 0 0.0.0.0:4569 0.0.0.0:* 12608/asterisk udp 0 0 0.0.0.0:5000 0.0.0.0:* 12608/asterisk udp 0 0 0.0.0.0:5060 0.0.0.0:* 12608/asterisk unix 2 [ ACC ] STREAM LISTENING 44934 12608/asterisk /var/run/asterisk/asterisk.ctl |
#asterisk -r
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian6 (pid = 12728) debian6*CLI> ael reload [Nov 24 16:40:42] NOTICE[12787]: pbx_ael.c:164 pbx_load_module: Starting AEL load process. ... translation uptime version warranty debian6*CLI> sip show peers Name/username Host Dyn Forcerport ACL Port Status 0 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 0 offline] debian6*CLI> sip show users Username Secret Accountcode Def.Context ACL ForcerPort debian6*CLI> sip show peers Name/username Host Dyn Forcerport ACL Port Status 0 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 0 offline] debian6*CLI> exit |
#asterisk -r
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian6 (pid = 12728) debian6*CLI> ael reload [Nov 24 16:40:42] NOTICE[12787]: pbx_ael.c:164 pbx_load_module: Starting AEL load process. ... translation uptime version warranty debian6*CLI> sip show peers Name/username Host Dyn Forcerport ACL Port Status 0 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 0 offline] debian6*CLI> sip show users Username Secret Accountcode Def.Context ACL ForcerPort debian6*CLI> sip show peers Name/username Host Dyn Forcerport ACL Port Status 0 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 0 offline] debian6*CLI> exit |
#mv /etc/asterisk/extensions.conf{,.bak}
mv: cannot stat `/etc/asterisk/extensions.conf': No such file or directory |
#mv /etc/asterisk/extensions.conf{,.bak}
mv: cannot stat `/etc/asterisk/extensions.conf': No such file or directory |
#ls -l /etc/asterisk/
total 672 -rw-r----- 1 asterisk asterisk 140 Jan 4 2014 adsi.conf -rw-r----- 1 asterisk asterisk 2760 Jan 4 2014 agents.conf -rw-r----- 1 asterisk asterisk 2904 Jan 4 2014 ais.conf -rw-r----- 1 asterisk asterisk 2084 Jan 4 2014 alarmreceiver.conf -rw-r----- 1 asterisk asterisk 3498 Jan 4 2014 alsa.conf -rw-r----- 1 asterisk asterisk 767 Jan 4 2014 amd.conf -rw-r----- 1 asterisk asterisk 1044 Jan 4 2014 app_mysql.conf -rw-r----- 1 asterisk asterisk 3254 Jan 4 2014 asterisk.adsi -rw-r----- 1 asterisk asterisk 3465 Jan 4 2014 asterisk.conf ... -rw-r----- 1 asterisk asterisk 742 Jan 4 2014 sip_notify.conf -rw-r----- 1 asterisk asterisk 9185 Jan 4 2014 skinny.conf -rw-r----- 1 asterisk asterisk 6774 Jan 4 2014 sla.conf -rw-r----- 1 asterisk asterisk 2669 Jan 4 2014 smdi.conf -rw-r----- 1 asterisk asterisk 1384 Jan 4 2014 telcordia-1.adsi -rw-r----- 1 asterisk asterisk 656 Jan 4 2014 udptl.conf -rw-r----- 1 asterisk asterisk 5096 Jan 4 2014 unistim.conf -rw-r----- 1 asterisk asterisk 2423 Jan 4 2014 users.conf -rw-r----- 1 asterisk asterisk 21238 Jan 4 2014 voicemail.conf -rw-r----- 1 asterisk asterisk 5939 Jan 4 2014 vpb.conf |
#ls -l /etc/asterisk/
total 672 -rw-r----- 1 asterisk asterisk 140 Jan 4 2014 adsi.conf -rw-r----- 1 asterisk asterisk 2760 Jan 4 2014 agents.conf -rw-r----- 1 asterisk asterisk 2904 Jan 4 2014 ais.conf -rw-r----- 1 asterisk asterisk 2084 Jan 4 2014 alarmreceiver.conf -rw-r----- 1 asterisk asterisk 3498 Jan 4 2014 alsa.conf -rw-r----- 1 asterisk asterisk 767 Jan 4 2014 amd.conf -rw-r----- 1 asterisk asterisk 1044 Jan 4 2014 app_mysql.conf -rw-r----- 1 asterisk asterisk 3254 Jan 4 2014 asterisk.adsi -rw-r----- 1 asterisk asterisk 3465 Jan 4 2014 asterisk.conf ... -rw-r----- 1 asterisk asterisk 742 Jan 4 2014 sip_notify.conf -rw-r----- 1 asterisk asterisk 9185 Jan 4 2014 skinny.conf -rw-r----- 1 asterisk asterisk 6774 Jan 4 2014 sla.conf -rw-r----- 1 asterisk asterisk 2669 Jan 4 2014 smdi.conf -rw-r----- 1 asterisk asterisk 1384 Jan 4 2014 telcordia-1.adsi -rw-r----- 1 asterisk asterisk 656 Jan 4 2014 udptl.conf -rw-r----- 1 asterisk asterisk 5096 Jan 4 2014 unistim.conf -rw-r----- 1 asterisk asterisk 2423 Jan 4 2014 users.conf -rw-r----- 1 asterisk asterisk 21238 Jan 4 2014 voicemail.conf -rw-r----- 1 asterisk asterisk 5939 Jan 4 2014 vpb.conf |
#ls /etc/asterisk/
adsi.conf cdr_syslog.conf dundi.conf manager.conf res_ldap.conf agents.conf cdr_tds.conf enum.conf manager.d res_odbc.conf ais.conf cel.conf extconfig.conf meetme.conf res_pgsql.conf alarmreceiver.conf cel_custom.conf extensions.ael mgcp.conf res_pktccops.conf alsa.conf cel_odbc.conf extensions.lua minivm.conf res_snmp.conf amd.conf cel_pgsql.conf extensions_minivm.conf misdn.conf res_stun_monitor.conf app_mysql.conf cel_sqlite3_custom.conf features.conf modules.conf rtp.conf asterisk.adsi cel_tds.conf festival.conf musiconhold.conf say.conf asterisk.conf chan_dahdi.conf followme.conf muted.conf sip_notify.conf calendar.conf chan_mobile.conf func_odbc.conf osp.conf skinny.conf ccss.conf chan_ooh323.conf gtalk.conf oss.conf sla.conf cdr_adaptive_odbc.conf cli_aliases.conf h323.conf phone.conf smdi.conf cdr.conf cli.conf http.conf phoneprov.conf telcordia-1.adsi cdr_custom.conf cli_permissions.conf iax.conf queuerules.conf udptl.conf cdr_manager.conf codecs.conf iaxprov.conf queues.conf unistim.conf cdr_mysql.conf console.conf indications.conf res_config_mysql.conf users.conf cdr_odbc.conf dbsep.conf jabber.conf res_config_sqlite.conf voicemail.conf cdr_pgsql.conf dnsmgr.conf jingle.conf res_curl.conf vpb.conf cdr_sqlite3_custom.conf dsp.conf logger.conf res_fax.conf |
#ls /etc/asterisk/
adsi.conf cdr_syslog.conf dundi.conf manager.conf res_ldap.conf agents.conf cdr_tds.conf enum.conf manager.d res_odbc.conf ais.conf cel.conf extconfig.conf meetme.conf res_pgsql.conf alarmreceiver.conf cel_custom.conf extensions.ael mgcp.conf res_pktccops.conf alsa.conf cel_odbc.conf extensions.lua minivm.conf res_snmp.conf amd.conf cel_pgsql.conf extensions_minivm.conf misdn.conf res_stun_monitor.conf app_mysql.conf cel_sqlite3_custom.conf features.conf modules.conf rtp.conf asterisk.adsi cel_tds.conf festival.conf musiconhold.conf say.conf asterisk.conf chan_dahdi.conf followme.conf muted.conf sip_notify.conf calendar.conf chan_mobile.conf func_odbc.conf osp.conf skinny.conf ccss.conf chan_ooh323.conf gtalk.conf oss.conf sla.conf cdr_adaptive_odbc.conf cli_aliases.conf h323.conf phone.conf smdi.conf cdr.conf cli.conf http.conf phoneprov.conf telcordia-1.adsi cdr_custom.conf cli_permissions.conf iax.conf queuerules.conf udptl.conf cdr_manager.conf codecs.conf iaxprov.conf queues.conf unistim.conf cdr_mysql.conf console.conf indications.conf res_config_mysql.conf users.conf cdr_odbc.conf dbsep.conf jabber.conf res_config_sqlite.conf voicemail.conf cdr_pgsql.conf dnsmgr.conf jingle.conf res_curl.conf vpb.conf cdr_sqlite3_custom.conf dsp.conf logger.conf res_fax.conf |
#apt
apt-cache apt-ftparchive aptitude-curses apt-mark apt-cdrom apt-get aptitude-run-state-bundle apt-sortpkgs apt-config aptitude apt-key apt-extracttemplates aptitude-create-state-bundle apt-listchanges |
#apt-get ?
E: Invalid operation ? |
#apt
apt-cache apt-ftparchive aptitude-curses apt-mark apt-cdrom apt-get aptitude-run-state-bundle apt-sortpkgs apt-config aptitude apt-key apt-extracttemplates aptitude-create-state-bundle apt-listchanges |
#apt-get ?
E: Invalid operation ? |
#apt-get
apt 0.9.7.9 for amd64 compiled on Oct 8 2014 10:25:29 Usage: apt-get [options] command apt-get [options] install|remove pkg1 [pkg2 ...] apt-get [options] source pkg1 [pkg2 ...] apt-get is a simple command line interface for downloading and installing packages. The most frequently used commands are update and install. Commands: update - Retrieve new lists of packages upgrade - Perform an upgrade ... -f Attempt to correct a system with broken dependencies in place -m Attempt to continue if archives are unlocatable -u Show a list of upgraded packages as well -b Build the source package after fetching it -V Show verbose version numbers -c=? Read this configuration file -o=? Set an arbitrary configuration option, eg -o dir::cache=/tmp See the apt-get(8), sources.list(5) and apt.conf(5) manual pages for more information and options. This APT has Super Cow Powers. |
#apt-get
apt 0.9.7.9 for amd64 compiled on Oct 8 2014 10:25:29 Usage: apt-get [options] command apt-get [options] install|remove pkg1 [pkg2 ...] apt-get [options] source pkg1 [pkg2 ...] apt-get is a simple command line interface for downloading and installing packages. The most frequently used commands are update and install. Commands: update - Retrieve new lists of packages upgrade - Perform an upgrade ... -f Attempt to correct a system with broken dependencies in place -m Attempt to continue if archives are unlocatable -u Show a list of upgraded packages as well -b Build the source package after fetching it -V Show verbose version numbers -c=? Read this configuration file -o=? Set an arbitrary configuration option, eg -o dir::cache=/tmp See the apt-get(8), sources.list(5) and apt.conf(5) manual pages for more information and options. This APT has Super Cow Powers. |
#apt-get install asterisk
Reading package lists... Done Building dependency tree Reading state information... Done asterisk is already the newest version. The following packages were automatically installed and are no longer required: libgadu3 libmozjs24d xulrunner-24.0 Use 'apt-get autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 16 not upgraded. |
#apt-get install asterisk
Reading package lists... Done Building dependency tree Reading state information... Done asterisk is already the newest version. The following packages were automatically installed and are no longer required: libgadu3 libmozjs24d xulrunner-24.0 Use 'apt-get autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 16 not upgraded. |
#ls /etc/asterisk/
adsi.conf cdr_syslog.conf dundi.conf logger.conf res_fax.conf agents.conf cdr_tds.conf enum.conf manager.conf res_ldap.conf ais.conf cel.conf extconfig.conf manager.d res_odbc.conf alarmreceiver.conf cel_custom.conf extensions.ael meetme.conf res_pgsql.conf alsa.conf cel_odbc.conf extensions.conf.bak mgcp.conf res_pktccops.conf amd.conf cel_pgsql.conf extensions.lua minivm.conf res_snmp.conf app_mysql.conf cel_sqlite3_custom.conf extensions_minivm.conf misdn.conf res_stun_monitor.conf asterisk.adsi cel_tds.conf features.conf modules.conf rtp.conf asterisk.conf chan_dahdi.conf festival.conf musiconhold.conf say.conf calendar.conf chan_mobile.conf followme.conf muted.conf sip_notify.conf ccss.conf chan_ooh323.conf func_odbc.conf osp.conf skinny.conf cdr_adaptive_odbc.conf cli_aliases.conf gtalk.conf oss.conf sla.conf cdr.conf cli.conf h323.conf phone.conf smdi.conf cdr_custom.conf cli_permissions.conf http.conf phoneprov.conf telcordia-1.adsi cdr_manager.conf codecs.conf iax.conf queuerules.conf udptl.conf cdr_mysql.conf console.conf iaxprov.conf queues.conf unistim.conf cdr_odbc.conf dbsep.conf indications.conf res_config_mysql.conf users.conf cdr_pgsql.conf dnsmgr.conf jabber.conf res_config_sqlite.conf voicemail.conf cdr_sqlite3_custom.conf dsp.conf jingle.conf res_curl.conf vpb.conf |
#ls /etc/asterisk/
adsi.conf cdr_syslog.conf dundi.conf logger.conf res_fax.conf agents.conf cdr_tds.conf enum.conf manager.conf res_ldap.conf ais.conf cel.conf extconfig.conf manager.d res_odbc.conf alarmreceiver.conf cel_custom.conf extensions.ael meetme.conf res_pgsql.conf alsa.conf cel_odbc.conf extensions.conf.bak mgcp.conf res_pktccops.conf amd.conf cel_pgsql.conf extensions.lua minivm.conf res_snmp.conf app_mysql.conf cel_sqlite3_custom.conf extensions_minivm.conf misdn.conf res_stun_monitor.conf asterisk.adsi cel_tds.conf features.conf modules.conf rtp.conf asterisk.conf chan_dahdi.conf festival.conf musiconhold.conf say.conf calendar.conf chan_mobile.conf followme.conf muted.conf sip_notify.conf ccss.conf chan_ooh323.conf func_odbc.conf osp.conf skinny.conf cdr_adaptive_odbc.conf cli_aliases.conf gtalk.conf oss.conf sla.conf cdr.conf cli.conf h323.conf phone.conf smdi.conf cdr_custom.conf cli_permissions.conf http.conf phoneprov.conf telcordia-1.adsi cdr_manager.conf codecs.conf iax.conf queuerules.conf udptl.conf cdr_mysql.conf console.conf iaxprov.conf queues.conf unistim.conf cdr_odbc.conf dbsep.conf indications.conf res_config_mysql.conf users.conf cdr_pgsql.conf dnsmgr.conf jabber.conf res_config_sqlite.conf voicemail.conf cdr_sqlite3_custom.conf dsp.conf jingle.conf res_curl.conf vpb.conf |
#ls /etc/asterisk/ | grep ext
extconfig.conf extensions.ael extensions.conf.bak extensions.lua extensions_minivm.conf |
#ls /etc/asterisk/ | grep ext
extconfig.conf extensions.ael extensions.conf.bak extensions.lua extensions_minivm.conf |
#vim /etc/asterisk/sip.conf
--- /dev/null 2014-11-24 08:50:04.273862305 +0200 +++ /etc/asterisk/sip.conf 2014-11-24 17:09:17.867304451 +0200 @@ -0,0 +1,13 @@ +[general] +context=default + +[2301] +type=friend +secret=1234 +host=dynamic + +[2302] +type=friend +secret=1234 +host=dynamic + |
#asterisk -rx "sip show peers"
Name/username Host Dyn Forcerport ACL Port Status 2301 (Unspecified) D N 0 Unmonitored 2302 (Unspecified) D N 0 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline] |
#asterisk -rx "sip show peers"
Name/username Host Dyn Forcerport ACL Port Status 2301 (Unspecified) D N 0 Unmonitored 2302 (Unspecified) D N 0 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline] |
#asterisk -rx "sip show peers"
Name/username Host Dyn Forcerport ACL Port Status 2301 (Unspecified) D N 0 Unmonitored 2302 (Unspecified) D N 0 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline] |
#asterisk -rx "sip show peers"
Name/username Host Dyn Forcerport ACL Port Status 2301 (Unspecified) D N 0 Unmonitored 2302 (Unspecified) D N 0 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline] |
#asterisk -rx "sip show peers"
Name/username Host Dyn Forcerport ACL Port Status 2301 (Unspecified) D N 0 Unmonitored 2302 (Unspecified) D N 0 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline] |
#asterisk -rx "sip show peers"
Name/username Host Dyn Forcerport ACL Port Status 2301 (Unspecified) D N 0 Unmonitored 2302 (Unspecified) D N 0 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline] |
#asterisk -rx "sip show peers"
Name/username Host Dyn Forcerport ACL Port Status 2301 (Unspecified) D N 0 Unmonitored 2302 (Unspecified) D N 0 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline] |
#asterisk -rx "sip show peers"
Name/username Host Dyn Forcerport ACL Port Status 2301 (Unspecified) D N 0 Unmonitored 2302 (Unspecified) D N 0 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline] |
#asterisk -rx "sip show peers"
Name/username Host Dyn Forcerport ACL Port Status 2301 (Unspecified) D N 0 Unmonitored 2302 (Unspecified) D N 0 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline] |
#asterisk -rx "sip show peers"
Name/username Host Dyn Forcerport ACL Port Status 2301 (Unspecified) D N 0 Unmonitored 2302 (Unspecified) D N 0 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline] |
#asterisk -rx "sip show peers"
Name/username Host Dyn Forcerport ACL Port Status 2301 (Unspecified) D N 0 Unmonitored 2302 (Unspecified) D N 0 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline] |
#asterisk -rx "sip show peers"
Name/username Host Dyn Forcerport ACL Port Status 2301 (Unspecified) D N 0 Unmonitored 2302 (Unspecified) D N 0 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline] |
#asterisk -rx "sip show peers"
Name/username Host Dyn Forcerport ACL Port Status 2301 (Unspecified) D N 0 Unmonitored 2302 (Unspecified) D N 0 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline] |
#asterisk -rx "sip show peers"
Name/username Host Dyn Forcerport ACL Port Status 2301 (Unspecified) D N 0 Unmonitored 2302 (Unspecified) D N 0 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline] |
#asterisk -rx "sip show peers"
Name/username Host Dyn Forcerport ACL Port Status 2301 (Unspecified) D N 0 Unmonitored 2302 (Unspecified) D N 0 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline] |
Время первой команды журнала | 14:19:02 2014-11-24 | |||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 16:29:40 2014-11-24 | |||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 15.84 | |||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 1.98 | |||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.55 | |||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.08 | |||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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