/l3/users/Ive/asterisk/linux4.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 |
|
#vi /etc/asterisk/extensions.conf
|
#vi /etc/asterisk/extensions.conf
|
#{ARG4})
username=kharkov t sodessa] ;ype=friend hecret=password uost=192.168.3.1 username=kharkov context=group3 [ t s "/etc/asterisk/sip.conf" 84 lines, 1258 characters written |
#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 ========================================================================= ... -- Executing [701@group2:1] Dial("SIP/402-081df2f8", "SIP/dnepr/701") in new stack -- Called dnepr/701 -- SIP/dnepr-081cc268 is circuit-busy == Everyone is busy/congested at this time (1:0/1/0) == Auto fallthrough, channel 'SIP/402-081df2f8' status is 'CONGESTION' linux4*CLI> linux4*CLI> linux4*CLI> linux4*CLI> quit Executing last minute cleanups |
#ls
adsi.conf enum.conf logger.conf rpt.conf adtranvofr.conf esel.conf manager.conf rtp.conf agents.conf extconfig.conf manager.d say.conf alarmreceiver.conf extensions.ael meetme.conf sip.conf alsa.conf extensions.conf mgcp.conf sip.conf.bak amd.conf extensions.conf.bak misdn.conf sip_notify.conf asterisk.adsi features.conf modules.conf skinny.conf asterisk.conf festival.conf musiconhold.conf sla.conf cdr.conf followme.conf muted.conf smdi.conf cdr_custom.conf func_odbc.conf osp.conf telcordia-1.adsi cdr_manager.conf gtalk.conf oss.conf udptl.conf cdr_odbc.conf h323.conf phone.conf users.conf cdr_pgsql.conf http.conf privacy.conf voicemail.conf cdr_tds.conf iax.conf queues.conf vpb.conf codecs.conf iaxprov.conf res_odbc.conf watchdog.conf dnsmgr.conf indications.conf res_pgsql.conf zapata.conf dundi.conf jabber.conf res_snmp.conf |
#vim extensions.conf
|
#vim extensions.conf
|
#exten => 2,1,Dial(SIP/kiev/201)
bash: fg: current: no such job |
#ls -la
total 344 drwxr-xr-x 3 asterisk asterisk 4096 2010-05-28 09:18 . drwxr-xr-x 72 root root 5120 2010-05-27 16:17 .. -rw-r----- 1 asterisk asterisk 140 2009-12-14 21:08 adsi.conf -rw-r----- 1 asterisk asterisk 840 2009-12-14 21:08 adtranvofr.conf -rw-r----- 1 asterisk asterisk 2724 2009-12-14 21:08 agents.conf -rw-r----- 1 asterisk asterisk 2227 2009-12-14 21:08 alarmreceiver.conf -rw-r----- 1 asterisk asterisk 2675 2009-12-14 21:08 alsa.conf -rw-r----- 1 asterisk asterisk 767 2009-12-14 21:08 amd.conf -rw-r----- 1 asterisk asterisk 3260 2009-12-14 21:08 asterisk.adsi ... -rw-r----- 1 asterisk asterisk 4044 2009-12-14 21:08 skinny.conf -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 11729 2010-05-27 12:29 voicemail.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 24193 2009-12-14 21:08 zapata.conf |
#vim extensions.conf
|
#vim extensions.conf
|
#exten => 2,1,Dial(SIP/kiev/201)
|
#cat /tmp/master-was-here
Fri May 28 09:19:54 EEST 2010 |
#date
Fri May 28 09:20:48 EEST 2010 |
#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 ========================================================================= ... ------------ Parking extension : 700 Parking context : parkedcalls Parked call extensions: 701-720 -- Registered SIP '402' at 192.168.4.12 port 5060 expires 3600 -- Saved useragent "Sipura/SPA3000-2.0.13(GWg)" for peer 402 linux4*CLI> linux4*CLI> linux4*CLI> quit Executing last minute cleanups |
#less /etc/asterisk/extensions.conf
|
#ls
adsi.conf enum.conf logger.conf rpt.conf adtranvofr.conf esel.conf manager.conf rtp.conf agents.conf extconfig.conf manager.d say.conf alarmreceiver.conf extensions.ael meetme.conf sip.conf alsa.conf extensions.conf mgcp.conf sip.conf.bak amd.conf extensions.conf.bak misdn.conf sip_notify.conf asterisk.adsi features.conf modules.conf skinny.conf asterisk.conf festival.conf musiconhold.conf sla.conf cdr.conf followme.conf muted.conf smdi.conf cdr_custom.conf func_odbc.conf osp.conf telcordia-1.adsi cdr_manager.conf gtalk.conf oss.conf udptl.conf cdr_odbc.conf h323.conf phone.conf users.conf cdr_pgsql.conf http.conf privacy.conf voicemail.conf cdr_tds.conf iax.conf queues.conf vpb.conf codecs.conf iaxprov.conf res_odbc.conf watchdog.conf dnsmgr.conf indications.conf res_pgsql.conf zapata.conf dundi.conf jabber.conf res_snmp.conf |
#ssh root@192.168.1.1
root@192.168.1.1's password: Linux linux1 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 09:48:19 2010 from 192.168.15.31 l3-agent is already running: pid=21416; pidfile=/root/.lilalo/l3-agent.pid |
#vim /etc/asterisk/extensions.conf
|
#pwd
/etc/asterisk |
#exten => _XXXXXX,n,Hangup
|
#exit
Connection to 192.168.1.1 closed. |
#vim extensions.conf
--- /tmp/l3-saved-7353.13616.20047 2010-05-28 09:51:30.000000000 +0300 +++ extensions.conf 2010-05-28 10:02:36.000000000 +0300 @@ -1,4 +1,4 @@ - +[macro-caller] exten => s,1,Set(CALLERID(number)=4${ARG1}) exten => s,n,Dial(SIP/${ARG2}/${MACRO_EXTEN:1}) @@ -93,6 +93,9 @@ exten => 811,1,System(logger "It work's") exten => 812,1,Goto(command,s,1) +;group +exten => 813,n,Dial( SIP/401 & SIP/402 ) + exten => 820,1,Record(/var/tmp/password:gsm) exten => 821,1,Record(/var/tmp/goaway-stranger:gsm) exten => 822,1,Record(/var/tmp/welcome-master:gsm) |
#view /tmp/
asterisk/ master-was-here .ICE-unix/ Russian-Tamara-2.0.2-ulaw.tar.gz install ssh-XZidgg8094/ l3-saved-2127.9949.8183 .X11-unix/ lost+found/ |
#view /tmp/
asterisk/ master-was-here .ICE-unix/ Russian-Tamara-2.0.2-ulaw.tar.gz install ssh-XZidgg8094/ l3-saved-2127.9949.8183 .X11-unix/ lost+found/ |
#view /tmp/asterisk/
adsi.conf esel.conf manager.conf rtp.conf adtranvofr.conf extconfig.conf manager.d/ say.conf agents.conf extensions.ael meetme.conf sip.conf alarmreceiver.conf extensions.conf mgcp.conf sip.conf.bak alsa.conf extensions.conf.bak misdn.conf sip_notify.conf amd.conf .extensions.conf.swp 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 .queues.conf.swp watchdog.conf codecs.conf iaxprov.conf res_odbc.conf zapata.conf dnsmgr.conf indications.conf res_pgsql.conf dundi.conf jabber.conf res_snmp.conf enum.conf logger.conf rpt.conf |
#view /tmp/asterisk/extensions.conf
exten => s(start),1,Background(/var/tmp/submenu) exten => 1,1,Dial(SIP/dnepr/701) exten => 2,1,Dial(SIP/kiev/201) exten => 3,1,Dial(SIP/odessa/301) exten => 4,1,Dial(SIP/crimea/501) exten => 0,1,Goto(start) exten => i,1,Background(/var/tmp/wrong) exten => i,n,Goto(start) exten => t,1,Background(/var/tmp/vybor) exten => t,n,WaitExten(2) ... exten => _380XXXXXXXXX,1,Dial(SIP/sipnet/${EXTEN}) exten => _XXXXXXXXXX,1,Dial(SIP/sipnet/${EXTEN}) [group1] include => local [group2] include => local include => corp [group3] include => local include => corp |
#include => world
bash: fg: current: no such job |
#vim extensions.conf
--- /tmp/l3-saved-7353.25132.8200 2010-05-28 10:04:03.000000000 +0300 +++ extensions.conf 2010-05-28 10:08:09.000000000 +0300 @@ -92,9 +92,9 @@ exten => 810,1,Goto(submenu,s,1) exten => 811,1,System(logger "It work's") exten => 812,1,Goto(command,s,1) +exten => 813,1,Dial(SIP/kharkov/401&SIP/kharkov/402) +exten => 814,1,Queue(cc1) -;group -exten => 813,n,Dial( SIP/401 & SIP/402 ) exten => 820,1,Record(/var/tmp/password:gsm) exten => 821,1,Record(/var/tmp/goaway-stranger:gsm) |
#"queues.conf" 314L, 11770C written
|
#vim extensions.conf
--- /tmp/l3-saved-7353.65.23281 2010-05-28 10:11:27.000000000 +0300 +++ extensions.conf 2010-05-28 10:13:42.000000000 +0300 @@ -92,7 +92,7 @@ exten => 810,1,Goto(submenu,s,1) exten => 811,1,System(logger "It work's") exten => 812,1,Goto(command,s,1) -exten => 813,1,Dial(SIP/kharkov/401&SIP/kharkov/402) +exten => 813,1,Dial(SIP/401&SIP/402) exten => 814,1,Queue(cc1) |
#"queues.conf" 315L, 11792C written
[menu] [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 => s,n,SayNumber(${ARG6}) exten => s,n,SayNumber(${ARG7}) ... exten => _2XX,1,Dial(SIP/kiev/${EXTEN}) exten => _2XXX,1,Macro(caller,${CALLERID(number)},kiev) exten => _3XX,1,Dial(SIP/odessa/${EXTEN}) exten => _3XXX,1,Macro(caller,${CALLERID(number)},odessa) exten => _5XX,1,Dial(SIP/crimea/${EXTEN}) ;exten => _5XXX,n,Dial(SIP/crimea/${EXTEN:1}) exten => _5XXX,1,Macro(caller,$CALLERID(number)},crimea) exten => _7XX,1,Dial(SIP/dnepr/${EXTEN}) "extensions.conf" 147L, 4089C written [1]+ Stopped /usr/bin/vim "$@" |
#ls -la /var/spool/asterisk/monitor/
total 92 drwxr-x--- 2 asterisk asterisk 4096 2010-05-28 10:24 . drwxr-x--- 9 asterisk asterisk 4096 2010-05-26 09:48 .. -rw-rw---- 1 asterisk asterisk 44 2010-05-28 10:23 1275031414-SIP-402-081cc268.wav -rw-rw---- 1 asterisk asterisk 75244 2010-05-28 10:24 1275031458-SIP-402-081fa860.wav |
#ps ax|grep l3-a
4496 ? Ss 556:55 l3-agent 5947 ? Ss 24:12 l3-agent 8800 pts/4 R+ 0:00 grep l3-a |
#pkill l3-agent
|
#exit
There are stopped jobs. |
#fg
exten => 800,n,Wait(1) exten => 800,n,Playback(/var/tmp/Yoki) exten => 801,1,Answer exten => 801,n,Wait(1) exten => 801,n,Record(/var/tmp/busy:gsm) ')ten => 802,1,Macro(test,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15) exten => 803,1,VoicemailMain() exten => 810,1,Goto(submenu,s,1) exten => 811,1,System(logger "It work's") exten => 812,1,Goto(command,s,1) ... ;exten => _4XX,1,Dial(SIP/${EXTEN}) exten => _4XX,1,Macro(call_in) [corp] exten => _2XX,1,Dial(SIP/kiev/${EXTEN}) exten => _2XXX,1,Macro(caller,${CALLERID(number)},kiev) exten => _3XX,1,Dial(SIP/odessa/${EXTEN}) exten => _3XXX,1,Macro(caller,${CALLERID(number)},odessa) exten => _5XX,1,Dial(SIP/crimea/${EXTEN}) ;exten => _5XXX,n,Dial(SIP/crimea/${EXTEN:1}) exten => _5XXX,1,Macro(caller,$CALLERID(number)},crimea) |
#ls
adsi.conf enum.conf logger.conf rpt.conf adtranvofr.conf esel.conf manager.conf rtp.conf agents.conf extconfig.conf manager.d say.conf alarmreceiver.conf extensions.ael meetme.conf sip.conf alsa.conf extensions.conf mgcp.conf sip.conf.bak amd.conf extensions.conf.bak misdn.conf sip_notify.conf asterisk.adsi features.conf modules.conf skinny.conf asterisk.conf festival.conf musiconhold.conf sla.conf cdr.conf followme.conf muted.conf smdi.conf cdr_custom.conf func_odbc.conf osp.conf telcordia-1.adsi cdr_manager.conf gtalk.conf oss.conf udptl.conf cdr_odbc.conf h323.conf phone.conf users.conf cdr_pgsql.conf http.conf privacy.conf voicemail.conf cdr_tds.conf iax.conf queues.conf vpb.conf codecs.conf iaxprov.conf res_odbc.conf watchdog.conf dnsmgr.conf indications.conf res_pgsql.conf zapata.conf dundi.conf jabber.conf res_snmp.conf |
#ps ax|grep l3-a
8968 ? Rs 0:05 l3-agent 9034 pts/4 S+ 0:00 grep l3-a |
#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 ========================================================================= ... == Spawn extension (group3, 814, 1) exited non-zero on 'SIP/kharkov-081fa860' linux4*CLI> -- Registered SIP '402' at 192.168.4.10 port 31202 expires 3600 -- Saved useragent "X-Lite release 1104o stamp 56125" for peer 402 -- Executing [820@group2:1] Record("SIP/402-081fa860", "/var/tmp/password:gsm") in new stack -- <SIP/402-081fa860> Playing 'beep' (language 'ru') == Spawn extension (group2, 820, 1) exited non-zero on 'SIP/402-081fa860' linux4*CLI> linux4*CLI> quit Executing last minute cleanups |
#ls
adsi.conf enum.conf logger.conf rpt.conf adtranvofr.conf esel.conf manager.conf rtp.conf agents.conf extconfig.conf manager.d say.conf alarmreceiver.conf extensions.ael meetme.conf sip.conf alsa.conf extensions.conf mgcp.conf sip.conf.bak amd.conf extensions.conf.bak misdn.conf sip_notify.conf asterisk.adsi features.conf modules.conf skinny.conf asterisk.conf festival.conf musiconhold.conf sla.conf cdr.conf followme.conf muted.conf smdi.conf cdr_custom.conf func_odbc.conf osp.conf telcordia-1.adsi cdr_manager.conf gtalk.conf oss.conf udptl.conf cdr_odbc.conf h323.conf phone.conf users.conf cdr_pgsql.conf http.conf privacy.conf voicemail.conf cdr_tds.conf iax.conf queues.conf vpb.conf codecs.conf iaxprov.conf res_odbc.conf watchdog.conf dnsmgr.conf indications.conf res_pgsql.conf zapata.conf dundi.conf jabber.conf res_snmp.conf |
#ls -l
total 318 -rw-r----- 1 asterisk asterisk 140 2009-12-14 21:08 adsi.conf -rw-r----- 1 asterisk asterisk 840 2009-12-14 21:08 adtranvofr.conf -rw-r----- 1 asterisk asterisk 2724 2009-12-14 21:08 agents.conf -rw-r----- 1 asterisk asterisk 2227 2009-12-14 21:08 alarmreceiver.conf -rw-r----- 1 asterisk asterisk 2675 2009-12-14 21:08 alsa.conf -rw-r----- 1 asterisk asterisk 767 2009-12-14 21:08 amd.conf -rw-r----- 1 asterisk asterisk 3260 2009-12-14 21:08 asterisk.adsi -rw-r----- 1 asterisk asterisk 247 2009-12-14 20:58 asterisk.conf -rw-r----- 1 asterisk asterisk 7324 2009-12-14 21:08 cdr.conf ... -rw-r----- 1 asterisk asterisk 4044 2009-12-14 21:08 skinny.conf -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 11729 2010-05-27 12:29 voicemail.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 24193 2009-12-14 21:08 zapata.conf |
#vim queues.conf
|
#; before app_queue.so itself or they may be marked invalid until reload. This
|
#vim extensions.conf
|
#ls
adsi.conf enum.conf logger.conf rpt.conf adtranvofr.conf esel.conf manager.conf rtp.conf agents.conf extconfig.conf manager.d say.conf alarmreceiver.conf extensions.ael meetme.conf sip.conf alsa.conf extensions.conf mgcp.conf sip.conf.bak amd.conf extensions.conf.bak misdn.conf sip_notify.conf asterisk.adsi features.conf modules.conf skinny.conf asterisk.conf festival.conf musiconhold.conf sla.conf cdr.conf followme.conf muted.conf smdi.conf cdr_custom.conf func_odbc.conf osp.conf telcordia-1.adsi cdr_manager.conf gtalk.conf oss.conf udptl.conf cdr_odbc.conf h323.conf phone.conf users.conf cdr_pgsql.conf http.conf privacy.conf voicemail.conf cdr_tds.conf iax.conf queues.conf vpb.conf codecs.conf iaxprov.conf res_odbc.conf watchdog.conf dnsmgr.conf indications.conf res_pgsql.conf zapata.conf dundi.conf jabber.conf res_snmp.conf |
#vim extensions.conf
--- /tmp/l3-saved-8880.15781.24317 2010-05-28 11:21:48.000000000 +0300 +++ extensions.conf 2010-05-28 11:30:15.000000000 +0300 @@ -36,6 +36,18 @@ [menu] +exten => s(start),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] @@ -48,6 +60,7 @@ 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) @@ -89,7 +102,7 @@ exten => 806,1,Festival('Hello world. This is test for russian support only - Русский язык') -exten => 810,1,Goto(submenu,s,1) +exten => 810,1,Goto(menu,s,1) exten => 811,1,System(logger "It work's") exten => 812,1,Goto(command,s,1) exten => 813,1,Dial(SIP/401&SIP/402) @@ -99,7 +112,7 @@ exten => 815,n,Monitor(wav,${CALLFILEMANE},m) exten => 815,n,Dial(SIP/401) -exten => 820,1,Record(/var/tmp/password:gsm) +exten => 820,1,Record(/var/tmp/menu:gsm) exten => 821,1,Record(/var/tmp/goaway-stranger:gsm) exten => 822,1,Record(/var/tmp/welcome-master:gsm) exten => 823,1,Record(/var/tmp/bye:gsm) |
#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 -- ast_get_srv: SRV lookup for '_sip._udp.sipnet.ru' mapped to host sipnet.ru, port 5060 == Parsing '/etc/asterisk/sip_notify.conf': Found -- Registered SIP '402' at 192.168.4.12 port 5060 expires 3600 -- Saved useragent "Sipura/SPA3000-2.0.13(GWg)" for peer 402 -- Remote UNIX connection disconnected linux4*CLI> linux4*CLI> linux4*CLI> quit Executing last minute cleanups |
#ls /var/tmp/
busy.gsm goaway-stranger.gsm menu.gsm submenu.gsm welcome-master.gsm Yoki.gsm bye.gsm kharkov-hello.gsm password.gsm vybor.gsm wrong.gsm |
#fg
[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 => 806,1,Festival('Hello world. This is test for russian support only - Русский язык exten => 815,n,Dial(SIP/401) exten => 820,1,Record(/var/tmp/menu:gsm) exten => 821,1,Record(/var/tmp/goaway-stranger:gsm) exten => 822,1,Record(/var/tmp/welcome-master:gsm) exten => 823,1,Record(/var/tmp/bye:gsm) exten => 830,1,Dial(SIP/kiev/201&SIP/odessa/301) ;exten => _4XX,1,Dial(SIP/${EXTEN}) exten => _4XX,1,Macro(call_in) [corp] |
#vim p
|
#vim p
--- /tmp/l3-saved-8880.14879.1882 2010-05-28 12:04:54.000000000 +0300 +++ features.conf 2010-05-28 12:06:16.000000000 +0300 @@ -3,8 +3,8 @@ ; [general] -parkext => 700 ; What extension to dial to park -parkpos => 701-720 ; What extensions to park calls on. These needs to be +parkext => 900 ; What extension to dial to park +parkpos => 901-920 ; What extensions to park calls on. These needs to be ; numeric, as Asterisk starts from the start position ; and increments with one for the next parked call. context => parkedcalls ; Which context parked calls are in |
#ls
adsi.conf enum.conf logger.conf rpt.conf adtranvofr.conf esel.conf manager.conf rtp.conf agents.conf extconfig.conf manager.d say.conf alarmreceiver.conf extensions.ael meetme.conf sip.conf alsa.conf extensions.conf mgcp.conf sip.conf.bak amd.conf extensions.conf.bak misdn.conf sip_notify.conf asterisk.adsi features.conf modules.conf skinny.conf asterisk.conf festival.conf musiconhold.conf sla.conf cdr.conf followme.conf muted.conf smdi.conf cdr_custom.conf func_odbc.conf osp.conf telcordia-1.adsi cdr_manager.conf gtalk.conf oss.conf udptl.conf cdr_odbc.conf h323.conf phone.conf users.conf cdr_pgsql.conf http.conf privacy.conf voicemail.conf cdr_tds.conf iax.conf queues.conf vpb.conf codecs.conf iaxprov.conf res_odbc.conf watchdog.conf dnsmgr.conf indications.conf res_pgsql.conf zapata.conf dundi.conf jabber.conf res_snmp.conf |
#vim features.conf
--- /tmp/l3-saved-8880.27155.21448 2010-05-28 12:06:19.000000000 +0300 +++ features.conf 2010-05-28 12:06:24.000000000 +0300 @@ -1,4 +1,4 @@ -; + ; Sample Call Features (parking, transfer, etc) configuration ; |
#;atxfer => *2 ; Attended transfer
/etc/asterisk |
#ls -la
total 362 drwxr-xr-x 3 asterisk asterisk 4096 2010-05-28 12:04 . drwxr-xr-x 72 root root 5120 2010-05-27 16:17 .. -rw-r----- 1 asterisk asterisk 140 2009-12-14 21:08 adsi.conf -rw-r----- 1 asterisk asterisk 840 2009-12-14 21:08 adtranvofr.conf -rw-r----- 1 asterisk asterisk 2724 2009-12-14 21:08 agents.conf -rw-r----- 1 asterisk asterisk 2227 2009-12-14 21:08 alarmreceiver.conf -rw-r----- 1 asterisk asterisk 2675 2009-12-14 21:08 alsa.conf -rw-r----- 1 asterisk asterisk 767 2009-12-14 21:08 amd.conf -rw-r----- 1 asterisk asterisk 3260 2009-12-14 21:08 asterisk.adsi ... -rw-r----- 1 asterisk asterisk 4044 2009-12-14 21:08 skinny.conf -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 11729 2010-05-27 12:29 voicemail.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 24193 2009-12-14 21:08 zapata.conf |
#vim features.conf
|
#;findslot => next ; Continue to the 'next' free parking space.
; numeric, as Asterisk starts from the start position [general] ; and increments with one for the next parked call. context => parkedcalls ; Which context parked calls are in ; (default is 45 seconds) ;parkingtime => 45 ; Number of seconds a call can be parked foreds to be ;courtesytone = beep ; when someone dials a parked call caller ; or the Touch Monitor is activated/deactivated. d calldplay = caller ; Who to play the courtesy tone to when picking up a parkee ; one of: parked, caller, both (default is caller) ;adsipark = yes ; if you want ADSI parking announcements ... conds.rnoanswertimeout = 15 ; Timeout for answer on attended transfer default is 15 see ;featuredigittimeout = 500 ; Max time (ms) between digits for re bridged together.8253 (still running) ; Note that the DTMF features listed below only work when two channels have answered and aa is feature you can use while the remote party is ringing or in progress. If you require thh ; chan_local in combination with Answer to accomplish it. [featuremap]program may be editing the same file. ;blindxfer => #1he case, be care; Blind transfer (default is #) ;disconnect => *0 ; Disconnect (default is *) ;automon => *1 ; One Touch Record a.k.a. Touch Monitor |
#;atxfer => *2 ; Attended transfer
|
#vim extensions.
|
#vim extensions.
|
#~
[macro-caller] exten => s,1,Set(CALLERID(number)=4${ARG1}) exten => s,n,Dial(SIP/${ARG2}/${MACRO_EXTEN:1}) [macro-call_in] ;exten => s,1,GotoIf($[${CALLERID(number)}=302]?end) exten => s,1,GotoIf($[${BLACKLIST()}=1]?end) ;exten => s,n,Dial(SIP/${MACRO_EXTEN},10) exten => s,n,Dial(SIP/${MACRO_EXTEN},10,tT) ; tT ;exten => s,n,GotoIf($[${DIALSTATUS} = BUSY]?busy) ;exten => s,n,GotoIf( $[ ${ISNULL( ${DB( mobile/${MACRO_EXTEN} )})}]?end) ... [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) |
#vim extensions.
|
#~
exten => s,n,SayNumber(${ARG5}) "extensions.conf" 160L, 4444C exten => s,n,SayNumber(${ARG6}) exten => s,n,SayNumber(${ARG7}) exten => s,n,SayNumber(${ARG8}) exten => s,n,SayNumber(${ARG9}) exten => s,n,SayNumber(${ARG10}) exten => s,n,SayNumber(${ARG11}) exten => s,n,SayNumber(${ARG12}) exten => s,n,SayNumber(${ARG13}) ... exten => s,n,SayNumber(${ARG12}) exten => s,n,SayNumber(${ARG13}) exten => s,n,SayNumber(${ARG14}) exten => s,n,SayNumber(${ARG15}) : exten => t,n,WaitExten(2) exten => t,n,Hangup [submenu] ; Playback => Background ; Wait => WaitExten |
#:q
[general] ; numeric, as Asterisk starts from the start position ; and increments with one for the next parked call. parkext => 900 ; What extension to dial to park context => parkedcalls ; Which context parked calls are in parkpos => 901-920 ; (default is 45 seconds) calls on. These needs to be ;parkingtime => 45 ; Number of seconds a call can be parked for ;courtesytone = beep ; when someone dials a parked call caller ; or the Touch Monitor is activated/deactivated. d calldplay = caller ; Who to play the courtesy tone to when picking up a parkee ; one of: parked, caller, both (default is caller) ... ;featuredigittimeout = 500 ; Max time (ms) between digits for re bridged together. ; Note that the DTMF features listed below only work when two channels have answered and aa is feature you can use while the remote party is ringing or in progress. If you require thh ; chan_local in combination with Answer to accomplish it. [featuremap] ;blindxfer => #198L, 5300C ; Blind transfer (default is #) ;disconnect => *0 ; Disconnect (default is *) ;automon => *1 ; One Touch Record a.k.a. Touch Monitor ;atxfer => *2 ; Attended transfer |
#vim sip.conf
--- /tmp/l3-saved-8880.18608.19934 2010-05-28 12:18:12.000000000 +0300 +++ sip.conf 2010-05-28 12:22:23.000000000 +0300 @@ -27,6 +27,8 @@ secret=password host=dynamic context=group3 +pickupgroup=10 +callgroup=10 [dnepr] type=friend |
#ls -al
total 357 drwxr-xr-x 3 asterisk asterisk 4096 2010-05-28 12:20 . drwxr-xr-x 72 root root 5120 2010-05-27 16:17 .. -rw-r----- 1 asterisk asterisk 140 2009-12-14 21:08 adsi.conf -rw-r----- 1 asterisk asterisk 840 2009-12-14 21:08 adtranvofr.conf -rw-r----- 1 asterisk asterisk 2724 2009-12-14 21:08 agents.conf -rw-r----- 1 asterisk asterisk 2227 2009-12-14 21:08 alarmreceiver.conf -rw-r----- 1 asterisk asterisk 2675 2009-12-14 21:08 alsa.conf -rw-r----- 1 asterisk asterisk 767 2009-12-14 21:08 amd.conf -rw-r----- 1 asterisk asterisk 3260 2009-12-14 21:08 asterisk.adsi ... -rw-r----- 1 asterisk asterisk 4044 2009-12-14 21:08 skinny.conf -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 11729 2010-05-27 12:29 voicemail.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 24193 2009-12-14 21:08 zapata.conf |
#ls -al | more
|
#ls -al --sort=t
total 357 -rw-r--r-- 1 root root 12288 2010-05-28 12:22 .sip.conf.swp drwxr-xr-x 3 asterisk asterisk 4096 2010-05-28 12:22 . -rw-r--r-- 1 root root 1342 2010-05-28 12:22 sip.conf -rw-r----- 1 asterisk asterisk 5299 2010-05-28 12:17 features.conf -rw-r--r-- 1 root root 4468 2010-05-28 12:12 extensions.conf -rw-r--r-- 1 root root 16384 2010-05-28 12:11 .extensions.conf.swo -rw-r----- 1 asterisk asterisk 919 2010-05-28 11:58 meetme.conf -rw-r----- 1 asterisk asterisk 11793 2010-05-28 10:54 queues.conf drwxr-xr-x 72 root root 5120 2010-05-27 16:17 .. ... -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 24193 2009-12-14 21:08 zapata.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 | less
|
#less queues.conf
|
#ls -al --sort=t | less
|
#less meetme.conf
|
#ls -al --sort=t | less
|
#less extensions.conf
|
#vim extensions.conf
|
#less features.conf
|
#less sip.conf
|
#ls -al --sort=t | less
|
#:q
adsi.conf enum.conf logger.conf rpt.conf adtranvofr.conf esel.conf manager.conf rtp.conf agents.conf extconfig.conf manager.d say.conf alarmreceiver.conf extensions.ael meetme.conf sip.conf alsa.conf extensions.conf mgcp.conf sip.conf.bak amd.conf extensions.conf.bak misdn.conf sip_notify.conf asterisk.adsi features.conf modules.conf skinny.conf asterisk.conf festival.conf musiconhold.conf sla.conf cdr.conf followme.conf muted.conf smdi.conf cdr_custom.conf func_odbc.conf osp.conf telcordia-1.adsi cdr_manager.conf gtalk.conf oss.conf udptl.conf cdr_odbc.conf h323.conf phone.conf users.conf cdr_pgsql.conf http.conf privacy.conf voicemail.conf cdr_tds.conf iax.conf queues.conf vpb.conf codecs.conf iaxprov.conf res_odbc.conf watchdog.conf dnsmgr.conf indications.conf res_pgsql.conf zapata.conf dundi.conf jabber.conf res_snmp.conf |
#ls -a
. dundi.conf jabber.conf rpt.conf .. enum.conf logger.conf rtp.conf 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_notify.conf alsa.conf extensions.conf.bak misdn.conf skinny.conf amd.conf .extensions.conf.swo modules.conf sla.conf asterisk.adsi features.conf musiconhold.conf smdi.conf asterisk.conf festival.conf muted.conf telcordia-1.adsi cdr.conf followme.conf osp.conf udptl.conf cdr_custom.conf func_odbc.conf oss.conf users.conf cdr_manager.conf gtalk.conf phone.conf voicemail.conf cdr_odbc.conf h323.conf privacy.conf vpb.conf cdr_pgsql.conf http.conf queues.conf watchdog.conf cdr_tds.conf iax.conf res_odbc.conf zapata.conf codecs.conf iaxprov.conf res_pgsql.conf dnsmgr.conf indications.conf res_snmp.conf |
#vim festival.conf
|
#~
; Static configuration files: ; ; file.conf => driver,database[,table] ; ; maps a particular configuration file to the given ; database driver, database and table (or uses the ; name of the file as the table if not specified) ; ;uncomment to load queues.conf via the odbc engine. ; ... ; configuration to a given database driver, ; database and table (or uses the name of ; the family if the table is not specified ; ;example => odbc,asterisk,alttable ; ; "odbc" is shown in the examples below, but is not the only valid realtime ; engine. There is: ; odbc ... res_config_odbc ; pgsql ... res_config_pgsql |
#:q
|
#vi alarmreceiver.conf
|
#:q
; ; ; This file contains configuration of providers that ; are used by the OSP subsystem of Asterisk. The section ; "general" is reserved for global options. Each other ; section declares an OSP Provider. The provider "default" ; is used when no provider is otherwise specified. ; [general] ; ... ; ;localcert=localcert.pem ; ; Specify one or more Certificate Authority keys. If none are listed, ; a single one is added with the name "-cacert.pem" ; ;cacert=cacert_0.pem ; ; Specific parameters can be tuned as well: ; |
Fri May 28 09:19:54 EEST 2010
Время первой команды журнала | 20:29:32 2010- 5-27 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 11:42:39 2010- 5-28 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 22.77 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.00 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 3.02 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 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