/l3/users/Andrey/nt-voip/linux12.unix.nt.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 |
|
#less /etc/default/festival
|
#vi /etc/asterisk/fe
|
#ls -lah /var/lib/asterisk/
astdb moh/ sounds/ |
#mkdir /var/lib/asterisk/festivalcache
|
#chown asterisk /var/lib/asterisk/festivalcache
|
#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 = 2353) Verbosity is at least 99 -- Executing [2250@group1:1] Festival("SIP/2201-093919d8", "Welcome to Minsk") in new stack == Parsing '/etc/asterisk/festival.conf': Found [Oct 28 13:43:55] WARNING[2417]: chan_sip.c:1950 retrans_pkt: Maximum retries exceeded on transmission 00138078-1ca2004e-7c27f495-40b8c00b@192.168.112.11 for seqno 102 (Critical Response) [Oct 28 13:43:55] WARNING[2417]: chan_sip.c:1972 retrans_pkt: Hanging up call 00138078-1ca2004e-7c27f495-40b8c00b@192.168.112.11 - no reply to our critical packet. linux12*CLI> quit Executing last minute cleanups Asterisk cleanly ending (0). |
#/etc/init.d/asterisk stop
uptime 13:45:34 up 58 min, 2 users, load average: 1.34, 0.55, 0.19 |
#top
top - 13:45:45 up 58 min, 2 users, load average: 1.37, 0.58, 0.21 Tasks: 90 total, 2 running, 88 sleeping, 0 stopped, 0 zombie Cpu(s): 10.0%us, 39.9%sy, 0.0%ni, 50.1%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 3099904k total, 237372k used, 2862532k free, 18224k buffers PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND Swap: 2654200k total, 0k used, 2654200k free, 145220k cached 2353 asterisk -11 0 31848 10m 6564 S 100 0.3 2:18.29 asterisk 1 root 20 0 2104 688 588 S 0 0.0 0:01.16 init 2 root 15 -5 0 0 0 S 0 0.0 0:00.00 kthreadd 3 root RT -5 0 0 0 S 0 0.0 0:00.00 migration/0 ... 11 root 15 -5 0 0 0 S 0 0.0 0:00.00 khelper 44 root 15 -5 0 0 0 S 0 0.0 0:00.02 kblockd/0 45 root 15 -5 0 0 0 S 0 0.0 0:00.00 kblockd/1 47 root 15 -5 0 0 0 S 0 0.0 0:00.00 kacpid 48 root 15 -5 0 0 0 S 0 0.0 0:00.00 kacpi_notify 136 root 15 -5 0 0 0 S 0 0.0 0:00.00 kseriod Mem: 3099904k total, 237372k used, 2862532k free, 18236k buffers Swap: 2654200k total, 0k used, 2654200k free, 145224k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 2353 asterisk -11 0 31848 10m 6564 S 100 0.3 2:21.28 asterisk |
#top
top - 13:45:55 up 58 min, 2 users, load average: 1.51, 0.65, 0.24 Tasks: 90 total, 2 running, 88 sleeping, 0 stopped, 0 zombie Cpu(s): 0.7%us, 1.8%sy, 0.0%ni, 97.2%id, 0.3%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 3099904k total, 237488k used, 2862416k free, 18272k buffers PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND Swap: 2654200k total, 0k used, 2654200k free, 145224k cached 2353 asterisk -11 0 31848 10m 6564 S 102 0.3 2:31.67 asterisk 1 root 20 0 2104 688 588 S 0 0.0 0:01.16 init 2 root 15 -5 0 0 0 S 0 0.0 0:00.00 kthreadd 3 root RT -5 0 0 0 S 0 0.0 0:00.00 migration/0 ... 7 root 15 -5 0 0 0 S 0 0.0 0:00.02 ksoftirqd/1 8 root RT -5 0 0 0 S 0 0.0 0:00.00 watchdog/1 9 root 15 -5 0 0 0 S 0 0.0 0:00.06 events/0 10 root 15 -5 0 0 0 S 0 0.0 0:00.06 events/1 11 root 15 -5 0 0 0 S 0 0.0 0:00.00 khelper 44 root 15 -5 0 0 0 S 0 0.0 0:00.02 kblockd/0 45 root 15 -5 0 0 0 S 0 0.0 0:00.00 kblockd/1 47 root 15 -5 0 0 0 S 0 0.0 0:00.00 kacpid 48 root 15 -5 0 0 0 S 0 0.0 0:00.00 kacpi_notify 136 root 15 -5 0 0 0 S 0 0.0 0:00.00 kseriod |
#/etc/init.d/asterisk stop
Stopping Asterisk PBX: asterisk. |
#/etc/init.d/asterisk start
Starting Asterisk PBX: asterisk. |
#/etc/init.d/festival stop
Stopping Festival server: festival. |
#/etc/init.d/festival start
Starting Festival server: festival. |
#top
top - 13:48:15 up 1:00, 2 users, load average: 3.80, 1.44, 0.56 Tasks: 90 total, 2 running, 88 sleeping, 0 stopped, 0 zombie Cpu(s): 1.1%us, 3.2%sy, 0.0%ni, 95.4%id, 0.3%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 3099904k total, 238132k used, 2861772k free, 18712k buffers PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND Swap: 2654200k total, 0k used, 2654200k free, 145232k cached 4249 asterisk -11 0 31640 10m 6536 S 180 0.3 1:56.24 asterisk 1 root 20 0 2104 688 588 S 0 0.0 0:01.16 init 2 root 15 -5 0 0 0 S 0 0.0 0:00.00 kthreadd 3 root RT -5 0 0 0 S 0 0.0 0:00.00 migration/0 ... 7 root 15 -5 0 0 0 S 0 0.0 0:00.02 ksoftirqd/1 8 root RT -5 0 0 0 S 0 0.0 0:00.00 watchdog/1 9 root 15 -5 0 0 0 S 0 0.0 0:00.06 events/0 10 root 15 -5 0 0 0 R 0 0.0 0:00.06 events/1 11 root 15 -5 0 0 0 S 0 0.0 0:00.00 khelper 44 root 15 -5 0 0 0 S 0 0.0 0:00.02 kblockd/0 45 root 15 -5 0 0 0 S 0 0.0 0:00.00 kblockd/1 47 root 15 -5 0 0 0 S 0 0.0 0:00.00 kacpid 48 root 15 -5 0 0 0 S 0 0.0 0:00.00 kacpi_notify 136 root 15 -5 0 0 0 S 0 0.0 0:00.00 kseriod |
#reboot
|
#top
top - 13:52:38 up 3 min, 1 user, load average: 0.02, 0.04, 0.01 Tasks: 82 total, 1 running, 81 sleeping, 0 stopped, 0 zombie Cpu(s): 1.1%us, 0.9%sy, 0.0%ni, 95.1%id, 2.9%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 3099904k total, 119268k used, 2980636k free, 4852k buffers PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND Swap: 2654200k total, 0k used, 2654200k free, 49004k cached 1 root 20 0 2104 688 588 S 0 0.0 0:01.12 init 2 root 15 -5 0 0 0 S 0 0.0 0:00.00 kthreadd 3 root RT -5 0 0 0 S 0 0.0 0:00.00 migration/0 4 root 15 -5 0 0 0 S 0 0.0 0:00.00 ksoftirqd/0 ... 8 root RT -5 0 0 0 S 0 0.0 0:00.00 watchdog/1 9 root 15 -5 0 0 0 S 0 0.0 0:00.00 events/0 10 root 15 -5 0 0 0 S 0 0.0 0:00.00 events/1 11 root 15 -5 0 0 0 S 0 0.0 0:00.00 khelper 44 root 15 -5 0 0 0 S 0 0.0 0:00.00 kblockd/0 45 root 15 -5 0 0 0 S 0 0.0 0:00.00 kblockd/1 47 root 15 -5 0 0 0 S 0 0.0 0:00.00 kacpid 48 root 15 -5 0 0 0 S 0 0.0 0:00.00 kacpi_notify 136 root 15 -5 0 0 0 S 0 0.0 0:00.00 kseriod 177 root 20 0 0 0 0 S 0 0.0 0:00.00 pdflush |
#ps awwx | grep fest
2523 ? S 0:00 /usr/bin/festival --server -b /etc/festival.scm 2663 pts/1 S+ 0:00 grep fest |
#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 [2250@group1:1] Festival("SIP/2201-08ba5110", "Welcome to Minsk") in new stack == Parsing '/etc/asterisk/festival.conf': Found [Oct 28 13:53:36] WARNING[2417]: chan_sip.c:12655 handle_response_register: Got 200 OK on REGISTER that isn't a register [Oct 28 13:53:37] WARNING[2417]: chan_sip.c:12655 handle_response_register: Got 200 OK on REGISTER that isn't a register [Oct 28 13:53:37] NOTICE[2417]: chan_sip.c:12615 handle_response_register: Failed to authenticate on REGISTER to 'mn@192.168.109.1' (Tries 3) [Oct 28 13:53:40] WARNING[2417]: chan_sip.c:1950 retrans_pkt: Maximum retries exceeded on transmission 00138078-1ca20051-68b493da-1016bfa3@192.168.112.11 for seqno 102 (Critical Response) [Oct 28 13:53:40] WARNING[2417]: chan_sip.c:1972 retrans_pkt: Hanging up call 00138078-1ca20051-68b493da-1016bfa3@192.168.112.11 - no reply to our critical packet. linux12*CLI> quit Executing last minute cleanups Asterisk cleanly ending (0). |
#top
top - 13:54:01 up 4 min, 1 user, load average: 2.68, 0.70, 0.23 Tasks: 82 total, 2 running, 80 sleeping, 0 stopped, 0 zombie Cpu(s): 17.1%us, 77.9%sy, 0.0%ni, 5.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 3099904k total, 119408k used, 2980496k free, 5188k buffers PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND Swap: 2654200k total, 0k used, 2654200k free, 49024k cached 2354 asterisk -11 0 31880 10m 6536 S 189 0.3 1:15.29 asterisk 1 root 20 0 2104 688 588 R 0 0.0 0:01.12 init 2 root 15 -5 0 0 0 S 0 0.0 0:00.00 kthreadd 3 root RT -5 0 0 0 S 0 0.0 0:00.00 migration/0 ... 9 root 15 -5 0 0 0 R 0 0.0 0:00.00 events/0 10 root 15 -5 0 0 0 S 0 0.0 0:00.00 events/1 11 root 15 -5 0 0 0 S 0 0.0 0:00.00 khelper 44 root 15 -5 0 0 0 S 0 0.0 0:00.00 kblockd/0 45 root 15 -5 0 0 0 S 0 0.0 0:00.00 kblockd/1 47 root 15 -5 0 0 0 S 0 0.0 0:00.00 kacpid 48 root 15 -5 0 0 0 S 0 0.0 0:00.00 kacpi_notify 136 root 15 -5 0 0 0 S 0 0.0 0:00.00 kseriod 1 root 20 0 2104 688 588 S 0 0.0 0:01.12 init 9 root 15 -5 0 0 0 S 0 0.0 0:00.00 events/0 |
#/etc/asterisk -rcv
bash: /etc/asterisk: is a directory |
#/etc/init.d/asterisk stop
Stopping Asterisk PBX: asterisk. |
#/etc/init.d/asterisk start
Starting Asterisk PBX: asterisk. |
#vi /etc/def
--- /tmp/l3-saved-2617.23769.27849 2010-10-28 13:56:28.000000000 +0300 +++ /etc/default/festival 2010-10-28 13:56:35.000000000 +0300 @@ -1,2 +1 @@ RUN_FESTIVAL=yes -RUN_FESTIVAL=yes |
#vi /etc/default/festival
--- /tmp/l3-saved-2617.18943.28040 2010-10-28 13:56:48.000000000 +0300 +++ /etc/asterisk/extensions.conf 2010-10-28 13:57:47.000000000 +0300 @@ -63,7 +63,8 @@ [local] -exten =>2250,1,Festival('Welcome to Minsk') +exten => 2250,1,Answer +exten =>2250,n,Festival(Welcome to Minsk) exten =>2281,1,Queue(queue1) exten =>2280,1,Dial(SIP/2202&SIP/2203) exten =>2280,1,Dial(SIP/2202&SIP/2203) |
#/etc/init.d/asterisk stop
Stopping Asterisk PBX: asterisk. |
#/etc/init.d/festival stop
Stopping Festival server: festival. |
#/etc/init.d/festival start
Starting Festival server: festival. |
#/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 ========================================================================= ... -- Executing [2250@group1:2] Festival("SIP/2201-094981c8", "Welcome to Minsk") in new stack == Parsing '/etc/asterisk/festival.conf': Found -- Executing [2250@group1:1] Answer("SIP/2201-0949ddc8", "") in new stack -- Executing [2250@group1:2] Festival("SIP/2201-0949ddc8", "Welcome to Minsk") in new stack == Parsing '/etc/asterisk/festival.conf': Found -- Saved useragent "Asterisk PBX" for peer br -- Saved useragent "Asterisk PBX" for peer gm linux12*CLI> quit Executing last minute cleanups Asterisk cleanly ending (0). |
#top
top - 13:59:06 up 9 min, 1 user, load average: 2.86, 1.16, 0.53 Tasks: 82 total, 4 running, 78 sleeping, 0 stopped, 0 zombie Cpu(s): 15.2%us, 65.8%sy, 0.0%ni, 19.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 3099904k total, 122384k used, 2977520k free, 6112k buffers PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND Swap: 2654200k total, 0k used, 2654200k free, 50924k cached 2911 asterisk -11 0 31888 10m 6564 S 162 0.3 0:57.51 asterisk 1 root 20 0 2104 688 588 R 0 0.0 0:01.12 init 2 root 15 -5 0 0 0 S 0 0.0 0:00.00 kthreadd 3 root RT -5 0 0 0 S 0 0.0 0:00.00 migration/0 ... 7 root 15 -5 0 0 0 S 0 0.0 0:00.00 ksoftirqd/1 8 root RT -5 0 0 0 S 0 0.0 0:00.00 watchdog/1 9 root 15 -5 0 0 0 S 0 0.0 0:00.00 events/0 10 root 15 -5 0 0 0 R 0 0.0 0:00.00 events/1 11 root 15 -5 0 0 0 S 0 0.0 0:00.00 khelper 44 root 15 -5 0 0 0 S 0 0.0 0:00.02 kblockd/0 45 root 15 -5 0 0 0 S 0 0.0 0:00.00 kblockd/1 47 root 15 -5 0 0 0 S 0 0.0 0:00.00 kacpid 48 root 15 -5 0 0 0 S 0 0.0 0:00.00 kacpi_notify 136 root 15 -5 0 0 0 S 0 0.0 0:00.00 kseriod |
#kill 2950
bash: kill: (2950) - No such process |
#kill 2911
|
#/etc/init.d/festival start
Starting Festival server: festival/usr/bin/festival already running. |
#vi /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2617.18432.8024 2010-10-28 14:00:05.000000000 +0300 +++ /etc/asterisk/extensions.conf 2010-10-28 14:01:54.000000000 +0300 @@ -64,7 +64,10 @@ [local] exten => 2250,1,Answer -exten =>2250,n,Festival(Welcome to Minsk) +exten => 2250,n,Festival(Welcome to Minsk) +exten => 2250,n,Wait(1) +exten => 2250,n,Background(damo-thanks) +exten => 2250,n,Hangup exten =>2281,1,Queue(queue1) exten =>2280,1,Dial(SIP/2202&SIP/2203) exten =>2280,1,Dial(SIP/2202&SIP/2203) |
#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 ========================================================================= ... Dialplan reloaded. [Oct 28 14:02:05] WARNING[3111]: pbx.c:4702 add_pri: Unable to register extension '2280', priority 1 in 'local', already in use linux12*CLI> core set verbose 99 Verbosity was 1 and is now 99 -- Executing [2250@group1:1] Answer("SIP/2201-09cdec50", "") in new stack -- Executing [2250@group1:2] Festival("SIP/2201-09cdec50", "Welcome to Minsk") in new stack == Parsing '/etc/asterisk/festival.conf': Found linux12*CLI> quit Executing last minute cleanups Asterisk cleanly ending (0). |
#top
top - 14:02:52 up 13 min, 1 user, load average: 1.03, 1.07, 0.65 Tasks: 82 total, 2 running, 80 sleeping, 0 stopped, 0 zombie Cpu(s): 9.5%us, 40.6%sy, 0.0%ni, 49.9%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 3099904k total, 123112k used, 2976792k free, 6692k buffers PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND Swap: 2654200k total, 0k used, 2654200k free, 50996k cached 3014 asterisk -11 0 31820 10m 6556 S 100 0.3 0:36.12 asterisk 1 root 20 0 2104 688 588 S 0 0.0 0:01.12 init 2 root 15 -5 0 0 0 S 0 0.0 0:00.00 kthreadd 3 root RT -5 0 0 0 S 0 0.0 0:00.00 migration/0 ... 8 root RT -5 0 0 0 S 0 0.0 0:00.00 watchdog/1 9 root 15 -5 0 0 0 S 0 0.0 0:00.02 events/0 10 root 15 -5 0 0 0 S 0 0.0 0:00.00 events/1 11 root 15 -5 0 0 0 S 0 0.0 0:00.00 khelper 44 root 15 -5 0 0 0 S 0 0.0 0:00.02 kblockd/0 45 root 15 -5 0 0 0 S 0 0.0 0:00.00 kblockd/1 47 root 15 -5 0 0 0 S 0 0.0 0:00.00 kacpid 48 root 15 -5 0 0 0 S 0 0.0 0:00.00 kacpi_notify 136 root 15 -5 0 0 0 S 0 0.0 0:00.00 kseriod 10 root 15 -5 0 0 0 R 0 0.0 0:00.00 events/1 |
#kill 3014
|
#/etc/init.d/asterisk start
Asterisk PBX is already running. Use restart. |
#vi /etc/asterisk/festival.conf
--- /tmp/l3-saved-2617.12571.1971 2010-10-28 14:03:23.000000000 +0300 +++ /etc/asterisk/festival.conf 2010-10-28 14:03:32.000000000 +0300 @@ -2,10 +2,10 @@ ; Festival Configuration ; [general] -host=localhost -port=1314 -usecache=yes -cachedir=/var/lib/asterisk/festivalcache +;host=localhost +;port=1314 +;usecache=yes +;cachedir=/var/lib/asterisk/festivalcache ; ; Host which runs the festival server (default : localhost); |
#/etc/init.d/festival start
Starting Festival server: festival. |
#ps awwx | grep fest
3196 ? S 0:00 /usr/bin/festival --server -b /etc/festival.scm 3210 pts/1 S+ 0:00 grep fest |
#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 ========================================================================= Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?) |
#set verbose 99
|
#/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 ========================================================================= ... The 'set verbose' command is deprecated and will be removed in a future release. Please use 'core set verbose' instead. -- Executing [2250@group1:1] Answer("SIP/2201-09087bd8", "") in new stack -- Executing [2250@group1:2] Festival("SIP/2201-09087bd8", "Welcome to Minsk") in new stack == Parsing '/etc/asterisk/festival.conf': Found [Oct 28 14:04:53] WARNING[3288]: app_festival.c:496 festival_exec: Unable to read from cache/festival fd == Spawn extension (group1, 2250, 2) exited non-zero on 'SIP/2201-09087bd8' -- Saved useragent "SJphone/1.65.377a (SJ Labs)" for peer 2203 linux12*CLI> quit Executing last minute cleanups Asterisk cleanly ending (0). |
#/etc/init.d/festival stop
Stopping Festival server: festival. |
#/etc/init.d/festival start
Starting Festival server: festival. |
#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 ========================================================================= ... Verbosity is at least 99 -- Executing [2250@group1:1] Answer("SIP/2201-0907f608", "") in new stack -- Executing [2250@group1:2] Festival("SIP/2201-0907f608", "Welcome to Minsk") in new stack == Parsing '/etc/asterisk/festival.conf': Found -- Executing [2250@group1:1] Answer("SIP/2201-0907e078", "") in new stack -- Executing [2250@group1:2] Festival("SIP/2201-0907e078", "Welcome to Minsk") in new stack == Parsing '/etc/asterisk/festival.conf': Found quit Executing last minute cleanups Asterisk cleanly ending (0). |
#top
top - 14:07:39 up 18 min, 1 user, load average: 2.58, 1.09, 0.71 Tasks: 82 total, 1 running, 81 sleeping, 0 stopped, 0 zombie Cpu(s): 3.5%us, 14.3%sy, 0.0%ni, 81.6%id, 0.5%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 3099904k total, 124608k used, 2975296k free, 7552k buffers PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND Swap: 2654200k total, 0k used, 2654200k free, 51040k cached 3247 asterisk -11 0 32056 10m 6592 S 192 0.3 0:58.26 asterisk 1 root 20 0 2104 688 588 S 0 0.0 0:01.12 init 2 root 15 -5 0 0 0 S 0 0.0 0:00.00 kthreadd 3 root RT -5 0 0 0 S 0 0.0 0:00.00 migration/0 ... 7 root 15 -5 0 0 0 S 0 0.0 0:00.00 ksoftirqd/1 8 root RT -5 0 0 0 S 0 0.0 0:00.00 watchdog/1 9 root 15 -5 0 0 0 S 0 0.0 0:00.02 events/0 10 root 15 -5 0 0 0 S 0 0.0 0:00.02 events/1 11 root 15 -5 0 0 0 S 0 0.0 0:00.00 khelper 44 root 15 -5 0 0 0 S 0 0.0 0:00.02 kblockd/0 45 root 15 -5 0 0 0 S 0 0.0 0:00.00 kblockd/1 47 root 15 -5 0 0 0 S 0 0.0 0:00.00 kacpid 48 root 15 -5 0 0 0 S 0 0.0 0:00.00 kacpi_notify 136 root 15 -5 0 0 0 S 0 0.0 0:00.00 kseriod |
#kill 3247
|
#/etc/init.d/asterisk start
Starting Asterisk PBX: asterisk. |
#vi /etc/asterisk/ext
--- /tmp/l3-saved-2617.5113.12087 2010-10-28 14:08:40.000000000 +0300 +++ /etc/asterisk/extensions.conf 2010-10-28 14:09:00.000000000 +0300 @@ -64,7 +64,7 @@ [local] exten => 2250,1,Answer -exten => 2250,n,Festival(Welcome to Minsk) +exten => 2250,n,Festival(Welcome) exten => 2250,n,Wait(1) exten => 2250,n,Background(damo-thanks) exten => 2250,n,Hangup |
#vi /etc/asterisk/extensions.conf
|
#asterisk -rchv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008, Digium, Inc. and others. Usage: asterisk [OPTIONS] Valid Options: -V Display version number and exit -C <configfile> Use an alternate configuration file -G <group> Run as a group other than the caller -U <user> Run as a user other than the caller -c Provide console CLI -d Enable extra debugging -f Do not fork ... -p Run as pseudo-realtime thread -q Quiet mode (suppress output) -r Connect to Asterisk on this machine -R Same as -r, except attempt to reconnect if disconnected -t Record soundfiles in /var/tmp and move them where they belong after they are done -T Display the time in [Mmm dd hh:mm:ss] format for each line of output to the CLI -v Increase verbosity (multiple v's = more verbose) -x <cmd> Execute command <cmd> (only valid with -r) |
#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 14:09:13] WARNING[3505]: pbx.c:4702 add_pri: Unable to register extension '2280', priority 1 in 'local', already in use 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 [2250@group1:1] Answer("SIP/2201-097aa560", "") in new stack -- Executing [2250@group1:2] Festival("SIP/2201-097aa560", "Welcome") in new stack == Parsing '/etc/asterisk/festival.conf': Found quit Executing last minute cleanups Asterisk cleanly ending (0). |
#top
top - 14:10:00 up 20 min, 1 user, load average: 1.95, 1.30, 0.84 Tasks: 82 total, 1 running, 81 sleeping, 0 stopped, 0 zombie Cpu(s): 3.9%us, 15.8%sy, 0.0%ni, 79.7%id, 0.5%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 3099904k total, 124856k used, 2975048k free, 8000k buffers PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND Swap: 2654200k total, 0k used, 2654200k free, 51072k cached 3391 asterisk -11 0 31640 10m 6560 S 186 0.3 0:57.33 asterisk 1 root 20 0 2104 688 588 S 0 0.0 0:01.12 init 2 root 15 -5 0 0 0 S 0 0.0 0:00.00 kthreadd 3 root RT -5 0 0 0 S 0 0.0 0:00.00 migration/0 ... 7 root 15 -5 0 0 0 S 0 0.0 0:00.00 ksoftirqd/1 8 root RT -5 0 0 0 S 0 0.0 0:00.00 watchdog/1 9 root 15 -5 0 0 0 S 0 0.0 0:00.02 events/0 10 root 15 -5 0 0 0 S 0 0.0 0:00.02 events/1 11 root 15 -5 0 0 0 S 0 0.0 0:00.00 khelper 44 root 15 -5 0 0 0 S 0 0.0 0:00.02 kblockd/0 45 root 15 -5 0 0 0 S 0 0.0 0:00.00 kblockd/1 47 root 15 -5 0 0 0 S 0 0.0 0:00.00 kacpid 48 root 15 -5 0 0 0 S 0 0.0 0:00.00 kacpi_notify 136 root 15 -5 0 0 0 S 0 0.0 0:00.00 kseriod |
#kill 3391
|
#/etc/asterisk/ start
bash: /etc/asterisk/: is a directory |
#apt-get install zaptel-source
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: fxload zaptel The following NEW packages will be installed: fxload zaptel zaptel-source 0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded. Need to get 1460kB of archives. After this operation, 2519kB of additional disk space will be used. ... Unpacking fxload (from .../fxload_0.0.20020411-1.1_i386.deb) ... Selecting previously deselected package zaptel. Unpacking zaptel (from .../zaptel_1%3a1.4.11~dfsg-3_i386.deb) ... Selecting previously deselected package zaptel-source. Unpacking zaptel-source (from .../zaptel-source_1%3a1.4.11~dfsg-3_all.deb) ... Processing triggers for man-db ... Setting up fxload (0.0.20020411-1.1) ... Setting up zaptel (1:1.4.11~dfsg-3) ... Zaptel telephony kernel driver: FATAL: Module ztdummy not found. Setting up zaptel-source (1:1.4.11~dfsg-3) ... |
#m-a a-i zaptel-source
ââââââââââââ⤠Building zaptel-source, step 1, please wait... ââââââââââââââ â â â â â â â â â â â â â â â â â â â â â â â 100% â â â âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ Done with /usr/src/zaptel-modules-2.6.26-2-686_1.4.11~dfsg-3+2.6.26-25lenny1_i386.deb . dpkg -Ei /usr/src/zaptel-modules-2.6.26-2-686_1.4.11~dfsg-3+2.6.26-25lenny1_i386.deb Selecting previously deselected package zaptel-modules-2.6.26-2-686. (Reading database ... 54996 files and directories currently installed.) Unpacking zaptel-modules-2.6.26-2-686 (from .../zaptel-modules-2.6.26-2-686_1.4.11~dfsg-3+2.6.26-25lenny1_i386.deb) ... Setting up zaptel-modules-2.6.26-2-686 (1:1.4.11~dfsg-3+2.6.26-25lenny1) ... |
#modprobe ztdummy
|
#top
top - 14:14:20 up 24 min, 2 users, load average: 1.05, 1.03, 0.83 Tasks: 88 total, 1 running, 87 sleeping, 0 stopped, 0 zombie Cpu(s): 5.6%us, 14.5%sy, 0.0%ni, 79.0%id, 1.0%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 3099904k total, 310664k used, 2789240k free, 29952k buffers PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND Swap: 2654200k total, 0k used, 2654200k free, 198580k cached 1 root 20 0 2104 688 588 S 0 0.0 0:01.12 init 2 root 15 -5 0 0 0 S 0 0.0 0:00.00 kthreadd 3 root RT -5 0 0 0 S 0 0.0 0:00.00 migration/0 4 root 15 -5 0 0 0 S 0 0.0 0:00.06 ksoftirqd/0 ... 8 root RT -5 0 0 0 S 0 0.0 0:00.00 watchdog/1 9 root 15 -5 0 0 0 S 0 0.0 0:00.02 events/0 10 root 15 -5 0 0 0 S 0 0.0 0:00.06 events/1 11 root 15 -5 0 0 0 S 0 0.0 0:00.00 khelper 44 root 15 -5 0 0 0 S 0 0.0 0:00.02 kblockd/0 45 root 15 -5 0 0 0 S 0 0.0 0:00.00 kblockd/1 47 root 15 -5 0 0 0 S 0 0.0 0:00.00 kacpid 48 root 15 -5 0 0 0 S 0 0.0 0:00.00 kacpi_notify 136 root 15 -5 0 0 0 S 0 0.0 0:00.00 kseriod 177 root 20 0 0 0 0 S 0 0.0 0:00.00 pdflush |
#less /etc/asterisk/extensions.conf
|
#uname -a
Linux linux12.unix.nt 2.6.26-2-686 #1 SMP Thu Sep 16 19:35:51 UTC 2010 i686 GNU/Linux |
#ls /var/lib/
apt/ gconf/ sgml-base/ aptitude/ hal/ snmp/ aspell/ initramfs-tools/ tex-common/ asterisk/ initscripts/ ucf/ bind/ libuuid/ urandom/ dbus/ logrotate/ usbutils/ defoma/ misc/ vim/ dhcp3/ mlocate/ x11/ dictionaries-common/ nfs/ xkb/ dpkg/ samba/ exim4/ sendmail/ |
#ls /var/lib/m
misc/ mlocate/ |
#ls /var/l
lib/ local/ lock/ log/ lost+found/ |
#ls /var/lib/m
misc/ mlocate/ |
#lsmode | grep ztdummy
bash: lsmode: command not found |
#lsmod | grep ztdummy
ztdummy 3056 0 zaptel 185060 1 ztdummy |
#cat /proc/cpuinfo
processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 15 model name : Intel(R) Core(TM)2 CPU 6400 @ 2.13GHz stepping : 6 cpu MHz : 2133.358 cache size : 2048 KB physical id : 0 siblings : 2 ... f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 10 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc arch_perfmon pebs bts pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr lahf_lm bogomips : 4266.87 clflush size : 64 power management: |
#vi /etc/asterisk/ext
|
#vi /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2617.30511.18447 2010-10-28 14:27:10.000000000 +0300 +++ /etc/asterisk/queues.conf 2010-10-28 14:27:46.000000000 +0300 @@ -310,7 +310,7 @@ ; available, but consider with penalty [queue1] - ;member => SIP/2202 - ;member => SIP/2203 - member => Agent/@1 - strategy = ringall + member => SIP/2202 + member => SIP/2203 + ;member => Agent/@1 + ;strategy = ringall |
#:qw
features.conf festival.conf |
#vi /etc/asterisk/features.conf \
--- /tmp/l3-saved-2617.734.8477 2010-10-28 14:27:59.000000000 +0300 +++ /etc/asterisk/extensions.conf 2010-10-28 14:30:11.000000000 +0300 @@ -63,11 +63,12 @@ [local] -exten => 2250,1,Answer -exten => 2250,n,Festival(Welcome) -exten => 2250,n,Wait(1) -exten => 2250,n,Background(damo-thanks) -exten => 2250,n,Hangup +exten => 2201,1,Dial(SIP/2201,tT) +;exten => 2250,1,Answer +;exten => 2250,n,Festival(Welcome) +;exten => 2250,n,Wait(1) +;exten => 2250,n,Background(damo-thanks) +;exten => 2250,n,Hangup exten =>2281,1,Queue(queue1) exten =>2280,1,Dial(SIP/2202&SIP/2203) exten =>2280,1,Dial(SIP/2202&SIP/2203) |
#vi /etc/asterisk/features.conf
|
#;
; ; Note that 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 ; recent, etc, you should list all the agents in this file individually and not ; available, but consider with penalty ; use agent groups. [queue1] ; ;member => Agent/@1 ; Any agent in group 1 ;member => SIP/2202 ;member => Agent/:1,1 ; Any agent in group 1, wait for first ;member => SIP/2203 member => SIP/2202 member => SIP/2203 ;member => Agent/@1 315,2 Bot ;strategy = ringall "/etc/asterisk/queues.conf" 316L, 11819C written |
#vi /etc/asterisk/ext
|
#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 ========================================================================= Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?) |
#/etc/init.d/asterisk start
Starting Asterisk PBX: asterisk. |
#asterisk -rcvvvv
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 14:34:03] NOTICE[8058]: res_monitor.c:339 ast_monitor_stop: monitor executing ( nice -n 19 sox -m "/var/spool/asterisk/monitor/voice-2202-2201-1288265618-in.wav" "/var/spool/asterisk/monitor/voice-2202-2201-1288265618-out.wav" "/var/spool/asterisk/monitor/voice-2202-2201-1288265618.wav" && rm -f "/var/spool/asterisk/monitor/voice-2202-2201-1288265618-"* ) & -- Executing [h@macro-answer-with-monitor:2] System("SIP/2201-095b1d18", "lame /var/spool/asterisk/monitor/voice-2202-2201-1288265618.wav /var/spool/asterisk/monitor/voice-2202-2201-1288265618.mp3") in new stack -- Remote UNIX connection -- Remote UNIX connection disconnected -- Remote UNIX connection Executing last minute cleanups == Destroying musiconhold processes Disconnected from Asterisk server Executing last minute cleanups Asterisk cleanly ending (0). |
#vi /etc/asterisk/extensions.conf
--- /tmp/l3-saved-7471.6549.12736 2010-10-28 14:39:51.000000000 +0300 +++ /etc/asterisk/extensions.conf 2010-10-28 14:41:28.000000000 +0300 @@ -63,6 +63,7 @@ [local] +exten =>2260,1,MeetMe(100,M) exten => 2201,1,Dial(SIP/2201,tT) exten => 2250,1,Answer exten => 2250,n,Festival(Festival is a general purpose text-to-speech system. As well as simply rendering text as speech it can be used in an interactive command mode for testing and developing various aspects of speech synthesis technology) |
#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 = 8001) Verbosity is at least 99 linux12*CLI> quit Executing last minute cleanups Asterisk cleanly ending (0). |
#vi /etc/asterisk/m
--- /tmp/l3-saved-7471.29269.13804 2010-10-28 14:41:47.000000000 +0300 +++ /etc/asterisk/meetme.conf 2010-10-28 14:42:17.000000000 +0300 @@ -22,5 +22,5 @@ ; in the conference and it goes away. When it is created again, it will have ; the new pin number. ; -;conf => 1234 +conf => 1234 ;conf => 2345,9938 |
#vi /etc/asterisk/meetme.conf
--- /tmp/l3-saved-7471.30564.4868 2010-10-28 14:42:33.000000000 +0300 +++ /etc/asterisk/meetme.conf 2010-10-28 14:42:48.000000000 +0300 @@ -22,5 +22,5 @@ ; in the conference and it goes away. When it is created again, it will have ; the new pin number. ; -conf => 1234 +conf => 100,1234 ;conf => 2345,9938 |
#/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 ========================================================================= ... -- <SIP/mn-08c6e140> Playing 'conf-getpin' (language 'en') -- Stopped music on hold on SIP/2201-08c64b78 == Spawn extension (group1, 2260, 1) exited non-zero on 'SIP/mn-08c6e140' -- Started music on hold, class 'default', on SIP/2201-08c64b78 -- Stopped music on hold on SIP/2201-08c64b78 -- Hungup 'Zap/pseudo-2026594107' == Spawn extension (group1, 2260, 1) exited non-zero on 'SIP/2201-08c64b78' 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 ========================================================================= ... [Oct 28 14:52:57] NOTICE[8346]: rtp.c:788 process_rfc3389: Comfort noise support incomplete in Asterisk (RFC 3389). Please turn off on client if possible. Client IP: 192.168.111.151 == Spawn extension (group3, 2262, 1) exited non-zero on 'SIP/2202-08c67560' == Spawn extension (group1, 2262, 1) exited non-zero on 'SIP/mn-08c64b78' -- Started music on hold, class 'default', on SIP/2201-08c6e140 -- Stopped music on hold on SIP/2201-08c6e140 -- Hungup 'Zap/pseudo-1854707635' == Spawn extension (group1, 2262, 1) exited non-zero on 'SIP/2201-08c6e140' linux12*CLI> quit Executing last minute cleanups Asterisk cleanly ending (0). |
#vi /etc/asterisk/festival.conf
--- /tmp/l3-saved-7471.5617.24098 2010-10-28 14:55:00.000000000 +0300 +++ /etc/asterisk/festival.conf 2010-10-28 14:55:23.000000000 +0300 @@ -14,7 +14,7 @@ ; ; Use cache (yes, no - defaults to no) ; -usecache=yes +;usecache=yes ; ; If usecache=yes, a directory to store waveform cache files. ; The cache is never cleared (yet), so you must take care of cleaning it @@ -22,7 +22,7 @@ ; THIS DIRECTORY *MUST* EXIST and must be writable from the asterisk process. ; Defaults to /tmp/ ; -cachedir=/var/lib/asterisk/festivalcache/ +;cachedir=/var/lib/asterisk/festivalcache/ ; ; Festival command to send to the server. ; Defaults to: (tts_textasterisk "%s" 'file)(quit)\n |
#:
;cachedir=/var/lib/asterisk/festivalcache/ ; ; Festival command to send to the server. ; Defaults to: (tts_textasterisk "%s" 'file)(quit)\n ; %s is replaced by the desired text to say. The command MUST end with a ; (quit) directive, or the cache handling mechanism will hang. Do not ; forget the \n at the end. ; ;festivalcommand=(tts_textasterisk "%s" 'file)(quit)\n ; ; 35,1 92% |
#/etc/init.d/festival start
Starting Festival server: festival. |
#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 ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': Found == Parsing '/etc/asterisk/extconfig.conf': Found Connected to Asterisk 1.4.21.2~dfsg-3+lenny1 currently running on linux12 (pid = 8262) Verbosity is at least 99 linux12*CLI> set verbose 99 Verbosity is at least 99 linux12*CLI> quit Executing last minute cleanups Asterisk cleanly ending (0). |
#vi /etc/asterisk/extensions.conf
|
#vi /etc/asterisk/extensions.conf
--- /tmp/l3-saved-8641.8679.787 2010-10-28 15:22:18.000000000 +0300 +++ /etc/asterisk/extensions.conf 2010-10-28 15:22:35.000000000 +0300 @@ -66,7 +66,7 @@ exten =>2260,1,MeetMe(100,M) exten =>2261,1,MeetMe(100,Mm) exten =>2262,1,Meetme(100,Mt) -exten => 2201,1,Dial(SIP/2201,tT) +exten => 2201,1,Dial(SIP/2201||tT) exten => 2250,1,Answer exten => 2250,n,Festival(Festival is a general purpose text-to-speech system. As well as simply rendering text as speech it can be used in an interactive command mode for testing and developing various aspects of speech synthesis technology) ;exten => 2250,n,Wait(1) |
#mv /etc/asterisk/iax.conf /etc/i
i init.d/ inputrc issue.net idmapd.conf initramfs-tools/ iproute2/ inetd.conf inittab issue |
#mv /etc/asterisk/iax.conf /etc/asterisk/i
iax.conf iaxprov.conf indications.conf |
#mv /etc/asterisk/iax.conf /etc/asterisk/iax.conf.orig
|
processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 15 model name : Intel(R) Core(TM)2 CPU 6400 @ 2.13GHz stepping : 6 cpu MHz : 2133.358 cache size : 2048 KB physical id : 0 siblings : 2 core id : 0 cpu cores : 2 apicid : 0 initial apicid : 0 fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 10 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc arch_perfmon pebs bts pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr lahf_lm bogomips : 4270.48 clflush size : 64 power management: processor : 1 vendor_id : GenuineIntel cpu family : 6 model : 15 model name : Intel(R) Core(TM)2 CPU 6400 @ 2.13GHz stepping : 6 cpu MHz : 2133.358 cache size : 2048 KB physical id : 0 siblings : 2 core id : 1 cpu cores : 2 apicid : 1 initial apicid : 1 fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 10 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc arch_perfmon pebs bts pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr lahf_lm bogomips : 4266.87 clflush size : 64 power management:
Время первой команды журнала | 12:35:29 2010-10-28 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 14:43:55 2010-10-28 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 6.93 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.00 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 2.14 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.79 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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