/l3/users/Ive/asterisk/linux4.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 |
|
#ztscan
[1] active=yes alarms=OK description=Wildcard TE121 Card 0 name=WCT1/0 manufacturer=Digium devicetype=Wildcard TE121 location=PCI Bus 02 Slot 09 basechan=1 totchans=31 ... irq=21 type=analog port=32,FXS port=33,none port=34,none port=35,none port=36,none port=37,none port=38,none port=39,none |
#ztscan |less
|
#screen -ls
|
#ztscan
[1] active=yes alarms=OK description=Wildcard TE121 Card 0 name=WCT1/0 manufacturer=Digium devicetype=Wildcard TE121 location=PCI Bus 02 Slot 09 basechan=1 totchans=31 ... irq=21 type=analog port=32,FXS port=33,none port=34,none port=35,none port=36,none port=37,none port=38,none port=39,none |
#cat /etc/zaptel.conf
# Autogenerated by /usr/sbin/zapconf on Fri May 28 16:16:11 2010 -- do not hand edit # Zaptel Configuration File # # This file is parsed by the Zaptel Configurator, ztcfg # # Span 1: WCT1/0 "Wildcard TE121 Card 0" (MASTER) span=1,1,0,ccs,hdb3,crc4 # termtype: te bchan=1-15,17-31 dchan=16 # Global data loadzone = de defaultzone = de |
#w
10:04:29 up 1 min, 2 users, load average: 0.35, 0.15, 0.05 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT root pts/0 192.168.4.204 10:03 0.00s 0.00s 0.00s script -f -c bash -q /roo root pts/2 192.168.15.31 10:04 7.00s 0.00s 0.00s script -f -c bash -q /roo |
#view /etc/zaptel.conf
# Autogenerated by /usr/sbin/zapconf on Fri May 28 16:16:11 2010 -- do not hand edit # Zaptel Configuration File # # This file is parsed by the Zaptel Configurator, ztcfg # # Span 1: WCT1/0 "Wildcard TE121 Card 0" (MASTER) span=1,1,0,ccs,hdb3,crc4 # termtype: te ~ ~ ... ~ ~ ~ ~ ~ ~ ~ ~ ~ "/etc/zaptel.conf" [readonly] 15L, 337C |
#screen -x
|
#ztcfg -vvv
Zaptel Version: 1.4.11 Echo Canceller: MG2 Configuration ====================== SPAN 1: CCS/HDB3 Build-out: 0 db (CSU)/0-133 feet (DSX-1) Channel map: Channel 01: Clear channel (Default) (Slaves: 01) Channel 02: Clear channel (Default) (Slaves: 02) Channel 03: Clear channel (Default) (Slaves: 03) Channel 04: Clear channel (Default) (Slaves: 04) ... Channel 24: Clear channel (Default) (Slaves: 24) Channel 25: Clear channel (Default) (Slaves: 25) Channel 26: Clear channel (Default) (Slaves: 26) Channel 27: Clear channel (Default) (Slaves: 27) Channel 28: Clear channel (Default) (Slaves: 28) Channel 29: Clear channel (Default) (Slaves: 29) Channel 30: Clear channel (Default) (Slaves: 30) Channel 31: Clear channel (Default) (Slaves: 31) Channel 32: FXO Kewlstart (Default) (Slaves: 32) 32 channels to configure. |
#cat /etc/zaptel.conf
# Autogenerated by /usr/sbin/zapconf on Fri May 28 16:16:11 2010 -- do not hand edit # Zaptel Configuration File # # This file is parsed by the Zaptel Configurator, ztcfg # # Span 1: WCT1/0 "Wildcard TE121 Card 0" (MASTER) span=1,1,0,ccs,hdb3,crc4 # termtype: te bchan=1-15,17-31 dchan=16 fxoks=32 # Global data loadzone = de defaultzone = de |
#ls
adsi.conf esel.conf manager.conf say.conf adtranvofr.conf extconfig.conf manager.d sip.conf agents.conf extensions.ael meetme.conf sip.conf.bak alarmreceiver.conf extensions.conf mgcp.conf sip.conf.SAVE alsa.conf extensions.conf.bak misdn.conf sip_notify.conf amd.conf extensions.conf.SAVE modules.conf skinny.conf asterisk.adsi features.conf musiconhold.conf sla.conf asterisk.conf festival.conf muted.conf smdi.conf cdr.conf followme.conf osp.conf telcordia-1.adsi cdr_custom.conf func_odbc.conf oss.conf udptl.conf cdr_manager.conf gtalk.conf phone.conf users.conf cdr_odbc.conf h323.conf privacy.conf voicemail.conf cdr_pgsql.conf http.conf queues.conf vpb.conf cdr_tds.conf iax.conf res_odbc.conf watchdog.conf codecs.conf iaxprov.conf res_pgsql.conf zapata-channels.conf dnsmgr.conf indications.conf res_snmp.conf zapata-channels.conf.bak dundi.conf jabber.conf rpt.conf zapata.conf enum.conf logger.conf rtp.conf |
#vim zapata.conf
|
#screen -x
|
#screen
|
#ls
Russian-Tamara-2.0.2-ulaw s,1,Answer Yoki.wav Russian-Tamara-2.0.2-ulaw.tar.gz Yoki.mp3 |
#ls
adsi.conf features.conf queues.conf adtranvofr.conf festival.conf res_odbc.conf agents.conf followme.conf res_pgsql.conf alarmreceiver.conf func_odbc.conf res_snmp.conf alsa.conf gtalk.conf rpt.conf amd.conf h323.conf rtp.conf asterisk.adsi http.conf say.conf asterisk.conf iax.conf sip.conf cdr.conf iaxprov.conf sip.conf.bak cdr_custom.conf indications.conf sip.conf.SAVE ... codecs.conf meetme.conf telcordia-1.adsi dnsmgr.conf mgcp.conf udptl.conf dundi.conf misdn.conf users.conf enum.conf modules.conf voicemail.conf esel.conf musiconhold.conf vpb.conf extconfig.conf muted.conf watchdog.conf extensions.ael osp.conf zapata-channels.conf extensions.conf oss.conf zapata-channels.conf.bak extensions.conf.bak phone.conf zapata.conf extensions.conf.SAVE privacy.conf |
#vim zapata.conf
--- /tmp/l3-saved-3006.9980.28865 2010-05-29 10:07:23.000000000 +0300 +++ zapata.conf 2010-05-29 10:10:24.000000000 +0300 @@ -680,3 +680,7 @@ ;context=default ;channel => 1 +group=2 +context=analog +signalling=fxo_ks +channel => 32 |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#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 ========================================================================= ... Fax Handled: no Pulse phone: no Echo Cancellation: 128 taps, currently OFF Actual Confinfo: Num/0, Mode/0x0000 Actual Confmute: No Hookstate (FXS only): Onhook -- Starting simple switch on 'Zap/32-1' -- Hungup 'Zap/32-1' linux4*CLI> quit Executing last minute cleanups |
#vim extensions.conf
--- /tmp/l3-saved-3006.23176.4204 2010-05-29 10:11:59.000000000 +0300 +++ extensions.conf 2010-05-29 10:12:11.000000000 +0300 @@ -5,4 +5,5 @@ exten => _XXX,1,Dial(SIP/${EXTEN}) [analog] +include => default exten => 569,1,Dial(Zap/G2) |
#vim zapata.conf
--- /tmp/l3-saved-3006.18.10744 2010-05-29 10:13:08.000000000 +0300 +++ zapata.conf 2010-05-29 10:13:13.000000000 +0300 @@ -681,6 +681,6 @@ ;channel => 1 group=2 -context=analog +;context=analog signalling=fxo_ks channel => 32 |
#vim extensions.conf
--- /tmp/l3-saved-3006.29536.22412 2010-05-29 10:13:16.000000000 +0300 +++ extensions.conf 2010-05-29 10:13:33.000000000 +0300 @@ -2,8 +2,6 @@ exten => 800,1,Playback(/var/tmp/vybor) exten => _57X,1,Dial(Zap/G1/${EXTEN:2}) +exten => 569,1,Dial(Zap/G2) exten => _XXX,1,Dial(SIP/${EXTEN}) -[analog] -include => default -exten => 569,1,Dial(Zap/G2) |
#vim extensions.conf
--- /tmp/l3-saved-3006.19566.23428 2010-05-29 10:13:34.000000000 +0300 +++ extensions.conf 2010-05-29 10:13:38.000000000 +0300 @@ -1,7 +1,7 @@ [default] exten => 800,1,Playback(/var/tmp/vybor) -exten => _57X,1,Dial(Zap/G1/${EXTEN:2}) exten => 569,1,Dial(Zap/G2) +exten => _57X,1,Dial(Zap/G1/${EXTEN:2}) exten => _XXX,1,Dial(SIP/${EXTEN}) |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#vim extensions.conf
--- /tmp/l3-saved-3006.30080.23175 2010-05-29 10:16:24.000000000 +0300 +++ extensions.conf 2010-05-29 10:16:40.000000000 +0300 @@ -1,7 +1,7 @@ [default] exten => 800,1,Playback(/var/tmp/vybor) -exten => 569,1,Dial(Zap/G2) +exten => 569,1,Dial(Zap/G2,10,tT) exten => _57X,1,Dial(Zap/G1/${EXTEN:2}) exten => _XXX,1,Dial(SIP/${EXTEN}) |
#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 ========================================================================= ... == Parsing '/etc/asterisk/users.conf': Found -- Starting simple switch on 'Zap/32-1' -- Executing [567@default:1] Dial("Zap/32-1", "SIP/567") in new stack -- Called 567 -- SIP/567-081a62f0 is ringing -- SIP/567-081a62f0 answered Zap/32-1 == Spawn extension (default, 567, 1) exited non-zero on 'Zap/32-1' -- Hungup 'Zap/32-1' linux4*CLI> quit Executing last minute cleanups |
#vim extensions.conf
--- /tmp/l3-saved-3006.18075.16156 2010-05-29 10:17:25.000000000 +0300 +++ extensions.conf 2010-05-29 10:17:39.000000000 +0300 @@ -3,5 +3,5 @@ exten => 800,1,Playback(/var/tmp/vybor) exten => 569,1,Dial(Zap/G2,10,tT) exten => _57X,1,Dial(Zap/G1/${EXTEN:2}) -exten => _XXX,1,Dial(SIP/${EXTEN}) +exten => _XXX,1,Dial(SIP/${EXTEN},,Tt) |
#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 ========================================================================= ... -- Hungup 'Zap/32-1' -- Executing [568@default:1] Dial("SIP/567-081a6618", "SIP/568||Tt") in new stack -- Called 568 -- SIP/568-0819bc28 is ringing -- SIP/568-0819bc28 answered SIP/567-081a6618 == Spawn extension (default, 568, 1) exited non-zero on 'SIP/567-081a6618' -- Starting simple switch on 'Zap/32-1' -- Hungup 'Zap/32-1' linux4*CLI> quit Executing last minute cleanups |
#ls /var/spool/asterisk/
dictate meetme monitor outgoing system tmp voicemail |
#ls /var/spool/asterisk/outgoing/
|
#vim /root/out.call
|
#ls /var/tmp/
busy.gsm kharkov-hello.gsm submenu.gsm wrong.gsm bye.gsm menu.gsm vybor.gsm Yoki.gsm goaway-stranger.gsm password.gsm welcome-master.gsm |
#fg
Channel: SIP/567 Application: Playback Data: /var/tmp/hello |
#~
dictate/ meetme/ monitor/ outgoing/ system/ tmp/ voicemail/ |
#cp /root/out.call /var/spool/asterisk/outgoing/
|
#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 ========================================================================= ... -- Attempting call on SIP/567 for application Playback(/var/tmp/welcome-master.gsm) (Retry 1) [May 29 10:30:02] WARNING[4125]: file.c:602 ast_openstream_full: File /var/tmp/welcome-master.gsm does not exist in any format [May 29 10:30:02] WARNING[4125]: file.c:912 ast_streamfile: Unable to open /var/tmp/welcome-master.gsm (format 0x80004 (ulaw|h263)): No such file or directory [May 29 10:30:02] WARNING[4125]: app_playback.c:439 playback_exec: ast_streamfile failed on SIP/567-081ab9d8 for /var/tmp/welcome-master.gsm [May 29 10:30:02] NOTICE[4125]: pbx_spool.c:371 attempt_thread: Call completed to SIP/567 -- Attempting call on SIP/567 for application Playback(/var/tmp/welcome-master) (Retry 1) -- <SIP/567-081ab9d8> Playing '/var/tmp/welcome-master' (language 'ru') [May 29 10:30:45] NOTICE[4167]: pbx_spool.c:371 attempt_thread: Call completed to SIP/567 linux4*CLI> quit Executing last minute cleanups |
#ls -ls /var/spool/asterisk/outgoing/out.call:
ls: cannot access /var/spool/asterisk/outgoing/out.call:: No such file or directory |
#ls -ls /var/spool/asterisk/outgoing/out.call
4 -rw-r--r-- 1 root root 73 2010-05-29 10:29 /var/spool/asterisk/outgoing/out.call |
#rm -f /var/spool/asterisk/outgoing/out.call
|
#ls -la /var/tmp/welcome-master.gsm
-rw-r----- 1 asterisk asterisk 8976 2010-05-27 17:45 /var/tmp/welcome-master.gsm |
#vim /root/out.call
--- /tmp/l3-saved-3006.7885.28565 2010-05-29 10:30:28.000000000 +0300 +++ /root/out.call 2010-05-29 10:30:31.000000000 +0300 @@ -1,3 +1,3 @@ Channel: SIP/567 Application: Playback -Data: /var/tmp/welcome-master.gsm +Data: /var/tmp/welcome-master |
#ls -la /var/tmp/welcome-master.gsm
-rw-r----- 1 asterisk asterisk 8976 2010-05-27 17:45 /var/tmp/welcome-master.gsm |
#cp -a /root/out.call /var/spool/asterisk/outgoing/
|
#ls -la /var/spool/asterisk/outgoing/
auto-dial+out # http://www.voip-info.org/tiki-index.php?page=Asterisk+a |
#na
named named-checkzone namei nano named-checkconf named-compilezone nameif nawk |
#nano /var/spool/asterisk/outgoing/
|
#fd
bash: fd: command not found |
#cat /root/out.call
Channel: SIP/567 MaxRetries: 1 RetryTime: 60 WaitTime: 30 Context: submenu Extension: s Priority: 1 |
#ssh 192.168.3.1
The authenticity of host '192.168.3.1 (192.168.3.1)' can't be established. RSA key fingerprint is 33:37:1d:14:ec:fd:f2:28:03:16:a6:66:31:f7:02:e1. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.3.1' (RSA) to the list of known hosts. root@192.168.3.1's password: Permission denied, please try again. root@192.168.3.1's password: Permission denied, please try again. root@192.168.3.1's password: Linux linux3 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 09:36:04 2010 from 192.168.3.10 l3-agent is already running: pid=2189; pidfile=/root/.lilalo/l3-agent.pid |
#ls -l /var/spool/asterisk/
total 28 drwxr-x--- 2 asterisk asterisk 4096 2009-12-14 21:09 dictate drwxr-x--- 2 asterisk asterisk 4096 2009-12-14 21:09 meetme drwxr-x--- 2 asterisk asterisk 4096 2009-12-14 21:09 monitor drwxr-x--- 2 asterisk asterisk 4096 2010-05-29 10:40 outgoing drwxr-x--- 2 asterisk asterisk 4096 2009-12-14 21:09 system drwxr-x--- 2 asterisk asterisk 4096 2009-12-14 21:09 tmp drwxr-x--- 3 asterisk asterisk 4096 2010-05-27 12:24 voicemail |
#ls -l /var/spool/asterisk/outgoing/
total 0 |
#exit
exit Connection to 192.168.3.1 closed. |
#ssh 192.168.1.1
root@192.168.1.1's password: Linux linux1.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 17:07:06 2010 from 192.168.4.1 l3-agent is already running: pid=2558; pidfile=/root/.lilalo/l3-agent.pid |
#ls /var/spool/asterisk/outgoing/
outcall.call |
#ls -l /var/spool/asterisk/outgoing/
итого 4 -rw-r--r-- 1 root root 75 Май 29 10:40 outcall.call |
#cat /var/spool/asterisk/outgoing/outcall.call
Chanell: Sip/701/(/var/tmp/vybor.gsm) Application: Playback |
#vi /tmp/outcall.call
|
#ls -l /tmp/outcall.call
-rw-r--r-- 1 asterisk asterisk 59 Май 29 10:43 /tmp/outcall.call |
#cp -p /tmp/outcall.call /var/spool/asterisk/outgoing/
|
#rm /var/spool/asterisk/outgoing/outcall.call
|
#cat /var/spool/asterisk/outgoing/outcall.call
Chanell: Sip/701 Data:/var/tmp/vybor Application: Playback |
#touch /var/spool/asterisk/outgoing/outcall.call
|
#cat /var/spool/asterisk/outgoing/outcall.call
cat: /var/spool/asterisk/outgoing/outcall.call: Нет такого файла или каталога |
#cd /etc/asterisk/
|
#vim extensions.conf
--- /tmp/l3-saved-3891.1398.9230 2010-05-29 10:49:21.000000000 +0300 +++ extensions.conf 2010-05-29 10:49:47.000000000 +0300 @@ -5,3 +5,36 @@ exten => _57X,1,Dial(Zap/G1/${EXTEN:2}) exten => _XXX,1,Dial(SIP/${EXTEN},,Tt) +[menu] + +exten => s,1,Background(/var/tmp/menu) +exten => s,n,WaitExten(2) +exten => 1,1,Goto(submenu,s,1) +exten => 9,1,Goto(start) +exten => 0,1,Playback(/var/tmp/buye) +exten => i,1,Background(/var/tmp/wrong) +exten => i,n,Goto(start) +exten => t,1,WaitExten(5) +exten => t,n,Playback(/var/tmp/vybor) +exten => t,n,WaitExten(2) +exten => t,n,Hangup + + +[submenu] + +; Playback => Background +; Wait => WaitExten +exten => s,1,Background(/var/tmp/submenu) +exten => s,n,WaitExten(2) +exten => 1,1,Dial(SIP/dnepr/701) +exten => 2,1,Dial(SIP/kiev/201) +exten => 3,1,Dial(SIP/odessa/301) +exten => 5,1,Dial(SIP/crimea/501) +exten => 0,1,Goto(s,1) +exten => 9,1,Goto(menu,s,1) +exten => i,1,Background(/var/tmp/wrong) +exten => i,n,Goto(start) +exten => t,1,WaitExten(5) +exten => t,n,Playback(/var/tmp/vybor) +exten => t,n,WaitExten(2) +exten => t,n,Hangup |
#exten => 3,1,Dial(SIP/odessa/301)
.aptitude/ out.call .asterisk_history .profile .bash_history .rnd .bash_profile Russian-Tamara-2.0.2-ulaw/ .bashrc Russian-Tamara-2.0.2-ulaw.tar.gz .debtags/ s,1,Answer .l3rc .ssh/ .lesshst Yoki.wav .lilalo/ |
#vim /root/out.call
--- /tmp/l3-saved-3891.7357.1304 2010-05-29 10:50:06.000000000 +0300 +++ /root/out.call 2010-05-29 10:50:40.000000000 +0300 @@ -1,3 +1,9 @@ Channel: SIP/567 -Application: Playback -Data: /var/tmp/welcome-master +MaxRetries: 1 +RetryTime: 60 +WaitTime: 30 + + +Context: menu +Extension: s +Priority: 1 |
#ls -al --sort=t
total 332 drwxr-xr-x 3 asterisk asterisk 4096 2010-05-29 10:49 . -rw-r--r-- 1 root root 991 2010-05-29 10:49 extensions.conf -rw-r----- 1 asterisk asterisk 24252 2010-05-29 10:13 zapata.conf drwxr-xr-x 72 root root 5120 2010-05-29 10:05 .. -rw-r--r-- 1 root root 230 2010-05-28 16:51 sip.conf -rw-r--r-- 1 root root 465 2010-05-28 16:16 zapata-channels.conf -rw-r--r-- 1 root root 459 2010-05-28 16:02 zapata-channels.conf.bak -rw-r--r-- 1 root root 4468 2010-05-28 14:17 extensions.conf.SAVE -rw-r--r-- 1 root root 1342 2010-05-28 12:22 sip.conf.SAVE ... -rw-r----- 1 asterisk asterisk 6691 2009-12-14 21:08 sla.conf -rw-r----- 1 asterisk asterisk 2665 2009-12-14 21:08 smdi.conf -rw-r----- 1 asterisk asterisk 1384 2009-12-14 21:08 telcordia-1.adsi -rw-r----- 1 asterisk asterisk 598 2009-12-14 21:08 udptl.conf -rw-r----- 1 asterisk asterisk 1804 2009-12-14 21:08 users.conf -rw-r----- 1 asterisk asterisk 2772 2009-12-14 21:08 vpb.conf -rw-r----- 1 asterisk asterisk 393 2009-12-14 21:08 watchdog.conf -rw-r----- 1 asterisk asterisk 247 2009-12-14 20:58 asterisk.conf -rw-r----- 1 asterisk asterisk 363 2009-12-14 20:58 manager.conf -rw-r----- 1 asterisk asterisk 2062 2009-12-14 20:58 modules.conf |
#ls -al --sort=t | more
|
#cat /tmp/example3.call
Channel: SIP/bt101 MaxRetries: 1 RetryTime: 60 WaitTime: 30 # # Assuming that your outgoing call logic is kept in the # context called [outgoing] # Context: outgoing Extension: 14109850123 Priority: 1 |
#less extensions.conf
|
#ls -l /root/out.call
-rw-r--r-- 1 asterisk asterisk 101 2010-05-29 10:50 /root/out.call |
#cp -a /root/out.call /var/spool/asterisk/
dictate/ meetme/ monitor/ outgoing/ system/ tmp/ voicemail/ |
#cp -a /root/out.call /var/spool/asterisk/outgoing/
|
#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 ========================================================================= == 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 linux4 (pid = 3478) Verbosity is at least 3 linux4*CLI> -- Remote UNIX connection linux4*CLI> quit Executing last minute cleanups |
#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 ========================================================================= ... [May 29 10:52:05] WARNING[4840]: pbx.c:2483 __ast_pbx_run: Channel 'SIP/567-081ab9d8' sent into invalid extension 's' in context 'default', but no invalid handler [May 29 10:52:05] NOTICE[4840]: pbx_spool.c:371 attempt_thread: Call completed to SIP/567 [May 29 10:52:23] WARNING[3511]: pbx_spool.c:253 apply_outgoing: At least one of app or extension (or keyword message/pdu)must be specified, along with tech and dest in file /var/spool/asterisk/outgoing/out.call [May 29 10:52:23] WARNING[3511]: pbx_spool.c:434 scan_service: Invalid file contents in /var/spool/asterisk/outgoing/out.call, deleting [May 29 10:52:23] WARNING[3511]: pbx_spool.c:482 scan_thread: Failed to scan service '/var/spool/asterisk/outgoing/out.call' linux4*CLI> linux4*CLI> linux4*CLI> linux4*CLI> quit Executing last minute cleanups |
#vim /root/out.call
--- /tmp/l3-saved-3891.20373.1190 2010-05-29 10:52:17.000000000 +0300 +++ /root/out.call 2010-05-29 10:52:20.000000000 +0300 @@ -5,5 +5,5 @@ Context: menu -Extension: s +;Extension: s Priority: 1 |
#cp -a /root/out.call /var/spool/asterisk/outgoing/
|
# Autogenerated by /usr/sbin/zapconf on Fri May 28 16:16:11 2010 -- do not hand edit # Zaptel Configuration File # # This file is parsed by the Zaptel Configurator, ztcfg # # Span 1: WCT1/0 "Wildcard TE121 Card 0" (MASTER) span=1,1,0,ccs,hdb3,crc4 # termtype: te bchan=1-15,17-31 dchan=16 fxoks=32 # Global data loadzone = de defaultzone = de
Channel: SIP/567 MaxRetries: 1 RetryTime: 60 WaitTime: 30 Context: submenu Extension: s Priority: 1
Channel: SIP/bt101 MaxRetries: 1 RetryTime: 60 WaitTime: 30 # # Assuming that your outgoing call logic is kept in the # context called [outgoing] # Context: outgoing Extension: 14109850123 Priority: 1
cat: /var/spool/asterisk/outgoing/outcall.call: Нет такого файла или каталога
Время первой команды журнала | 09:03:29 2010- 5-29 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 09:52:54 2010- 5-29 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 10.89 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.99 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 0.82 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 2.04 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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