/l3/users/sergs/asterisk/linux5.unix.nt/root :1 :2 :3 :4 :5 :6 |
|
#vim sip.conf
--- /tmp/l3-saved-13737.20160.9138 2010-05-26 11:59:35.000000000 +0300 +++ sip.conf 2010-05-26 12:00:14.000000000 +0300 @@ -1,6 +1,6 @@ [general] context=default -register => crimea:password@192.168.1.1/dnepr +register => crimea:password@192.168.7.1/dnepr register => crimea:password@192.168.2.1/kiev register => crimea:password@192.168.3.1/odessa register => crimea:password@192.168.4.1/kharkov |
#vim extensions.conf
--- /tmp/l3-saved-13737.20734.25197 2010-05-26 12:00:16.000000000 +0300 +++ extensions.conf 2010-05-26 12:00:52.000000000 +0300 @@ -27,4 +27,5 @@ include => corp include => world +[gr4] |
#vim extensions.conf
|
#vim extensions.conf
--- /tmp/l3-saved-13737.2690.4396 2010-05-26 12:01:16.000000000 +0300 +++ extensions.conf 2010-05-26 12:02:05.000000000 +0300 @@ -27,5 +27,3 @@ include => corp include => world -[gr4] - |
#ps -ax | grep gpm
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html 5156 ? Ss 0:05 /usr/sbin/gpm -m /dev/input/mice -t exps2 14653 pts/0 S+ 0:00 grep gpm |
#kill -HUP 5156
|
#ps -ax | grep gpm
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html 5156 ? Ss 0:05 /usr/sbin/gpm -m /dev/input/mice -t exps2 14669 pts/0 S+ 0:00 grep gpm |
#kill -9 5156
|
#/usr/sbin/gpm -m /dev/input/mice -t exps2
|
#~
|
#vi extensions.conf
|
#E37: No write since last change (add ! to override)
[default] exten => 8000,1, Answer exten => 8000,n, Wait(1) exten => 8000,n, Playback(demo-thanks) "extensions.conf" 29L, 498C include => local include => corp include => world [gr4] include => local include => corp include => world world ~ "extensions.conf" 33L, 539C written [gr1] include => local [gr2] include => local include => corp |
#vim extensions.conf
|
#:q
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': Found == Parsing '/etc/asterisk/extconfig.conf': Found Connected to Asterisk 1.4.21.2~dfsg-3+lenny1 currently running on linux5 (pid = 12808) Verbosity is at least 3 [May 26 12:07:53] NOTICE[12826]: chan_sip.c:14441 handle_request_invite: Call from 'crimea' to extension '301' rejected because extension not found. [May 26 12:08:01] NOTICE[12826]: chan_sip.c:7515 sip_reg_timeout: -- Registration for 'crimea@192.168.7.1' timed out, trying again (Attempt #3) linux5*CLI> quit Executing last minute cleanups |
#vim sip.conf
--- /tmp/l3-saved-14623.9798.21187 2010-05-26 12:08:16.000000000 +0300 +++ sip.conf 2010-05-26 12:08:31.000000000 +0300 @@ -45,7 +45,5 @@ secret=password host=dynamic username=crimea -limitonpeers=yes -call-limit=1 |
#vim extensions.conf
|
#vim extensions.conf
|
#vim extensions.conf
--- /tmp/l3-saved-14623.4779.11778 2010-05-26 12:10:15.000000000 +0300 +++ extensions.conf 2010-05-26 12:10:26.000000000 +0300 @@ -10,7 +10,7 @@ exten => _4XX,1,Dial(SIP/kharkov/${EXTEN}) exten => _3XX,1,Dial(SIP/odessa/${EXTEN}) exten => _2XX,1,Dial(SIP/kiev/${EXTEN}) -exten => _1XX,1,Dial(SIP/dnepr/${EXTEN}) +exten => _7XX,1,Dial(SIP/dnepr/${EXTEN}) [world] exten => _380XXXXXXXXX,1,Dial(SIP/odessa/${EXTEN}) |
#vim sip.conf
--- /tmp/l3-saved-14623.8320.21717 2010-05-26 12:10:28.000000000 +0300 +++ sip.conf 2010-05-26 12:10:44.000000000 +0300 @@ -1,6 +1,6 @@ [general] context=default -register => crimea:password@192.168.7.1/dnepr +register => crimea:password@192.168.1.1/dnepr register => crimea:password@192.168.2.1/kiev register => crimea:password@192.168.3.1/odessa register => crimea:password@192.168.4.1/kharkov |
#vim extensions.conf
|
#asterisk -vvvr
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... == Parsing '/etc/asterisk/iax.conf': Found == Parsing '/etc/asterisk/users.conf': Found == Parsing '/etc/asterisk/iaxprov.conf': Found -- Loaded provisioning template 'default' -- Executing [501@gr1:1] Dial("SIP/crimea-b5d0a370", "SIP/501") in new stack -- Called 501 -- SIP/501-081d2588 is ringing == Spawn extension (gr1, 501, 1) exited non-zero on 'SIP/crimea-b5d0a370' linux5*CLI> quit Executing last minute cleanups |
#vim sip.conf
--- /tmp/l3-saved-14623.19444.26891 2010-05-26 12:13:43.000000000 +0300 +++ sip.conf 2010-05-26 12:14:12.000000000 +0300 @@ -41,7 +41,7 @@ call-limit=1 [kharkov] -context=gr3 +context=gr2 type=friend secret=password host=dynamic |
#vim extensions.conf
--- /tmp/l3-saved-14623.1990.948 2010-05-26 12:14:25.000000000 +0300 +++ extensions.conf 2010-05-26 12:15:06.000000000 +0300 @@ -1,9 +1,9 @@ [default] + +[local] exten => 8000,1, Answer exten => 8000,n, Wait(1) exten => 8000,n, Playback(demo-thanks) - -[local] exten => _5XX,1,Dial(SIP/${EXTEN}) [corp] |
#vim sip.conf
|
#register => crimea:password@192.168.1.1/dnepr
[gr3] include => local include => corp include => world [gr4] include => local include => world |
#[local]
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... -- Executing [501@gr1:1] Dial("SIP/crimea-b5d0fb08", "SIP/501") in new stack -- Called 501d -- SIP/501-081d1ea0 is ringing [May 26 12:27:07] NOTICE[12826]: chan_sip.c:14441 handle_request_invite: Call from '501' to extension '301' rejected because extension not found. == Spawn extension (gr1, 501, 1) exited non-zero on 'SIP/crimea-b5d0fb08' [May 26 12:27:19] NOTICE[12826]: chan_sip.c:14441 handle_request_invite: Call from '501' to extension '301' rejected because extension not found. [May 26 12:27:29] NOTICE[12826]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 502 [May 26 12:27:30] NOTICE[12826]: chan_sip.c:14441 handle_request_invite: Call from '501' to extension '301' rejected because extension not found. linux5*CLI> quit Executing last minute cleanups |
#vim extensions.conf
|
#asterisk -vvvr
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... [May 26 12:28:06] NOTICE[12826]: chan_sip.c:14668 handle_request_invite: Unable to create/find SIP channel for this INVITE [May 26 12:28:22] NOTICE[12826]: chan_sip.c:14441 handle_request_invite: Call from '501' to extension '401' rejected because extension not found. [May 26 12:28:38] NOTICE[12826]: chan_sip.c:14441 handle_request_invite: Call from '501' to extension '301' rejected because extension not found. -- Executing [502@gr4:1] Dial("SIP/501-b5d0fb08", "SIP/502") in new stack -- Called 502 -- SIP/502-081d1ea0 is ringing == Spawn extension (gr4, 502, 1) exited non-zero on 'SIP/501-b5d0fb08' [May 26 12:28:59] NOTICE[12826]: chan_sip.c:14441 handle_request_invite: Call from '501' to extension '401' rejected because extension not found. linux5*CLI> quit Executing last minute cleanups |
#vim sip.conf
--- /tmp/l3-saved-14623.27590.6462 2010-05-26 12:29:05.000000000 +0300 +++ sip.conf 2010-05-26 12:29:17.000000000 +0300 @@ -7,7 +7,7 @@ [501] -context=gr4 +context=gr3 type=friend secret=password host=dynamic |
#asterisk -vvvr
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... Reloading SIP == Parsing '/etc/asterisk/sip.conf': Found == Parsing '/etc/asterisk/users.conf': Found == Parsing '/etc/asterisk/sip_notify.conf': Found -- Executing [401@gr3:1] Dial("SIP/501-b5d18260", "SIP/kharkov/401") in new stack -- Called kharkov/401 -- SIP/kharkov-081d1ea0 is ringing == Spawn extension (gr3, 401, 1) exited non-zero on 'SIP/501-b5d18260' linux5*CLI> quit Executing last minute cleanups |
#vim sip.conf
|
#type=friend
-- INSERT -- include => corp -- INSERT -- include => world -- INSERT -- [gr4] -- INSERT -- include => local -- INSERT -- include => world -- INSERT -- "extensions.conf" 33L, 540C written |
#asterisk -vvvr
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... Connected to Asterisk 1.4.21.2~dfsg-3+lenny1 currently running on linux5 (pid = 12808) Verbosity is at least 3 linux5*CLI> sip reload Reloading SIP == Parsing '/etc/asterisk/sip.conf': Found == Parsing '/etc/asterisk/users.conf': Found == Parsing '/etc/asterisk/sip_notify.conf': Found [May 26 12:32:10] NOTICE[12826]: chan_sip.c:14441 handle_request_invite: Call from '501' to extension '4401' rejected because extension not found. linux5*CLI> quit Executing last minute cleanups |
#vim extensions.conf
--- /tmp/l3-saved-14623.3909.24596 2010-05-26 12:32:37.000000000 +0300 +++ extensions.conf 2010-05-26 12:33:37.000000000 +0300 @@ -7,10 +7,15 @@ exten => _5XX,1,Dial(SIP/${EXTEN}) [corp] -exten => _4XXX,1,Dial(SIP/kharkov/${EXTEN}) -exten => _3XXX,1,Dial(SIP/odessa/${EXTEN}) -exten => _2XXX,1,Dial(SIP/kiev/${EXTEN}) -exten => _7XXX,1,Dial(SIP/dnepr/${EXTEN}) +exten => _4XXX,1,Dial(SIP/kharkov/${EXTEN:1}) +exten => _3XXX,1,Dial(SIP/odessa/${EXTEN:1}) +exten => _2XXX,1,Dial(SIP/kiev/${EXTEN:1}) +exten => _7XXX,1,Dial(SIP/dnepr/${EXTEN:1}) +exten => _4XX,1,Dial(SIP/kharkov/${EXTEN}) +exten => _3XX,1,Dial(SIP/odessa/${EXTEN}) +exten => _2XX,1,Dial(SIP/kiev/${EXTEN}) +exten => _7XX,1,Dial(SIP/dnepr/${EXTEN}) + [world] exten => _380XXXXXXXXX,1,Dial(SIP/odessa/${EXTEN}) |
#asterisk -vvvr
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... -- SIP/kharkov-081d2988 answered SIP/501-b5d16e08 -- Native bridging SIP/501-b5d16e08 and SIP/kharkov-081d2988 == Spawn extension (gr3, 4800, 1) exited non-zero on 'SIP/501-b5d16e08' -- Executing [800@gr2:1] Answer("SIP/crimea-081d2988", "") in new stack -- Executing [800@gr2:2] Wait("SIP/crimea-081d2988", "1") in new stack -- Executing [800@gr2:3] Playback("SIP/crimea-081d2988", "demo-thanks") in new stack -- <SIP/crimea-081d2988> Playing 'demo-thanks' (language 'en') == Spawn extension (gr2, 800, 3) exited non-zero on 'SIP/crimea-081d2988' linux5*CLI> quit Executing last minute cleanups |
#vim extensions.conf
--- /tmp/l3-saved-14623.14318.28833 2010-05-26 12:35:51.000000000 +0300 +++ extensions.conf 2010-05-26 12:36:33.000000000 +0300 @@ -5,6 +5,10 @@ exten => 800,n, Wait(1) exten => 800,n, Playback(demo-thanks) exten => _5XX,1,Dial(SIP/${EXTEN}) +exten => 801,1,Answer +exten => 801,n,Wait(1) +exten => 801,n,Record(/var/tmp/greetings:gsm,2) + [corp] exten => _4XXX,1,Dial(SIP/kharkov/${EXTEN:1}) |
#asterisk -vvvr
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... == Parsing '/etc/asterisk/users.conf': Found == Parsing '/etc/asterisk/iaxprov.conf': Found -- Loaded provisioning template 'default' -- Executing [801@gr3:1] Answer("SIP/501-b5d0a370", "") in new stack -- Executing [801@gr3:2] Wait("SIP/501-b5d0a370", "1") in new stack -- Executing [801@gr3:3] Record("SIP/501-b5d0a370", "/var/tmp/greetings:gsm|2") in new stack -- <SIP/501-b5d0a370> Playing 'beep' (language 'en') == Auto fallthrough, channel 'SIP/501-b5d0a370' status is 'UNKNOWN' linux5*CLI> quit Executing last minute cleanups |
#vim extensions.conf
|
#exten => 800,n, Wait(1
[corp]sions.conf" 42L, 809C exten => _4XXX,1,Dial(SIP/kharkov/${EXTEN:1}) exten => _3XXX,1,Dial(SIP/odessa/${EXTEN:1}) exten => _2XXX,1,Dial(SIP/kiev/${EXTEN:1}) exten => _7XXX,1,Dial(SIP/dnepr/${EXTEN:1}) exten => _4XX,1,Dial(SIP/kharkov/${EXTEN}) exten => _3XX,1,Dial(SIP/odessa/${EXTEN}) exten => _2XX,1,Dial(SIP/kiev/${EXTEN}) exten => _7XX,1,Dial(SIP/dnepr/${EXTEN}) [world] |
#exten => 800,n, Playback(emo-thanks)
[corp]sions.conf" 42L, 809C exten => 800,n, Wait(1SIP/kharkov/${EXTEN:1}) k(/var/tmp/greetings) exten => _3XXX,1,Dial(IIP/odessa/${EXTEN:1}) exten => _2XXX,1,Dial(SIP/kiev/${EXTEN:1}) exten => _7XXX,1,Dial(SIP/dnepr/${EXTEN:1}) exten => _4XX,1,Dial(SIP/kharkov/${EXTEN}) exten => _3XX,1,Dial(SIP/odessa/${EXTEN}) exten => _2XX,1,Dial(SIP/kiev/${EXTEN}) exten => _7XX,1,Dial(SIP/dnepr/${EXTEN}) "extensions.conf" 42L, 816C written |
#asterisk -vvvr
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... -- Got SIP response 503 "Unavailable" back from 192.168.1.1 == Spawn extension (gr3, 7800, 1) exited non-zero on 'SIP/501-b5d0e398' -- Executing [4800@gr3:1] Dial("SIP/501-b5d0e398", "SIP/kharkov/800") in new stack -- Called kharkov/800 -- SIP/kharkov-081d2160 answered SIP/501-b5d0e398 -- Native bridging SIP/501-b5d0e398 and SIP/kharkov-081d2160 == Spawn extension (gr3, 4800, 1) exited non-zero on 'SIP/501-b5d0e398' [May 26 12:42:30] NOTICE[12826]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 502 linux5*CLI> quit Executing last minute cleanups |
#cd /var/tmp
|
#ls
greetings.gsm |
#asterisk -vvvr
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... -- SIP/kiev-081e01c8 answered SIP/501-081dec38 -- Native bridging SIP/501-081dec38 and SIP/kiev-081e01c8 == Spawn extension (gr3, 2800, 1) exited non-zero on 'SIP/501-081dec38' -- Executing [7800@gr3:1] Dial("SIP/501-081d2160", "SIP/dnepr/800") in new stack -- Called dnepr/800 -- SIP/dnepr-081e1d48 is circuit-busy == Everyone is busy/congested at this time (1:0/1/0) == Auto fallthrough, channel 'SIP/501-081d2160' status is 'CONGESTION' quit Executing last minute cleanups |
#cd /var/tmp
|
#asterisk -vvvr
|
#cd /etc/asterisk/
|
#vim extensions.conf
|
#asterisk -vvvr
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... == Spawn extension (gr3, 4800, 1) exited non-zero on 'SIP/501-081dec38' [May 26 12:46:57] NOTICE[12826]: chan_sip.c:14441 handle_request_invite: Call from '501' to extension '5800' rejected because extension not found. -- Executing [800@gr3:1] Answer("SIP/501-081e4730", "") in new stack -- Executing [800@gr3:2] Wait("SIP/501-081e4730", "1") in new stack -- Executing [800@gr3:3] Playback("SIP/501-081e4730", "/var/tmp/greetings") in new stack -- <SIP/501-081e4730> Playing '/var/tmp/greetings' (language 'en') == Spawn extension (gr3, 800, 3) exited non-zero on 'SIP/501-081e4730' [May 26 12:48:30] NOTICE[12826]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 502 linux5*CLI> quit Executing last minute cleanups |
#vim extensions.conf
--- /tmp/l3-saved-14623.13384.29632 2010-05-26 12:49:16.000000000 +0300 +++ extensions.conf 2010-05-26 12:49:50.000000000 +0300 @@ -11,7 +11,8 @@ [corp] -exten => _4XXX,1,Dial(SIP/kharkov/${EXTEN:1}) +exten => _4XXX,1,Set(CALLERID(all)=Privet <123>) +exten => _4XXX,n,Dial(SIP/kharkov/${EXTEN:1}) exten => _3XXX,1,Dial(SIP/odessa/${EXTEN:1}) exten => _2XXX,1,Dial(SIP/kiev/${EXTEN:1}) exten => _7XXX,1,Dial(SIP/dnepr/${EXTEN:1}) |
#asterisk -vvvr
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... -- Called kharkov/401 -- SIP/kharkov-081e4398 is ringing == Spawn extension (gr3, 4401, 2) exited non-zero on 'SIP/501-081e0420' -- Executing [501@gr2:1] Dial("SIP/crimea-081dee90", "SIP/501") in new stack -- Called 501 -- SIP/501-081e2e08 is ringing == Spawn extension (gr2, 501, 1) exited non-zero on 'SIP/crimea-081dee90' [May 26 12:51:30] NOTICE[12826]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 502 linux5*CLI> quit Executing last minute cleanups |
#vim extensions.conf
--- /tmp/l3-saved-14623.4408.26753 2010-05-26 12:51:45.000000000 +0300 +++ extensions.conf 2010-05-26 12:53:52.000000000 +0300 @@ -11,11 +11,11 @@ [corp] -exten => _4XXX,1,Set(CALLERID(all)=Privet <123>) +exten => _XXXX,1,Set(CALLERID(number)=5${CALLERID(number)}) exten => _4XXX,n,Dial(SIP/kharkov/${EXTEN:1}) -exten => _3XXX,1,Dial(SIP/odessa/${EXTEN:1}) -exten => _2XXX,1,Dial(SIP/kiev/${EXTEN:1}) -exten => _7XXX,1,Dial(SIP/dnepr/${EXTEN:1}) +exten => _3XXX,n,Dial(SIP/odessa/${EXTEN:1}) +exten => _2XXX,n,Dial(SIP/kiev/${EXTEN:1}) +exten => _7XXX,n,Dial(SIP/dnepr/${EXTEN:1}) exten => _4XX,1,Dial(SIP/kharkov/${EXTEN}) exten => _3XX,1,Dial(SIP/odessa/${EXTEN}) exten => _2XX,1,Dial(SIP/kiev/${EXTEN}) |
#asterisk -vvvr
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... -- SIP/odessa-081dee60 is ringing == Spawn extension (gr3, 301, 1) exited non-zero on 'SIP/501-b5d0fb08' -- Executing [3301@gr3:1] Set("SIP/501-b5d0fb08", "CALLERID(number)=5501") in new stack == Auto fallthrough, channel 'SIP/501-b5d0fb08' status is 'UNKNOWN' -- Executing [2201@gr3:1] Set("SIP/501-b5d0e548", "CALLERID(number)=5501") in new stack == Auto fallthrough, channel 'SIP/501-b5d0e548' status is 'UNKNOWN' quit No such command 'reloadquit' (type 'help reloadquit' for other possible commands) linux5*CLI> quit Executing last minute cleanups |
#vim extensions.conf
--- /tmp/l3-saved-14623.19118.32392 2010-05-26 12:55:15.000000000 +0300 +++ extensions.conf 2010-05-26 12:57:37.000000000 +0300 @@ -12,8 +12,8 @@ [corp] exten => _XXXX,1,Set(CALLERID(number)=5${CALLERID(number)}) -exten => _4XXX,n,Dial(SIP/kharkov/${EXTEN:1}) exten => _3XXX,n,Dial(SIP/odessa/${EXTEN:1}) +exten => _4XXX,n,Dial(SIP/kharkov/${EXTEN:1}) exten => _2XXX,n,Dial(SIP/kiev/${EXTEN:1}) exten => _7XXX,n,Dial(SIP/dnepr/${EXTEN:1}) exten => _4XX,1,Dial(SIP/kharkov/${EXTEN}) |
#asterisk -vvvr
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... -- Loaded provisioning template 'default' -- Executing [3301@gr3:1] Set("SIP/501-b5d0fb08", "CALLERID(number)=5501") in new stack -- Executing [3301@gr3:2] Dial("SIP/501-b5d0fb08", "SIP/odessa/301") in new stack -- Called odessa/301 -- SIP/odessa-081e02f8 is ringing == Spawn extension (gr3, 3301, 2) exited non-zero on 'SIP/501-b5d0fb08' -- Executing [4401@gr3:1] Set("SIP/501-b5d0fb08", "CALLERID(number)=5501") in new stack == Auto fallthrough, channel 'SIP/501-b5d0fb08' status is 'UNKNOWN' linux5*CLI> quit Executing last minute cleanups |
#vim extensions.conf
--- /tmp/l3-saved-14623.10733.11336 2010-05-26 12:57:57.000000000 +0300 +++ extensions.conf 2010-05-26 12:58:41.000000000 +0300 @@ -11,7 +11,10 @@ [corp] -exten => _XXXX,1,Set(CALLERID(number)=5${CALLERID(number)}) +exten => _3XXX,1,Set(CALLERID(number)=5${CALLERID(number)}) +exten => _4XXX,1,Set(CALLERID(number)=5${CALLERID(number)}) +exten => _2XXX,1,Set(CALLERID(number)=5${CALLERID(number)}) +exten => _7XXX,1,Set(CALLERID(number)=5${CALLERID(number)}) exten => _3XXX,n,Dial(SIP/odessa/${EXTEN:1}) exten => _4XXX,n,Dial(SIP/kharkov/${EXTEN:1}) exten => _2XXX,n,Dial(SIP/kiev/${EXTEN:1}) |
#asterisk -vvvr
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... linux5*CLI> -- Executing [3301@gr3:1] Set("SIP/501-b5d25340", "CALLERID(number)=5501") in new stack -- Executing [3301@gr3:2] Dial("SIP/501-b5d25340", "SIP/odessa/301") in new stack -- Called odessa/301 -- SIP/odessa-081e0698 is ringing == Spawn extension (gr3, 3301, 2) exited non-zero on 'SIP/501-b5d25340' -- Executing [4401@gr3:1] Set("SIP/501-b5d25340", "CALLERID(number)=5501") in new stack == Auto fallthrough, channel 'SIP/501-b5d25340' status is 'UNKNOWN' linux5*CLI> quit Executing last minute cleanups |
#vim extensions.conf
--- /tmp/l3-saved-14623.30071.6649 2010-05-26 12:59:28.000000000 +0300 +++ extensions.conf 2010-05-26 13:01:06.000000000 +0300 @@ -11,13 +11,13 @@ [corp] -exten => _3XXX,1,Set(CALLERID(number)=5${CALLERID(number)}) -exten => _4XXX,1,Set(CALLERID(number)=5${CALLERID(number)}) exten => _2XXX,1,Set(CALLERID(number)=5${CALLERID(number)}) -exten => _7XXX,1,Set(CALLERID(number)=5${CALLERID(number)}) +exten => _2XXX,n,Dial(SIP/kiev/${EXTEN:1}) +exten => _3XXX,1,Set(CALLERID(number)=5${CALLERID(number)}) exten => _3XXX,n,Dial(SIP/odessa/${EXTEN:1}) +exten => _4XXX,1,Set(CALLERID(number)=5${CALLERID(number)}) exten => _4XXX,n,Dial(SIP/kharkov/${EXTEN:1}) -exten => _2XXX,n,Dial(SIP/kiev/${EXTEN:1}) +exten => _7XXX,1,Set(CALLERID(number)=5${CALLERID(number)}) exten => _7XXX,n,Dial(SIP/dnepr/${EXTEN:1}) exten => _4XX,1,Dial(SIP/kharkov/${EXTEN}) exten => _3XX,1,Dial(SIP/odessa/${EXTEN}) |
#asterisk -vvvr
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... -- Called dnepr/701 -- SIP/dnepr-081e0758 is ringing == Spawn extension (gr3, 701, 1) exited non-zero on 'SIP/501-b5d0e548' -- Executing [7701@gr3:1] Set("SIP/501-b5d0fb08", "CALLERID(number)=5501") in new stack -- Executing [7701@gr3:2] Dial("SIP/501-b5d0fb08", "SIP/dnepr/701") in new stack -- Called dnepr/701 -- SIP/dnepr-081e0758 is ringing == Spawn extension (gr3, 7701, 2) exited non-zero on 'SIP/501-b5d0fb08' linux5*CLI> quit Executing last minute cleanups |
#register => crimea:password@192.168.1.1/dnepr
exten => _7XX,1,Dial(SIP/dnepr/${EXTEN}) include => corp [gr3] include => local include => corp include => world [gr4] include => local include => world "extensions.conf" 46L, 975C written |
#ssh 192.168.3.1
The authenticity of host '192.168.3.1 (192.168.3.1)' can't be established. RSA key fingerprint is 33:37:1d:14:ec:fd:f2:28:03:16:a6:66:31:f7:02:e1. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.3.1' (RSA) to the list of known hosts. root@192.168.3.1's password: Permission denied, please try again. root@192.168.3.1's password: Permission denied, please try again. root@192.168.3.1's password: Permission denied (publickey,password). |
#ssh 192.168.4.1
root@192.168.4.1's password: Linux linux4.unix.nt 2.6.26-2-686 #1 SMP Wed May 12 21:56:10 UTC 2010 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Wed May 26 09:12:28 2010 from 192.168.4.204 l3-agent is already running: pid=4496; pidfile=/root/.lilalo/l3-agent.pid |
#cd /etc/asterisk/
|
#less sip.conf
|
#asterisk -vvvr
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... == Parsing '/etc/asterisk/iax.conf': Found == Parsing '/etc/asterisk/users.conf': Found == Parsing '/etc/asterisk/iaxprov.conf': Found -- Loaded provisioning template 'default' -- Executing [502@gr3:1] Dial("SIP/501-b5d0b900", "SIP/502") in new stack -- Called 502 -- SIP/502-081e1500 is ringing == Spawn extension (gr3, 502, 1) exited non-zero on 'SIP/501-b5d0b900' linux5*CLI> quit Executing last minute cleanups |
#ssh 192.168.3.1
root@192.168.3.1's password: Permission denied, please try again. root@192.168.3.1's password: |
#vim extensions.conf
--- /tmp/l3-saved-14623.20649.22021 2010-05-26 14:48:14.000000000 +0300 +++ extensions.conf 2010-05-26 14:50:31.000000000 +0300 @@ -1,6 +1,8 @@ [macro-caller] exten => s,1,Set(CALLERID(number)=5${ARG1}) +exten => s,n,GotoIf($[${ARG1}=4401]?end) exten => s,n,Dial(SIP/${ARG2}/${MACRO_EXTEN:1}) +exten => s,n(end),Hangup [default] |
#asterisk -vvvr
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... -- Executing [501@gr2:1] Dial("SIP/crimea-b5d15878", "SIP/501") in new stack -- Called 501 -- SIP/501-081e1808 is ringing == Spawn extension (gr2, 501, 1) exited non-zero on 'SIP/crimea-b5d15878' -- Executing [301@gr2:1] Dial("SIP/crimea-b5d0a370", "SIP/odessa/301") in new stack -- Called odessa/301 -- SIP/odessa-081e1808 is ringing == Spawn extension (gr2, 301, 1) exited non-zero on 'SIP/crimea-b5d0a370' linux5*CLI> quit Executing last minute cleanups |
#vim extensions.conf
--- /tmp/l3-saved-14623.9501.4410 2010-05-26 14:51:26.000000000 +0300 +++ extensions.conf 2010-05-26 14:53:40.000000000 +0300 @@ -4,6 +4,12 @@ exten => s,n,Dial(SIP/${ARG2}/${MACRO_EXTEN:1}) exten => s,n(end),Hangup +[macro-incoming] +exten => s,n,GotoIf($[${CALLERID(numer)}=4401]?end) +exten => s,n,Dial(SIP/${MACRO_EXTEN}) +exten => s,n(end),Hangup + + [default] @@ -11,7 +17,8 @@ exten => 800,1, Answer exten => 800,n, Wait(1) exten => 800,n, Playback(/var/tmp/greetings) -exten => _5XX,1,Dial(SIP/${EXTEN}) +;exten => _5XX,1,Dial(SIP/${EXTEN}) +exten => _5XX,1,Macro(incoming) exten => 801,1,Answer exten => 801,n,Wait(1) exten => 801,n,Record(/var/tmp/greetings:gsm,2) |
#asterisk -vvvr
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... == Parsing '/etc/asterisk/iax.conf': Found == Parsing '/etc/asterisk/users.conf': Found == Parsing '/etc/asterisk/iaxprov.conf': Found -- Loaded provisioning template 'default' -- Executing [501@gr2:1] Macro("SIP/crimea-b5d0b900", "incoming") in new stack [May 26 14:53:56] WARNING[15778]: app_macro.c:214 _macro_exec: Context 'macro-incoming' for macro 'incoming' lacks 's' extension, priority 1 == Auto fallthrough, channel 'SIP/crimea-b5d0b900' status is 'UNKNOWN' [May 26 14:54:36] NOTICE[12826]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 502 linux5*CLI> quit Executing last minute cleanups |
#vim extensions.conf
|
#vim extensions.conf
--- /tmp/l3-saved-14623.24659.24461 2010-05-26 14:56:24.000000000 +0300 +++ extensions.conf 2010-05-26 14:56:37.000000000 +0300 @@ -5,7 +5,7 @@ exten => s,n(end),Hangup [macro-incoming] -exten => s,n,GotoIf($[${CALLERID(numer)}=4401]?end) +exten => s,1,GotoIf($[${CALLERID(numer)}=4401]?end) exten => s,n,Dial(SIP/${MACRO_EXTEN}) exten => s,n(end),Hangup |
#asterisk -vvvr
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... 4$CALLERID(number)}=4401 ^ [May 26 14:56:52] WARNING[15849]: ast_expr2.fl:411 ast_yyerror: If you have questions, please refer to doc/channelvariables.txt in the asterisk source. -- Executing [s@macro-incoming:1] GotoIf("SIP/crimea-b5d05de8", "4$CALLERID?end") in new stack -- Goto (macro-incoming,s,3) -- Executing [s@macro-incoming:3] Hangup("SIP/crimea-b5d05de8", "") in new stack == Spawn extension (macro-incoming, s, 3) exited non-zero on 'SIP/crimea-b5d05de8' in macro 'incoming' == Spawn extension (macro-incoming, s, 3) exited non-zero on 'SIP/crimea-b5d05de8' linux5*CLI> quit Executing last minute cleanups |
#vim extensions.conf
--- /tmp/l3-saved-14623.8232.29562 2010-05-26 14:57:01.000000000 +0300 +++ extensions.conf 2010-05-26 14:57:22.000000000 +0300 @@ -9,8 +9,6 @@ exten => s,n,Dial(SIP/${MACRO_EXTEN}) exten => s,n(end),Hangup - - [default] [local] |
#asterisk -vvvr
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': Found == Parsing '/etc/asterisk/extconfig.conf': Found Connected to Asterisk 1.4.21.2~dfsg-3+lenny1 currently running on linux5 (pid = 12808) Verbosity is at least 3 [May 26 15:01:46] NOTICE[12826]: chan_sip.c:14441 handle_request_invite: Call from '501' to extension '5800' rejected because extension not found. linux5*CLI> quit Executing last minute cleanups |
#vim extensions.conf
|
#:q
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... == Spawn extension (macro-caller, s, 3) exited non-zero on 'SIP/501-b5d0e548' -- Executing [301@gr3:1] Dial("SIP/501-b5d0e548", "SIP/odessa/301") in new stack -- Called odessa/301 -- Got SIP response 603 "Declined" back from 192.168.3.1 -- SIP/odessa-081e2520 is busy == Everyone is busy/congested at this time (1:1/0/0) == Auto fallthrough, channel 'SIP/501-b5d0e548' status is 'BUSY' [May 26 15:06:00] NOTICE[12826]: chan_sip.c:14441 handle_request_invite: Call from '501' to extension '5502' rejected because extension not found. linux5*CLI> quit Executing last minute cleanups |
#vim extensions.conf
--- /tmp/l3-saved-14623.2138.30942 2010-05-26 15:06:29.000000000 +0300 +++ extensions.conf 2010-05-26 15:07:36.000000000 +0300 @@ -6,7 +6,7 @@ [macro-incoming] exten => s,1,GotoIf($[${CALLERID(numer)}=4401]?end) -exten => s,n,Dial(SIP/${MACRO_EXTEN}) +exten => s,n,Dial(SIP/${ARG1}) exten => s,n(end),Hangup [default] @@ -16,7 +16,8 @@ exten => 800,n, Wait(1) exten => 800,n, Playback(/var/tmp/greetings) ;exten => _5XX,1,Dial(SIP/${EXTEN}) -exten => _5XX,1,Macro(incoming) +exten => _5XX,1,Macro(incoming,${EXTEN}) +exten => _55XX,1,Macro(incoming,${EXTEN:1}) exten => 801,1,Answer exten => 801,n,Wait(1) exten => 801,n,Record(/var/tmp/greetings:gsm,2) |
#asterisk -vvvr
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... -- Reloading module 'pbx_dundi.so' (Distributed Universal Number Discovery (DUNDi)) == Parsing '/etc/asterisk/dundi.conf': Found -- Reloading module 'chan_gtalk.so' (Gtalk Channel Driver) -- Reloading module 'chan_iax2.so' (Inter Asterisk eXchange (Ver 2)) == Parsing '/etc/asterisk/iax.conf': Found == Parsing '/etc/asterisk/users.conf': Found == Parsing '/etc/asterisk/iaxprov.conf': Found -- Loaded provisioning template 'default' quit Executing last minute cleanups |
#vim extensions.conf
--- /tmp/l3-saved-14623.27491.27689 2010-05-26 15:07:44.000000000 +0300 +++ extensions.conf 2010-05-26 15:09:13.000000000 +0300 @@ -17,7 +17,7 @@ exten => 800,n, Playback(/var/tmp/greetings) ;exten => _5XX,1,Dial(SIP/${EXTEN}) exten => _5XX,1,Macro(incoming,${EXTEN}) -exten => _55XX,1,Macro(incoming,${EXTEN:1}) +exten => _5XXX,1,Goto(local,${EXTEN:1},1) exten => 801,1,Answer exten => 801,n,Wait(1) exten => 801,n,Record(/var/tmp/greetings:gsm,2) |
#asterisk -vvvr
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... == Spawn extension (gr3, 800, 3) exited non-zero on 'SIP/501-b5d12d58' -- Executing [5502@gr3:1] Goto("SIP/501-b5d0a370", "local|502|1") in new stack -- Goto (local,502,1) -- Executing [502@local:1] Macro("SIP/501-b5d0a370", "incoming|502") in new stack -- Executing [s@macro-incoming:1] GotoIf("SIP/501-b5d0a370", "0?end") in new stack -- Executing [s@macro-incoming:2] Dial("SIP/501-b5d0a370", "SIP/502") in new stack -- Called 502 -- SIP/502-081e2ad0 is ringing == Spawn extension (macro-incoming, s, 2) exited non-zero on 'SIP/501-b5d0a370' in macro 'incoming' == Spawn extension (macro-incoming, s, 2) exited non-zero on 'SIP/501-b5d0a370' |
#vim extensions.conf
--- /tmp/l3-saved-14623.22146.14329 2010-05-26 15:10:29.000000000 +0300 +++ extensions.conf 2010-05-26 15:11:43.000000000 +0300 @@ -14,10 +14,10 @@ [local] exten => 800,1, Answer exten => 800,n, Wait(1) -exten => 800,n, Playback(/var/tmp/greetings) +exten => 800,n(play), Playback(/var/tmp/greetings) ;exten => _5XX,1,Dial(SIP/${EXTEN}) exten => _5XX,1,Macro(incoming,${EXTEN}) -exten => _5XXX,1,Goto(local,${EXTEN:1},1) +exten => _5XXX,1,Goto(local,${EXTEN:1},play) exten => 801,1,Answer exten => 801,n,Wait(1) exten => 801,n,Record(/var/tmp/greetings:gsm,2) |
#asterisk -vvvr
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... == Parsing '/etc/asterisk/users.conf': Found == Parsing '/etc/asterisk/iaxprov.conf': Found -- Loaded provisioning template 'default' -- Executing [5800@gr3:1] Goto("SIP/501-b5d11098", "local|800|play") in new stack -- Goto (local,800,3) -- Executing [800@local:3] Playback("SIP/501-b5d11098", "/var/tmp/greetings") in new stack -- <SIP/501-b5d11098> Playing '/var/tmp/greetings' (language 'en') == Auto fallthrough, channel 'SIP/501-b5d11098' status is 'UNKNOWN' linux5*CLI> quit Executing last minute cleanups |
#vim extensions.conf
--- /tmp/l3-saved-14623.20273.11053 2010-05-26 15:12:20.000000000 +0300 +++ extensions.conf 2010-05-26 15:12:33.000000000 +0300 @@ -18,9 +18,9 @@ ;exten => _5XX,1,Dial(SIP/${EXTEN}) exten => _5XX,1,Macro(incoming,${EXTEN}) exten => _5XXX,1,Goto(local,${EXTEN:1},play) -exten => 801,1,Answer -exten => 801,n,Wait(1) -exten => 801,n,Record(/var/tmp/greetings:gsm,2) +;exten => 801,1,Answer +;exten => 801,n,Wait(1) +;exten => 801,n,Record(/var/tmp/greetings:gsm,2) [corp] |
#asterisk -vvvr
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... -- Executing [5502@gr3:1] Goto("SIP/501-b5d0b900", "local|502|play") in new stack [May 26 15:12:48] NOTICE[16021]: pbx.c:1892 pbx_extension_helper: No such label 'play' in extension '502' in context 'local' [May 26 15:12:48] WARNING[16021]: pbx.c:6424 ast_parseable_goto: Priority 'play' must be a number > 0, or valid label == Spawn extension (gr3, 5502, 1) exited non-zero on 'SIP/501-b5d0b900' -- Executing [5502@gr3:1] Goto("SIP/501-b5d1d630", "local|502|play") in new stack [May 26 15:12:56] NOTICE[16022]: pbx.c:1892 pbx_extension_helper: No such label 'play' in extension '502' in context 'local' [May 26 15:12:56] WARNING[16022]: pbx.c:6424 ast_parseable_goto: Priority 'play' must be a number > 0, or valid label == Spawn extension (gr3, 5502, 1) exited non-zero on 'SIP/501-b5d1d630' linux5*CLI> quit Executing last minute cleanups |
#vim extensions.conf
|
#vim extensions.conf
--- /tmp/l3-saved-14623.8046.12817 2010-05-26 15:13:29.000000000 +0300 +++ extensions.conf 2010-05-26 15:13:48.000000000 +0300 @@ -14,7 +14,7 @@ [local] exten => 800,1, Answer exten => 800,n, Wait(1) -exten => 800,n(play), Playback(/var/tmp/greetings) +exten => 800,n, Playback(/var/tmp/greetings) ;exten => _5XX,1,Dial(SIP/${EXTEN}) exten => _5XX,1,Macro(incoming,${EXTEN}) exten => _5XXX,1,Goto(local,${EXTEN:1},play) |
#asterisk -vvvr
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... -- Reloading module 'pbx_dundi.so' (Distributed Universal Number Discovery (DUNDi)) == Parsing '/etc/asterisk/dundi.conf': Found -- Reloading module 'chan_gtalk.so' (Gtalk Channel Driver) -- Reloading module 'chan_iax2.so' (Inter Asterisk eXchange (Ver 2)) == Parsing '/etc/asterisk/iax.conf': Found == Parsing '/etc/asterisk/users.conf': Found == Parsing '/etc/asterisk/iaxprov.conf': Found -- Loaded provisioning template 'default' linux5*CLI> quit Executing last minute cleanups |
#vim extensions.conf
--- /tmp/l3-saved-14623.11923.4293 2010-05-26 15:14:28.000000000 +0300 +++ extensions.conf 2010-05-26 15:14:49.000000000 +0300 @@ -17,7 +17,7 @@ exten => 800,n, Playback(/var/tmp/greetings) ;exten => _5XX,1,Dial(SIP/${EXTEN}) exten => _5XX,1,Macro(incoming,${EXTEN}) -exten => _5XXX,1,Goto(local,${EXTEN:1},play) +exten => _5XXX,1,Goto(local,${EXTEN:1},1) ;exten => 801,1,Answer ;exten => 801,n,Wait(1) ;exten => 801,n,Record(/var/tmp/greetings:gsm,2) |
#asterisk -vvvr
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... -- Executing [5800@gr3:1] Goto("SIP/501-b5d16e08", "local|800|1") in new stack -- Goto (local,800,1) -- Executing [800@local:1] Answer("SIP/501-b5d16e08", "") in new stack -- Executing [800@local:2] Wait("SIP/501-b5d16e08", "1") in new stack -- Executing [800@local:3] Playback("SIP/501-b5d16e08", "/var/tmp/greetings") in new stack -- <SIP/501-b5d16e08> Playing '/var/tmp/greetings' (language 'en') == Auto fallthrough, channel 'SIP/501-b5d16e08' status is 'UNKNOWN' [May 26 15:15:37] NOTICE[12826]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 502 linux5*CLI> quit Executing last minute cleanups |
#vim extensions.conf
--- /tmp/l3-saved-14623.10822.12722 2010-05-26 15:16:25.000000000 +0300 +++ extensions.conf 2010-05-26 15:19:04.000000000 +0300 @@ -1,11 +1,13 @@ [macro-caller] exten => s,1,Set(CALLERID(number)=5${ARG1}) -exten => s,n,GotoIf($[${ARG1}=4401]?end) +;exten => s,n,GotoIf($[${ARG1}=4401]?end) +;exten => s,n,GotoIf($[BLACKLIST()=1]?end) exten => s,n,Dial(SIP/${ARG2}/${MACRO_EXTEN:1}) exten => s,n(end),Hangup [macro-incoming] -exten => s,1,GotoIf($[${CALLERID(numer)}=4401]?end) +;exten => s,1,GotoIf($[${CALLERID(numer)}=4401]?end) +exten => s,1,GotoIf($[BLACKLIST()=1]?end) exten => s,n,Dial(SIP/${ARG1}) exten => s,n(end),Hangup |
#asterisk -vvvr
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... BLACKLIST()=1 ^ [May 26 15:19:48] WARNING[16145]: ast_expr2.fl:411 ast_yyerror: If you have questions, please refer to doc/channelvariables.txt in the asterisk source. -- Executing [s@macro-incoming:1] GotoIf("SIP/501-b5d05de8", "BLACKLIST?end") in new stack -- Goto (macro-incoming,s,3) -- Executing [s@macro-incoming:3] Hangup("SIP/501-b5d05de8", "") in new stack == Spawn extension (macro-incoming, s, 3) exited non-zero on 'SIP/501-b5d05de8' in macro 'incoming' == Spawn extension (macro-incoming, s, 3) exited non-zero on 'SIP/501-b5d05de8' linux5*CLI> quit Executing last minute cleanups |
#vim extensions.conf
|
#asterisk -vvvr
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... [May 26 15:22:03] WARNING[16180]: ast_expr2.fl:411 ast_yyerror: If you have questions, please refer to doc/channelvariables.txt in the asterisk source. -- Executing [s@macro-incoming:1] GotoIf("SIP/501-b5d0e548", "BLACKLIST?end") in new stack -- Goto (macro-incoming,s,3) -- Executing [s@macro-incoming:3] Hangup("SIP/501-b5d0e548", "") in new stack == Spawn extension (macro-incoming, s, 3) exited non-zero on 'SIP/501-b5d0e548' in macro 'incoming' == Spawn extension (macro-incoming, s, 3) exited non-zero on 'SIP/501-b5d0e548' :q No such command ':q' (type 'help :q' for other possible commands) linux5*CLI> quit Executing last minute cleanups |
#vim extensions.conf
--- /tmp/l3-saved-14623.3235.27623 2010-05-26 15:22:15.000000000 +0300 +++ extensions.conf 2010-05-26 15:22:39.000000000 +0300 @@ -7,7 +7,7 @@ [macro-incoming] ;exten => s,1,GotoIf($[${CALLERID(numer)}=4401]?end) -exten => s,1,GotoIf($[BLACKLIST()=1]?end) +exten => s,1,GotoIf($[${BLACKLIST()}=1]?end) exten => s,n,Dial(SIP/${ARG1}) exten => s,n(end),Hangup |
#asterisk -vvvr
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... -- Got SIP response 484 "Address Incomplete" back from 192.168.1.1 == Everyone is busy/congested at this time (1:0/0/1) == Auto fallthrough, channel 'SIP/501-b5d0e548' status is 'CHANUNAVAIL' -- Executing [702@gr3:1] Dial("SIP/501-b5d0fb08", "SIP/dnepr/702") in new stack -- Called dnepr/702 -- SIP/dnepr-081e3b80 is ringing == Spawn extension (gr3, 702, 1) exited non-zero on 'SIP/501-b5d0fb08' linux5*CLI> linux5*CLI> quit Executing last minute cleanups |
#vim extensions.conf
--- /tmp/l3-saved-14623.22718.30776 2010-05-26 15:29:45.000000000 +0300 +++ extensions.conf 2010-05-26 16:23:52.000000000 +0300 @@ -8,7 +8,8 @@ [macro-incoming] ;exten => s,1,GotoIf($[${CALLERID(numer)}=4401]?end) exten => s,1,GotoIf($[${BLACKLIST()}=1]?end) -exten => s,n,Dial(SIP/${ARG1}) +exten => s,n,Dial(SIP/${ARG1},5) +exten => s,n,Dial(SIP/odessa/380504971180) exten => s,n(end),Hangup [default] |
#cat extensions.conf
[macro-caller] exten => s,1,Set(CALLERID(number)=5${ARG1}) ;exten => s,n,GotoIf($[${ARG1}=4401]?end) ;exten => s,n,GotoIf($[BLACKLIST()=1]?end) exten => s,n,Dial(SIP/${ARG2}/${MACRO_EXTEN:1}) exten => s,n(end),Hangup [macro-incoming] ;exten => s,1,GotoIf($[${CALLERID(numer)}=4401]?end) exten => s,1,GotoIf($[${BLACKLIST()}=1]?end) exten => s,n,Dial(SIP/${ARG1}) ... [gr2] include => local include => corp [gr3] include => local include => corp include => world [gr4] include => local include => world |
[macro-caller] exten => s,1,Set(CALLERID(number)=5${ARG1}) ;exten => s,n,GotoIf($[${ARG1}=4401]?end) ;exten => s,n,GotoIf($[BLACKLIST()=1]?end) exten => s,n,Dial(SIP/${ARG2}/${MACRO_EXTEN:1}) exten => s,n(end),Hangup [macro-incoming] ;exten => s,1,GotoIf($[${CALLERID(numer)}=4401]?end) exten => s,1,GotoIf($[${BLACKLIST()}=1]?end) exten => s,n,Dial(SIP/${ARG1}) exten => s,n(end),Hangup [default] [local] exten => 800,1, Answer exten => 800,n, Wait(1) exten => 800,n, Playback(/var/tmp/greetings) ;exten => _5XX,1,Dial(SIP/${EXTEN}) exten => _5XX,1,Macro(incoming,${EXTEN}) exten => _5XXX,1,Goto(local,${EXTEN:1},1) ;exten => 801,1,Answer ;exten => 801,n,Wait(1) ;exten => 801,n,Record(/var/tmp/greetings:gsm,2) [corp] exten => _2XX,1,Dial(SIP/kiev/${EXTEN}) exten => _2XXX,1,Macro(caller,${CALLERID(number)},kiev) exten => _3XX,1,Dial(SIP/odessa/${EXTEN}) exten => _3XXX,1,Macro(caller,${CALLERID(number)},odessa) exten => _4XX,1,Dial(SIP/kharkov/${EXTEN}) exten => _4XXX,1,Macro(caller,$CALLERID(number)},kharkov) exten => _7XX,1,Dial(SIP/dnepr/${EXTEN}) exten => _7XXX,1,Macro(caller,${CALLERID(number)},dnepr) [world] exten => _380XXXXXXXXX,1,Dial(SIP/odessa/${EXTEN}) [gr1] include => local [gr2] include => local include => corp [gr3] include => local include => corp include => world [gr4] include => local include => world
Время первой команды журнала | 10:59:31 2010- 5-26 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 14:32:47 2010- 5-26 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 1.98 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.00 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 2.02 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.83 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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