/l3/users/a.krivulya/asterisk/linux2.unix.nt/root :1 :2 :3 :4 :5 |
|
#asterisk -rvvv
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 ========================================================================= ... -- Called kharkov/401 -- SIP/kharkov-081d8ef0 is ringing -- SIP/kharkov-081d8ef0 answered Zap/1-1 == Spawn extension (submenu, 3, 1) exited non-zero on 'Zap/1-1' -- Hungup 'Zap/1-1' [May 28 14:52:16] NOTICE[2876]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 202 [May 28 14:55:17] NOTICE[2876]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 202 [May 28 14:58:17] NOTICE[2876]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 202 linux2*CLI> quit Executing last minute cleanups |
#scp 192.168.4.1:/etc/asterisk/zapata.conf /etc/asterisk/
root@192.168.4.1's password: zapata.conf 100% 24KB 23.6KB/s 00:00 |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#cat /etc/zaptel.conf
loadzone=de defaultzone=de fxoks=1-8 |
#ls /etc/asterisk/
] cdr_tds.conf gtalk.conf musiconhold.conf sip.conf.dist adsi.conf codecs.conf h323.conf muted.conf sip_notify.conf adtranvofr.conf dnsmgr.conf http.conf osp.conf skinny.conf agents.conf dundi.conf iax.conf oss.conf sla.conf alarmreceiver.conf enum.conf iaxprov.conf phone.conf smdi.conf alsa.conf esel.conf indications.conf privacy.conf telcordia-1.adsi amd.conf extconfig.conf jabber.conf queues.conf udptl.conf asterisk.adsi extensions.ael logger.conf res_odbc.conf users.conf asterisk.conf extensions.conf manager.conf res_pgsql.conf voicemail.conf cdr.conf extensions.conf.dist manager.d res_snmp.conf vpb.conf cdr_custom.conf features.conf meetme.conf rpt.conf watchdog.conf cdr_manager.conf festival.conf mgcp.conf rtp.conf zapata.conf cdr_odbc.conf followme.conf misdn.conf say.conf cdr_pgsql.conf func_odbc.conf modules.conf sip.conf |
#ztcfg -vvv
![]() Zaptel Version: 1.4.11 Echo Canceller: MG2 Configuration ====================== Channel map: Channel 01: FXS Kewlstart (Default) (Slaves: 01) Channel 02: FXS Kewlstart (Default) (Slaves: 02) Channel 03: FXS Kewlstart (Default) (Slaves: 03) Channel 04: FXS Kewlstart (Default) (Slaves: 04) Channel 05: FXS Kewlstart (Default) (Slaves: 05) Channel 06: FXS Kewlstart (Default) (Slaves: 06) Channel 07: FXS Kewlstart (Default) (Slaves: 07) Channel 08: FXS Kewlstart (Default) (Slaves: 08) 8 channels to configure. Changing signalling on channel 1 from FXO Kewlstart to FXS Kewlstart ZT_CHANCONFIG failed on channel 1: Invalid argument (22) Did you forget that FXS interfaces are configured with FXO signalling and that FXO interfaces use FXS signalling? |
#vi /etc/zaptel.conf
|
#lspci
00:00.0 Host bridge: Intel Corporation 82845 845 [Brookdale] Chipset Host Bridge (rev 03) 00:01.0 PCI bridge: Intel Corporation 82845 845 [Brookdale] Chipset AGP Bridge (rev 03) 00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 12) 00:1f.0 ISA bridge: Intel Corporation 82801BA ISA Bridge (LPC) (rev 12) 00:1f.1 IDE interface: Intel Corporation 82801BA IDE U100 Controller (rev 12) 00:1f.2 USB Controller: Intel Corporation 82801BA/BAM USB Controller #1 (rev 12) 00:1f.3 SMBus: Intel Corporation 82801BA/BAM SMBus Controller (rev 12) 00:1f.4 USB Controller: Intel Corporation 82801BA/BAM USB Controller #1 (rev 12) 00:1f.5 Multimedia audio controller: Intel Corporation 82801BA/BAM AC'97 Audio Controller (rev 12) 01:00.0 VGA compatible controller: ATI Technologies Inc Rage 128 Pro Ultra TF 02:0a.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10) 02:0c.0 Ethernet controller: Digium, Inc. Wildcard TDM800P 8-port analog card (rev 11) |
#ztscan
[1] active=yes alarms=OK description=Wildcard TDM800P Board 1 name=WCTDM/0 manufacturer=Digium devicetype=Wildcard TDM800P location=PCI Bus 02 Slot 13 basechan=1 totchans=8 irq=17 type=analog port=1,FXS port=2,none port=3,none port=4,none port=5,none port=6,none port=7,none port=8,none |
#vi /etc/zaptel.conf
--- /tmp/l3-saved-2534.15937.17632 2010-05-28 15:04:18.000000000 +0300 +++ /etc/zaptel.conf 2010-05-28 15:04:24.000000000 +0300 @@ -1,6 +1,6 @@ loadzone=de defaultzone=de -fxsks=1-8 +fxoks=1-8 |
#vi /etc/zaptel.conf
--- /tmp/l3-saved-2534.29631.19893 2010-05-28 15:04:27.000000000 +0300 +++ /etc/zaptel.conf 2010-05-28 15:04:42.000000000 +0300 @@ -1,6 +1,6 @@ loadzone=de defaultzone=de -fxoks=1-8 +fxoks=1 |
#ztcfg -vvv
Zaptel Version: 1.4.11 Echo Canceller: MG2 Configuration ====================== Channel map: Channel 01: FXO Kewlstart (Default) (Slaves: 01) 1 channels to configure. |
#vi /etc/zaptel.conf
![]() |
#vi /etc/asterisk/zapata.conf
--- /tmp/l3-saved-2534.13583.29106 2010-05-28 15:05:11.000000000 +0300 +++ /etc/asterisk/zapata.conf 2010-05-28 15:07:57.000000000 +0300 @@ -47,7 +47,7 @@ ; ; Default context ; -context=default +context=gr2 ; ; Switchtype: Only used for PRI. ; @@ -609,7 +609,7 @@ ; crv => 2:1-2,5-8 ; ; -;callerid="Green Phone"<(256) 428-6121> +callerid="White Phone"<203> channel => 1 ;callerid="Black Phone"<(256) 428-6122> ;channel => 2 |
#vi /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2534.2533.10502 2010-05-28 15:08:05.000000000 +0300 +++ /etc/asterisk/extensions.conf 2010-05-28 15:09:30.000000000 +0300 @@ -21,7 +21,7 @@ exten => s,n,Monitor(wav,${CALLFILENAME},m) [local] - +exten => 203,1,Dial(ZAP/g1) exten => _2XX,1,Macro(call_record) exten => _2XX,n,Macro(incoming) exten => _9XX,1,Macro(incoming) |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#vi /etc/asterisk/sip.conf\
--- /tmp/l3-saved-2534.24505.5563 2010-05-28 15:43:57.000000000 +0300 +++ /etc/asterisk/sip.conf 2010-05-28 15:44:12.000000000 +0300 @@ -19,7 +19,7 @@ type=friend secret=password host=dynamic -canreinvite=no +canreinvite=yes callerid="softphone" context=gr1 callgroup=10 |
#asterisk -rx "sip reload"
|
#asterisk -rvv
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 ========================================================================= ... [May 28 15:51:54] WARNING[3916]: app_dial.c:1202 dial_exec_full: Unable to create channel of type 'SIP' (cause 3 - No route to destination) [May 28 15:52:04] WARNING[3916]: app.c:611 __ast_play_and_record: No audio available on Local/202@gr3-6147,2?? == Spawn extension (macro-incoming, s, 2) exited non-zero on 'Local/202@gr3-6147,2' in macro 'incoming' == Spawn extension (macro-incoming, s, 2) exited non-zero on 'Local/202@gr3-6147,2' [May 28 15:52:04] NOTICE[3916]: res_monitor.c:339 ast_monitor_stop: monitor executing ( nice -n 19 sox -m "/var/tmp/from-202-to-202-Fri May 28 15:51:54 2010-in.wav" "/var/tmp/from-202-to-202-Fri May 28 15:51:54 2010-out.wav" "/var/tmp/from-202-to-202-Fri May 28 15:51:54 2010.wav" && rm -f "/var/tmp/from-202-to-202-Fri May 28 15:51:54 2010-"* ) & == Spawn extension (macro-incoming, s, 1) exited non-zero on 'Local/202@gr3-6147,1' in macro 'incoming' == Spawn extension (macro-incoming, s, 1) exited non-zero on 'Local/202@gr3-6147,1' [May 28 15:52:04] NOTICE[3918]: res_monitor.c:339 ast_monitor_stop: monitor executing ( nice -n 19 sox -m "/var/tmp/from-202-to-201-Fri May 28 15:51:54 2010-in.wav" "/var/tmp/from-202-to-201-Fri May 28 15:51:54 2010-out.wav" "/var/tmp/from-202-to-201-Fri May 28 15:51:54 2010.wav" && rm -f "/var/tmp/from-202-to-201-Fri May 28 15:51:54 2010-"* ) & linux2*CLI> quit Executing last minute cleanups |
#screen -x
![]() |
#sc
![]() scp screendump script scriptreplay |
#[local]
canreinvite=no callerid="toshiba_g810" canreinv context=gr3 callgroup=10 pickupgroup=10 [dnepr] type=friend secret=password host=dynamic |
#sc
![]() scp screendump script scriptreplay |
#sc
![]() scp screendump script scriptreplay |
#sc
scp screendump script scriptreplay |
#asterisk -rvv
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 ========================================================================= ... [May 28 16:15:04] WARNING[2504]: chan_sip.c:2921 create_addr: No such host: 999 [May 28 16:15:04] WARNING[2504]: app_dial.c:1202 dial_exec_full: Unable to create channel of type 'SIP' (cause 3 - No route to destination) [May 28 16:15:04] WARNING[2504]: app_voicemail.c:2862 leave_voicemail: No entry in voicemail config file for '999' == Spawn extension (macro-incoming, s, 3) exited non-zero on 'Local/999@gr3-acfc,2' in macro 'incoming' == Spawn extension (macro-incoming, s, 3) exited non-zero on 'Local/999@gr3-acfc,2' == Spawn extension (macro-incoming, s, 1) exited non-zero on 'Local/999@gr3-acfc,1' in macro 'incoming' == Spawn extension (macro-incoming, s, 1) exited non-zero on 'Local/999@gr3-acfc,1' [May 28 16:15:04] NOTICE[2505]: res_monitor.c:339 ast_monitor_stop: monitor executing ( nice -n 19 sox -m "/var/tmp/from-999-to-201-Fri May 28 16:15:04 2010-in.wav" "/var/tmp/from-999-to-201-Fri May 28 16:15:04 2010-out.wav" "/var/tmp/from-999-to-201-Fri May 28 16:15:04 2010.wav" && rm -f "/var/tmp/from-999-to-201-Fri May 28 16:15:04 2010-"* ) & linux2*CLI> quit Executing last minute cleanups |
#ztscan
[1] active=yes alarms=OK description=Wildcard TDM800P Board 1 name=WCTDM/0 manufacturer=Digium devicetype=Wildcard TDM800P location=PCI Bus 02 Slot 13 basechan=1 totchans=8 irq=17 type=analog port=1,FXS port=2,none port=3,none port=4,none port=5,none port=6,none port=7,none port=8,none |
#ssh 192.168.4.1
root@192.168.4.1's password: Linux linux4.unix.nt 2.6.26-2-686 #1 SMP Wed May 12 21:56:10 UTC 2010 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Fri May 28 15:56:36 2010 from 192.168.1.1 l3-agent is already running: pid=2472; pidfile=/root/.lilalo/l3-agent.pid |
#screen -x
|
#ssh 192.168.4.1
root@192.168.4.1's password: Linux linux4.unix.nt 2.6.26-2-686 #1 SMP Wed May 12 21:56:10 UTC 2010 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Fri May 28 16:15:33 2010 from 192.168.4.204 l3-agent is already running: pid=2421; pidfile=/root/.lilalo/l3-agent.pid |
#ps ax|grep screen
2681 pts/5 S+ 0:00 grep screen |
#screen -h
![]() |
#grep pri_ /etc/asterisk/zapata.conf
; pri_cpe: PRI signalling, CPE side ; pri_net: PRI signalling, Network side ; pri_cpe or pri_net for CPE or Network termination, and generally you will ; signalling = pri_cpe |
#ztscan
[1] active=yes alarms=UNCONFIGURED description=Wildcard TE121 Card 0 name=WCT1/0 manufacturer=Digium devicetype=Wildcard TE121 location=PCI Bus 02 Slot 09 basechan=1 totchans=31 irq=16 type=digital-E1 syncsrc=0 lbo=0 db (CSU)/0-133 feet (DSX-1) coding_opts=HDB3 framing_opts=CCS,CRC4 coding= framing= |
#ps ax|grep screen
2804 pts/7 S+ 0:00 screen 2883 pts/3 S+ 0:00 screen -x 2893 pts/5 S+ 0:00 grep screen |
#screen -x
|
#vi /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2236.27987.8142 2010-05-28 16:41:12.000000000 +0300 +++ /etc/asterisk/extensions.conf 2010-05-28 16:42:26.000000000 +0300 @@ -25,6 +25,9 @@ exten => _2XX,1,Macro(call_record) exten => _2XX,n,Macro(incoming) exten => _9XX,1,Macro(incoming) + +exten => _34XXX,1,Dial(SIP/dnepr/${EXTEN:2}) + exten => 800,1,Playback(/tmp/unforgiven) exten => 803,1,VoicemailMain() exten => 801,1,GotoIf($[${CALLERID(number)}=201]?record) |
#astrrisk -rvv
![]() bash: astrrisk: команда не найдена |
#asterisk -rvv
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 ========================================================================= ... No such command 'dialplan rel9ad' (type 'help dialplan rel9ad' for other possible commands) linux2*CLI> dialplan reload Dialplan reloaded. == Parsing '/etc/asterisk/extensions.conf': Found == Parsing '/etc/asterisk/users.conf': Found \ linux2*CLI> linux2*CLI> linux2*CLI> quit Executing last minute cleanups |
#vi /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2236.29623.12522 2010-05-28 16:43:18.000000000 +0300 +++ /etc/asterisk/extensions.conf 2010-05-28 16:45:51.000000000 +0300 @@ -26,7 +26,8 @@ exten => _2XX,n,Macro(incoming) exten => _9XX,1,Macro(incoming) -exten => _34XXX,1,Dial(SIP/dnepr/${EXTEN:2}) +;Звонки в Днепр через PRI +exten => _34XXX,1,Dial(SIP/dnepr/${EXTEN}) exten => 800,1,Playback(/tmp/unforgiven) exten => 803,1,VoicemailMain() |
#:q
[macro-m2] exten => s,1,Set(CALLERID(number)=2${ARG1}) exten => s,n,Dial(SIP/${MACRO_EXTEN}) [macro-incoming]xtensions.conf" 110 lines, 2893 characters ;exten => s,1,GotoIf($[${BLACKLIST()}=1]?end) exten => s,1,Dial(SIP/${MACRO_EXTEN},20,tT) exten => s,n,Voicemail(${MACRO_EXTEN}@default) exten => s,n(end),Hangup }-${STRFTIME(${EPOCH},Europe/Kiev)}) exten => s,n,Monitor(wav,${CALLFILENAME},m) exten => s,1,Set(CALLFILENAME=/var/tmp/from-${CALLERID(number)}-to-${MACRO_EXTEN [local] [world] exten => _380XXXXXXXXX,1,Dial(SIP/odessa/${EXTEN}) [gr1] include => local include => parkedcalls [gr2] include => local include => corp [gr3] |
#:q
|
#vi /etc/asterisk/sip.conf
--- /tmp/l3-saved-2236.23874.24409 2010-05-28 17:39:22.000000000 +0300 +++ /etc/asterisk/sip.conf 2010-05-28 17:40:29.000000000 +0300 @@ -35,6 +35,17 @@ callgroup=10 pickupgroup=10 +[999] +type=friend +secret=password +host=dynamic +canreinvite=no +callerid="Windows TAPI" +context=gr3 +callgroup=10 +pickupgroup=10 + + [dnepr] type=friend |
#asterisk -rvv
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 2 [May 29 09:45:59] WARNING[2369]: app_dial.c:1202 dial_exec_full: Unable to create channel of type 'SIP' (cause 3 - No route to destination) [May 29 09:45:59] WARNING[2369]: app_voicemail.c:2862 leave_voicemail: No entry in voicemail config file for '999' == Spawn extension (macro-incoming, s, 3) exited non-zero on 'Local/999@gr3-fabb,2' in macro 'incoming' == Spawn extension (macro-incoming, s, 3) exited non-zero on 'Local/999@gr3-fabb,2' == Spawn extension (macro-incoming, s, 1) exited non-zero on 'Local/999@gr3-fabb,1' in macro 'incoming' == Spawn extension (macro-incoming, s, 1) exited non-zero on 'Local/999@gr3-fabb,1' [May 29 09:45:59] NOTICE[2370]: res_monitor.c:339 ast_monitor_stop: monitor executing ( nice -n 19 sox -m "/var/tmp/from-999-to-201-Sat May 29 09:45:59 2010-in.wav" "/var/tmp/from-999-to-201-Sat May 29 09:45:59 2010-out.wav" "/var/tmp/from-999-to-201-Sat May 29 09:45:59 2010.wav" && rm -f "/var/tmp/from-999-to-201-Sat May 29 09:45:59 2010-"* ) & linux2*CLI> quit Executing last minute cleanups |
#cd /etc/asterisk/
|
#vi extensions.conf
--- /tmp/l3-saved-2316.19722.7531 2010-05-29 09:47:02.000000000 +0300 +++ extensions.conf 2010-05-29 09:48:09.000000000 +0300 @@ -13,7 +13,7 @@ [macro-incoming] ;exten => s,1,GotoIf($[${BLACKLIST()}=1]?end) exten => s,1,Dial(SIP/${MACRO_EXTEN},20,tT) -exten => s,n,Voicemail(${MACRO_EXTEN}@default) +;exten => s,n,Voicemail(${MACRO_EXTEN}@default) exten => s,n(end),Hangup [macro-call_record] |
#vi extensions.conf
|
#asterisk -rvv
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 ========================================================================= ... << Hangup on console >> [May 29 10:05:36] NOTICE[2410]: res_monitor.c:339 ast_monitor_stop: monitor executing ( nice -n 19 sox -m "/var/tmp/from--to-202-Sat May 29 10:05:22 2010-in.wav" "/var/tmp/from--to-202-Sat May 29 10:05:22 2010-out.wav" "/var/tmp/from--to-202-Sat May 29 10:05:22 2010.wav" && rm -f "/var/tmp/from--to-202-Sat May 29 10:05:22 2010-"* ) & == Parsing '/etc/asterisk/manager.conf': Found == Parsing '/etc/asterisk/manager.d/README.conf': Found == Manager 'manager' logged on from 192.168.2.2 == Manager 'manager' logged off from 192.168.2.2 Executing last minute cleanups == Destroying musiconhold processes Disconnected from Asterisk server Executing last minute cleanups |
#vi /etc/asterisk/sip.conf
--- /tmp/l3-saved-2284.2923.32265 2010-05-29 10:06:14.000000000 +0300 +++ /etc/asterisk/sip.conf 2010-05-29 10:06:30.000000000 +0300 @@ -35,7 +35,7 @@ callgroup=10 pickupgroup=10 -[999] +[204] type=friend secret=password host=dynamic |
#ssh 192.168..4.1
![]() ssh: Could not resolve hostname 192.168..4.1: Name or service not known |
#screen -x
![]() |
#ssh 192.168.4.1
root@192.168.4.1's password: Linux linux4.unix.nt 2.6.26-2-686 #1 SMP Wed May 12 21:56:10 UTC 2010 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Sat May 29 10:04:13 2010 from 192.168.15.31 l3-agent is already running: pid=2371; pidfile=/root/.lilalo/l3-agent.pid |
#screen -x
|
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#ls /var/spool/asterisk/outgoing/
|
#asterisk -rvv
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 ========================================================================= ... [May 29 10:14:20] NOTICE[2511]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 202 [May 29 10:17:21] NOTICE[2511]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 202 [May 29 10:20:21] NOTICE[2511]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 202 [May 29 10:23:21] NOTICE[2511]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 202 [May 29 10:26:21] NOTICE[2511]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 202 [May 29 10:28:48] WARNING[2524]: pbx_spool.c:440 scan_service: Unable to open /var/spool/asterisk/outgoing/out.call: Permission denied, deleting [May 29 10:28:48] WARNING[2524]: pbx_spool.c:482 scan_thread: Failed to scan service '/var/spool/asterisk/outgoing/out.call' [May 29 10:29:21] NOTICE[2511]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 202 linux2*CLI> quit Executing last minute cleanups |
#vi /root/out.call
![]() --- /dev/null 2010-05-29 10:02:48.526184318 +0300 +++ /root/out.call 2010-05-29 10:28:35.000000000 +0300 @@ -0,0 +1,3 @@ +Channel: SIP/202 +Application: Playback +Data: /var/tmp/menu.gsm |
#cp /root/out.call /var/spool/asterisk/outgoing/
|
#chmod 666 /var/spool/asterisk/outgoing/out.call
|
#ll /var/spool/asterisk/outgoing/
bash: ll: команда не найдена |
#asterisk -rvv
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 ========================================================================= ... Reloading MGCP == Parsing '/etc/asterisk/mgcp.conf': Found == MGCP Listening on 0.0.0.0:2727 == Using TOS bits 0 Reloading SIP == Parsing '/etc/asterisk/sip.conf': Found == Parsing '/etc/asterisk/users.conf': Found == Parsing '/etc/asterisk/sip_notify.conf': Found linux2*CLI> quit Executing last minute cleanups |
#touch /var/spool/asterisk/outgoing/out.call
|
#touch /var/spool/asterisk/outgoing/out.call
|
#vi /var/spool/
![]() |
#vi /var/spool/asterisk/outgoing/
|
#less /root/out.call
|
#less /usr/share/
![]() |
#less /usr/share/asterisk/
![]() |
#less /usr/share/asterisk/
![]() |
#less /usr/share/doc/asterisk
![]() |
#less /usr/share/doc/asterisk
![]() |
#less /usr/share/doc/asterisk-
![]() |
#less /usr/share/doc/asterisk-doc/
![]() |
#less /usr/share/doc/asterisk-doc/
![]() |
#vi /root/out.call
--- /tmp/l3-saved-2284.14076.5864 2010-05-29 10:51:01.000000000 +0300 +++ /root/out.call 2010-05-29 10:51:57.000000000 +0300 @@ -1,3 +1,5 @@ Channel: SIP/202 -Application: Playback -Data: /var/tmp/menu.gsm +Context: menu +Extension: 201 +Priority: 1 + |
#ls -al --sort=t
итого 460 drwxr-xr-x 3 asterisk asterisk 4096 Май 29 10:06 . -rw-r--r-- 1 root root 1014 Май 29 10:06 sip.conf drwxr-xr-x 69 root root 4096 Май 29 10:03 .. -rw-r--r-- 1 root root 2894 Май 29 09:48 extensions.conf -rw-r--r-- 1 root root 12288 Май 28 17:42 .extensions.conf.swp -rw-r----- 1 asterisk asterisk 24178 Май 28 15:12 zapata.conf -rw-r----- 1 asterisk asterisk 437 Май 28 13:59 manager.conf -rw-r----- 1 asterisk asterisk 5301 Май 28 12:06 features.conf -rw-r----- 1 asterisk asterisk 11815 Май 28 10:14 queues.conf ... -rw-r----- 1 asterisk asterisk 4044 Дек 14 21:08 skinny.conf -rw-r----- 1 asterisk asterisk 6691 Дек 14 21:08 sla.conf -rw-r----- 1 asterisk asterisk 2665 Дек 14 21:08 smdi.conf -rw-r----- 1 asterisk asterisk 1384 Дек 14 21:08 telcordia-1.adsi -rw-r----- 1 asterisk asterisk 598 Дек 14 21:08 udptl.conf -rw-r----- 1 asterisk asterisk 1804 Дек 14 21:08 users.conf -rw-r----- 1 asterisk asterisk 2772 Дек 14 21:08 vpb.conf -rw-r----- 1 asterisk asterisk 393 Дек 14 21:08 watchdog.conf -rw-r----- 1 asterisk asterisk 247 Дек 14 20:58 asterisk.conf -rw-r----- 1 asterisk asterisk 2062 Дек 14 20:58 modules.conf |
#ls -al --sort=t | more
|
#ls -al --sort=t | more
|
#vi /root/out-2nd-line.call
--- /tmp/l3-saved-2284.10832.11146 2010-05-29 10:56:55.000000000 +0300 +++ /root/out-2nd-line.call 2010-05-29 10:57:18.000000000 +0300 @@ -1,5 +1,5 @@ Channel: SIP/201 -Context: menu +Context: 2nd-line Extension: 201 Priority: 1 |
#vi /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2284.20270.24381 2010-05-29 10:57:40.000000000 +0300 +++ /etc/asterisk/extensions.conf 2010-05-29 11:00:10.000000000 +0300 @@ -42,7 +42,7 @@ exten => 810,1,Goto(menu,s,1) exten => 811,1,System(touch /tmp/ast.file) -exten => 820,1,Record(/var/tmp/bye:gsm) +exten => 820,1,Record(/var/tmp/stay-on-line:gsm) exten => 821,1,Record(/var/tmp/wrong:gsm) exten => 822,1,Record(/var/tmp/vybor:gsm) exten => 823,1,Record(/var/tmp/bye:gsm) @@ -108,3 +108,7 @@ exten => t,1,Playback(/var/tmp/vybor) exten => t,n,WaitExten(5) exten => t,n,Hangup + +[2nd-line] +exten => s,1,Playback(stay-on-line) +exten => s,n,Dial(SIP/201) |
#cp -p /root/
![]() .aptitude/ .bashrc .lesshst .profile .asterisk_history .debtags/ .lilalo/ .rnd .bash_history install out-2nd-line.call .ssh/ .bash_profile .l3rc out.call unforgiven.mp3 |
#cp -p /root/out-2nd-line.call /var/spool/asterisk/outgoing/
|
#vi /var/spool/asterisk/outgoing/out-2nd-line.call
|
#~
![]() bash: cown: команда не найдена |
#chown asterisk /root/out-2nd-line.call
|
#~
Channel: SIP/201 Context: 2nd-line Extension: 201 Priority: 1 "~//out-2nd-line.call" 5 lines, 63 characters |
loadzone=de defaultzone=de fxoks=1-8
Время первой команды журнала | 13:45:02 2010- 5-28 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 10:03:45 2010- 5-29 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 8.91 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 4.95 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 3.01 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.56 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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