/l3/users/goddan/nt-voip/linux4.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 |
|
#nano /etc/asterisk/sip.conf
|
#nano /etc/asterisk/sip.conf
|
#nano /etc/asterisk/sip.conf
--- /tmp/l3-saved-5807.16418.31641 2013-04-08 17:07:38.000000000 +0300 +++ /etc/asterisk/sip.conf 2013-04-08 17:08:27.000000000 +0300 @@ -5,4 +5,7 @@ type=friend secret=1234 host=dynamic - +[1402] +type=friend +secret=1234 +host=dynamic |
#nano /etc/asterisk/extensions.conf
--- /dev/null 2013-04-08 15:08:23.293390154 +0300 +++ /etc/asterisk/extensions.conf 2013-04-08 17:16:01.000000000 +0300 @@ -0,0 +1 @@ +exten=>8000,1,Playback(welcome) |
#exten=>8000,1,Playback(welcome)
PING 192.168.15.253 (192.168.15.253) 56(84) bytes of data. 64 bytes from 192.168.15.253: icmp_req=1 ttl=63 time=0.237 ms ^C --- 192.168.15.253 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.237/0.237/0.237/0.000 ms |
#exten=>8000,1,Playback(welcome)
PING 192.168.15.253 (192.168.15.253) 56(84) bytes of data. 64 bytes from 192.168.15.253: icmp_req=1 ttl=63 time=0.237 ms ^C --- 192.168.15.253 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.237/0.237/0.237/0.000 ms |
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-5807.27321.11330 2013-04-08 17:16:59.000000000 +0300 +++ /etc/asterisk/extensions.conf 2013-04-08 17:17:18.000000000 +0300 @@ -1 +1,3 @@ +[default] + exten=>8000,1,Playback(welcome) |
#nano /etc/asterisk/extensions.conf
|
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-5807.17405.17357 2013-04-08 17:18:43.000000000 +0300 +++ /etc/asterisk/extensions.conf 2013-04-08 17:19:43.000000000 +0300 @@ -1,3 +1,6 @@ [default] -exten=>8000,1,Playback(welcome) +exten=>8000,1,Answer +exten=>8000,n,Wait(2) +exten=>8000,n,Playback(welcome) + |
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-5807.31443.27291 2013-04-08 17:26:31.000000000 +0300 +++ /etc/asterisk/extensions.conf 2013-04-08 17:28:01.000000000 +0300 @@ -4,3 +4,6 @@ exten=>8000,n,Wait(2) exten=>8000,n,Playback(welcome) +exten=>2301,1,Dial(SIP/2301) +exten=>2302,1,Dial(SIP/2302) + |
#[default]
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux4 (pid = 8512) Verbosity is at least 3 linux4*CLI> dialplan reload ... == Everyone is busy/congested at this time (1:0/0/1) -- Auto fallthrough, channel 'SIP/1401-00000006' status is 'CHANUNAVAIL' == Using SIP RTP CoS mark 5 -- Executing [2301@default:1] Dial("SIP/1401-00000007", "SIP/2301") in new stack == Using SIP RTP CoS mark 5 [Apr 8 17:28:39] WARNING[9201]: chan_sip.c:5470 create_addr: No such host: 2301 [Apr 8 17:28:39] WARNING[9201]: app_dial.c:1747 dial_exec_full: Unable to create channel of type 'SIP' (cause 20 - Unknown) == Everyone is busy/congested at this time (1:0/0/1) -- Auto fallthrough, channel 'SIP/1401-00000007' status is 'CHANUNAVAIL' linux4*CLI> quit |
#[default]
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux4 (pid = 8512) Verbosity is at least 3 linux4*CLI> dialplan reload ... == Everyone is busy/congested at this time (1:0/0/1) -- Auto fallthrough, channel 'SIP/1401-00000006' status is 'CHANUNAVAIL' == Using SIP RTP CoS mark 5 -- Executing [2301@default:1] Dial("SIP/1401-00000007", "SIP/2301") in new stack == Using SIP RTP CoS mark 5 [Apr 8 17:28:39] WARNING[9201]: chan_sip.c:5470 create_addr: No such host: 2301 [Apr 8 17:28:39] WARNING[9201]: app_dial.c:1747 dial_exec_full: Unable to create channel of type 'SIP' (cause 20 - Unknown) == Everyone is busy/congested at this time (1:0/0/1) -- Auto fallthrough, channel 'SIP/1401-00000007' status is 'CHANUNAVAIL' linux4*CLI> quit |
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-5807.7129.20232 2013-04-08 17:29:00.000000000 +0300 +++ /etc/asterisk/extensions.conf 2013-04-08 17:30:12.000000000 +0300 @@ -4,6 +4,6 @@ exten=>8000,n,Wait(2) exten=>8000,n,Playback(welcome) -exten=>2301,1,Dial(SIP/2301) -exten=>2302,1,Dial(SIP/2302) +exten=>1401,1,Dial(SIP/1401) +exten=>1402,1,Dial(SIP/1402) |
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-5807.18154.14011 2013-04-08 17:31:11.000000000 +0300 +++ /etc/asterisk/extensions.conf 2013-04-08 17:36:27.000000000 +0300 @@ -4,6 +4,8 @@ exten=>8000,n,Wait(2) exten=>8000,n,Playback(welcome) -exten=>1401,1,Dial(SIP/1401) -exten=>1402,1,Dial(SIP/1402) +;exten=>1401,1,Dial(SIP/1401) +;exten=>1402,1,Dial(SIP/1402) +exten =>_14XX,1,Dial(SIP/${EXTEN}) +exten=>_1014XX,1,Dial(SIP/{EXTEN:2)} |
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-5807.13707.16042 2013-04-08 17:38:02.000000000 +0300 +++ /etc/asterisk/extensions.conf 2013-04-08 17:39:50.000000000 +0300 @@ -9,3 +9,4 @@ exten =>_14XX,1,Dial(SIP/${EXTEN}) exten=>_1014XX,1,Dial(SIP/{EXTEN:2)} +exten=>_1014XX01,1,Dial(SIP/{EXTEN:2:4}) |
#ps aux | grep dhcp
root 1362 0.0 0.0 4092 1808 ? Ss 09:15 0:00 /usr/sbin/dhcpd -q eth1 root 1846 0.0 0.0 3356 744 pts/2 S+ 09:19 0:00 grep dhcp |
#ps aux | grep dhcp
root 1362 0.0 0.0 4092 1808 ? Ss 09:15 0:00 /usr/sbin/dhcpd -q eth1 root 1846 0.0 0.0 3356 744 pts/2 S+ 09:19 0:00 grep dhcp |
#ps aux | grep dhcp
root 1362 0.0 0.0 4092 2044 ? Ss 09:15 0:00 /usr/sbin/dhcpd -q eth1 root 1911 0.0 0.0 3356 744 pts/2 S+ 09:41 0:00 grep dhcp |
#ps aux | grep dhcp
root 1362 0.0 0.0 4092 2044 ? Ss 09:15 0:00 /usr/sbin/dhcpd -q eth1 root 1911 0.0 0.0 3356 744 pts/2 S+ 09:41 0:00 grep dhcp |
#ast
astcanary astman astribank_is_starting asterisk astribank_allow astribank_tool astgenkey astribank_hexload |
#ast
astcanary astman astribank_is_starting asterisk astribank_allow astribank_tool astgenkey astribank_hexload |
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux4 (pid = 1311) linux4*CLI> quit |
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux4 (pid = 1311) linux4*CLI> quit |
#ls /etc/asterisk/
adsi.conf extconfig.conf osp.conf adtranvofr.conf extensions.ael oss.conf agents.conf extensions.conf phone.conf ais.conf extensions.conf.orig phoneprov.conf alarmreceiver.conf extensions.lua queuerules.conf alsa.conf extensions_minivm.conf queues.conf amd.conf features.conf res_config_sqlite.conf asterisk.adsi festival.conf res_ldap.conf asterisk.conf followme.conf res_odbc.conf cdr_adaptive_odbc.conf func_odbc.conf res_pgsql.conf ... cli_aliases.conf logger.conf sla.conf cli.conf manager.conf smdi.conf cli_permissions.conf manager.d telcordia-1.adsi codecs.conf meetme.conf udptl.conf console.conf mgcp.conf unistim.conf dbsep.conf minivm.conf usbradio.conf dnsmgr.conf misdn.conf users.conf dsp.conf modules.conf voicemail.conf dundi.conf musiconhold.conf vpb.conf enum.conf muted.conf |
#ls /etc/asterisk/
adsi.conf extconfig.conf osp.conf adtranvofr.conf extensions.ael oss.conf agents.conf extensions.conf phone.conf ais.conf extensions.conf.orig phoneprov.conf alarmreceiver.conf extensions.lua queuerules.conf alsa.conf extensions_minivm.conf queues.conf amd.conf features.conf res_config_sqlite.conf asterisk.adsi festival.conf res_ldap.conf asterisk.conf followme.conf res_odbc.conf cdr_adaptive_odbc.conf func_odbc.conf res_pgsql.conf ... cli_aliases.conf logger.conf sla.conf cli.conf manager.conf smdi.conf cli_permissions.conf manager.d telcordia-1.adsi codecs.conf meetme.conf udptl.conf console.conf mgcp.conf unistim.conf dbsep.conf minivm.conf usbradio.conf dnsmgr.conf misdn.conf users.conf dsp.conf modules.conf voicemail.conf dundi.conf musiconhold.conf vpb.conf enum.conf muted.conf |
#nano /etc/asterisk/sip.conf
--- /tmp/l3-saved-1821.15478.32203 2013-04-09 09:57:44.000000000 +0300 +++ /etc/asterisk/sip.conf 2013-04-09 10:04:40.000000000 +0300 @@ -1,5 +1,7 @@ [general] context=default +register=>qweru:1234@192.168.30.1/misk + ;SIP-peer [1401] type=friend @@ -9,3 +11,10 @@ type=friend secret=1234 host=dynamic + +[qweru] +type=friend +secret=1234 +host=dynamic +username=qweru +canreinvite=no |
#[general]
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux4 (pid = 1311) linux4*CLI> sip reload [Apr 9 10:04:55] NOTICE[1336]: chan_sip.c:24218 build_peer: The 'username' field for sip peers has been deprecated in favor of the term 'defaultuser' [Apr 9 10:04:55] WARNING[1336]: chan_sip.c:18331 handle_response_register: Got 404 Not found on SIP register to service qweru@192.168.30.1, giving up linux4*CLI> quit |
#[general]
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux4 (pid = 1311) linux4*CLI> sip reload [Apr 9 10:04:55] NOTICE[1336]: chan_sip.c:24218 build_peer: The 'username' field for sip peers has been deprecated in favor of the term 'defaultuser' [Apr 9 10:04:55] WARNING[1336]: chan_sip.c:18331 handle_response_register: Got 404 Not found on SIP register to service qweru@192.168.30.1, giving up linux4*CLI> quit |
#nano /etc/asterisk/sip.conf
--- /tmp/l3-saved-1821.8917.2831 2013-04-09 10:05:21.000000000 +0300 +++ /etc/asterisk/sip.conf 2013-04-09 10:07:06.000000000 +0300 @@ -1,6 +1,6 @@ [general] context=default -register=>qweru:1234@192.168.30.1/misk +register=>harare:1234@192.168.30.1/qweru ;SIP-peer [1401] @@ -16,5 +16,6 @@ type=friend secret=1234 host=dynamic -username=qweru +username=harare canreinvite=no + |
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-1821.13680.31177 2013-04-09 10:15:14.000000000 +0300 +++ /etc/asterisk/extensions.conf 2013-04-09 10:16:20.000000000 +0300 @@ -11,4 +11,4 @@ exten=>_1014XX,1,Dial(SIP/{EXTEN:2)} exten=>_1014XX01,1,Dial(SIP/{EXTEN:2:4}) -exten=>33XX,1,Dial(SIP/${EXTEN}) +exten=>13XX,1,Dial(SIP/harare/${EXTEN}) |
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-1821.2381.21489 2013-04-09 10:17:42.000000000 +0300 +++ /etc/asterisk/extensions.conf 2013-04-09 10:18:06.000000000 +0300 @@ -11,4 +11,4 @@ exten=>_1014XX,1,Dial(SIP/{EXTEN:2)} exten=>_1014XX01,1,Dial(SIP/{EXTEN:2:4}) -exten=>13XX,1,Dial(SIP/qweru/${EXTEN}) +exten=>_13XX,1,Dial(SIP/qweru/${EXTEN}) |
#[general]
PING 192.168.10.1 (192.168.10.1) 56(84) bytes of data. 64 bytes from 192.168.10.1: icmp_req=1 ttl=63 time=0.303 ms ^C --- 192.168.10.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.303/0.303/0.303/0.000 ms |
#[general]
PING 192.168.10.1 (192.168.10.1) 56(84) bytes of data. 64 bytes from 192.168.10.1: icmp_req=1 ttl=63 time=0.303 ms ^C --- 192.168.10.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.303/0.303/0.303/0.000 ms |
#[default]
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux4 (pid = 1311) linux4*CLI> sip reload linux4*CLI> dialplan reload Dialplan reloaded. [Apr 9 10:44:18] WARNING[2520]: app_dial.c:1747 dial_exec_full: Unable to create channel of type 'SIP' (cause 20 - Unknown) [Apr 9 10:44:38] WARNING[2521]: app_dial.c:1747 dial_exec_full: Unable to create channel of type 'SIP' (cause 20 - Unknown) linux4*CLI> quit |
#[default]
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux4 (pid = 1311) linux4*CLI> sip reload linux4*CLI> dialplan reload Dialplan reloaded. [Apr 9 10:44:18] WARNING[2520]: app_dial.c:1747 dial_exec_full: Unable to create channel of type 'SIP' (cause 20 - Unknown) [Apr 9 10:44:38] WARNING[2521]: app_dial.c:1747 dial_exec_full: Unable to create channel of type 'SIP' (cause 20 - Unknown) linux4*CLI> quit |
#nano /etc/asterisk/sip.conf
--- /tmp/l3-saved-1821.18464.11712 2013-04-09 10:44:52.000000000 +0300 +++ /etc/asterisk/sip.conf 2013-04-09 10:46:09.000000000 +0300 @@ -1,7 +1,8 @@ [general] context=default register=>harare:1234@192.168.30.1/gweru - +register=>harare:1234@192.168.10.1/boston +register=>harare:1234@192.168.60.1/minsk ;SIP-peer [1401] |
#nano /etc/asterisk/sip.conf
--- /tmp/l3-saved-1821.2730.19357 2013-04-09 10:50:11.000000000 +0300 +++ /etc/asterisk/sip.conf 2013-04-09 10:51:23.000000000 +0300 @@ -13,6 +13,7 @@ type=friend secret=1234 host=dynamic +callerid="harare" [gweru] type=friend |
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux4 (pid = 1311) linux4*CLI> quit |
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux4 (pid = 1311) linux4*CLI> quit |
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-1821.435.5659 2013-04-09 11:53:34.000000000 +0300 +++ /etc/asterisk/extensions.conf 2013-04-09 11:53:48.000000000 +0300 @@ -19,3 +19,4 @@ exten=>_2XXX,1,Dial(SIP/minsk/${EXTEN}) +[local] |
#[default]
GNU nano 2.2.4 File: /etc/asterisk/extensions.conf Modified [default] exten=>8000,1,Answer exten=>8000,n,Wait(2) exten=>8000,n,Playback(welcome)TEN:2:4}) ;exten=>1401,1,Dial(SIP/1401)TEN:2)} ;exten=>1402,1,Dial(SIP/1402) [local]=>_14XX,1,Dial(SIP/${EXTEN}) exten =>_14XX,1,Dial(SIP/${EXTEN})2)} ;exten=>_1014XX01,1,Dial(SIP/{EXTEN:2:4}) [national] exten=>_1014XX,1,Dial(SIP/{EXTEN:2)}N}) [international] ^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 |
#[default]
GNU nano 2.2.4 File: /etc/asterisk/extensions.conf Modified [default] exten=>8000,1,Answer exten=>8000,n,Wait(2) exten=>8000,n,Playback(welcome)TEN:2:4}) ;exten=>1401,1,Dial(SIP/1401)TEN:2)} ;exten=>1402,1,Dial(SIP/1402) [local]=>_14XX,1,Dial(SIP/${EXTEN}) exten =>_14XX,1,Dial(SIP/${EXTEN})2)} ;exten=>_1014XX01,1,Dial(SIP/{EXTEN:2:4}) [national] exten=>_1014XX,1,Dial(SIP/{EXTEN:2)}N}) [international] ^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 |
#[general]
GNU nano 2.2.4 File: /etc/asterisk/extensions.conf [default] exten=>8000,1,Answer exten=>8000,n,Wait(2) exten=>8000,n,Playback(welcome) ;exten=>1401,1,Dial(SIP/1401) ;exten=>1402,1,Dial(SIP/1402) exten=>_16XX,1,Dial(SIP/minsk/${EXTEN}) exten=>_2XXX,1,Dial(SIP/minsk/${EXTEN}) exten =>_14XX,1,Dial(SIP/${EXTEN})N:2:4}) [gr1]onal]3XX,1,Dial(SIP/gweru/${EXTEN}) [gr2]n=>_16XX,1,Dial(SIP/minsk/${EXTEN}) include=>local],Dial(SIP/minsk/${EXTEN}) exten=>_11XX,1,Dial(SIP/boston/${EXTEN}) ^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 |
#[general]
GNU nano 2.2.4 File: /etc/asterisk/extensions.conf [default] exten=>8000,1,Answer exten=>8000,n,Wait(2) exten=>8000,n,Playback(welcome) ;exten=>1401,1,Dial(SIP/1401) ;exten=>1402,1,Dial(SIP/1402) exten=>_16XX,1,Dial(SIP/minsk/${EXTEN}) exten=>_2XXX,1,Dial(SIP/minsk/${EXTEN}) exten =>_14XX,1,Dial(SIP/${EXTEN})N:2:4}) [gr1]onal]3XX,1,Dial(SIP/gweru/${EXTEN}) [gr2]n=>_16XX,1,Dial(SIP/minsk/${EXTEN}) include=>local],Dial(SIP/minsk/${EXTEN}) exten=>_11XX,1,Dial(SIP/boston/${EXTEN}) ^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 |
#[general]
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux4 (pid = 1311) linux4*CLI> dialplan No such command 'dialplan ' (type 'core show help dialplan' for other possible commands) linux4*CLI> dialplan reload Dialplan reloaded. linux4*CLI> sip reload [Apr 9 12:03:27] NOTICE[1336]: chan_sip.c:21643 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 1402 [Apr 9 12:03:55] NOTICE[1336]: chan_sip.c:20325 handle_request_invite: Call from '1401' to extension '1301' rejected because extension not found in context 'gr2'. [Apr 9 12:04:06] NOTICE[1336]: chan_sip.c:20325 handle_request_invite: Call from 'harare' to extension '1301' rejected because extension not found in context 'default'. [Apr 9 12:04:18] NOTICE[1336]: chan_sip.c:20325 handle_request_invite: Call from '1402' to extension '1301' rejected because extension not found in context 'gr1'. linux4*CLI> quit |
#[general]
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux4 (pid = 1311) linux4*CLI> dialplan No such command 'dialplan ' (type 'core show help dialplan' for other possible commands) linux4*CLI> dialplan reload Dialplan reloaded. linux4*CLI> sip reload [Apr 9 12:03:27] NOTICE[1336]: chan_sip.c:21643 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 1402 [Apr 9 12:03:55] NOTICE[1336]: chan_sip.c:20325 handle_request_invite: Call from '1401' to extension '1301' rejected because extension not found in context 'gr2'. [Apr 9 12:04:06] NOTICE[1336]: chan_sip.c:20325 handle_request_invite: Call from 'harare' to extension '1301' rejected because extension not found in context 'default'. [Apr 9 12:04:18] NOTICE[1336]: chan_sip.c:20325 handle_request_invite: Call from '1402' to extension '1301' rejected because extension not found in context 'gr1'. linux4*CLI> quit |
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-1821.1572.19053 2013-04-09 12:07:38.000000000 +0300 +++ /etc/asterisk/extensions.conf 2013-04-09 12:08:30.000000000 +0300 @@ -32,7 +32,7 @@ [gr1] -include=>international +include=>national [gr2] include=>local |
Время первой команды журнала | 15:55:11 2013- 4- 8 | |||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 11:07:37 2013- 4- 9 | |||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 35.64 | |||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.00 | |||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 2.87 | |||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.59 | |||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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