/l3/users/azhun/nt-voip-2014-apr/debian/root :1 :2 :3 :4 :5 :6 :7 :8 |
|
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-24351.18225.26096 2014-04-23 13:11:37.386534149 +0300 +++ /etc/asterisk/extensions.conf 2014-04-23 13:12:54.602535455 +0300 @@ -3,5 +3,5 @@ ;exten => 3101,1,Dial(SIP/3101) exten => _31XX,1,Dial(SIP/${EXTEN}) exten => _32XX,1,Dial(SIP/santiago/${EXTEN}) -exten => _1XXX,1,Dial(SIP/kiev/${EXTEN}) -;exten => _12XX,1,Dial(SIP/kiev/${EXTEN}) +;exten => _1XXX,1,Dial(SIP/kiev/${EXTEN}) +exten => _[12]XXX,1,Dial(SIP/kiev/${EXTEN}) |
#[default]
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.8.13.1~dfsg1-3+deb7u3 currently running on debian (pid = 16994) ... == Spawn extension (default, 1102, 1) exited non-zero on 'SIP/santiago-0000004e' == Using SIP RTP CoS mark 5 -- Executing [1102@default:1] Dial("SIP/santiago-00000050", "SIP/kiev/1102") in new stack == Using SIP RTP CoS mark 5 -- Called SIP/kiev/1102 -- SIP/kiev-00000051 is ringing == Spawn extension (default, 1102, 1) exited non-zero on 'SIP/santiago-00000050' debian*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-24351.4153.14483 2014-04-23 13:19:38.322542272 +0300 +++ /etc/asterisk/extensions.conf 2014-04-23 13:32:41.450555506 +0300 @@ -5,3 +5,7 @@ exten => _32XX,1,Dial(SIP/santiago/${EXTEN}) ;exten => _1XXX,1,Dial(SIP/kiev/${EXTEN}) exten => _[12]XXX,1,Dial(SIP/kiev/${EXTEN}) +exten => _[12]3XX,1,Dial(SIP/kiev/${EXTEN}) +exten => _2[12]XX,1,Dial(SIP/kiev/${EXTEN}) +exten => _33XX,1,Dial(SIP/kiev/${EXTEN}) +exten => _14XX,1,Dial(SIP/kiev/${EXTEN}) |
#[default]
|
#asterisk -rvvvvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.8.13.1~dfsg1-3+deb7u3 currently running on debian (pid = 16994) ... -- Auto fallthrough, channel 'SIP/3101-0000007c' status is 'CONGESTION' == Using SIP RTP CoS mark 5 -- Executing [1302@default:1] Dial("SIP/3101-0000007e", "SIP/kiev/1302") in new stack == Using SIP RTP CoS mark 5 -- Called SIP/kiev/1302 == Everyone is busy/congested at this time (1:0/1/0) -- Auto fallthrough, channel 'SIP/3101-0000007e' status is 'CONGESTION' debian*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-24351.22072.4666 2014-04-23 13:35:26.326558295 +0300 +++ /etc/asterisk/extensions.conf 2014-04-23 13:36:19.226559186 +0300 @@ -5,7 +5,9 @@ exten => _32XX,1,Dial(SIP/santiago/${EXTEN}) ;exten => _1XXX,1,Dial(SIP/kiev/${EXTEN}) exten => _[12]XXX,1,Dial(SIP/kiev/${EXTEN}) -exten => _[12]3XX,1,Dial(SIP/kiev/${EXTEN}) +;exten => _[12]3XX,1,Dial(SIP/kiev/${EXTEN}) +exten => _23XX,1,Dial(SIP/kiev/${EXTEN}) +exten => _13XX,1,Dial(SIP/kiev/${EXTEN}) exten => _2[12]XX,1,Dial(SIP/kiev/${EXTEN}) exten => _33XX,1,Dial(SIP/kiev/${EXTEN}) exten => _14XX,1,Dial(SIP/kiev/${EXTEN}) |
#[default]
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.8.13.1~dfsg1-3+deb7u3 currently running on debian (pid = 16994) ... -- Total time merge_contexts_delete: 0.000888 sec == Using SIP RTP CoS mark 5 -- Executing [1301@default:1] Dial("SIP/3101-00000080", "SIP/kiev/1301") in new stack == Using SIP RTP CoS mark 5 -- Called SIP/kiev/1301 == Everyone is busy/congested at this time (1:0/1/0) -- Auto fallthrough, channel 'SIP/3101-00000080' status is 'CONGESTION' debian*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-24351.13846.4817 2014-04-23 13:36:43.454559598 +0300 +++ /etc/asterisk/extensions.conf 2014-04-23 13:36:54.346559780 +0300 @@ -5,9 +5,9 @@ exten => _32XX,1,Dial(SIP/santiago/${EXTEN}) ;exten => _1XXX,1,Dial(SIP/kiev/${EXTEN}) exten => _[12]XXX,1,Dial(SIP/kiev/${EXTEN}) -;exten => _[12]3XX,1,Dial(SIP/kiev/${EXTEN}) -exten => _23XX,1,Dial(SIP/kiev/${EXTEN}) -exten => _13XX,1,Dial(SIP/kiev/${EXTEN}) +exten => _[12]3XX,1,Dial(SIP/kiev/${EXTEN}) +;exten => _23XX,1,Dial(SIP/kiev/${EXTEN}) +;exten => _13XX,1,Dial(SIP/kiev/${EXTEN}) exten => _2[12]XX,1,Dial(SIP/kiev/${EXTEN}) exten => _33XX,1,Dial(SIP/kiev/${EXTEN}) exten => _14XX,1,Dial(SIP/kiev/${EXTEN}) |
#[default]
|
#[default]
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.8.13.1~dfsg1-3+deb7u3 currently running on debian (pid = 16994) ... == Using SIP RTP CoS mark 5 -- Executing [2101@default:1] Dial("SIP/3101-000000ce", "SIP/kiev/2101") in new stack == Using SIP RTP CoS mark 5 -- Called SIP/kiev/2101 -- SIP/kiev-000000cf answered SIP/3101-000000ce -- Locally bridging SIP/3101-000000ce and SIP/kiev-000000cf == Spawn extension (default, 2101, 1) exited non-zero on 'SIP/3101-000000ce' debian*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-24351.26342.9611 2014-04-23 14:14:43.862598132 +0300 +++ /etc/asterisk/extensions.conf 2014-04-23 14:26:41.110610249 +0300 @@ -1,13 +1,45 @@ [default] ;exten => 3101,1,Dial(SIP/3101) +;;exten => _31XX,1,Dial(SIP/${EXTEN}) +;;exten => _32XX,1,Dial(SIP/santiago/${EXTEN}) +;exten => _1XXX,1,Dial(SIP/kiev/${EXTEN}) +;;exten => _[12]XXX,1,Dial(SIP/kiev/${EXTEN}) +;;exten => _[12]3XX,1,Dial(SIP/kiev/${EXTEN}) +;;exten => _2[12]XX,1,Dial(SIP/kiev/${EXTEN}) +;;exten => _33XX,1,Dial(SIP/kiev/${EXTEN}) +;;exten => _14XX,1,Dial(SIP/kiev/${EXTEN}) + +[internal] + + +[local] exten => _31XX,1,Dial(SIP/${EXTEN}) +[national] exten => _32XX,1,Dial(SIP/santiago/${EXTEN}) -;exten => _1XXX,1,Dial(SIP/kiev/${EXTEN}) + +[international] exten => _[12]XXX,1,Dial(SIP/kiev/${EXTEN}) exten => _[12]3XX,1,Dial(SIP/kiev/${EXTEN}) -;exten => _23XX,1,Dial(SIP/kiev/${EXTEN}) -;exten => _13XX,1,Dial(SIP/kiev/${EXTEN}) exten => _2[12]XX,1,Dial(SIP/kiev/${EXTEN}) exten => _33XX,1,Dial(SIP/kiev/${EXTEN}) exten => _14XX,1,Dial(SIP/kiev/${EXTEN}) + +[gr1] + +include => internal +include => local +include => national +include => international + +[gr2] + +include => internal +include => local +include => national + +[gr3] + +include => internal +include => local + |
#[general]
|
#[general]
|
#[default]
GNU nano 2.2.6 File: /etc/asterisk/sip.conf Modified [general] context=default ; canreinvite=0 -old version asterisk directmedia=no register => havana:1234@192.168.12.8/santiago register => havana:1234@192.168.12.2/kiev ; peer ;3101 - 3199 all my [3101] ... host=dynamic username=havana [kiev] type=friend secret=1234 host=dynamic username=havana context=gr_relay ^G Get Help ^O WriteOut ^R Read File ^Y Prev Page ^K Cut Text ^C Cur Pos ^X Exit ^J Justify ^W Where Is ^V Next Page ^U UnCut Text ^T To Spell |
#nano /etc/asterisk/sip.conf
--- /tmp/l3-saved-24351.28344.4883 2014-04-23 14:39:22.774623123 +0300 +++ /etc/asterisk/sip.conf 2014-04-23 14:39:39.426623404 +0300 @@ -17,7 +17,7 @@ type=friend secret=1234 host=dynamic -context=gr2 +context=gr3 [3103] type=friend |
#[general]
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.8.13.1~dfsg1-3+deb7u3 currently running on debian (pid = 16994) Verbosity is at least 5 debian*CLI> sip reload ... == Using SIP RTP CoS mark 5 -- Called SIP/kiev/3301 == Everyone is busy/congested at this time (1:0/1/0) -- Auto fallthrough, channel 'SIP/santiago-000000e4' status is 'CONGESTION' == Using SIP RTP CoS mark 5 [Apr 23 14:40:04] NOTICE[17032]: chan_sip.c:22753 handle_request_invite: Call from '3102' (192.168.12.107:33784) to extension '3201' rejected because extension not found in context 'gr3'. [Apr 23 14:40:47] NOTICE[17032]: chan_sip.c:25030 handle_request_register: Registration from '<sip:vaduz@192.168.12.7>' failed for '192.168.12.9:5060' - Wrong password debian*CLI> sip reload Disconnected from Asterisk server Executing last minute cleanups |
#nano /etc/asterisk/sip.conf
|
#[general]
|
#{EXTEN})
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.8.13.1~dfsg1-3+deb7u3 currently running on debian (pid = 16994) Verbosity is at least 5 debian*CLI> sip reload Disconnected from Asterisk server Executing last minute cleanups |
#asterisk -rvvvvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.8.13.1~dfsg1-3+deb7u3 currently running on debian (pid = 16994) ... debian*CLI> debian*CLI> == Using SIP RTP CoS mark 5 [Apr 23 14:53:51] NOTICE[17032]: chan_sip.c:22753 handle_request_invite: Call from 'havana' (192.168.12.8:5060) to extension '1201}' rejected because extension not found in context 'gr_relay'. == Using SIP RTP CoS mark 5 [Apr 23 14:53:56] NOTICE[17032]: chan_sip.c:22753 handle_request_invite: Call from 'havana' (192.168.12.8:5060) to extension '1202}' rejected because extension not found in context 'gr_relay'. debian*CLI> debian*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#nano /etc/asterisk/extensions.conf
|
#[default]
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.8.13.1~dfsg1-3+deb7u3 currently running on debian (pid = 16994) ... [Apr 23 14:54:54] NOTICE[17032]: chan_sip.c:22753 handle_request_invite: Call from 'havana' (192.168.12.8:5060) to extension '1201}' rejected because extension not found in context 'gr_relay'. == Using SIP RTP CoS mark 5 [Apr 23 14:54:59] NOTICE[17032]: chan_sip.c:22753 handle_request_invite: Call from 'havana' (192.168.12.8:5060) to extension '1201}' rejected because extension not found in context 'gr_relay'. == Using SIP RTP CoS mark 5 [Apr 23 14:55:03] NOTICE[17032]: chan_sip.c:22753 handle_request_invite: Call from 'havana' (192.168.12.8:5060) to extension '1202}' rejected because extension not found in context 'gr_relay'. == Using SIP RTP CoS mark 5 [Apr 23 14:55:09] NOTICE[17032]: chan_sip.c:22753 handle_request_invite: Call from 'havana' (192.168.12.8:5060) to extension '1201}' rejected because extension not found in context 'gr_relay'. debian*CLI> 1201} =:-[ ] Disconnected from Asterisk server Executing last minute cleanups |
#nano /etc/asterisk/extensions.conf
|
#[default]
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.8.13.1~dfsg1-3+deb7u3 currently running on debian (pid = 16994) ... == Using SIP RTP CoS mark 5 -- Executing [2301@gr_relay:1] Dial("SIP/santiago-0000014a", "SIP/kiev/2301") in new stack == Using SIP RTP CoS mark 5 -- Called SIP/kiev/2301 -- Got SIP response 503 "Service Unavailable" back from 192.168.12.2:5060 -- SIP/kiev-0000014b is circuit-busy == Everyone is busy/congested at this time (1:0/1/0) -- Auto fallthrough, channel 'SIP/santiago-0000014a' status is 'CONGESTION' debian*CLI> quit Executing last minute cleanups |
#nano /etc/asterisk/extensions.conf
|
#[default]
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.8.13.1~dfsg1-3+deb7u3 currently running on debian (pid = 16994) ... -- SIP/3101-0000017b is ringing == Spawn extension (gr_relay, 3101, 1) exited non-zero on 'SIP/kiev-0000017a' == Using SIP RTP CoS mark 5 -- Executing [3102@gr_relay:1] Dial("SIP/kiev-0000017c", "SIP/3102") in new stack == Using SIP RTP CoS mark 5 -- Called SIP/3102 -- SIP/3102-0000017d is ringing == Spawn extension (gr_relay, 3102, 1) exited non-zero on 'SIP/kiev-0000017c' debian*CLI> quit Executing last minute cleanups |
#mkdir -p /var/tmp/asterisk/
|
#chown asterisk:asterisk /var/tmp/asterisk/
|
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-24351.5652.2764 2014-04-23 15:59:28.018704321 +0300 +++ /etc/asterisk/extensions.conf 2014-04-23 16:08:51.986713851 +0300 @@ -10,11 +10,17 @@ ;;exten => _33XX,1,Dial(SIP/kiev/${EXTEN}) ;;exten => _14XX,1,Dial(SIP/kiev/${EXTEN}) + [internal] +exten => 8001,1,Answer +exten => 8001,n,Record(/var/tmp/asterisk/message:gsm,2) +exten => 8001,n,Playback(/var/tmp/asterisk/message) +exten => 8001,n,Hangup [local] exten => _31XX,1,Dial(SIP/${EXTEN}) + [national] exten => _32XX,1,Dial(SIP/santiago/${EXTEN}) @@ -25,12 +31,17 @@ exten => _33XX,1,Dial(SIP/kiev/${EXTEN}) exten => _14XX,1,Dial(SIP/kiev/${EXTEN}) +[fallback] + +exten => _.,1,Playback(/var/tmp/asterisk/message) + [gr_relay] include => internal include => local include => national include => international +include => fallback [gr1] @@ -39,15 +50,18 @@ include => local include => national include => international +include => fallback [gr2] include => internal include => local include => national +include => fallback [gr3] include => internal include => local +include => fallback |
#nano /etc/asterisk/extensions.conf
|
#ls /var/tmp/asterisk/
|
#ls /var/tmp/asterisk/
message.gsm |
#nano /etc/asterisk/extensions.conf
|
#[default]
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.8.13.1~dfsg1-3+deb7u3 currently running on debian (pid = 16994) ... == Using SIP RTP CoS mark 5 -- Called SIP/kiev/1105 -- Got SIP response 503 "Service Unavailable" back from 192.168.12.2:5060 -- SIP/kiev-00000187 is circuit-busy == Everyone is busy/congested at this time (1:0/1/0) -- Auto fallthrough, channel 'SIP/3101-00000186' status is 'CONGESTION' -- Executing [h@gr1:1] Playback("SIP/3101-00000186", "/var/tmp/asterisk/message") in new stack == Spawn extension (gr1, h, 1) exited non-zero on 'SIP/3101-00000186' debian*CLI> quit Executing last minute cleanups |
#ls /var/tmp/asterisk/
message.gsm |
#nano /etc/asterisk/extensions.conf
|
#[default]
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.8.13.1~dfsg1-3+deb7u3 currently running on debian (pid = 16994) ... == Using SIP RTP CoS mark 5 -- Executing [9901@gr1:1] Playback("SIP/3101-0000018c", "/var/tmp/asterisk/message") in new stack -- <SIP/3101-0000018c> Playing '/var/tmp/asterisk/message.gsm' (language 'en') -- Auto fallthrough, channel 'SIP/3101-0000018c' status is 'UNKNOWN' -- Executing [h@gr1:1] Playback("SIP/3101-0000018c", "/var/tmp/asterisk/message") in new stack [Apr 23 16:18:10] WARNING[26050]: file.c:766 ast_readaudio_callback: Failed to write frame -- <SIP/3101-0000018c> Playing '/var/tmp/asterisk/message.gsm' (language 'en') [Apr 23 16:18:10] WARNING[26050]: app_playback.c:475 playback_exec: ast_streamfile failed on SIP/3101-0000018c for /var/tmp/asterisk/message debian*CLI> quit Executing last minute cleanups |
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-24351.14604.30000 2014-04-23 16:33:41.442739016 +0300 +++ /etc/asterisk/extensions.conf 2014-04-23 16:34:17.958739635 +0300 @@ -19,7 +19,10 @@ [local] -exten => _31XX,1,Dial(SIP/${EXTEN}) +;exten => _31XX,1,Dial(SIP/${EXTEN}) +exten => _3101,1,Dial(SIP/3101,2) +exten => _3101,n,Dial(SIP/3102) + [national] exten => _32XX,1,Dial(SIP/santiago/${EXTEN}) |
#[default]
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.8.13.1~dfsg1-3+deb7u3 currently running on debian (pid = 16994) ... == Using SIP RTP CoS mark 5 -- Executing [3301@gr_relay:1] Dial("SIP/santiago-00000196", "SIP/kiev/3301") in new stack == Using SIP RTP CoS mark 5 -- Called SIP/kiev/3301 -- SIP/kiev-00000197 is ringing == Spawn extension (gr_relay, 3301, 1) exited non-zero on 'SIP/santiago-00000196' -- Executing [h@gr_relay:1] Playback("SIP/santiago-00000196", "/var/tmp/asterisk/message") in new stack == Spawn extension (gr_relay, h, 1) exited non-zero on 'SIP/santiago-00000196' debian*CLI> quit Executing last minute cleanups |
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-24351.10135.14863 2014-04-23 16:38:04.778743467 +0300 +++ /etc/asterisk/extensions.conf 2014-04-23 16:39:00.462744412 +0300 @@ -21,6 +21,7 @@ [local] ;exten => _31XX,1,Dial(SIP/${EXTEN}) exten => _3101,1,Dial(SIP/3101,2) +exten => _3101,n,NoOp(Dial Status: ${DIALSTATUS}) exten => _3101,n,Dial(SIP/3102) |
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-24351.12781.17725 2014-04-23 16:41:46.218747211 +0300 +++ /etc/asterisk/extensions.conf 2014-04-23 16:42:19.726747773 +0300 @@ -23,7 +23,7 @@ exten => _3101,1,Dial(SIP/3101,2) exten => _3101,n,NoOp(Dial Status: ${DIALSTATUS}) exten => _3101,n,Dial(SIP/3102) - +exten => _3101,n,NoOp(Dial Status: ${DIALSTATUS}) [national] exten => _32XX,1,Dial(SIP/santiago/${EXTEN}) |
#[default]
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.8.13.1~dfsg1-3+deb7u3 currently running on debian (pid = 16994) ... -- SIP/3102-000001a8 is ringing -- SIP/3102-000001a8 answered SIP/santiago-000001a6 -- Locally bridging SIP/santiago-000001a6 and SIP/3102-000001a8 -- Executing [h@gr_relay:1] Playback("SIP/santiago-000001a6", "/var/tmp/asterisk/message") in new stack [Apr 23 16:42:34] WARNING[26167]: file.c:766 ast_readaudio_callback: Failed to write frame -- <SIP/santiago-000001a6> Playing '/var/tmp/asterisk/message.gsm' (language 'en') [Apr 23 16:42:34] WARNING[26167]: app_playback.c:475 playback_exec: ast_streamfile failed on SIP/santiago-000001a6 for /var/tmp/asterisk/message == Spawn extension (gr_relay, 3101, 3) exited non-zero on 'SIP/santiago-000001a6' debian*CLI> quit Executing last minute cleanups |
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-24351.24547.17462 2014-04-23 16:42:40.586748130 +0300 +++ /etc/asterisk/extensions.conf 2014-04-23 16:42:58.614748433 +0300 @@ -23,7 +23,7 @@ exten => _3101,1,Dial(SIP/3101,2) exten => _3101,n,NoOp(Dial Status: ${DIALSTATUS}) exten => _3101,n,Dial(SIP/3102) -exten => _3101,n,NoOp(Dial Status: ${DIALSTATUS}) +exten => _3102,n,NoOp(Dial Status: ${DIALSTATUS}) [national] exten => _32XX,1,Dial(SIP/santiago/${EXTEN}) |
#[default]
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.8.13.1~dfsg1-3+deb7u3 currently running on debian (pid = 16994) ... -- Called SIP/3102 -- SIP/3102-000001ae is ringing -- Got SIP response 486 "Busy Here" back from 192.168.12.107:33784 -- SIP/3102-000001ae is busy == Everyone is busy/congested at this time (1:1/0/0) -- Auto fallthrough, channel 'SIP/santiago-000001ac' status is 'BUSY' -- Executing [h@gr_relay:1] Playback("SIP/santiago-000001ac", "/var/tmp/asterisk/message") in new stack == Spawn extension (gr_relay, h, 1) exited non-zero on 'SIP/santiago-000001ac' debian*CLI> quit Executing last minute cleanups |
#nano /etc/asterisk/extensions.conf
|
#[default]
GNU nano 2.2.6 File: /etc/asterisk/extensions.conf Modified [default] ;exten => 3101,1,Dial(SIP/3101) ;;exten => _31XX,1,Dial(SIP/${EXTEN}) ;;exten => _32XX,1,Dial(SIP/santiago/${EXTEN}) ;exten => _1XXX,1,Dial(SIP/kiev/${EXTEN}) ;;exten => _[12]XXX,1,Dial(SIP/kiev/${EXTEN}) ;;exten => _[12]3XX,1,Dial(SIP/kiev/${EXTEN}) ;;exten => _2[12]XX,1,Dial(SIP/kiev/${EXTEN}) ;;exten => _33XX,1,Dial(SIP/kiev/${EXTEN}) ... [fallback] exten => _.,1,Playback(/var/tmp/asterisk/message) [gr_relay] include => internal include => local include => national include => international include => fallback ^G Get Help ^O WriteOut ^R Read File ^Y Prev Page ^K Cut Text ^C Cur Pos ^X Exit ^J Justify ^W Where Is ^V Next Page ^U UnCut Text ^T To Spell |
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-24351.26221.2648 2014-04-23 16:57:35.866763258 +0300 +++ /etc/asterisk/extensions.conf 2014-04-23 17:10:48.186776647 +0300 @@ -18,17 +18,21 @@ exten => 8001,n,Hangup -[local] -;exten => _31XX,1,Dial(SIP/${EXTEN}) -exten => _3101,1,Dial(SIP/3101,2) -exten => _3101,n,NoOp(Dial Status: ${DIALSTATUS}) -exten => _3101,n,Goto(s-${DIALSTATUS}) +[macro-localcall]т + +exten => s,1,Dial(SIP/${ARG1},2) +exten => s,n,NoOp(Dial Status: ${DIALSTATUS}) +exten => s,n,Goto(s-${DIALSTATUS}) exten => s-NOANSWER,1,Dial(SIP/3102) exten => s-CONGESTION,1,Dial(SIP/3102) exten => s-ANSWER,1,Hangup exten => s-BUSY,1,Busy +[local] + +exten => _31XX,1,Macro(localcall,${EXTEN}) + [national] exten => _32XX,1,Dial(SIP/santiago/${EXTEN}) |
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-24351.6882.6281 2014-04-23 17:12:03.310777918 +0300 +++ /etc/asterisk/extensions.conf 2014-04-23 17:12:15.362778119 +0300 @@ -18,7 +18,7 @@ exten => 8001,n,Hangup -[macro-localcall]т +[macro-localcall] exten => s,1,Dial(SIP/${ARG1},2) exten => s,n,NoOp(Dial Status: ${DIALSTATUS}) |
#[default]
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.8.13.1~dfsg1-3+deb7u3 currently running on debian (pid = 16994) ... -- SIP/santiago-000001cd is ringing -- SIP/santiago-000001cd answered SIP/3101-000001cc -- Locally bridging SIP/3101-000001cc and SIP/santiago-000001cd -- Executing [h@gr1:1] Playback("SIP/3101-000001cc", "/var/tmp/asterisk/message") in new stack [Apr 23 17:16:00] WARNING[26334]: file.c:766 ast_readaudio_callback: Failed to write frame -- <SIP/3101-000001cc> Playing '/var/tmp/asterisk/message.gsm' (language 'en') [Apr 23 17:16:00] WARNING[26334]: app_playback.c:475 playback_exec: ast_streamfile failed on SIP/3101-000001cc for /var/tmp/asterisk/message == Spawn extension (gr1, 3201, 1) exited non-zero on 'SIP/3101-000001cc' debian*CLI> quit Executing last minute cleanups |
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-24351.2104.18776 2014-04-23 17:16:10.654782094 +0300 +++ /etc/asterisk/extensions.conf 2014-04-23 17:17:21.898783296 +0300 @@ -22,7 +22,7 @@ exten => s,1,Dial(SIP/${ARG1},2) exten => s,n,NoOp(Dial Status: ${DIALSTATUS}) -exten => s,n,Goto(s-${DIALSTATUS}) +exten => s,n,Goto(s-${DIALSTATUS},1) exten => s-NOANSWER,1,Dial(SIP/3102) exten => s-CONGESTION,1,Dial(SIP/3102) |
#[default]
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.8.13.1~dfsg1-3+deb7u3 currently running on debian (pid = 16994) ... -- Got SIP response 503 "Service Unavailable" back from 192.168.12.2:5060 -- SIP/kiev-000001ea is circuit-busy == Everyone is busy/congested at this time (1:0/1/0) -- Auto fallthrough, channel 'SIP/santiago-000001e9' status is 'CONGESTION' -- Executing [h@gr_relay:1] Playback("SIP/santiago-000001e9", "/var/tmp/asterisk/message") in new stack == Spawn extension (gr_relay, h, 1) exited non-zero on 'SIP/santiago-000001e9' debian*CLI> qui No such command 'qui' (type 'core show help qui' for other possible commands) debian*CLI> quit Executing last minute cleanups |
#nano /etc/asterisk/extensions.conf
|
#[default]
|
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-24351.15395.15250 2014-04-23 17:45:41.642812023 +0300 +++ /etc/asterisk/extensions.conf 2014-04-23 17:46:32.222812881 +0300 @@ -29,6 +29,8 @@ exten => s-ANSWER,1,Hangup exten => s-BUSY,1,Busy + +#include "/etc/asterisk/extensions.conf.local" [local] exten => _31XX,1,Macro(localcall,${EXTEN}) |
#[default]
|
#nano /etc/asterisk/extensions.conf
|
#[default]
GNU nano 2.2.6 File: /etc/asterisk/extensions.conf.local Modified [local] => international include => fallback ^G Get Help ^O WriteOut ^R Read File ^Y Prev Page ^K Cut Text ^C Cur Pos ^X Exit ^J Justify ^W Where Is ^V Next Page ^U UnCut Text ^T To Spell |
#asterisk -rvvvvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.8.13.1~dfsg1-3+deb7u3 currently running on debian (pid = 16994) Verbosity is at least 5 debian*CLI> quit Executing last minute cleanups |
#asterisk -rvvvvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.8.13.1~dfsg1-3+deb7u3 currently running on debian (pid = 16994) Verbosity is at least 5 debian*CLI> quit Executing last minute cleanups |
#asterisk -rv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.8.13.1~dfsg1-3+deb7u3 currently running on debian (pid = 16994) Verbosity is at least 5 debian*CLI> ... == Using SIP RTP CoS mark 5 -- Called SIP/kiev/3301 -- SIP/kiev-000001f3 is ringing == Spawn extension (gr_relay, 3301, 1) exited non-zero on 'SIP/santiago-000001f2' -- Executing [h@gr_relay:1] Playback("SIP/santiago-000001f2", "/var/tmp/asterisk/message") in new stack == Spawn extension (gr_relay, h, 1) exited non-zero on 'SIP/santiago-000001f2' -- Registered SIP '3102' at 192.168.12.107:61010 [Apr 24 09:50:48] NOTICE[17032]: chan_sip.c:24850 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 3102 debian*CLI> quit Executing last minute cleanups |
#nano /etc/asterisk/sip.conf
--- /tmp/l3-saved-24351.29218.7917 2014-04-24 09:51:27.839791191 +0300 +++ /etc/asterisk/sip.conf 2014-04-24 09:51:42.435791435 +0300 @@ -17,7 +17,7 @@ type=friend secret=1234 host=dynamic -context=gr3 +context=gr1 [3103] type=friend |
#[general]
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.8.13.1~dfsg1-3+deb7u3 currently running on debian (pid = 16994) Verbosity is at least 5 == Using SIP RTP CoS mark 5 ... -- Executing [s@macro-localcall:1] Dial("SIP/kiev-000001ff", "SIP/3102,2") in new stack == Using SIP RTP CoS mark 5 -- Called SIP/3102 -- SIP/3102-00000200 is ringing == Spawn extension (macro-localcall, s, 1) exited non-zero on 'SIP/kiev-000001ff' in macro 'localcall' == Spawn extension (gr_relay, 3102, 1) exited non-zero on 'SIP/kiev-000001ff' -- Executing [h@gr_relay:1] Playback("SIP/kiev-000001ff", "/var/tmp/asterisk/message") in new stack == Spawn extension (gr_relay, h, 1) exited non-zero on 'SIP/kiev-000001ff' debian*CLI> quit Executing last minute cleanups |
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-24351.71.26139 2014-04-24 10:01:30.571801373 +0300 +++ /etc/asterisk/extensions.conf 2014-04-24 10:06:29.567806424 +0300 @@ -12,10 +12,16 @@ [internal] -exten => 8001,1,Answer -exten => 8001,n,Record(/var/tmp/asterisk/message:gsm,2) -exten => 8001,n,Playback(/var/tmp/asterisk/message) -exten => 8001,n,Hangup +;exten => 8001,1,Answer +;exten => 8001,n,Record(/var/tmp/asterisk/message:gsm,2) +;exten => 8001,n,Playback(/var/tmp/asterisk/message) +;exten => 8001,n,Hangup + +exten => _80XX,1,Answer +exten => _80XX,n,Record(/var/tmp/asterisk/message${EXTEN:2}:gsm,2) +exten => _80XX,n,Playback(/var/tmp/asterisk/message${EXTEN:2}) +exten => _80XX,n,Hangup + [macro-localcall] |
#[default]
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.8.13.1~dfsg1-3+deb7u3 currently running on debian (pid = 16994) Verbosity is at least 5 debian*CLI> dialplan reload ... -- Time to scan old dialplan and merge leftovers back into the new: 0.000818 sec -- Time to restore hints and swap in new dialplan: 0.000003 sec -- Time to delete the old dialplan: 0.000053 sec -- Total time merge_contexts_delete: 0.000874 sec debian*CLI> qui No such command 'qui' (type 'core show help qui' for other possible commands) debian*CLI> qui No such command 'qui' (type 'core show help qui' for other possible commands) debian*CLI> quit Executing last minute cleanups |
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-24351.32087.4065 2014-04-24 10:07:28.603807430 +0300 +++ /etc/asterisk/extensions.conf 2014-04-24 10:09:06.963809079 +0300 @@ -22,6 +22,7 @@ exten => _80XX,n,Playback(/var/tmp/asterisk/message${EXTEN:2}) exten => _80XX,n,Hangup +; ${VARIABLE:start:length} [macro-localcall] |
#[default]
.ICE-unix/ .X11-unix/ pulse-HGY7lVsaJOWt/ pulse-xiEH4iN5mfCH/ tracker-user/ .X0-lock orbit-user/ pulse-PKdhtXMmr18n/ ssh-28W5T68mG4yT/ |
#ls /tmp/
.ICE-unix/ .X11-unix/ pulse-HGY7lVsaJOWt/ pulse-xiEH4iN5mfCH/ tracker-user/ .X0-lock orbit-user/ pulse-PKdhtXMmr18n/ ssh-28W5T68mG4yT/ |
#ls /tmp/
.ICE-unix/ .X11-unix/ pulse-HGY7lVsaJOWt/ pulse-xiEH4iN5mfCH/ tracker-user/ .X0-lock orbit-user/ pulse-PKdhtXMmr18n/ ssh-28W5T68mG4yT/ |
#ls /var/tmp/asterisk/
message.gsm message02.gsm message03.gsm |
#asterisk -rv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.8.13.1~dfsg1-3+deb7u3 currently running on debian (pid = 16994) Verbosity is at least 5 == Using SIP RTP CoS mark 5 ... -- Executing [8002@gr1:4] Hangup("SIP/3101-00000203", "") in new stack == Spawn extension (gr1, 8002, 4) exited non-zero on 'SIP/3101-00000203' -- Executing [h@gr1:1] Playback("SIP/3101-00000203", "/var/tmp/asterisk/message") in new stack [Apr 24 10:11:21] WARNING[28191]: file.c:766 ast_readaudio_callback: Failed to write frame -- <SIP/3101-00000203> Playing '/var/tmp/asterisk/message.gsm' (language 'en') [Apr 24 10:11:21] WARNING[28191]: app_playback.c:475 playback_exec: ast_streamfile failed on SIP/3101-00000203 for /var/tmp/asterisk/message debian*CLI> do No such command 'do' (type 'core show help do' for other possible commands) debian*CLI> quit Executing last minute cleanups |
#ls /var/tmp/asterisk/
message.gsm message02.gsm message03.gsm |
#asterisk -rv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.8.13.1~dfsg1-3+deb7u3 currently running on debian (pid = 16994) Verbosity is at least 5 == Using SIP RTP CoS mark 5 ... -- Called SIP/santiago/3201 -- SIP/santiago-00000205 is ringing -- Got SIP response 503 "Service Unavailable" back from 192.168.12.8:5060 -- SIP/santiago-00000205 is circuit-busy == Everyone is busy/congested at this time (1:0/1/0) -- Auto fallthrough, channel 'SIP/3101-00000204' status is 'CONGESTION' -- Executing [h@gr1:1] Playback("SIP/3101-00000204", "/var/tmp/asterisk/message") in new stack == Spawn extension (gr1, h, 1) exited non-zero on 'SIP/3101-00000204' debian*CLI> quit Executing last minute cleanups |
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-24351.12636.5026 2014-04-24 10:17:11.703817273 +0300 +++ /etc/asterisk/extensions.conf 2014-04-24 10:19:27.243819569 +0300 @@ -22,12 +22,15 @@ exten => _80XX,n,Playback(/var/tmp/asterisk/message${EXTEN:2}) exten => _80XX,n,Hangup + ; ${VARIABLE:start:length} [macro-localcall] -exten => s,1,Dial(SIP/${ARG1},2) +exten => s,1,Answer +exten => s,n,Monitor(wav,monitor,m) +exten => s,n,Dial(SIP/${ARG1},2) exten => s,n,NoOp(Dial Status: ${DIALSTATUS}) exten => s,n,Goto(s-${DIALSTATUS},1) |
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-24351.10648.30997 2014-04-24 10:20:23.183820512 +0300 +++ /etc/asterisk/extensions.conf 2014-04-24 10:20:33.707820687 +0300 @@ -18,7 +18,7 @@ ;exten => 8001,n,Hangup exten => _80XX,1,Answer -exten => _80XX,n,Record(/var/tmp/asterisk/message${EXTEN:2}:gsm,2) +exten => _80XX,n,Record(/var/tmp/asterisk/message${EXTEN:2}:gsm,10) exten => _80XX,n,Playback(/var/tmp/asterisk/message${EXTEN:2}) exten => _80XX,n,Hangup |
#[default]
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.8.13.1~dfsg1-3+deb7u3 currently running on debian (pid = 16994) Verbosity is at least 5 debian*CLI> dialplan reload ... -- Called SIP/santiago/3201 -- SIP/santiago-0000020b answered SIP/3101-0000020a -- Locally bridging SIP/3101-0000020a and SIP/santiago-0000020b -- Executing [h@gr1:1] Playback("SIP/3101-0000020a", "/var/tmp/asterisk/message") in new stack [Apr 24 10:21:33] WARNING[28282]: file.c:766 ast_readaudio_callback: Failed to write frame -- <SIP/3101-0000020a> Playing '/var/tmp/asterisk/message.gsm' (language 'en') [Apr 24 10:21:33] WARNING[28282]: app_playback.c:475 playback_exec: ast_streamfile failed on SIP/3101-0000020a for /var/tmp/asterisk/message == Spawn extension (gr1, 3201, 1) exited non-zero on 'SIP/3101-0000020a' debian*CLI> quit Executing last minute cleanups |
#ls /var/spool/asterisk/
dictate meetme monitor outgoing system tmp voicemail |
#ls /var/spool/asterisk/monitor/
|
#ls -la /var/spool/asterisk/
total 36 drwxr-x--- 9 asterisk asterisk 4096 Apr 22 14:27 . drwxr-xr-x 8 root root 4096 Apr 22 14:27 .. drwxr-x--- 2 asterisk asterisk 4096 Jan 4 03:07 dictate drwxr-x--- 2 asterisk asterisk 4096 Jan 4 03:07 meetme drwxr-x--- 2 asterisk asterisk 4096 Jan 4 03:07 monitor drwxr-x--- 2 asterisk asterisk 4096 Jan 4 03:07 outgoing drwxr-x--- 2 asterisk asterisk 4096 Jan 4 03:07 system drwxr-x--- 2 asterisk asterisk 4096 Jan 4 03:07 tmp drwxr-x--- 2 asterisk asterisk 4096 Jan 4 03:07 voicemail |
#nano /etc/asterisk/extensions.conf
|
#[default]
total 192 drwxr-x--- 2 asterisk asterisk 4096 Apr 24 10:24 . drwxr-x--- 9 asterisk asterisk 4096 Apr 22 14:27 .. -rw-rw---- 1 asterisk asterisk 185324 Apr 24 10:24 monitor.wav |
#ls -la /var/spool/asterisk/monitor/
total 192 drwxr-x--- 2 asterisk asterisk 4096 Apr 24 10:24 . drwxr-x--- 9 asterisk asterisk 4096 Apr 22 14:27 .. -rw-rw---- 1 asterisk asterisk 185324 Apr 24 10:24 monitor.wav |
#ls -la /var/spool/asterisk/monitor/
total 192 drwxr-x--- 2 asterisk asterisk 4096 Apr 24 10:24 . drwxr-x--- 9 asterisk asterisk 4096 Apr 22 14:27 .. -rw-rw---- 1 asterisk asterisk 185324 Apr 24 10:24 monitor.wav |
#ls -la /var/spool/asterisk/monitor/
total 216 drwxr-x--- 2 asterisk asterisk 4096 Apr 24 10:26 . drwxr-x--- 9 asterisk asterisk 4096 Apr 22 14:27 .. -rw-rw---- 1 asterisk asterisk 211884 Apr 24 10:26 monitor.wav |
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-24351.16925.28221 2014-04-24 10:32:22.467832666 +0300 +++ /etc/asterisk/extensions.conf 2014-04-24 10:41:16.451841689 +0300 @@ -25,6 +25,15 @@ ; ${VARIABLE:start:length} +[macro-outgoingcall] + +; ${ARG1} - outgoing channel + extension + +exten => s,1,Answer +exten => s,n,Monitor(wav,monitor,m) +exten => s,n,Dial(${ARG1}) + + [macro-localcall] @@ -43,18 +52,19 @@ #include "/etc/asterisk/extensions.conf.local" [national] -exten => _32XX,1,Dial(SIP/santiago/${EXTEN}) +;exten => _32XX,1,Dial(SIP/santiago/${EXTEN}) +exten => _32XX,1,Macro(outgoingcall,SIP/santiago/${EXTEN}) [international] -exten => _[12]XXX,1,Dial(SIP/kiev/${EXTEN}) -exten => _[12]3XX,1,Dial(SIP/kiev/${EXTEN}) -exten => _2[12]XX,1,Dial(SIP/kiev/${EXTEN}) -exten => _33XX,1,Dial(SIP/kiev/${EXTEN}) -exten => _14XX,1,Dial(SIP/kiev/${EXTEN}) +exten => _[12]XXX,1,Macro(outgoingcall,SIP/kiev/${EXTEN}) +exten => _[12]3XX,1,Macro(outgoingcall,SIP/kiev/${EXTEN}) +exten => _2[12]XX,1,Macro(outgoingcall,SIP/kiev/${EXTEN}) +exten => _33XX,1,Macro(outgoingcall,SIP/kiev/${EXTEN}) +exten => _14XX,1,Macro(outgoingcall,SIP/kiev/${EXTEN}) [fallback] -exten => _.,1,Playback(/var/tmp/asterisk/message) +;exten => _.,1,Playback(/var/tmp/asterisk/message) [gr_relay] |
#asterisk -rx 'dialplan reload'
Dialplan reloaded. |
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-24351.31324.20069 2014-04-24 10:42:02.735842471 +0300 +++ /etc/asterisk/extensions.conf 2014-04-24 10:44:00.763844465 +0300 @@ -39,7 +39,7 @@ exten => s,1,Answer exten => s,n,Monitor(wav,monitor,m) -exten => s,n,Dial(SIP/${ARG1},2) +exten => s,n,Dial(SIP/${ARG1},10) exten => s,n,NoOp(Dial Status: ${DIALSTATUS}) exten => s,n,Goto(s-${DIALSTATUS},1) |
#[default]
Dialplan reloaded. |
#ls -la /var/spool/asterisk/monitor/
total 136 drwxr-x--- 2 asterisk asterisk 4096 Apr 24 10:44 . drwxr-x--- 9 asterisk asterisk 4096 Apr 22 14:27 .. -rw-rw---- 1 asterisk asterisk 130444 Apr 24 10:44 monitor.wav |
#nano /etc/asterisk/extensions.conf
|
#[default]
Dialplan reloaded. |
#ls -la /var/spool/asterisk/monitor/
total 208 drwxr-x--- 2 asterisk asterisk 4096 Apr 24 10:50 . drwxr-x--- 9 asterisk asterisk 4096 Apr 22 14:27 .. -rw-rw---- 1 asterisk asterisk 34412 Apr 24 10:50 monitor-in.wav -rw-rw---- 1 asterisk asterisk 32812 Apr 24 10:50 monitor-out.wav -rw-rw---- 1 asterisk asterisk 130444 Apr 24 10:44 monitor.wav |
#ls -la /var/spool/asterisk/monitor/
total 240 drwxr-x--- 2 asterisk asterisk 4096 Apr 24 10:51 . drwxr-x--- 9 asterisk asterisk 4096 Apr 22 14:27 .. -rw-rw---- 1 asterisk asterisk 234604 Apr 24 10:51 monitor.wav |
#ls -la /var/spool/asterisk/monitor/
total 240 drwxr-x--- 2 asterisk asterisk 4096 Apr 24 10:51 . drwxr-x--- 9 asterisk asterisk 4096 Apr 22 14:27 .. -rw-rw---- 1 asterisk asterisk 234604 Apr 24 10:51 monitor.wav |
#nano /etc/asterisk/extensions.conf
|
#[default]
|
#ls -la /var/spool/asterisk/monitor/
total 624 drwxr-x--- 2 asterisk asterisk 4096 Apr 24 10:52 . drwxr-x--- 9 asterisk asterisk 4096 Apr 22 14:27 .. -rw-rw---- 1 asterisk asterisk 193324 Apr 24 10:52 3201-2101-1398325930.wav -rw-rw---- 1 asterisk asterisk 194604 Apr 24 10:52 3201-3101-1398325951.wav -rw-rw---- 1 asterisk asterisk 234604 Apr 24 10:51 monitor.wav |
#nano /etc/asterisk/extensions.conf
|
#[default]
|
#^C
|
#ntpdate ntp.lucky.net
24 Apr 11:31:43 ntpdate[28819]: step time server 193.193.193.107 offset 2.481400 sec |
#cat /etc/asterisk/extensions.conf
[default] [internal] exten => _80XX,1,Answer exten => _80XX,n,Record(/var/tmp/asterisk/message${EXTEN:2}:gsm,10) exten => _80XX,n,Playback(/var/tmp/asterisk/message${EXTEN:2}) exten => _80XX,n,Hangup ; ${VARIABLE:start:length} [macro-outgoingcall] ; ${ARG1} - outgoing channel + extension ; EPOCH = seconds since 1.01.1970 ... include => fallback [gr2] include => internal include => local include => national include => fallback [gr3] include => internal include => local include => fallback |
[default] [internal] exten => _80XX,1,Answer exten => _80XX,n,Record(/var/tmp/asterisk/message${EXTEN:2}:gsm,10) exten => _80XX,n,Playback(/var/tmp/asterisk/message${EXTEN:2}) exten => _80XX,n,Hangup ; ${VARIABLE:start:length} [macro-outgoingcall] ; ${ARG1} - outgoing channel + extension ; EPOCH = seconds since 1.01.1970 exten => s,1,Answer exten => s,n,Set(CALLFILENAME=${MACRO_EXTEN}-${CALLERID(num)}-${EPOCH}) exten => s,n,Monitor(wav,${CALLFILENAME},m) exten => s,n,Dial(${ARG1}) [macro-localcall] ; ${ARG1} ; ${ARG2} exten => s,1,Answer exten => s,n,Monitor(wav,monitor,m) exten => s,n,Dial(SIP/${ARG1},10) exten => s,n,NoOp(Dial Status: ${DIALSTATUS}) exten => s,n,Goto(s-${DIALSTATUS},1) exten => s-NOANSWER,1,Dial(SIP/3102) exten => s-CONGESTION,1,Dial(SIP/3102) exten => s-ANSWER,1,Hangup exten => s-BUSY,1,Busy #include "/etc/asterisk/extensions.conf.local" [national] ;exten => _32XX,1,Dial(SIP/santiago/${EXTEN}) exten => _32XX,1,Macro(outgoingcall,SIP/santiago/${EXTEN}) [international] exten => _[12]XXX,1,Macro(outgoingcall,SIP/kiev/${EXTEN}) exten => _[12]3XX,1,Macro(outgoingcall,SIP/kiev/${EXTEN}) exten => _2[12]XX,1,Macro(outgoingcall,SIP/kiev/${EXTEN}) exten => _33XX,1,Macro(outgoingcall,SIP/kiev/${EXTEN}) exten => _14XX,1,Macro(outgoingcall,SIP/kiev/${EXTEN}) [fallback] ;exten => _.,1,Playback(/var/tmp/asterisk/message) [gr_relay] include => internal include => local include => national include => international include => fallback [gr1] include => internal include => local include => national include => international include => fallback [gr2] include => internal include => local include => national include => fallback [gr3] include => internal include => local include => fallback
Время первой команды журнала | 12:11:33 2014- 4-23 | |||||||||||||||||||||||||||||||||
Время последней команды журнала | 10:31:43 2014- 4-24 | |||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 0.00 | |||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.00 | |||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 4.84 | |||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.35 | |||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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