/l3/users/2014-11-nt-voip/nt-voip/debian6/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 |
|
#vim /etc/asterisk/musiconhold.conf
--- /tmp/l3-saved-22259.16973.32270 2014-11-26 13:49:13.811700737 +0200 +++ /etc/asterisk/musiconhold.conf 2014-11-26 13:50:06.391700033 +0200 @@ -44,7 +44,7 @@ [default] mode=files -directory=moh +directory=/var/lib/asterisk/moh/ ; ;[native-random] ;mode=files |
#apt-cache search dahdi source
asterisk-dahdi - DAHDI devices support for the Asterisk PBX dahdi-source - DAHDI telephony interface - source code for kernel driver |
#apt-cache search dahdi source
asterisk-dahdi - DAHDI devices support for the Asterisk PBX dahdi-source - DAHDI telephony interface - source code for kernel driver |
#apt-cache search dahdi source
asterisk-dahdi - DAHDI devices support for the Asterisk PBX dahdi-source - DAHDI telephony interface - source code for kernel driver |
#apt-get install dahdi-source
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: libgadu3 libmozjs24d xulrunner-24.0 Use 'apt-get autoremove' to remove them. The following extra packages will be installed: dahdi-linux fxload The following NEW packages will be installed: dahdi-linux dahdi-source fxload ... (Reading database ... 135640 files and directories currently installed.) Unpacking fxload (from .../fxload_0.0.20081013-1_amd64.deb) ... Selecting previously unselected package dahdi-linux. Unpacking dahdi-linux (from .../dahdi-linux_1%3a2.6.1+dfsg2-1_all.deb) ... Selecting previously unselected package dahdi-source. Unpacking dahdi-source (from .../dahdi-source_1%3a2.6.1+dfsg2-1_all.deb) ... Processing triggers for man-db ... Setting up fxload (0.0.20081013-1) ... Setting up dahdi-linux (1:2.6.1+dfsg2-1) ... Setting up dahdi-source (1:2.6.1+dfsg2-1) ... |
#apt-get install dahdi-source
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: libgadu3 libmozjs24d xulrunner-24.0 Use 'apt-get autoremove' to remove them. The following extra packages will be installed: dahdi-linux fxload The following NEW packages will be installed: dahdi-linux dahdi-source fxload ... (Reading database ... 135640 files and directories currently installed.) Unpacking fxload (from .../fxload_0.0.20081013-1_amd64.deb) ... Selecting previously unselected package dahdi-linux. Unpacking dahdi-linux (from .../dahdi-linux_1%3a2.6.1+dfsg2-1_all.deb) ... Selecting previously unselected package dahdi-source. Unpacking dahdi-source (from .../dahdi-source_1%3a2.6.1+dfsg2-1_all.deb) ... Processing triggers for man-db ... Setting up fxload (0.0.20081013-1) ... Setting up dahdi-linux (1:2.6.1+dfsg2-1) ... Setting up dahdi-source (1:2.6.1+dfsg2-1) ... |
#apt-get install dahdi-source
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: libgadu3 libmozjs24d xulrunner-24.0 Use 'apt-get autoremove' to remove them. The following extra packages will be installed: dahdi-linux fxload The following NEW packages will be installed: dahdi-linux dahdi-source fxload ... (Reading database ... 135640 files and directories currently installed.) Unpacking fxload (from .../fxload_0.0.20081013-1_amd64.deb) ... Selecting previously unselected package dahdi-linux. Unpacking dahdi-linux (from .../dahdi-linux_1%3a2.6.1+dfsg2-1_all.deb) ... Selecting previously unselected package dahdi-source. Unpacking dahdi-source (from .../dahdi-source_1%3a2.6.1+dfsg2-1_all.deb) ... Processing triggers for man-db ... Setting up fxload (0.0.20081013-1) ... Setting up dahdi-linux (1:2.6.1+dfsg2-1) ... Setting up dahdi-source (1:2.6.1+dfsg2-1) ... |
#m-a a-i dahdi
Done! download Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: libgadu3 libmozjs24d xulrunner-24.0 Use 'apt-get autoremove' to remove them. The following extra packages will be installed: libtonezone2.0 ... â â â 100% â â â âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ Done with /usr/src/dahdi-modules-3.2.0-4-amd64_2.6.1+dfsg2-1+3.2.63-2+deb7u1_amd64.deb . dpkg -Ei /usr/src/dahdi-modules-3.2.0-4-amd64_2.6.1+dfsg2-1+3.2.63-2+deb7u1_amd64.deb Selecting previously unselected package dahdi-modules-3.2.0-4-amd64. (Reading database ... 144750 files and directories currently installed.) Unpacking dahdi-modules-3.2.0-4-amd64 (from .../dahdi-modules-3.2.0-4-amd64_2.6.1+dfsg2-1+3.2.63-2+deb7u1_amd64.deb) ... Setting up dahdi-modules-3.2.0-4-amd64 (1:2.6.1+dfsg2-1+3.2.63-2+deb7u1) ... |
#m-a a-i dahdi
Get:6 http://security.debian.org/ wheezy/updates/main linux-headers-3.2.0-4-amd64 amd64 3.2.63-2+deb7u1 [623 kB] Fetched 16.7 MB in 6s (2,710 kB/s) Selecting previously unselected package gcc-4.6-base:amd64. (Reading database ... 135684 files and directories currently installed.) Unpacking gcc-4.6-base:amd64 (from .../gcc-4.6-base_4.6.3-14_amd64.deb) ... Selecting previously unselected package cpp-4.6. Unpacking cpp-4.6 (from .../cpp-4.6_4.6.3-14_amd64.deb) ... Selecting previously unselected package gcc-4.6. Unpacking gcc-4.6 (from .../gcc-4.6_4.6.3-14_amd64.deb) ... Selecting previously unselected package linux-headers-3.2.0-4-common. ... â â â 100% â â â âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ Done with /usr/src/dahdi-modules-3.2.0-4-amd64_2.6.1+dfsg2-1+3.2.63-2+deb7u1_amd64.deb . dpkg -Ei /usr/src/dahdi-modules-3.2.0-4-amd64_2.6.1+dfsg2-1+3.2.63-2+deb7u1_amd64.deb Selecting previously unselected package dahdi-modules-3.2.0-4-amd64. (Reading database ... 144750 files and directories currently installed.) Unpacking dahdi-modules-3.2.0-4-amd64 (from .../dahdi-modules-3.2.0-4-amd64_2.6.1+dfsg2-1+3.2.63-2+deb7u1_amd64.deb) ... Setting up dahdi-modules-3.2.0-4-amd64 (1:2.6.1+dfsg2-1+3.2.63-2+deb7u1) ... |
#m-a a-i dahdi
âââââââââââââââââââââ⤠Updating cached package data âââââââââââââââââââââââ â Reading apt-cache output... â â â â â â 100% â â â âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ Updated infos about 1 packages unpack Extracting the package tarball, /usr/src/dahdi.tar.bz2, please wait... ... â â â 100% â â â âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ Done with /usr/src/dahdi-modules-3.2.0-4-amd64_2.6.1+dfsg2-1+3.2.63-2+deb7u1_amd64.deb . dpkg -Ei /usr/src/dahdi-modules-3.2.0-4-amd64_2.6.1+dfsg2-1+3.2.63-2+deb7u1_amd64.deb Selecting previously unselected package dahdi-modules-3.2.0-4-amd64. (Reading database ... 144750 files and directories currently installed.) Unpacking dahdi-modules-3.2.0-4-amd64 (from .../dahdi-modules-3.2.0-4-amd64_2.6.1+dfsg2-1+3.2.63-2+deb7u1_amd64.deb) ... Setting up dahdi-modules-3.2.0-4-amd64 (1:2.6.1+dfsg2-1+3.2.63-2+deb7u1) ... |
#/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. |
#/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. |
#/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. |
#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 = 30032) debian6*CLI> dialplan reload Dialplan reloaded. debian6*CLI> ! ael agent agi aoc calendar cc cdr cel channel cli config console core data database devstate dialplan dnsmgr dundi event fax features file group gtalk hangup help http iax2 indication jabber jingle keys local logger manager minivm mixmonitor module moh no odbc originate parkedcalls phoneprov pri queue realtime reload rtcp rtp say sip skinny sqlite stun timing udptl ulimit unistim voicemail 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 = 30032) debian6*CLI> dialplan reload Dialplan reloaded. debian6*CLI> ! ael agent agi aoc calendar cc cdr cel channel cli config console core data database devstate dialplan dnsmgr dundi event fax features file group gtalk hangup help http iax2 indication jabber jingle keys local logger manager minivm mixmonitor module moh no odbc originate parkedcalls phoneprov pri queue realtime reload rtcp rtp say sip skinny sqlite stun timing udptl ulimit unistim voicemail 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 = 30032) debian6*CLI> dialplan reload Dialplan reloaded. debian6*CLI> ! ael agent agi aoc calendar cc cdr cel channel cli config console core data database devstate dialplan dnsmgr dundi event fax features file group gtalk hangup help http iax2 indication jabber jingle keys local logger manager minivm mixmonitor module moh no odbc originate parkedcalls phoneprov pri queue realtime reload rtcp rtp say sip skinny sqlite stun timing udptl ulimit unistim voicemail debian6*CLI> exit |
#apt-get install asterisk-dahdi
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: libgadu3 libmozjs24d xulrunner-24.0 Use 'apt-get autoremove' to remove them. The following extra packages will be installed: libopenr2-3 libpri1.4 libss7-1 The following NEW packages will be installed: asterisk-dahdi libopenr2-3 libpri1.4 libss7-1 ... Selecting previously unselected package libpri1.4. Unpacking libpri1.4 (from .../libpri1.4_1.4.12-2_amd64.deb) ... Selecting previously unselected package libss7-1. Unpacking libss7-1 (from .../libss7-1_1.0.2-3_amd64.deb) ... Selecting previously unselected package asterisk-dahdi. Unpacking asterisk-dahdi (from .../asterisk-dahdi_1%3a1.8.13.1~dfsg1-3+deb7u3_amd64.deb) ... Setting up libopenr2-3 (1.3.2-1.1) ... Setting up libpri1.4 (1.4.12-2) ... Setting up libss7-1 (1.0.2-3) ... Setting up asterisk-dahdi (1:1.8.13.1~dfsg1-3+deb7u3) ... |
#apt-get install asterisk-dahdi
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: libgadu3 libmozjs24d xulrunner-24.0 Use 'apt-get autoremove' to remove them. The following extra packages will be installed: libopenr2-3 libpri1.4 libss7-1 The following NEW packages will be installed: asterisk-dahdi libopenr2-3 libpri1.4 libss7-1 ... Selecting previously unselected package libpri1.4. Unpacking libpri1.4 (from .../libpri1.4_1.4.12-2_amd64.deb) ... Selecting previously unselected package libss7-1. Unpacking libss7-1 (from .../libss7-1_1.0.2-3_amd64.deb) ... Selecting previously unselected package asterisk-dahdi. Unpacking asterisk-dahdi (from .../asterisk-dahdi_1%3a1.8.13.1~dfsg1-3+deb7u3_amd64.deb) ... Setting up libopenr2-3 (1.3.2-1.1) ... Setting up libpri1.4 (1.4.12-2) ... Setting up libss7-1 (1.0.2-3) ... Setting up asterisk-dahdi (1:1.8.13.1~dfsg1-3+deb7u3) ... |
#apt-get install asterisk-dahdi
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: libgadu3 libmozjs24d xulrunner-24.0 Use 'apt-get autoremove' to remove them. The following extra packages will be installed: libopenr2-3 libpri1.4 libss7-1 The following NEW packages will be installed: asterisk-dahdi libopenr2-3 libpri1.4 libss7-1 ... Selecting previously unselected package libpri1.4. Unpacking libpri1.4 (from .../libpri1.4_1.4.12-2_amd64.deb) ... Selecting previously unselected package libss7-1. Unpacking libss7-1 (from .../libss7-1_1.0.2-3_amd64.deb) ... Selecting previously unselected package asterisk-dahdi. Unpacking asterisk-dahdi (from .../asterisk-dahdi_1%3a1.8.13.1~dfsg1-3+deb7u3_amd64.deb) ... Setting up libopenr2-3 (1.3.2-1.1) ... Setting up libpri1.4 (1.4.12-2) ... Setting up libss7-1 (1.0.2-3) ... Setting up asterisk-dahdi (1:1.8.13.1~dfsg1-3+deb7u3) ... |
#[local]
exten => _82XX,1,Playback(/var/tmp/asterisk/record${EXTEN:2}) ; добавлÑÐµÑ Ð½Ð¾Ð¼ÐµÑ Ð½Ð° коÑоÑÑй позвониÑÑ Ð¸ ÑзнаÑÑ ÑÐ²Ð¾Ñ Ð¿Ð¾ÑÑÑ - позвониÑÑ Ð½Ð° 8001 ; ÑÑÐ°Ð·Ñ Ð¾ÑкÑÑÑÑ Ð¼Ð¾Ð¹ ÑÑик: 83ХХ => оÑкÑÑваеÑÑÑ ÑÑик 33ХХ exten => _83XX,1,VoiceMailMain(23${EXTEN:2}@default) exten => _801X,1,MeetMe(10${EXTEN:3}) [local]> _23XX,1,Dial(SIP/${EXTEN},5) [local] exten => _23XX,1,NoOp(Conference for external users) 239X,n,MeetMe(10${EXTEN:3}) exten => _23XX,1,Dial(SIP/${EXTEN},5) exten => _23XX,1,Dial(SIP/${EXTEN},5)½Ð¸Ð» ,n,VoiceMail(${EXTEN}@default) ;кÑо звонил ÐºÐ¾Ð¼Ñ Ð·Ð²Ð¾Ð½Ð¸Ð»ERID(num)}-${STRFTIME(${EPOCH},Europe/Kiev,"%Y-%m-%d-%H:%M:%S")}) exten => _23XX,n,Set(CALLS=${EXTEN}-${CALLERID(num)}-${STRFTIME(${EPOCH},Europe/Kiev,"%Y-%m-%d-%H:%M:%S")}) ;запиÑÑ Ð·Ð²Ð¾Ð½ÐºÐ° [ ] exten => _13XX,1,Dial(SIP/minsk/${EXTEN}) [national] exten => _13XX,1,Dial(SIP/minsk/${EXTEN}) [international] "/etc/asterisk/extensions.conf" 76L, 1650C written |
#[local]
exten => _82XX,1,Playback(/var/tmp/asterisk/record${EXTEN:2}) ; добавляет номер на который позвонить и узнать свою почту - позвонить на 8001 exten => 8001,1,VoiceMailMain() ; сразу открыть мой ящик: 83ХХ => открывается ящик 33ХХ exten => _83XX,1,VoiceMailMain(23${EXTEN:2}@default) exten => _801X,1,MeetMe(10${EXTEN:3}) [local] ;внутренние звонки exten => _23XX,1,Dial(SIP/${EXTEN},5) exten => _23XX,n,VoiceMail(${EXTEN}@default) ... ,n,VoiceMail(${EXTEN}@default) ;кто звонил кому звонил exten => _23XX,n,Set(CALLS=${EXTEN}-${CALLERID(num)}-${STRFTIME(${EPOCH},Europe/Kiev,"%Y-%m-%d-%H:%M:%S")}) ;запись звонка [ ] exten => _13XX,1,Dial(SIP/minsk/${EXTEN}) [national] exten => _13XX,1,Dial(SIP/minsk/${EXTEN}) [international] "/etc/asterisk/extensions.conf" 76L, 1650C written |
#[local]
exten => _82XX,1,Playback(/var/tmp/asterisk/record${EXTEN:2}) ; добавлÑÐµÑ Ð½Ð¾Ð¼ÐµÑ Ð½Ð° коÑоÑÑй позвониÑÑ Ð¸ ÑзнаÑÑ ÑÐ²Ð¾Ñ Ð¿Ð¾ÑÑÑ - позвониÑÑ Ð½Ð° 8001 ; ÑÑÐ°Ð·Ñ Ð¾ÑкÑÑÑÑ Ð¼Ð¾Ð¹ ÑÑик: 83ХХ => оÑкÑÑваеÑÑÑ ÑÑик 33ХХ exten => _83XX,1,VoiceMailMain(23${EXTEN:2}@default) exten => _801X,1,MeetMe(10${EXTEN:3}) [local]> _23XX,1,Dial(SIP/${EXTEN},5) [local] exten => _23XX,1,NoOp(Conference for external users) 239X,n,MeetMe(10${EXTEN:3}) exten => _23XX,1,Dial(SIP/${EXTEN},5) exten => _23XX,1,Dial(SIP/${EXTEN},5)½Ð¸Ð» ,n,VoiceMail(${EXTEN}@default) ;кÑо звонил ÐºÐ¾Ð¼Ñ Ð·Ð²Ð¾Ð½Ð¸Ð»ERID(num)}-${STRFTIME(${EPOCH},Europe/Kiev,"%Y-%m-%d-%H:%M:%S")}) exten => _23XX,n,Set(CALLS=${EXTEN}-${CALLERID(num)}-${STRFTIME(${EPOCH},Europe/Kiev,"%Y-%m-%d-%H:%M:%S")}) ;запиÑÑ Ð·Ð²Ð¾Ð½ÐºÐ° [ ] exten => _13XX,1,Dial(SIP/minsk/${EXTEN}) [national] exten => _13XX,1,Dial(SIP/minsk/${EXTEN}) [international] "/etc/asterisk/extensions.conf" 76L, 1650C written |
#asterisk -rx "dialplan reload"
Dialplan reloaded. |
#asterisk -rx "sip reload"
|
#vim /etc/asterisk/features.conf
--- /tmp/l3-saved-3572.10824.30166 2014-11-26 15:45:53.626663464 +0200 +++ /etc/asterisk/features.conf 2014-11-26 15:46:24.526663442 +0200 @@ -80,7 +80,7 @@ ; (default is 3 seconds) ;xfersound = beep ; to indicate an attended transfer is complete ;xferfailsound = beeperr ; to indicate a failed transfer -;pickupexten = *8 ; Configure the pickup extension. (default is *8) +pickupexten = *8 ; Configure the pickup extension. (default is *8) ;pickupsound = beep ; to indicate a successful pickup (default: no sound) ;pickupfailsound = beeperr ; to indicate that the pickup failed (default: no sound) ;featuredigittimeout = 1000 ; Max time (ms) between digits for |
#cd /var/tmp/asterisk/
|
#ls
record00.gsm record01.gsm record10.gsm |
#rm *
|
#ls
|
#vim /etc/asterisk/аÑfeatures.conf
--- /tmp/l3-saved-3572.10693.21215 2014-11-26 16:06:09.730662654 +0200 +++ /etc/asterisk/features.conf 2014-11-26 16:07:34.294662595 +0200 @@ -119,10 +119,10 @@ [featuremap] -;blindxfer => #1 ; Blind transfer (default is #) -- Make sure to set the T and/or t option in the Dial() or Queue() app call! +blindxfer => #1 ; Blind transfer (default is #) -- Make sure to set the T and/or t option in the Dial() or Queue() app call! ;disconnect => *0 ; Disconnect (default is *) -- Make sure to set the H and/or h option in the Dial() or Queue() app call! ;automon => *1 ; One Touch Record a.k.a. Touch Monitor -- Make sure to set the W and/or w option in the Dial() or Queue() app call! -;atxfer => *2 ; Attended transfer -- Make sure to set the T and/or t option in the Dial() or Queue() app call! +atxfer => *2 ; Attended transfer -- Make sure to set the T and/or t option in the Dial() or Queue() app call! ;parkcall => #72 ; Park call (one step parking) -- Make sure to set the K and/or k option in the Dial() app call! ;automixmon => *3 ; One Touch Record a.k.a. Touch MixMonitor -- Make sure to set the X and/or x option in the Dial() or Queue() app call! |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3572.26542.29204 2014-11-26 16:09:45.750662510 +0200 +++ /etc/asterisk/extensions.conf 2014-11-26 16:11:14.986662451 +0200 @@ -27,7 +27,7 @@ -exten => _23XX,1,Dial(SIP/${EXTEN},5) +exten => _23XX,1,Dial(SIP/${EXTEN},5,tT) exten => _23XX,1,Dial(SIP/${EXTEN},5) exten => _23XX,n,VoiceMail(${EXTEN}@default) |
#;comebacktoorigin = yes ; Setting this option configures the behavior of call parking when
[directories](!) astetcdir => /etc/asterisk astmoddir => /usr/lib/asterisk/modules astvarlibdir => /var/lib/asterisk astdbdir => /var/lib/asterisk astkeydir => /var/lib/asterisk astdatadir => /usr/share/asterisk astagidir => /usr/share/asterisk/agi-bin astspooldir => /var/spool/asterisk astrundir => /var/run/asterisk ... ;highpriority = yes ; Run realtime priority (same as -p at ; startup). ;initcrypto = yes ; startup).e crypto keys (same as -i at ;nocolor = yes ; Disable console colors. ;dontwarn = yes ; Disable some warnings. ;dumpcore = yes ; Dump core on crash (same as -g at startup). ; Global uniqueness issues. ;languageprefix = yes ; Use the new sound prefix path syntax. ;internal_timing = yes ;systemname = my_system_name ; Prefix uniqueid with a system name for |
#[autosystemn]me = yes ; Automatically set systemname to hostname,
[default] [internal] exten => _81XX,1,Record(/var/tmp/asterisk/record${EXTEN:2}:gsm,3) exten => _81XX,n,Playback(/var/tmp/asterisk/record${EXTEN:2}) exten => _82XX,1,Playback(/var/tmp/asterisk/record${EXTEN:2}) ; добавляет номер на который позвонить и узнать свою почту - позвонить на 8001 exten => 8001,1,VoiceMailMain() ; сразу открыть мой ящик: 83ХХ => открывается ящик 33ХХ exten => _83XX,1,VoiceMailMain(23${EXTEN:2}@default) exten => _801X,1,MeetMe(10${EXTEN:3}) ... exten => 2392,1,Dial(SIP/2301&SIP/2302) exten => _23XX,1,Dial(SIP/${EXTEN},5,tT) exten => _23XX,1,Dial(SIP/${EXTEN},5) exten => _23XX,n,VoiceMail(${EXTEN}@default) -- INSERT -- 3,1 Top [ ] include => parkedcalls [local] [local] "/etc/asterisk/extensions.conf" 84L, 1745C written |
#vim /etc/asterisk/extensions.conf
|
#{EXTEN},5)
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 = 2475) Verbosity is at least 2 debian6*CLI> dialplan reload ... == Spawn extension (gr1, 2301, 1) exited non-zero on 'SIP/2302-0000004f' == Using SIP RTP CoS mark 5 == Using SIP RTP CoS mark 5 == Everyone is busy/congested at this time (1:1/0/0) == Spawn extension (gr1, 2301, 2) exited non-zero on 'SIP/2301-00000051' == Using SIP RTP CoS mark 5 == Using SIP RTP CoS mark 5 == Spawn extension (gr1, 2302, 1) exited non-zero on 'SIP/2301-00000053' debian6*CLI> Disconnected from Asterisk server |
#vim /etc/asterisk/extensions.conf
|
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3572.11877.11029 2014-11-26 16:54:25.982660723 +0200 +++ /etc/asterisk/extensions.conf 2014-11-26 16:58:16.814660569 +0200 @@ -14,6 +14,15 @@ exten => _83XX,1,VoiceMailMain(23${EXTEN:2}@default) +; интеграция с + +exten => 8300,1,System(touch /tmp/someone-called-8300) +exten => 8301,1,System(echo ${CALLERID(num)} > /tmp/someone-called-8301) +;exten => 8300,1,System(touch /tmp/someone-called-8300) + + +; conference + exten => _801X,1,MeetMe(10${EXTEN:3}) include => parkedcalls |
#vim /etc/asterisk/extensions.conf
|
#[ ]
# # This file MUST be edited with the 'visudo' command as root. # # Please consider adding local content in /etc/sudoers.d/ instead of # directly modifying this file. # # See the man page for details on how to write a sudoers file. # Defaults env_reset Defaults mail_badpass ... # Cmnd alias specification # Allow members of group sudo to execute any command %sudo ALL=(ALL:ALL) ALL # User privilege specification root ALL=(ALL:ALL) ALL # See sudoers(5) for more information on "#include" directives: asterisk ALL=(ALL) NOPASSWD: /etc/init.d/sendmail ~ ~ :q! |
#ls -l /etc/sudoers
-r--r----- 1 root root 669 Mar 1 2013 /etc/sudoers |
#chmod 644 /etc/sudoers
|
#ls -l /etc/sudoers
-rw-r--r-- 1 root root 669 Mar 1 2013 /etc/sudoers |
#vim /etc/sudoers
--- /tmp/l3-saved-3572.24843.29718 2014-11-26 17:03:00.206660382 +0200 +++ /etc/sudoers 2014-11-26 17:03:35.786660358 +0200 @@ -18,6 +18,7 @@ # User privilege specification root ALL=(ALL:ALL) ALL +asterisk ALL= # Allow members of group sudo to execute any command %sudo ALL=(ALL:ALL) ALL |
#vim /etc/asterisk/extensions.conf
|
#{EXTEN:3})
gnash-cookies.6efRit pulse-134TkwqLW5kH someone-called-8300 ssh-eSqVI977c3IR orbit-user pulse-8xTeRLrWdHxS someone-called-8301 tracker-user |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3572.21097.6185 2014-11-26 17:04:59.542660303 +0200 +++ /etc/asterisk/extensions.conf 2014-11-26 17:06:23.298660247 +0200 @@ -18,7 +18,7 @@ exten => 8300,1,System(touch /tmp/someone-called-8300) exten => 8301,1,System(echo ${CALLERID(num)} > /tmp/someone-called-8301) -;exten => 8300,1,System(touch /tmp/someone-called-8300) +exten => 8302,1,System( sudo /etc/init.d/sendmail restart) ; conference |
#vim /etc/asterisk/extensions.conf
|
#recording
|
#ps -A | grep send
5431 ? 00:00:00 sendmail-mta |
#asterisk -rvv
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. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian6 (pid = 2475) Verbosity is at least 2 == Using SIP RTP CoS mark 5 debian6*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#ps -A | grep send
5653 ? 00:00:00 sendmail-mta |
#vim /etc/asterisk/extensions.conf
|
#more /tmp/someone-called-8301
|
#ps -A | grep send
5653 ? 00:00:00 sendmail-mta |
#ps -A | grep send
5733 ? 00:00:00 sendmail 5786 ? 00:00:00 sendmail-mta |
#ps -A | grep send
5733 ? 00:00:00 sendmail 5786 ? 00:00:00 sendmail-mta |
#ps -A | grep send
5786 ? 00:00:00 sendmail-mta |
#ps -A | grep send
5786 ? 00:00:00 sendmail-mta |
#ps -A | grep send
5786 ? 00:00:00 sendmail-mta |
#ps -A | grep send
5786 ? 00:00:00 sendmail-mta |
#ps -A | grep sendmail
5786 ? 00:00:00 sendmail-mta |
#ps -A | grep sendmail
5918 ? 00:00:00 sendmail-mta |
#Ñзе-Ñapt-cache search festival
brltty-flite - Access software for a blind person - Flite speech driver eflite - Festival-Lite based emacspeak speech server festival - General multi-lingual speech synthesis system festival-dev - Development kit for the Festival speech synthesis system festival-czech - Czech support for Festival speech synthesis system festival-doc - Documentation for Festival festival-freebsoft-utils - Festival extensions and utilities festival-hi - festival text to speech synthesizer for Hindi language festvox-hi-nsk - Hindi male speaker for festival festlex-ifd - Italian support for Festival ... libgnome-speech7 - GNOME text-to-speech library libperlspeak-perl - Perl Module for text to speech with festival, espeak, cepstral pidgin-festival - pidgin plugin to hear incoming messages using voice synthesis screader - Screen reader using software or hardware speech synthesizer speech-dispatcher-festival - Festival support for Speech Dispatcher speechd-up - Interface between Speech Dispatcher and SpeakUp stardict-plugin-festival - International dictionary - Festival TTS plugin plasma-widget-translatoid - translation widget for KDE Plasma writetype - application designed to help students write more easily yasr - General-purpose console screen reader |
#apt-get install festival festvox-ru
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: libgadu3 libmozjs24d xulrunner-24.0 Use 'apt-get autoremove' to remove them. The following extra packages will be installed: alsa-base alsa-utils esound-common festlex-cmu festlex-poslex festvox-kallpc16k libaudiofile1 libesd0 libestools2.1 Suggested packages: ... Setting up esound-common (0.2.41-10) ... Setting up libesd0:amd64 (0.2.41-10+b1) ... Setting up libestools2.1:amd64 (1:2.1~release-5) ... Setting up alsa-utils (1.0.25-4) ... Setting up festival (1:2.1~release-5.1) ... Processing triggers for sgml-base ... Setting up festvox-ru (0.5-5) ... Setting up festlex-cmu (1.4.0-6) ... Setting up festlex-poslex (1.4.0-5) ... Setting up festvox-kallpc16k (1.4.0-5) ... |
#man ifconfig
|
#cat /var/tmp/hell0-en
cat: /var/tmp/hell0-en: No such file or directory |
#cat /var/tmp/hello-en.txt
cat: /var/tmp/hello-en.txt: No such file or directory |
#vim /var/tmp/hello-en.txt
--- /dev/null 2014-11-26 15:06:50.581666140 +0200 +++ /var/tmp/hello-en.txt 2014-11-27 09:51:52.906620052 +0200 @@ -0,0 +1,4 @@ +fconfig is used to configure the kernel-resident network interfaces. It is used at boot + time to set up interfaces as necessary. After that, it is usually only needed when + debugging or when system tuning is needed. + |
Время первой команды журнала | 12:41:41 2014-11-26 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 08:51:36 2014-11-27 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 7.92 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.00 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 3.65 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.46 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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