/l3/users/goddan/nt-voip/linux4.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 |
|
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3548.1568.15060 2013-04-11 11:53:19.000000000 +0300 +++ /etc/asterisk/extensions.conf 2013-04-11 11:59:53.000000000 +0300 @@ -11,6 +11,7 @@ exten=>8300,1,Voicemailmain() exten=>8301,1,Meetme(1234) exten=>8700,1,AGI(/usr/local/bin/asterisk-festival.pl,/var/tmp/commands/current-time.sh) +exten =>8701,1,System(touch /tmp/asterisk-sdelal-file) ;exten=>_14XX,1,Answer ;exten=>_14XX,n,Set(CALLFILENAME=${EXTEN}-${CALLERID(num)}-${EPOCH}) |
#[default]
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 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. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux4 (pid = 1431) linux4*CLI> dialplan reload Dialplan reloaded. linux4*CLI> quit |
#tail /tmp/asterisk-sdelal-file
|
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3548.15366.27225 2013-04-11 12:04:58.000000000 +0300 +++ /etc/asterisk/extensions.conf 2013-04-11 12:12:54.000000000 +0300 @@ -13,6 +13,13 @@ exten=>8700,1,AGI(/usr/local/bin/asterisk-festival.pl,/var/tmp/commands/current-time.sh) exten =>8701,1,System(touch /tmp/asterisk-sdelal-file) +exten =>8702,1,Answer +exten=>8702,n,Read(PASSWORD,vm-password) +exten=>8702,n,GotoIf($[${PASSWORD}==1234]correct_password:invalid_password) +exten=>8702,n(invalid_password),Playback(vm-invalid-password) +exten=>8702,n,Hangup +exten=>8702,n(correct_password),System(sudo eject) + ;exten=>_14XX,1,Answer ;exten=>_14XX,n,Set(CALLFILENAME=${EXTEN}-${CALLERID(num)}-${EPOCH}) ;exten=>_14XX,n,Monitor(wav,${CALLFILENAME},m) |
#exten=>8300,1,Voicemailmain()
![]() Asterisk already running on /var/run/asterisk/asterisk.ctl. Use 'asterisk -r' to connect. |
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 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. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux4 (pid = 1431) linux4*CLI> dialplan reload Dialplan reloaded. [Apr 11 12:13:51] NOTICE[4644]: rtp.c:1143 process_rfc3389: Comfort noise support incomplete in Asterisk (RFC 3389). Please turn off on client if possible. Client IP: 192.168.40.101 linux4*CLI> quit |
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3548.6717.10917 2013-04-11 12:14:04.000000000 +0300 +++ /etc/asterisk/extensions.conf 2013-04-11 12:14:17.000000000 +0300 @@ -15,7 +15,7 @@ exten =>8702,1,Answer exten=>8702,n,Read(PASSWORD,vm-password) -exten=>8702,n,GotoIf($[${PASSWORD}==1234]correct_password:invalid_password) +exten=>8702,n,GotoIf($[${PASSWORD}==1234]?correct_password:invalid_password) exten=>8702,n(invalid_password),Playback(vm-invalid-password) exten=>8702,n,Hangup exten=>8702,n(correct_password),System(sudo eject) |
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3548.30078.18715 2013-04-11 12:15:06.000000000 +0300 +++ /etc/asterisk/extensions.conf 2013-04-11 12:20:56.000000000 +0300 @@ -20,6 +20,9 @@ exten=>8702,n,Hangup exten=>8702,n(correct_password),System(sudo eject) +exten => 8703,1,Backticks(ABC|date) +exten => 8703,n,NoOp(${ABC}) + ;exten=>_14XX,1,Answer ;exten=>_14XX,n,Set(CALLFILENAME=${EXTEN}-${CALLERID(num)}-${EPOCH}) ;exten=>_14XX,n,Monitor(wav,${CALLFILENAME},m) |
#aptget install apt-file
![]() bash: aptget: command not found |
#apt-get install apt-file
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: curl libapt-pkg-perl libconfig-file-perl liblist-moreutils-perl libregexp-assemble-perl The following NEW packages will be installed: apt-file curl libapt-pkg-perl libconfig-file-perl liblist-moreutils-perl libregexp-assemble-perl 0 upgraded, 6 newly installed, 0 to remove and 31 not upgraded. Need to get 512 kB of archives. After this operation, 1,446 kB of additional disk space will be used. ... Processing triggers for man-db ... Setting up curl (7.21.0-2.1+squeeze2) ... Setting up libconfig-file-perl (1.50-2) ... Setting up libapt-pkg-perl (0.1.24+b1) ... Setting up liblist-moreutils-perl (0.25~02-1) ... Setting up libregexp-assemble-perl (0.34-3) ... Setting up apt-file (2.4.0) ... The system-wide cache is empty. You may want to run 'apt-file update' as root to update the cache. You can also run 'apt-file update' as normal user to use a cache in the user's home directory. |
#apt-file pdate
![]() apt-file version 2.4.0 (c) 2002 Sebastien J. Gross <sjg@debian.org> apt-file [options] action [pattern] apt-file [options] -f action <file> apt-file [options] -D action <debfile> Configuration options: --sources-list -s <file> sources.list location --cache -c <dir> Cache directory --architecture -a <arch> Use specific architecture --cdrom-mount -d <cdrom> Use specific cdrom mountpoint ... --regexp -x pattern is a regular expression --verbose -v run in verbose mode --dummy -y run in dummy mode (no action) --help -h Show this help. --version -V Show version number Action: update Fetch Contents files from apt-sources. search|find <pattern> Search files in packages list|show <pattern> List files in packages purge Remove cache files |
#apt-file update
![]() Downloading complete file http://192.168.15.253:9999/debian/dists/squeeze/Contents-i386.gz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 43 17.6M 43 7788k 0 0 203k 0 0:01:28 0:00:38 0:00:50 213k^CDownload of http://192.168.15.253:9999/debian/dists/squeeze/Contents-i386.gz failed Command died with signal 2 E: Update aborted by signal 2 |
#apt-file update
![]() Downloading complete file http://192.168.15.253:9999/debian/dists/squeeze/Contents-i386.gz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 17.6M 100 17.6M 0 0 23.8M 0 --:--:-- --:--:-- --:--:-- 23.8M Downloading complete file http://192.168.15.253:9999/debian-backports/dists/squeeze-backports/Contents-i386.gz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 9 1949k 9 184k 0 0 39761 0 0:00:50 0:00:04 0:00:46 39758^CDownload of http://192.168.15.253:9999/debian-backports/dists/squeeze-backports/Contents-i386.gz failed Command died with signal 2 E: Update aborted by signal 2 |
#apt-file update
Downloading Index http://192.168.15.253:9999/debian/dists/squeeze/Contents-i386.diff/Index: No Index available. Downloading complete file http://192.168.15.253:9999/debian/dists/squeeze/Contents-i386.gz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 File is up-to-date. Downloading complete file http://192.168.15.253:9999/debian-backports/dists/squeeze-backports/Contents-i386.gz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 1949k 100 1949k 0 0 11.4M 0 --:--:-- --:--:-- --:--:-- 11.5M |
#apt-file search astx
bioperl: /usr/share/man/man3/Bio::SearchIO::blastxml.3pm.gz bioperl: /usr/share/perl5/Bio/SearchIO/blastxml.pm gff2aplot: /usr/share/doc/gff2aplot/examples/mhcregion/hs-mm.tblastx.gff.gz gff2aplot: /usr/share/doc/gff2aplot/examples/wublast/taf6.mmhs.genomic.tblastx.aplot.gff.gz gff2aplot: /usr/share/doc/gff2aplot/examples/wublast/taf6.mmhs.genomic.tblastx.gff.gz gff2aplot: /usr/share/doc/gff2aplot/examples/wublast/taf6.tblastx.rc libbio-ruby1.8: /usr/share/doc/libbio-ruby1.8/examples/tfastx2tab.rb libbiojava-java: /usr/share/doc/libbiojava-java/resources/org/biojava/bio/program/sax/blastxml/NCBI_BlastOutput.dtd libbiojava-java: /usr/share/doc/libbiojava-java/resources/org/biojava/bio/program/sax/blastxml/NCBI_BlastOutput.mod.gz libbiojava-java: /usr/share/doc/libbiojava-java/resources/org/biojava/bio/program/sax/blastxml/NCBI_Entity.mod ... libbiojava-java-demos: /usr/share/doc/libbiojava-java-demos/examples/files/wublast/tblastx.out.gz libbiojava-java-doc: /usr/share/doc/libbiojava-java/api/org/biojava/bio/program/sax/blastxml/BlastXMLParser.html libbiojava-java-doc: /usr/share/doc/libbiojava-java/api/org/biojava/bio/program/sax/blastxml/BlastXMLParserFacade.html libbiojava-java-doc: /usr/share/doc/libbiojava-java/api/org/biojava/bio/program/sax/blastxml/class-use/BlastXMLParser.html libbiojava-java-doc: /usr/share/doc/libbiojava-java/api/org/biojava/bio/program/sax/blastxml/class-use/BlastXMLParserFacade.html libbiojava-java-doc: /usr/share/doc/libbiojava-java/api/org/biojava/bio/program/sax/blastxml/package-frame.html libbiojava-java-doc: /usr/share/doc/libbiojava-java/api/org/biojava/bio/program/sax/blastxml/package-summary.html libbiojava-java-doc: /usr/share/doc/libbiojava-java/api/org/biojava/bio/program/sax/blastxml/package-tree.html libbiojava-java-doc: /usr/share/doc/libbiojava-java/api/org/biojava/bio/program/sax/blastxml/package-use.html libxqilla-dev: /usr/include/xqilla/fastxdm/FastXDMConfiguration.hpp |
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3548.15657.2472 2013-04-11 12:29:23.000000000 +0300 +++ /etc/asterisk/extensions.conf 2013-04-11 12:30:15.000000000 +0300 @@ -20,7 +20,7 @@ exten=>8702,n,Hangup exten=>8702,n(correct_password),System(sudo eject) -exten => 8703,1,Backticks(ABC|date) +exten => 8703,1,Set(ABC=${SHELL(date)}) exten => 8703,n,NoOp(${ABC}) ;exten=>_14XX,1,Answer |
#nano /etc/asterisk/extensions.conf
|
#ls
commands message text |
#cd /media/
|
#cd /var/tmp/message/
|
#ls
01.gsm 02.gsm |
#aplay 02.gsm
Playing raw data '02.gsm' : Unsigned 8 bit, Rate 8000 Hz, Mono |
#rm -rf
|
#ls
01.gsm 02.gsm |
#rm 01.gsm
|
#rm 02.gsm
|
#ls
|
#cd /var/tmp/message/
|
#nano /etc/asterisk/extensions.conf
|
#ls
01.gsm |
#aplay 01.gsm
Playing raw data '01.gsm' : Unsigned 8 bit, Rate 8000 Hz, Mono |
#nano /etc/asterisk/extensions.conf
|
#ls
01.gsm 03.gsm 05.gsm 07.gsm 09.gsm 11.gsm 14.gsm 02.gsm 04.gsm 06.gsm 08.gsm 10.gsm 13.gsm 15.gsm |
#nano /etc/asterisk/extensions.conf
![]() |
#[default]
![]() Asterisk already running on /var/run/asterisk/asterisk.ctl. Use 'asterisk -r' to connect. |
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 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. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux4 (pid = 1431) Verbosity was 0 and is now 3 == Using SIP RTP CoS mark 5 -- Executing [8211@gr_country:1] Playback("SIP/1401-00000023", "/var/tmp/message/$(EXTEN:2}") in new stack [Apr 11 14:16:25] WARNING[5562]: file.c:650 ast_openstream_full: File /var/tmp/message/$(EXTEN:2} does not exist in any format [Apr 11 14:16:25] WARNING[5562]: file.c:953 ast_streamfile: Unable to open /var/tmp/message/$(EXTEN:2} (format 0x4 (ulaw)): No such file or directory [Apr 11 14:16:25] WARNING[5562]: app_playback.c:471 playback_exec: ast_streamfile failed on SIP/1401-00000023 for /var/tmp/message/$(EXTEN:2} -- Auto fallthrough, channel 'SIP/1401-00000023' status is 'UNKNOWN' linux4*CLI> quit Executing last minute cleanups |
#[default]
total 104 -rw-rw---- 1 asterisk asterisk 4290 Apr 11 14:09 01.gsm -rw-rw---- 1 asterisk asterisk 15576 Apr 11 14:11 02.gsm -rw-rw---- 1 asterisk asterisk 7590 Apr 11 14:12 03.gsm -rw-rw---- 1 asterisk asterisk 5907 Apr 11 14:12 04.gsm -rw-rw---- 1 asterisk asterisk 3828 Apr 11 14:12 05.gsm -rw-rw---- 1 asterisk asterisk 13035 Apr 11 14:12 06.gsm -rw-rw---- 1 asterisk asterisk 5610 Apr 11 14:13 07.gsm -rw-rw---- 1 asterisk asterisk 6930 Apr 11 14:13 08.gsm -rw-rw---- 1 asterisk asterisk 4191 Apr 11 14:13 09.gsm -rw-rw---- 1 asterisk asterisk 2970 Apr 11 14:13 10.gsm -rw-rw---- 1 asterisk asterisk 4521 Apr 11 14:14 11.gsm -rw-rw---- 1 asterisk asterisk 2805 Apr 11 14:14 13.gsm -rw-rw---- 1 asterisk asterisk 3630 Apr 11 14:14 14.gsm -rw-rw---- 1 asterisk asterisk 0 Apr 11 14:14 15.gsm |
#chmod 770 -r /var/tmp/message/
![]() chmod: cannot access `770': No such file or directory |
#chmod -r 770 /var/tmp/message/
![]() chmod: cannot access `770': No such file or directory |
#chmod 770 /var/tmp/message
|
#chmod -r 770 /var/tmp/message/
chmod: cannot access `770': No such file or directory |
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 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. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux4 (pid = 1431) Verbosity is at least 3 == Using SIP RTP CoS mark 5 -- Executing [8201@gr_country:1] Playback("SIP/1401-00000025", "/var/tmp/message/$(EXTEN:2}") in new stack [Apr 11 14:18:59] WARNING[5660]: file.c:650 ast_openstream_full: File /var/tmp/message/$(EXTEN:2} does not exist in any format [Apr 11 14:18:59] WARNING[5660]: file.c:953 ast_streamfile: Unable to open /var/tmp/message/$(EXTEN:2} (format 0x4 (ulaw)): No such file or directory [Apr 11 14:18:59] WARNING[5660]: app_playback.c:471 playback_exec: ast_streamfile failed on SIP/1401-00000025 for /var/tmp/message/$(EXTEN:2} -- Auto fallthrough, channel 'SIP/1401-00000025' status is 'UNKNOWN' linux4*CLI> quit |
#[default]
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 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. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux4 (pid = 1431) Verbosity is at least 3 linux4*CLI> dialplan reload ... -- Executing [8115@gr_country:1] Record("SIP/1401-0000002a", "/var/tmp/message/15:gsm,1") in new stack -- <SIP/1401-0000002a> Playing 'beep.gsm' (language 'ru') -- Executing [8115@gr_country:2] Playback("SIP/1401-0000002a", "/var/tmp/message/15") in new stack -- <SIP/1401-0000002a> Playing '/var/tmp/message/15.gsm' (language 'ru') -- Auto fallthrough, channel 'SIP/1401-0000002a' status is 'UNKNOWN' == Using SIP RTP CoS mark 5 -- Executing [8215@gr_country:1] Playback("SIP/1401-0000002b", "/var/tmp/message/15") in new stack -- <SIP/1401-0000002b> Playing '/var/tmp/message/15.gsm' (language 'ru') -- Auto fallthrough, channel 'SIP/1401-0000002b' status is 'UNKNOWN' linux4*CLI> quit |
#nano /etc/asterisk/extensions.conf
![]() --- /tmp/l3-saved-3548.30596.6302 2013-04-11 14:24:34.000000000 +0300 +++ /etc/asterisk/extensions.conf 2013-04-11 14:28:44.000000000 +0300 @@ -1,10 +1,23 @@ +[menu] +exten=>s,1,Answer +exten=>s,1,Playback(/var/tmp/message/01) +exten=>s,n,Wait(1) +exten=>s,n,Playback(/var/tmp/message/02) +exten=>s,n,Wait(3) +exten=>s,n,Playback(/var/tmp/message/03) +exten=>s,n,Wait(3) +exten=>s,n,Playback(/var/tmp/message/04) +exten=>s,n,Wait(1) +exten=>s,n,Playback(/var/tmp/message/05) +exten=>s,n,Wait(1) + + [default] exten=>8000,1,Answer exten=>8000,n,Wait(2) exten=>8000,n,Playback(welcome) ;record - exten=>_81XX,1,Record(/var/tmp/message/${EXTEN:2}:gsm,1) exten=>_81XX,n,Playback(/var/tmp/message/${EXTEN:2}) exten=>_82XX,1,Playback(/var/tmp/message/${EXTEN:2}) @@ -23,6 +36,9 @@ exten => 8703,1,Set(ABC=${SHELL(date)}) exten => 8703,n,NoOp(${ABC}) +exten=>8800,1,GoTo(menu,s,1) + + ;exten=>_14XX,1,Answer ;exten=>_14XX,n,Set(CALLFILENAME=${EXTEN}-${CALLERID(num)}-${EPOCH}) ;exten=>_14XX,n,Monitor(wav,${CALLFILENAME},m) |
#[menu]
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 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. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux4 (pid = 1431) Verbosity is at least 3 linux4*CLI> dialplan reload ... [Apr 11 14:29:11] NOTICE[5754]: rtp.c:1143 process_rfc3389: Comfort noise support incomplete in Asterisk (RFC 3389). Please turn off on client if possible. Client IP: 192.168.40.101 -- Executing [s@menu:6] Wait("SIP/1401-0000002c", "3") in new stack -- Executing [s@menu:7] Playback("SIP/1401-0000002c", "/var/tmp/message/04") in new stack -- <SIP/1401-0000002c> Playing '/var/tmp/message/04.gsm' (language 'ru') -- Executing [s@menu:8] Wait("SIP/1401-0000002c", "1") in new stack -- Executing [s@menu:9] Playback("SIP/1401-0000002c", "/var/tmp/message/05") in new stack -- <SIP/1401-0000002c> Playing '/var/tmp/message/05.gsm' (language 'ru') -- Executing [s@menu:10] Wait("SIP/1401-0000002c", "1") in new stack -- Auto fallthrough, channel 'SIP/1401-0000002c' status is 'UNKNOWN' linux4*CLI> quit |
#nano /etc/asterisk/extensions.conf
![]() --- /tmp/l3-saved-3548.21936.18442 2013-04-11 14:29:30.000000000 +0300 +++ /etc/asterisk/extensions.conf 2013-04-11 14:30:08.000000000 +0300 @@ -1,6 +1,6 @@ [menu] exten=>s,1,Answer -exten=>s,1,Playback(/var/tmp/message/01) +exten=>s,n,Playback(/var/tmp/message/01) exten=>s,n,Wait(1) exten=>s,n,Playback(/var/tmp/message/02) exten=>s,n,Wait(3) |
#[menu]
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 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. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux4 (pid = 1431) Verbosity is at least 3 linux4*CLI> dialplan reload ... -- <SIP/1401-0000002e> Playing '/var/tmp/message/03.gsm' (language 'ru') -- Executing [s@menu:7] Wait("SIP/1401-0000002e", "3") in new stack -- Executing [s@menu:8] Playback("SIP/1401-0000002e", "/var/tmp/message/04") in new stack -- <SIP/1401-0000002e> Playing '/var/tmp/message/04.gsm' (language 'ru') -- Executing [s@menu:9] Wait("SIP/1401-0000002e", "1") in new stack -- Executing [s@menu:10] Playback("SIP/1401-0000002e", "/var/tmp/message/05") in new stack -- <SIP/1401-0000002e> Playing '/var/tmp/message/05.gsm' (language 'ru') -- Executing [s@menu:11] Wait("SIP/1401-0000002e", "1") in new stack -- Auto fallthrough, channel 'SIP/1401-0000002e' status is 'UNKNOWN' linux4*CLI> quit |
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3548.15605.10609 2013-04-11 14:31:53.000000000 +0300 +++ /etc/asterisk/extensions.conf 2013-04-11 14:36:21.000000000 +0300 @@ -11,6 +11,20 @@ exten=>s,n,Playback(/var/tmp/message/05) exten=>s,n,Wait(1) +exten=>1,1,GoTo(submenu,s,1) + +[submenu] +exten=>s,1,Answer +exten=>s,n,Background(/var/tmp/message/06) +exten=>s,n,WaitExten(3) +exten=>s,n,Background(/var/tmp/message/03) +exten=>s,n,WaitExten(3) +exten=>s,n,Background(/var/tmp/message/04) +exten=>s,n,WaitExten(1) +exten=>s,n,Background(/var/tmp/message/05) + + + [default] exten=>8000,1,Answer |
#nano /etc/asterisk/extensions.conf
![]() --- /tmp/l3-saved-3548.20999.31368 2013-04-11 14:37:19.000000000 +0300 +++ /etc/asterisk/extensions.conf 2013-04-11 14:47:51.000000000 +0300 @@ -1,17 +1,18 @@ [menu] exten=>s,1,Answer -exten=>s,n,Playback(/var/tmp/message/01) -exten=>s,n,Wait(1) -exten=>s,n,Playback(/var/tmp/message/02) -exten=>s,n,Wait(3) -exten=>s,n,Playback(/var/tmp/message/03) +exten=>s,n,Background(/var/tmp/message/01) +exten=>s,n(start),Background(/var/tmp/message/02) +exten=>s,n,WaitExten(3) +exten=>s,n,Background(/var/tmp/message/03) exten=>s,n,Wait(3) -exten=>s,n,Playback(/var/tmp/message/04) -exten=>s,n,Wait(1) -exten=>s,n,Playback(/var/tmp/message/05) +exten=>s,n,Background(/var/tmp/message/04) exten=>s,n,Wait(1) +exten=>s,n(finish),Background(/var/tmp/message/05) +exten=>s,n,Hangup exten=>1,1,GoTo(submenu,s,1) +exten=>9,1,GoTo(submenu,s,start) +exten=>9,1,GoTo(submenu,s,finish) [submenu] exten=>s,1,Answer @@ -22,7 +23,16 @@ exten=>s,n,Background(/var/tmp/message/04) exten=>s,n,WaitExten(1) exten=>s,n,Background(/var/tmp/message/05) +exten=>s,n,Hangup + +exten=>1,1,AGI(/usr/local/bin/asterisk-festival.pl,/var/tmp/text/burunduki.txt) +exten=>1,n,Goto(submenu,s,1) + +exten=>2,1,AGI(/usr/local/bin/asterisk-festival.pl,/var/tmp/text/burunduki.txt) +exten=>2,n,Goto(submenu,s,1) +exten=>9,1,Goto(submenu,s,1) +exten=>0,1,Goto(menu,s,start) |
#exten=>s,n,Background(/var/tmp/message/03)
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 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. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux4 (pid = 1431) Verbosity is at least 3 linux4*CLI> dialplan reload ... -- Executing [s@submenu:2] BackGround("SIP/1401-00000030", "/var/tmp/message/06") in new stack -- <SIP/1401-00000030> Playing '/var/tmp/message/06.gsm' (language 'ru') -- Executing [s@submenu:3] WaitExten("SIP/1401-00000030", "3") in new stack == CDR updated on SIP/1401-00000030 -- Executing [1@submenu:1] AGI("SIP/1401-00000030", "/usr/local/bin/asterisk-festival.pl,/var/tmp/text/burunduki.txt") in new stack -- Launched AGI Script /usr/local/bin/asterisk-festival.pl -- AGI Script Executing Application: (Playback) Options: (/var/lib/asterisk/sounds/tts/tts-597b55cfeee2b6c9183aaef0060cb1da) -- <SIP/1401-00000030> Playing '/var/lib/asterisk/sounds/tts/tts-597b55cfeee2b6c9183aaef0060cb1da.slin' (language 'ru') -- <SIP/1401-00000030>AGI Script /usr/local/bin/asterisk-festival.pl completed, returning -1 linux4*CLI> quit |
#nano /etc/asterisk/extensions.conf
![]() |
#nano /etc/asterisk/extensions.conf
![]() --- /tmp/l3-saved-3548.4669.27970 2013-04-11 15:01:50.000000000 +0300 +++ /etc/asterisk/extensions.conf 2013-04-11 15:15:14.000000000 +0300 @@ -4,16 +4,26 @@ exten=>s,n(start),Background(/var/tmp/message/02) exten=>s,n,WaitExten(3) exten=>s,n,Background(/var/tmp/message/03) -exten=>s,n,Wait(3) +exten=>s,n,WaitExten(3) exten=>s,n,Background(/var/tmp/message/04) -exten=>s,n,Wait(1) +exten=>s,n,WaitExten(1) exten=>s,n(finish),Background(/var/tmp/message/05) exten=>s,n,Hangup exten=>1,1,GoTo(submenu,s,1) + +exten=>3,1,Background(/var/tmp/message/08) +exten=>3,n,WaitExten(1) +exten=>3,n,Queue(queue1) + + exten=>9,1,GoTo(submenu,s,start) exten=>9,1,GoTo(submenu,s,finish) + +exten=>i,1,Background(/var/tmp/message/09) +exten=>i,n,Goto(menu,s,start) + [submenu] exten=>s,1,Answer exten=>s,n,Background(/var/tmp/message/06) |
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3548.5698.26371 2013-04-11 15:16:06.000000000 +0300 +++ /etc/asterisk/extensions.conf 2013-04-11 15:20:19.000000000 +0300 @@ -12,6 +12,12 @@ exten=>1,1,GoTo(submenu,s,1) +exten=>2,1,Background(/var/tmp/message/07) +exten=>2,n,WaitExten(2) +exten=>2,n,Read(ORDER) +exten=>3,n,SayDigits(${ORDER}) + + exten=>3,1,Background(/var/tmp/message/08) exten=>3,n,WaitExten(1) exten=>3,n,Queue(queue1) |
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3548.9386.20625 2013-04-11 15:21:08.000000000 +0300 +++ /etc/asterisk/extensions.conf 2013-04-11 15:22:32.000000000 +0300 @@ -15,8 +15,8 @@ exten=>2,1,Background(/var/tmp/message/07) exten=>2,n,WaitExten(2) exten=>2,n,Read(ORDER) -exten=>3,n,SayDigits(${ORDER}) - +exten=>2,n,SayDigits(${ORDER}) +exten=>2,n,Hungup exten=>3,1,Background(/var/tmp/message/08) exten=>3,n,WaitExten(1) |
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3548.29024.30499 2013-04-11 15:23:06.000000000 +0300 +++ /etc/asterisk/extensions.conf 2013-04-11 15:44:15.000000000 +0300 @@ -13,11 +13,12 @@ exten=>1,1,GoTo(submenu,s,1) exten=>2,1,Background(/var/tmp/message/07) -exten=>2,n,WaitExten(2) +exten=>2,n,Wait(2) exten=>2,n,Read(ORDER) exten=>2,n,SayDigits(${ORDER}) exten=>2,n,Hungup + exten=>3,1,Background(/var/tmp/message/08) exten=>3,n,WaitExten(1) exten=>3,n,Queue(queue1) |
#nano /etc/asterisk/extensions.conf
![]() --- /tmp/l3-saved-3548.7041.21634 2013-04-11 15:58:25.000000000 +0300 +++ /etc/asterisk/extensions.conf 2013-04-11 16:48:36.000000000 +0300 @@ -22,6 +22,8 @@ exten => 2,n,Hangup exten => 2,n(wrong_order_id),Playback(/var/tmp/message/12) +;primer external database +;exten => 2,n,Set(ORDER_STATUS=${SHELL(/var/tmp/commands/order-state.sh ${ORDER})}) exten=>2,n,Hungup |
#top
top - 16:48:26 up 7:22, 4 users, load average: 0.13, 0.04, 0.05 Tasks: 160 total, 2 running, 155 sleeping, 3 stopped, 0 zombie Cpu(s): 0.2%us, 0.0%sy, 0.0%ni, 99.6%id, 0.1%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 16518800k total, 1130032k used, 15388768k free, 58128k buffers PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND Swap: 6422524k total, 0k used, 6422524k free, 854448k cached 8337 root 20 0 11728 7892 1048 R 99 0.0 0:03.02 l3-agent 1467 root 20 0 78228 20m 9120 S 8 0.1 3:42.82 Xorg 1 root 20 0 2084 700 604 S 0 0.0 0:02.04 init 2 root 20 0 0 0 0 S 0 0.0 0:00.00 kthreadd ... 43 root 0 -20 0 0 0 S 0 0.0 0:00.00 kintegrityd 44 root 0 -20 0 0 0 S 0 0.0 0:00.00 kblockd 45 root 20 0 0 0 0 S 0 0.0 0:00.00 khungtaskd 46 root 20 0 0 0 0 S 0 0.0 0:00.00 kswapd0 47 root 25 5 0 0 0 S 0 0.0 0:00.00 ksmd 48 root 39 19 0 0 0 S 0 0.0 0:00.00 khugepaged 49 root 20 0 0 0 0 S 0 0.0 0:00.00 fsnotify_mark 50 root 0 -20 0 0 0 S 0 0.0 0:00.00 crypto 53 root 20 0 0 0 0 S 0 0.0 0:00.38 kworker/6:1 66 root 20 0 0 0 0 S 0 0.0 0:00.25 kworker/4:1 |
#ls -lS ~/.lilalo/ | head
total 9220 -rw-r--r-- 1 root root 1109311 Apr 8 17:44 16346945830011324-1365422363.script -rw-r--r-- 1 root root 1109311 Apr 8 17:44 246630633495231600-1365422363.script -rw-r--r-- 1 root root 1043898 Apr 10 17:47 1364215992199413783-1365586202.script -rw-r--r-- 1 root root 1043898 Apr 10 17:47 877211033855414965-1365586202.script -rw-r--r-- 1 root root 757921 Apr 9 17:43 1327421977138681103-1365488349.script -rw-r--r-- 1 root root 757921 Apr 9 17:43 1721057842536712835-1365488349.script -rw-r--r-- 1 root root 545991 Apr 11 16:48 1336698365747484-1365664850.script -rw-r--r-- 1 root root 372777 Apr 8 17:45 1101686402364611529-1365423412.script -rw-r--r-- 1 root root 372777 Apr 8 17:45 4419265921638711111-1365423412.script |
#ps aux | grep l3
root 8337 41.8 0.0 13400 9944 ? Ss 16:48 0:15 l3-agent root 8428 0.0 0.0 3352 748 pts/4 S+ 16:49 0:00 grep l3 |
#kill l3-agent
![]() bash: kill: l3-agent: arguments must be process or job IDs |
#pkill l3-agent
|
#ps aux | grep l3
root 8466 0.0 0.0 3352 744 pts/4 S+ 16:49 0:00 grep l3 |
#l3-agent
|
#ps aux | grep l3
root 8475 21.0 0.0 11212 7672 ? Ss 16:49 0:00 l3-agent root 8484 0.0 0.0 3352 744 pts/4 S+ 16:49 0:00 grep l3 |
#top
top - 16:49:28 up 7:23, 4 users, load average: 0.21, 0.09, 0.07 Tasks: 159 total, 1 running, 155 sleeping, 3 stopped, 0 zombie Cpu(s): 0.4%us, 0.1%sy, 0.0%ni, 99.5%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 16518800k total, 1126632k used, 15392168k free, 58224k buffers PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND Swap: 6422524k total, 0k used, 6422524k free, 850968k cached 1467 root 20 0 74528 20m 9120 S 3 0.1 3:43.86 Xorg 2030 user 20 0 82964 12m 9364 S 0 0.1 0:23.18 gnome-terminal 2105 user 20 0 5176 2192 1784 S 0 0.0 0:00.77 ssh 8243 root 20 0 0 0 0 S 0 0.0 0:00.71 kworker/0:2 ... 41 root 20 0 0 0 0 S 0 0.0 0:00.03 sync_supers 42 root 20 0 0 0 0 S 0 0.0 0:00.00 bdi-default 43 root 0 -20 0 0 0 S 0 0.0 0:00.00 kintegrityd 44 root 0 -20 0 0 0 S 0 0.0 0:00.00 kblockd 45 root 20 0 0 0 0 S 0 0.0 0:00.00 khungtaskd 46 root 20 0 0 0 0 S 0 0.0 0:00.00 kswapd0 47 root 25 5 0 0 0 S 0 0.0 0:00.00 ksmd 48 root 39 19 0 0 0 S 0 0.0 0:00.00 khugepaged 49 root 20 0 0 0 0 S 0 0.0 0:00.00 fsnotify_mark 50 root 0 -20 0 0 0 S 0 0.0 0:00.00 crypto |
#nano /tmp/1.col
![]() --- /tmp/l3-saved-3548.20237.4245 2013-04-11 16:53:20.000000000 +0300 +++ /tmp/1.col 2013-04-11 16:55:43.000000000 +0300 @@ -0,0 +1,3 @@ +Chanel:SIP/1301 +Context:default +Extention:8301 |
#Chanel:SIP/1301
![]() |
#Chanel:SIP/1301
|
#cp /tmp/1.call /var/spool/asterisk/outgoing/
![]() cp: cannot stat `/tmp/1.call': No such file or directory |
#cp /tmp/1.col /var/spool/asterisk/outgoing/
|
#cd /tmp/1.col
![]() bash: cd: /tmp/1.col: Not a directory |
#cd /tmp/
|
#ls -l
total 68 -rw-r--r-- 1 asterisk asterisk 47 Apr 11 16:56 1.col -rw-rw---- 1 asterisk asterisk 0 Apr 11 12:00 asterisk-sdelal-file -rw------- 1 user user 304 Apr 11 11:54 gnash-cookies.byfFHt -rw------- 1 user user 76 Apr 11 11:50 gnash-cookies.G10HOv -rw------- 1 user user 76 Apr 11 11:54 gnash-cookies.HwBjEg -rw------- 1 user user 76 Apr 11 11:52 gnash-cookies.l5GWbc -rw------- 1 user user 76 Apr 11 11:50 gnash-cookies.Qr55Ql -rw------- 1 user user 76 Apr 11 11:52 gnash-cookies.SFawly -rw------- 1 user user 76 Apr 11 11:52 gnash-cookies.TbNHIE -rw------- 1 user user 76 Apr 11 11:56 gnash-cookies.tX92zq -rw------- 1 user user 126 Apr 11 11:50 gnash-cookies.YkwP4g -rw------- 1 user user 76 Apr 11 11:54 gnash-cookies.ZshyD6 drwx------ 2 user user 4096 Apr 11 09:26 keyring-wP4JPG drwx------ 2 Debian-gdm Debian-gdm 4096 Apr 11 09:26 orbit-Debian-gdm drwx------ 2 user user 4096 Apr 11 16:39 orbit-user drwx------ 2 user user 4096 Apr 11 09:26 seahorse-yL6syU drwx------ 2 user user 4096 Apr 11 09:26 ssh-WyXRAP1804 drwx------ 2 user user 4096 Apr 11 09:26 virtual-user.3i9WBP |
#cp /tmp/1.col /var/spool/asterisk/outgoing/
|
#Chanel:SIP/1401
|
#Chanel:SIP/1401
|
#Chanel:SIP/1401
|
#Chanel:SIP/1401
|
#Chanel:SIP/1401
|
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 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. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux4 (pid = 1431) Verbosity is at least 3 [Apr 11 17:00:34] WARNING[1472]: pbx_spool.c:392 scan_service: Unable to open /var/spool/asterisk/outgoing/1.col: No such file or directory, deleting ... [Apr 11 17:00:40] WARNING[1472]: pbx_spool.c:492 scan_thread: Failed to scan service '/var/spool/asterisk/outgoing/1.col' [Apr 11 17:00:41] WARNING[1472]: pbx_spool.c:392 scan_service: Unable to open /var/spool/asterisk/outgoing/1.col: No such file or directory, deleting [Apr 11 17:00:41] WARNING[1472]: pbx_spool.c:492 scan_thread: Failed to scan service '/var/spool/asterisk/outgoing/1.col' [Apr 11 17:00:42] WARNING[1472]: pbx_spool.c:392 scan_service: Unable to open /var/spool/asterisk/outgoing/1.col: No such file or directory, deleting [Apr 11 17:00:42] WARNING[1472]: pbx_spool.c:492 scan_thread: Failed to scan service '/var/spool/asterisk/outgoing/1.col' [Apr 11 17:00:43] WARNING[1472]: pbx_spool.c:392 scan_service: Unable to open /var/spool/asterisk/outgoing/1.col: No such file or directory, deleting [Apr 11 17:00:43] WARNING[1472]: pbx_spool.c:492 scan_thread: Failed to scan service '/var/spool/asterisk/outgoing/1.col' [Apr 11 17:00:44] WARNING[1472]: pbx_spool.c:392 scan_service: Unable to open /var/spool/asterisk/outgoing/1.col: No such file or directory, deleting [Apr 11 17:00:44] WARNING[1472]: pbx_spool.c:492 scan_thread: Failed to scan service '/var/spool/asterisk/outgoing/1.col' Disconnected from Asterisk server |
#cp -p /tmp/1.col /var/spool/asterisk/outgoing/
|
#ls
|
#Chanel:SIP/1402
|
#ls
|
#nano /etc/asterisk/extensions.conf
![]() --- /tmp/l3-saved-3548.6128.8955 2013-04-11 17:04:24.000000000 +0300 +++ /etc/asterisk/extensions.conf 2013-04-11 17:05:36.000000000 +0300 @@ -123,6 +123,8 @@ exten=>1406,n,Queue(queue1) exten=>_143X,1,AgentLogin(100${EXTEN:3}) +exten=>_82XX,1,Playback(/var/tmp/message/${EXTEN:2}) + [national] exten=>_13XX,1,Dial(SIP/gweru/${EXTEN}) |
#exten=>s,n,Hangup
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 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. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux4 (pid = 1431) Verbosity is at least 3 linux4*CLI> dialplan reload ... -- merging incls/swits/igpats from old(ael-dundi-e164-via-pstn) to new(ael-dundi-e164-via-pstn) context, registrar = pbx_config -- Registered extension context 'ael-dundi-e164-customers' (0xb490a2b0) in local table 0x854c2f8; registrar: pbx_ael -- merging incls/swits/igpats from old(ael-dundi-e164-customers) to new(ael-dundi-e164-customers) context, registrar = pbx_config -- Registered extension context 'ael-dundi-e164-canonical' (0xb490a348) in local table 0x854c2f8; registrar: pbx_ael -- merging incls/swits/igpats from old(ael-dundi-e164-canonical) to new(ael-dundi-e164-canonical) context, registrar = pbx_config -- Time to scan old dialplan and merge leftovers back into the new: 0.000585 sec -- Time to restore hints and swap in new dialplan: 0.000001 sec -- Time to delete the old dialplan: 0.000065 sec -- Total time merge_contexts_delete: 0.000651 sec linux4*CLI> quit |
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 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. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux4 (pid = 1431) Verbosity is at least 3 linux4*CLI> quit |
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 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. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux4 (pid = 1431) Verbosity is at least 3 linux4*CLI> quit Executing last minute cleanups |
#cp -p /tmp/
![]() 1.col gnash-cookies.SFawly orbit-Debian-gdm/ asterisk-sdelal-file gnash-cookies.TbNHIE orbit-user/ gnash-cookies.byfFHt gnash-cookies.tX92zq seahorse-yL6syU/ gnash-cookies.G10HOv gnash-cookies.YkwP4g ssh-WyXRAP1804/ gnash-cookies.HwBjEg gnash-cookies.ZshyD6 virtual-user.3i9WBP/ gnash-cookies.l5GWbc .ICE-unix/ .X0-lock gnash-cookies.Qr55Ql keyring-wP4JPG/ .X11-unix/ |
#cp -p /tmp/1.col /var/spool/asterisk/outgoing/
|
#nano /tmp/1.col
--- /tmp/l3-saved-8972.14234.1273 2013-04-11 17:07:41.000000000 +0300 +++ /tmp/1.col 2013-04-11 17:07:59.000000000 +0300 @@ -1,3 +1,3 @@ -Chanel:SIP/1402 +Chanel:SIP/1401 Context:default Extension:8201 |
#Chanel:SIP/1401
|
#[general]
|
|