/l3/users/Andrey/nt-voip/linux12.unix.nt.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 |
|
#lime
bash: lime: command not found |
#whereis lime
lime: |
#locate lime
locate: can not open `/var/lib/mlocate/mlocate.db': No such file or directory |
#apt-get install screen
Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: screen 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 604kB of archives. After this operation, 1008kB of additional disk space will be used. Get:1 http://ftp.ua.debian.org lenny/main screen 4.0.3-11+lenny1 [604kB] Fetched 604kB in 4s (133kB/s) Selecting previously deselected package screen. (Reading database ... 45353 files and directories currently installed.) Unpacking screen (from .../screen_4.0.3-11+lenny1_i386.deb) ... Processing triggers for man-db ... Setting up screen (4.0.3-11+lenny1) ... |
#screen
|
#lame
LAME 32bits version 3.98.2 (http://www.mp3dev.org/) usage: lame [options] <infile> [outfile] <infile> and/or <outfile> can be "-", which means stdin/stdout. Try: "lame --help" for general usage information or: "lame --preset help" for information on suggested predefined settings or: "lame --longhelp" or "lame -?" for a complete options list |
#fg
;exten =>2201,1,Dial(SIP/2201,1) ;exten =>2204,n,Dial(SIP/2202,1) ;exten =>2205,n,Dial(SIP/2204) ;exten =>2202,1,Dial(SIP/2202) ;exten =>2201,1,Dial(SIP/2201,1) ;exten =>2204,n,Dial(SIP/2202,1) ;exten =>2205,n,Dial(SIP/2204) ;exten =>2202,1,Dial(SIP/2202) ;exten =>2203,1,Dial(SIP/2203) ;exten =>2204,1,Dial(SIP/2204) ... exten => 2298,1,Record(/tmp/warning1:ulaw,,3) exten => 2298,1,Record(/tmp/warning1:gsm,,3) ;exten => 2297,1,Playback(/tmp/warning1) exten => 2297,1,Playback(/tmp/warning1) exten =>2299,1,Answer exten =>2299,n,Wait(1) [national] exten =>2299,n,Playback(demo-thanks) exten =>2299,n,Hangup [service] |
#ls /var/spool/asterisk/monitor/
m-in.wav voice-2201-2101.wav m-out.wav voice-2201-2202.wav |
#asterisk -rcv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... -- Executing [2201@group3:2] Monitor("SIP/2202-088b2ce8", "wav|voice-2201-2202|m") in new stack -- Executing [2201@group3:3] Dial("SIP/2202-088b2ce8", "SIP/2201|3") in new stack -- Called 2201 -- SIP/2201-088b87b0 is ringing -- SIP/2201-088b87b0 answered SIP/2202-088b2ce8 == Spawn extension (group3, 2201, 3) exited non-zero on 'SIP/2202-088b2ce8' [Oct 27 15:51:11] NOTICE[8906]: res_monitor.c:339 ast_monitor_stop: monitor executing ( nice -n 19 sox -m "/var/spool/asterisk/monitor/voice-2201-2202-in.wav" "/var/spool/asterisk/monitor/voice-2201-2202-out.wav" "/var/spool/asterisk/monitor/voice-2201-2202.wav" && rm -f "/var/spool/asterisk/monitor/voice-2201-2202-"* ) & linux12*CLI> quit Executing last minute cleanups Asterisk cleanly ending (0). |
#lame /var/spool/asterisk/monitor/voice-2201-2101.wav /var/spool/asterisk/monitor/voice-2201-2101.mp3
LAME 3.98.2 32bits (http://www.mp3dev.org/) CPU features: MMX (ASM used), SSE (ASM used), SSE2 Using polyphase lowpass filter, transition band: 3000 Hz - 3097 Hz Encoding /var/spool/asterisk/monitor/voice-2201-2101.wav to /var/spool/asterisk/monitor/voice-2201-2101.mp3 Encoding as 8 kHz single-ch MPEG-2.5 Layer III (16x) 8 kbps qval=3 Frame | CPU time/estim | REAL time/estim | play/CPU | ETA 0/ ( 0%)| 0:00/ : | 0:00/ : | x| : 00:10------------------------------------------------------------------------------------------------------------------------------------------------------- 0/146 ( 0%)| 0:00/ 0:00| 0:00/ 0:00| 0.0000x| 0:00 ... 100/146 (68%)| 0:00/ 0:00| 0:00/ 0:00| 180.00x| 0:00 kbps % % --------------------------------------------------------------------------------------------------------00:03----------------------------------------------- 148/148 (100%)| 0:00/ 0:00| 0:00/ 0:00| 177.60x| 0:00 kbps mono % long switch short % ------------------------------------------------------------------------------------------------------------------------------------------------------------ 8.0 100.0 66.0 19.0 15.0 kbps mono % long switch short % 8.0 100.0 64.9 16.2 18.9 ReplayGain: +0.1dB |
#asterisk -rcv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... [Oct 27 16:04:03] NOTICE[8990]: pbx.c:1892 pbx_extension_helper: No such label 'answer' in extension 's' in context 'macro-answer-with-monitor' [Oct 27 16:04:03] WARNING[8990]: pbx.c:6424 ast_parseable_goto: Priority 'answer' must be a number > 0, or valid label == Spawn extension (macro-answer-with-monitor, s, 5) exited non-zero on 'SIP/2202-088b5dc8' in macro 'answer-with-monitor' == Spawn extension (macro-answer-with-monitor, s, 5) exited non-zero on 'SIP/2202-088b5dc8' -- Executing [h@macro-answer-with-monitor:1] StopMonitor("SIP/2202-088b5dc8", "") in new stack [Oct 27 16:04:03] NOTICE[8990]: res_monitor.c:339 ast_monitor_stop: monitor executing ( nice -n 19 sox -m "/var/spool/asterisk/monitor/voice-2201-2202-1288184637-in.wav" "/var/spool/asterisk/monitor/voice-2201-2202-1288184637-out.wav" "/var/spool/asterisk/monitor/voice-2201-2202-1288184637.wav" && rm -f "/var/spool/asterisk/monitor/voice-2201-2202-1288184637-"* ) & -- Executing [h@macro-answer-with-monitor:2] System("SIP/2202-088b5dc8", "lame /var/spool/asterisk/monitor/voice-2201-2202-1288184637.wav /var/spool/asterisk/monitor/voice-2201-2202-1288184637.mp3") in new stack linux12*CLI> quit Executing last minute cleanups Asterisk cleanly ending (0). |
#ls -lah /var/spool/asterisk/
dictate/ meetme/ monitor/ outgoing/ system/ tmp/ voicemail/ |
#ls -lah /var/spool/asterisk/monitor/
m-in.wav voice-2201-2101.mp3 voice-2201-2202-1288184637.mp3 voice-2201-2202.wav m-out.wav voice-2201-2101.wav voice-2201-2202-1288184637.wav |
#ls -lah /var/spool/asterisk/monitor/
total 456K drwxr-x--- 2 asterisk asterisk 4.0K 2010-10-27 16:04 . drwxr-x--- 9 asterisk asterisk 4.0K 2010-10-25 16:53 .. -rw-r----- 1 asterisk asterisk 9.5K 2010-10-27 14:34 m-in.wav -rw-r----- 1 asterisk asterisk 72K 2010-10-27 14:34 m-out.wav -rw-r--r-- 1 root root 11K 2010-10-27 15:54 voice-2201-2101.mp3 -rw-rw---- 1 asterisk asterisk 163K 2010-10-27 15:11 voice-2201-2101.wav -rw-rw---- 1 asterisk asterisk 5.3K 2010-10-27 16:04 voice-2201-2202-1288184637.mp3 -rw-rw---- 1 asterisk asterisk 80K 2010-10-27 16:04 voice-2201-2202-1288184637.wav -rw-rw---- 1 asterisk asterisk 81K 2010-10-27 15:51 voice-2201-2202.wav |
#ls -lah /usr/local/bin/monitor_exec
-rwxr-xr-x 1 root staff 130 2010-10-27 16:17 /usr/local/bin/monitor_exec |
#less /usr/local/bin/monitor_exec
|
#vi /etc/asterisk/extensions.conf
|
#[2201]
exten =>2299,1,Answer exten =>2299,n,Wait(1) exten =>2299,n,Playback(demo-thanks) exten =>2299,n,Hangup [service] [ ] exten => 2295,1,Record(/tmp/voicemail-greeting-${CALLERID(number)}) exten => 2298,1,Record(/tmp/warning1:gsm,,3) exten => 2297,1,Playback(/tmp/warning1) [national] ... [international] [ ] exten => _19XX,1,Macro(dial-with-callerid,SIP/gm/${EXTEN}) 91,1 74% [group1] [group1] include => national [group1]=> international include => default include => service "/etc/asterisk/extensions.conf" 108L, 3113C written |
#asterisk -rx "dialplan reload"
Dialplan reloaded. |
#asterisk -rcv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... [Oct 27 16:57:00] WARNING[9744]: app_voicemail.c:2862 leave_voicemail: No entry in voicemail config file for '2202' -- Executing [s@macro-answer-with-monitor:9] Hangup("SIP/mn-088bab18", "") in new stack == Spawn extension (macro-answer-with-monitor, s, 9) exited non-zero on 'SIP/mn-088bab18' in macro 'answer-with-monitor' == Spawn extension (macro-answer-with-monitor, s, 9) exited non-zero on 'SIP/mn-088bab18' -- Executing [h@macro-answer-with-monitor:1] StopMonitor("SIP/mn-088bab18", "") in new stack [Oct 27 16:57:00] NOTICE[9744]: res_monitor.c:339 ast_monitor_stop: monitor executing ( nice -n 19 sox -m "/var/spool/asterisk/monitor/voice-2202-2101-1288187809-in.wav" "/var/spool/asterisk/monitor/voice-2202-2101-1288187809-out.wav" "/var/spool/asterisk/monitor/voice-2202-2101-1288187809.wav" && rm -f "/var/spool/asterisk/monitor/voice-2202-2101-1288187809-"* ) & -- Executing [h@macro-answer-with-monitor:2] System("SIP/mn-088bab18", "lame /var/spool/asterisk/monitor/voice-2202-2101-1288187809.wav /var/spool/asterisk/monitor/voice-2202-2101-1288187809.mp3") in new stack linux12*CLI> exit Executing last minute cleanups Asterisk cleanly ending (0). |
#ls /tmp/
.ICE-unix/ lost+found/ warning1.gsm warning1.ulaw .X11-unix/ |
#vi /etc/asterisk/ext
|
#vi /etc/asterisk/extensions.conf
--- /tmp/l3-saved-9369.14020.8203 2010-10-27 17:00:56.000000000 +0300 +++ /etc/asterisk/extensions.conf 2010-10-27 17:06:18.000000000 +0300 @@ -71,7 +71,7 @@ exten =>2299,n,Wait(1) exten =>2299,n,Playback(demo-thanks) exten =>2299,n,Hangup - +exten =>_2299X,n,Record(/tmp/message-${EXTEN:3}:gsm) [service] ;exten => 2296,1,VoiceMailMain() |
#asterisk -rcv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... -- Including context 'local' in context 'group2' -- Including context 'national' in context 'group2' -- Including context 'service' in context 'group2' -- Registered extension context 'group3' -- Including context 'local' in context 'group3' -- Including context 'service' in context 'group3' == Parsing '/etc/asterisk/users.conf': Found linux12*CLI> quit Executing last minute cleanups Asterisk cleanly ending (0). |
#vi /etc/asterisk/extensions.conf
--- /tmp/l3-saved-9369.9647.14628 2010-10-27 17:06:36.000000000 +0300 +++ /etc/asterisk/extensions.conf 2010-10-27 17:08:26.000000000 +0300 @@ -71,7 +71,7 @@ exten =>2299,n,Wait(1) exten =>2299,n,Playback(demo-thanks) exten =>2299,n,Hangup -exten =>_2299X,n,Record(/tmp/message-${EXTEN:3}:gsm) +exten =>_2299X,1,Record(/tmp/message-${EXTEN:3}:gsm) [service] ;exten => 2296,1,VoiceMailMain() |
#asterisk -rcv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... -- Registered extension context 'group3' -- Including context 'local' in context 'group3' -- Including context 'service' in context 'group3' == Parsing '/etc/asterisk/users.conf': Found -- Executing [22991@group1:1] Record("SIP/2201-088ad510", "/tmp/message-91:gsm") in new stack -- <SIP/2201-088ad510> Playing 'beep' (language 'en') == Spawn extension (group1, 22991, 1) exited non-zero on 'SIP/2201-088ad510' linux12*CLI> quit Executing last minute cleanups Asterisk cleanly ending (0). |
#vi /etc/asterisk/extensions.conf
--- /tmp/l3-saved-9369.9744.5254 2010-10-27 17:09:46.000000000 +0300 +++ /etc/asterisk/extensions.conf 2010-10-27 17:10:53.000000000 +0300 @@ -71,7 +71,8 @@ exten =>2299,n,Wait(1) exten =>2299,n,Playback(demo-thanks) exten =>2299,n,Hangup -exten =>_2299X,1,Record(/tmp/message-${EXTEN:3}:gsm) +exten =>_2299X,1,Wait(2) +exten =>_2299X,n,Record(/tmp/message-${EXTEN:3}:gsm) [service] ;exten => 2296,1,VoiceMailMain() |
#asterisk -rcv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... -- Executing [22995@group1:2] Record("SIP/2201-088ad510", "/tmp/message-95:gsm") in new stack -- <SIP/2201-088ad510> Playing 'beep' (language 'en') == Spawn extension (group1, 22995, 2) exited non-zero on 'SIP/2201-088ad510' -- Executing [22996@group1:1] Wait("SIP/2201-088ad510", "2") in new stack -- Executing [22996@group1:2] Record("SIP/2201-088ad510", "/tmp/message-96:gsm") in new stack -- <SIP/2201-088ad510> Playing 'beep' (language 'en') == Spawn extension (group1, 22996, 2) exited non-zero on 'SIP/2201-088ad510' linux12*CLI> quit Executing last minute cleanups Asterisk cleanly ending (0). |
#ls /tmp/
.ICE-unix/ lost+found/ message-91.gsm message-92.gsm message-93.gsm message-94.gsm warning1.gsm warning1.ulaw .X11-unix/ |
#vi /etc/asterisk/extensions.conf
--- /tmp/l3-saved-9369.5212.11142 2010-10-27 17:14:47.000000000 +0300 +++ /etc/asterisk/extensions.conf 2010-10-27 17:31:29.000000000 +0300 @@ -74,12 +74,36 @@ exten =>_2299X,1,Wait(2) exten =>_2299X,n,Record(/tmp/message-${EXTEN:3}:gsm) +exten => 2290,1,Goto(menu,s,1) + [service] ;exten => 2296,1,VoiceMailMain() exten => 2295,1,Record(/tmp/voicemail-greeting-${CALLERID(number)}) exten => 2298,1,Record(/tmp/warning1:gsm,,3) exten => 2297,1,Playback(/tmp/warning1) +[menu] +exten => s,1,Playback(/tmp/message-91) +exten => s,n(start),Playback(/tmp/message-92) +exten => s,n,WaitExten(5) +exten => s,n,Playback(/tmp/message-96) +exten => s,n,Playback(/tmp/message-92) +exten => s,n,WaitExten(5) +exten => s,n,Playback(/tmp/message-97) + +exten => 9,1,Goto(start) +exten => 1,1,Goto(submenu,s,1) +exten => 2,1,Playback(/tmp/message-95) +exten => 2,n,System(touch /tmp/testfile-for-IVR) + +[submenu] + +exten => s,1(start),Playback(/tmp/message-4) +exten => 1,1,Goto(local,1801,1) +exten => 2,1,Goto(local,1802,1) +exten => 9,1,Goto(s,start) +exten => 0,1,Goto(menu,s,start) + [national] exten => _19XX,1,Macro(dial-with-callerid,SIP/gm/${EXTEN}) exten => _20XX,1,Macro(dial-with-callerid,SIP/br/${EXTEN}) |
#ls /tmp/
.ICE-unix/ message-93.gsm warning1.gsm l3-saved-9369.5212.11142 message-94.gsm warning1.ulaw lost+found/ message-95.gsm .X11-unix/ message-91.gsm message-96.gsm message-92.gsm v199022/ |
#vi /etc/asterisk/extensions.conf
|
#asterisk -rcv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... -- SIP/2201-088b1b88 is ringing -- SIP/2201-088b1b88 answered SIP/mn-088ad510 == Spawn extension (macro-answer-with-monitor, s, 4) exited non-zero on 'SIP/mn-088ad510' in macro 'answer-with-monitor' == Spawn extension (macro-answer-with-monitor, s, 4) exited non-zero on 'SIP/mn-088ad510' -- Executing [h@macro-answer-with-monitor:1] StopMonitor("SIP/mn-088ad510", "") in new stack [Oct 27 17:55:38] NOTICE[10501]: res_monitor.c:339 ast_monitor_stop: monitor executing ( nice -n 19 sox -m "/var/spool/asterisk/monitor/voice-2201-2101-1288191330-in.wav" "/var/spool/asterisk/monitor/voice-2201-2101-1288191330-out.wav" "/var/spool/asterisk/monitor/voice-2201-2101-1288191330.wav" && rm -f "/var/spool/asterisk/monitor/voice-2201-2101-1288191330-"* ) & -- Executing [h@macro-answer-with-monitor:2] System("SIP/mn-088ad510", "lame /var/spool/asterisk/monitor/voice-2201-2101-1288191330.wav /var/spool/asterisk/monitor/voice-2201-2101-1288191330.mp3") in new stack linux12*CLI> quit Executing last minute cleanups Asterisk cleanly ending (0). |
#ls /tmp/
.ICE-unix/ message-92.gsm message-95.gsm warning1.gsm lost+found/ message-93.gsm message-96.gsm warning1.ulaw message-91.gsm message-94.gsm testfile-for-IVR .X11-unix/ |
#ls /tmp/
.ICE-unix/ message-92.gsm message-95.gsm warning1.gsm lost+found/ message-93.gsm message-96.gsm warning1.ulaw message-91.gsm message-94.gsm testfile-for-IVR .X11-unix/ |
#ls /tmp/
.ICE-unix/ message-92.gsm message-95.gsm warning1.gsm lost+found/ message-93.gsm message-96.gsm warning1.ulaw message-91.gsm message-94.gsm testfile-for-IVR .X11-unix/ |
#ls /tmp/testfile-for-IVR
.bash_history dhcpd.conf.orig .profile .Xauthority-c .bash_logout .ICEauthority q .Xauthority-l .bash_profile install sip.conf.orig .xsession-errors .bashrc .l3rc .swp .dbus/ .lilalo/ .Xauthority |
#ls -lah /tmp/testfile-for-IVR
-rw-rw---- 1 asterisk asterisk 0 2010-10-27 17:33 /tmp/testfile-for-IVR |
#vi /etc/asterisk/extensions.conf
--- /tmp/l3-saved-10002.29651.24538 2010-10-27 17:36:46.000000000 +0300 +++ /etc/asterisk/extensions.conf 2010-10-27 17:37:46.000000000 +0300 @@ -99,8 +99,8 @@ [submenu] exten => s,1(start),Playback(/tmp/message-94) -exten => 1,1,Goto(local,1801,1) -exten => 2,1,Goto(local,1802,1) +exten => 1,1,Goto(local,2201,1) +exten => 2,1,Goto(local,2202,1) exten => 9,1,Goto(s,start) exten => 0,1,Goto(menu,s,start) |
#vi /etc/asterisk/extensions.conf
--- /tmp/l3-saved-10002.17020.5735 2010-10-27 17:38:29.000000000 +0300 +++ /etc/asterisk/extensions.conf 2010-10-27 17:43:48.000000000 +0300 @@ -63,6 +63,7 @@ [local] +exten =>2202,1,Dial(SIP/2202) exten => _22XX,1,Macro(answer-with-monitor,${EXTEN}) exten => 2296,1,VoiceMailMain() exten => 2298,1,Record(/tmp/warning1:ulaw,,3) |
#vi /etc/asterisk/extensions.conf
--- /tmp/l3-saved-10002.2947.1439 2010-10-27 17:44:35.000000000 +0300 +++ /etc/asterisk/extensions.conf 2010-10-27 17:46:11.000000000 +0300 @@ -63,7 +63,7 @@ [local] -exten =>2202,1,Dial(SIP/2202) +;exten =>2202,1,Dial(SIP/2202) exten => _22XX,1,Macro(answer-with-monitor,${EXTEN}) exten => 2296,1,VoiceMailMain() exten => 2298,1,Record(/tmp/warning1:ulaw,,3) @@ -100,6 +100,7 @@ [submenu] exten => s,1(start),Playback(/tmp/message-94) +exten => s,n,WaitExten(5) exten => 1,1,Goto(local,2201,1) exten => 2,1,Goto(local,2202,1) exten => 9,1,Goto(s,start) |
#vi /etc/asterisk/extensions.conf
--- /tmp/l3-saved-10002.1136.23118 2010-10-27 17:48:47.000000000 +0300 +++ /etc/asterisk/extensions.conf 2010-10-27 17:50:30.000000000 +0300 @@ -101,8 +101,8 @@ exten => s,1(start),Playback(/tmp/message-94) exten => s,n,WaitExten(5) -exten => 1,1,Goto(local,2201,1) -exten => 2,1,Goto(local,2202,1) +exten => 1,1,Goto(local,2202,1) +exten => 2,1,Goto(local,2203,1) exten => 9,1,Goto(s,start) exten => 0,1,Goto(menu,s,start) |
#vi /etc/asterisk/extensions.conf
--- /tmp/l3-saved-10002.15274.21984 2010-10-27 17:52:08.000000000 +0300 +++ /etc/asterisk/extensions.conf 2010-10-27 17:54:05.000000000 +0300 @@ -101,8 +101,8 @@ exten => s,1(start),Playback(/tmp/message-94) exten => s,n,WaitExten(5) -exten => 1,1,Goto(local,2202,1) -exten => 2,1,Goto(local,2203,1) +exten => 1,1,Goto(local,2201,1) +exten => 2,1,Goto(local,2202,1) exten => 9,1,Goto(s,start) exten => 0,1,Goto(menu,s,start) |
#ls /tmp/
.ICE-unix/ message-91.gsm message-93.gsm message-95.gsm testfile-for-IVR warning1.ulaw lost+found/ message-92.gsm message-94.gsm message-96.gsm warning1.gsm .X11-unix/ |
#pwd
/home/andrey |
#cp /tmp/
.ICE-unix/ message-91.gsm message-93.gsm message-95.gsm testfile-for-IVR warning1.ulaw lost+found/ message-92.gsm message-94.gsm message-96.gsm warning1.gsm .X11-unix/ |
#cp /tmp/message-9*
cp: target `/tmp/message-96.gsm' is not a directory |
#cp /tmp/message-9* .
|
#ls -lah
total 172K drwxr-xr-x 4 andrey andrey 4.0K 2010-10-27 17:56 . drwxr-xr-x 4 root root 4.0K 2010-10-25 11:40 .. -rw------- 1 andrey andrey 634 2010-10-27 17:02 .bash_history -rw-r--r-- 1 andrey andrey 220 2010-10-25 11:40 .bash_logout -rw-r--r-- 1 andrey root 10 2010-10-25 14:21 .bash_profile -rw-r--r-- 1 andrey andrey 3.2K 2010-10-25 14:21 .bashrc drwx------ 3 root root 4.0K 2010-10-25 12:58 .dbus -rw-r--r-- 1 root root 3.5K 2010-10-25 16:10 dhcpd.conf.orig -rw------- 1 root root 179 2010-10-25 12:58 .ICEauthority ... -rw-r----- 1 root root 4.5K 2010-10-27 17:56 message-95.gsm -rw-r----- 1 root root 5.3K 2010-10-27 17:56 message-96.gsm -rw-r--r-- 1 andrey andrey 675 2010-10-25 11:40 .profile -rw-r--r-- 1 root root 503 2010-10-25 12:03 q -rw-r----- 1 root root 32K 2010-10-25 18:04 sip.conf.orig -rw------- 1 root root 12K 2010-10-27 09:38 .swp -rw------- 1 root root 61 2010-10-25 12:58 .Xauthority -rw------- 2 andrey andrey 0 2010-10-25 15:18 .Xauthority-c -rw------- 2 andrey andrey 0 2010-10-25 15:18 .Xauthority-l -rw------- 1 root root 995 2010-10-25 12:58 .xsession-errors |
#vi /etc/asterisk/extensions.conf
--- /tmp/l3-saved-9369.12952.21401 2010-10-27 17:57:26.000000000 +0300 +++ /etc/asterisk/extensions.conf 2010-10-27 18:03:12.000000000 +0300 @@ -63,7 +63,6 @@ [local] -;exten =>2202,1,Dial(SIP/2202) exten => _22XX,1,Macro(answer-with-monitor,${EXTEN}) exten => 2296,1,VoiceMailMain() exten => 2298,1,Record(/tmp/warning1:ulaw,,3) @@ -84,23 +83,29 @@ exten => 2297,1,Playback(/tmp/warning1) [menu] -exten => s,1,Playback(/tmp/message-91) -exten => s,n(start),Playback(/tmp/message-92) +exten => s,1,Background(/tmp/message-91) +exten => s,n(start),Background(/tmp/message-92) exten => s,n,WaitExten(5) -exten => s,n,Playback(/tmp/message-96) -exten => s,n,Playback(/tmp/message-92) +exten => s,n,Background/tmp/message-96) +exten => s,n,Background(/tmp/message-92) exten => s,n,WaitExten(5) -exten => s,n,Playback(/tmp/message-97) +exten => s,n,Background(/tmp/message-97) + +exten => i,1,Background(/tmp/message-93) +exten => i,n,Goto(s,start) exten => 9,1,Goto(start) exten => 1,1,Goto(submenu,s,1) -exten => 2,1,Playback(/tmp/message-95) +exten => 2,1,Background(/tmp/message-95) exten => 2,n,System(touch /tmp/testfile-for-IVR) [submenu] -exten => s,1(start),Playback(/tmp/message-94) +exten => s,1(start),Background(/tmp/message-94) +exten => s,n,WaitExten(5) +exten => s,n,Background(/tmp/message-92) exten => s,n,WaitExten(5) +exten => s,n,Background(/tmp/message-7) exten => 1,1,Goto(local,2201,1) exten => 2,1,Goto(local,2202,1) exten => 9,1,Goto(s,start) |
#asterisk -rcv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... -- SIP/2202-088d1d40 is ringing -- SIP/2202-088d1d40 answered SIP/mn-088b1758 == Spawn extension (macro-answer-with-monitor, s, 4) exited non-zero on 'SIP/mn-088b1758' in macro 'answer-with-monitor' == Spawn extension (macro-answer-with-monitor, s, 4) exited non-zero on 'SIP/mn-088b1758' -- Executing [h@macro-answer-with-monitor:1] StopMonitor("SIP/mn-088b1758", "") in new stack [Oct 27 18:04:05] NOTICE[10631]: res_monitor.c:339 ast_monitor_stop: monitor executing ( nice -n 19 sox -m "/var/spool/asterisk/monitor/voice-2202-2101-1288191833-in.wav" "/var/spool/asterisk/monitor/voice-2202-2101-1288191833-out.wav" "/var/spool/asterisk/monitor/voice-2202-2101-1288191833.wav" && rm -f "/var/spool/asterisk/monitor/voice-2202-2101-1288191833-"* ) & -- Executing [h@macro-answer-with-monitor:2] System("SIP/mn-088b1758", "lame /var/spool/asterisk/monitor/voice-2202-2101-1288191833.wav /var/spool/asterisk/monitor/voice-2202-2101-1288191833.mp3") in new stack linux12*CLI> quit Executing last minute cleanups Asterisk cleanly ending (0). |
#halt
|
#ls
dhcpd.conf.orig message-91.gsm message-93.gsm message-95.gsm q install message-92.gsm message-94.gsm message-96.gsm sip.conf.orig |
#ls /etc/bind
bind/ bindresvport.blacklist |
#ls /etc/bind/
db.0 db.root named.conf.orig db.127 mn.unix.nt rev.minsk db.255 named.conf rndc.key db.empty named.conf.local zones.rfc1918 db.local named.conf.options |
#ls
.bash_history .ICEauthority message-93.gsm sip.conf.orig .bash_logout install message-94.gsm .swp .bash_profile .l3rc message-95.gsm .Xauthority .bashrc .lilalo/ message-96.gsm .Xauthority-c .dbus/ message-91.gsm .profile .Xauthority-l dhcpd.conf.orig message-92.gsm q .xsession-errors |
#cp m* /tmp/
|
#ls /tmp/
.ICE-unix/ message-92.gsm message-95.gsm lost+found/ message-93.gsm message-96.gsm message-91.gsm message-94.gsm .X11-unix/ |
#ls /tmp/
lost+found message-92.gsm message-94.gsm message-96.gsm message-91.gsm message-93.gsm message-95.gsm |
#asterisk -rcv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... [Oct 28 09:45:24] WARNING[2834]: file.c:912 ast_streamfile: Unable to open /tmp/message-92 (format 0x4 (ulaw)): No such file or directory [Oct 28 09:45:24] WARNING[2834]: pbx.c:5730 pbx_builtin_background: ast_streamfile failed on SIP/mn-09680070 for /tmp/message-92 [Oct 28 09:45:29] WARNING[2834]: pbx.c:1832 pbx_extension_helper: No application 'Background/tmp/message-96)' for extension (menu, s, 4) [Oct 28 09:45:34] NOTICE[2407]: chan_sip.c:7515 sip_reg_timeout: -- Registration for 'mn@192.168.110.1' timed out, trying again (Attempt #37) [Oct 28 09:45:54] NOTICE[2407]: chan_sip.c:7515 sip_reg_timeout: -- Registration for 'mn@192.168.110.1' timed out, trying again (Attempt #38) Executing last minute cleanups linux12*CLI> Disconnected from Asterisk server Executing last minute cleanups Asterisk cleanly ending (0). |
#ls /tmp/
.ICE-unix/ message-92.gsm message-95.gsm lost+found/ message-93.gsm message-96.gsm message-91.gsm message-94.gsm .X11-unix/ |
#/etc/init.d/asterisk stop
Stopping Asterisk PBX: asterisk. |
#/etc/init.d/asterisk start
Starting Asterisk PBX: asterisk. |
#ls -lah /tmp/
.ICE-unix/ message-92.gsm message-95.gsm lost+found/ message-93.gsm message-96.gsm message-91.gsm message-94.gsm .X11-unix/ |
#ls -lah /tmp/
total 64K drwxrwxrwt 5 root root 1.0K 2010-10-28 09:45 . drwxr-xr-x 21 root root 1.0K 2010-10-25 11:22 .. drwxrwxrwt 2 root root 1.0K 2010-10-28 09:33 .ICE-unix drwx------ 2 root root 12K 2010-10-25 11:20 lost+found -rw-r----- 1 root root 6.9K 2010-10-28 09:43 message-91.gsm -rw-r----- 1 root root 14K 2010-10-28 09:43 message-92.gsm -rw-r----- 1 root root 4.1K 2010-10-28 09:43 message-93.gsm -rw-r----- 1 root root 9.5K 2010-10-28 09:43 message-94.gsm -rw-r----- 1 root root 4.5K 2010-10-28 09:43 message-95.gsm -rw-r----- 1 root root 5.3K 2010-10-28 09:43 message-96.gsm drwxrwxrwt 2 root root 1.0K 2010-10-28 09:33 .X11-unix |
#chmod /tmp/m*
chmod: invalid mode: `/tmp/message-91.gsm' Try `chmod --help' for more information. |
#chmod 777 /tmp/m*
|
#chmod /tmp/m*
chmod: invalid mode: `/tmp/message-91.gsm' Try `chmod --help' for more information. |
#chmod /tmp/m*
chmod: invalid mode: `/tmp/message-91.gsm' Try `chmod --help' for more information. |
#ls -lah /tmp/
total 64K drwxrwxrwt 5 root root 1.0K 2010-10-28 09:45 . drwxr-xr-x 21 root root 1.0K 2010-10-25 11:22 .. drwxrwxrwt 2 root root 1.0K 2010-10-28 09:33 .ICE-unix drwx------ 2 root root 12K 2010-10-25 11:20 lost+found -rwxrwxrwx 1 root root 6.9K 2010-10-28 09:43 message-91.gsm -rwxrwxrwx 1 root root 14K 2010-10-28 09:43 message-92.gsm -rwxrwxrwx 1 root root 4.1K 2010-10-28 09:43 message-93.gsm -rwxrwxrwx 1 root root 9.5K 2010-10-28 09:43 message-94.gsm -rwxrwxrwx 1 root root 4.5K 2010-10-28 09:43 message-95.gsm -rwxrwxrwx 1 root root 5.3K 2010-10-28 09:43 message-96.gsm drwxrwxrwt 2 root root 1.0K 2010-10-28 09:33 .X11-unix |
#chown asterisk /tmp/m*
|
#ls -lah /tmp/
total 64K drwxrwxrwt 5 root root 1.0K 2010-10-28 09:45 . drwxr-xr-x 21 root root 1.0K 2010-10-25 11:22 .. drwxrwxrwt 2 root root 1.0K 2010-10-28 09:33 .ICE-unix drwx------ 2 root root 12K 2010-10-25 11:20 lost+found -rwxrwxrwx 1 asterisk root 6.9K 2010-10-28 09:43 message-91.gsm -rwxrwxrwx 1 asterisk root 14K 2010-10-28 09:43 message-92.gsm -rwxrwxrwx 1 asterisk root 4.1K 2010-10-28 09:43 message-93.gsm -rwxrwxrwx 1 asterisk root 9.5K 2010-10-28 09:43 message-94.gsm -rwxrwxrwx 1 asterisk root 4.5K 2010-10-28 09:43 message-95.gsm -rwxrwxrwx 1 asterisk root 5.3K 2010-10-28 09:43 message-96.gsm drwxrwxrwt 2 root root 1.0K 2010-10-28 09:33 .X11-unix |
#vi /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3232.3230.28807 2010-10-28 10:26:19.000000000 +0300 +++ /etc/asterisk/extensions.conf 2010-10-28 10:27:25.000000000 +0300 @@ -63,6 +63,7 @@ [local] +exten =>2280,1,Dial(SIP/2202&SIP/2203) exten => _22XX,1,Macro(answer-with-monitor,${EXTEN}) exten => 2296,1,VoiceMailMain() exten => 2298,1,Record(/tmp/warning1:ulaw,,3) |
#asterisk -rcv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= Connected to Asterisk 1.4.21.2~dfsg-3+lenny1 currently running on linux12 (pid = 2982) Verbosity is at least 1 linux12*CLI> dial dialplan dial linux12*CLI> dialplan reload Dialplan reloaded. linux12*CLI> quit Executing last minute cleanups Asterisk cleanly ending (0). |
#screen
|
#vi /etc/asterisk/queues.conf
--- /tmp/l3-saved-3232.9553.5642 2010-10-28 10:31:50.000000000 +0300 +++ /etc/asterisk/queues.conf 2010-10-28 10:39:35.000000000 +0300 @@ -308,4 +308,8 @@ ;member => Agent/@1 ; Any agent in group 1 ;member => Agent/:1,1 ; Any agent in group 1, wait for first ; available, but consider with penalty +[queue1] + member => SIP/2202 + member => SIP/2203 + strategy = ringall |
#asterisk -rcv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= Connected to Asterisk 1.4.21.2~dfsg-3+lenny1 currently running on linux12 (pid = 2982) Verbosity is at least 1 linux12*CLI> reload app_queue.so The 'reload' command is deprecated and will be removed in a future release. Please use 'module reload' instead. linux12*CLI> module reload app_queue.so linux12*CLI> module reload app_queue.so linux12*CLI> quit Executing last minute cleanups Asterisk cleanly ending (0). |
#asterisk -rcv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= Connected to Asterisk 1.4.21.2~dfsg-3+lenny1 currently running on linux12 (pid = 2982) Verbosity is at least 1 linux12*CLI> quit Executing last minute cleanups Asterisk cleanly ending (0). |
#vi /etc/asterisk/queues.conf
|
#-- INSERT --
86 ;recordformat=gsm 87 ; 88 ; The text to be added to the name of the recording. Allows forming a url lii nk. 89 ;urlprefix=http://localhost/calls/ ; 90 ; ; -------------------------------------------------- 91 ; The optional directory to save the conversations in. The default is ; ... -- IN 110 [agents] => 1002,1234,Agent 2 111 group=1 agent => 1101,1234,Agent 1 112 agent => 1002,1234,Agent 2 agent => 1007,1234,Agent 007 113 -- INSERT -- 112,13 98% "/etc/asterisk/agents.conf" 113L, 2832C written -- INSERT -- |
#asterisk -rcv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= Connected to Asterisk 1.4.21.2~dfsg-3+lenny1 currently running on linux12 (pid = 2982) Verbosity is at least 1 linux12*CLI> quit Executing last minute cleanups Asterisk cleanly ending (0). |
#/etc/init.d/asterisk stop
Stopping Asterisk PBX: asterisk. |
#/etc/init.d/asterisk start
Starting Asterisk PBX: asterisk. |
#asterisk -rcv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... linux12*CLI> set verbose 99 Verbosity was 1 and is now 99 The 'set verbose' command is deprecated and will be removed in a future release. Please use 'core set verbose' instead. -- Executing [2270@group1:1] AgentLogin("SIP/2201-084ce068", "100") in new stack -- <SIP/2201-084ce068> Playing 'agent-incorrect' (language 'en') -- <SIP/2201-084ce068> Playing 'agent-incorrect' (language 'en') == Spawn extension (group1, 2270, 1) exited non-zero on 'SIP/2201-084ce068' linux12*CLI> quit Executing last minute cleanups Asterisk cleanly ending (0). |
#vi /etc/asterisk/queues.conf
--- /tmp/l3-saved-3768.16223.6463 2010-10-28 11:00:59.000000000 +0300 +++ /etc/asterisk/queues.conf 2010-10-28 11:01:44.000000000 +0300 @@ -310,6 +310,7 @@ ; available, but consider with penalty [queue1] - member => SIP/2202 - member => SIP/2203 + ;member => SIP/2202 + ;member => SIP/2203 + member => Agent/@1 strategy = ringall |
# agent => 1007,1234,Agent 007
extconfig.conf extensions.conf extensions.ael extensions.conf.orig |
#vi /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3232.13515.5393 2010-10-28 11:03:09.000000000 +0300 +++ /etc/asterisk/extensions.conf 2010-10-28 11:05:01.000000000 +0300 @@ -78,7 +78,7 @@ exten =>_2299X,n,Record(/tmp/message-${EXTEN:3}:gsm) exten => 2290,1,Goto(menu,s,1) -exten => 2270,1,AgentLogin(100${EXTEN:4}) +exten => 2270,1,AgentLogin(1001) [service] ;exten => 2296,1,VoiceMailMain() exten => 2295,1,Record(/tmp/voicemail-greeting-${CALLERID(number)}) |
#/etc/init.d/asterisk stop
Stopping Asterisk PBX: asterisk. |
#/etc/init.d/asterisk start
Starting Asterisk PBX: asterisk. |
#asterisk -rcvvvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... Verbosity was 0 and is now 5 linux12*CLI> set verbose 99 Verbosity was 5 and is now 99 The 'set verbose' command is deprecated and will be removed in a future release. Please use 'core set verbose' instead. -- Executing [2270@group1:1] AgentLogin("SIP/2201-0833fe10", "1001") in new stack -- <SIP/2201-0833fe10> Playing 'agent-incorrect' (language 'en') == Spawn extension (group1, 2270, 1) exited non-zero on 'SIP/2201-0833fe10' linux12*CLI> quit Executing last minute cleanups Asterisk cleanly ending (0). |
#asterisk -rcv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... linux12*CLI> show ag agents agi linux12*CLI> show agents No Agents are configured in agents.conf The 'show agents' command is deprecated and will be removed in a future release. Please use 'agent show' instead. linux12*CLI> agent show No Agents are configured in agents.conf linux12*CLI> quit Executing last minute cleanups Asterisk cleanly ending (0). |
#asterisk -rcv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... 1007 (Agent 007) not logged in (musiconhold is 'default') 3 agents configured [1 online , 2 offline] linux12*CLI> agent show 1001 (Agent 1) not logged in (musiconhold is 'default') 1002 (Agent 2) not logged in (musiconhold is 'default') 1007 (Agent 007) not logged in (musiconhold is 'default') 3 agents configured [0 online , 3 offline] linux12*CLI> quit Executing last minute cleanups Asterisk cleanly ending (0). |
#exten => s,1,Background(/tmp/message-91)
E325: ATTENTION Found a swap file by the name "/etc/asterisk/.queues.conf.swp" owned by: root dated: Thu Oct 28 11:11:32 2010 file name: /etc/asterisk/queues.conf modified: no user name: root host name: linux12.unix.nt process ID: 4294 (still running) While opening file "/etc/asterisk/queues.conf" dated: Thu Oct 28 11:01:44 2010 ; pbx_realtime.so, depending on how your dialplan is configured). ... ;member => Agent/1001 ;member => Agent/1002 ; ; available, but consider with penalty [queue1]hat using agent groups is probably not what you want. Strategies do ; not propagate down to the Agent system so if you want round robin, least ;member => SIP/2202hould list all the agents in this file individually and not ;member => SIP/2203 member => Agent/@1 ;member => Agent/@1 ; Any agent in group 1 ;member => Agent/:1,1 ; Any agent in group 1, wait for first |
# strategy = ringall
;exten =>_XXXX,1,Dial(SIP/bb/${EXTEN}) [macro-dial-with-callerid] exten => s,1,Set(CALLERID(name)="${CALLERID(name)} (Minsk)") exten => s,n,Dial(${ARG1}) [macro-answer-with-monitor] exten => s,1,Answer exten => s,n,Set(FILENAME=voice-${ARG1}-${CALLERID(num)}-${EPOCH}) exten => s,n,Monitor(wav,${FILENAME},m) exten => s,n,Dial(SIP/${ARG1},10,g) 53,2 25% ... exten => 2290,1,Goto(menu,s,1) exten => _227X,1,AgentLogin(100${EXTEN:3}) ;exten => 2296,1,VoiceMailMain() exten => 2295,1,Record(/tmp/voicemail-greeting-${CALLERID(number)}) [ ] exten => 2295,1,Record(/tmn(100${mail-gr})ting-${CALLERID(number)}) [ ] [ ] exten => 2297,1,Playback(/tmp/warning1) "/etc/asterisk/extensions.conf" 145L, 4177C written |
#/etc/init.d/asterisk stop
Stopping Asterisk PBX: asterisk. |
Время первой команды журнала | 14:37:53 2010-10-27 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 10:24:08 2010-10-28 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 6.93 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 3.96 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 3.63 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 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