/l3/users/vadik/nt-voip/linux1.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 :19 :20 |
|
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, 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+squeeze3 currently running on linux1 (pid = 1256) Verbosity was 0 and is now 1 linux1*CLI> sip set debug Disconnected from Asterisk server Executing last minute cleanups |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, 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+squeeze3 currently running on linux1 (pid = 1256) Verbosity was 0 and is now 1 linux1*CLI> sip set debug Disconnected from Asterisk server Executing last minute cleanups |
#asterisk -rvvvvvvvvvv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256) ... Supported: replaces, timer Expires: 100 Contact: <sip:1102@192.168.10.200:59292;rinstance=ed21c806c0533efe;transport=udp>;expires=100 Date: Tue, 18 Oct 2011 06:58:54 GMT Content-Length: 0 <------------> Scheduling destruction of SIP dialog 'MjA0ZDdmODc1YWJhNmMxMDhiMWIyNzQ0M2E5NDFhNTQ.' in 32000 ms (Method: REGISTER) linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#asterisk -rvvvvvvvvvv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256) ... Supported: replaces, timer Expires: 100 Contact: <sip:1102@192.168.10.200:59292;rinstance=ed21c806c0533efe;transport=udp>;expires=100 Date: Tue, 18 Oct 2011 06:58:54 GMT Content-Length: 0 <------------> Scheduling destruction of SIP dialog 'MjA0ZDdmODc1YWJhNmMxMDhiMWIyNzQ0M2E5NDFhNTQ.' in 32000 ms (Method: REGISTER) linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-2591.1025.32199 2011-10-18 09:56:27.000000000 +0300 +++ /etc/asterisk/sip.conf 2011-10-18 09:56:51.000000000 +0300 @@ -5,6 +5,7 @@ tcpenable=no tcpbindaddr=0.0.0.0 srvlookup=yes +canreinvite=yes [1101] type=friend |
#asterisk -rvv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256) ... Really destroying SIP dialog 'NzI1NTIxMmEyYzcxYTE2NThkNzQzMjY4MTcwMGIwODg.' Method: ACK linux1*CLI> sip show peers Name/username Host Dyn Nat ACL Port Status 1101/1101 192.168.10.201 D 2048 Unmonitored 1102/1102 192.168.10.200 D 26482 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 2 online, 0 offline] <--- SIP read from UDP:192.168.10.200:26482 ---> <-------------> linux1*CLI> quit Executing last minute cleanups |
#vim /etc/asterisk/sip.conf
|
#apt-get install trafshow
Чтение списков пакетов... Готово Построение дерева зависимостей Чтение информации о состоянии... Готово E: Не удалось найти пакет trafshow |
#apt-get install trafshow
Чтение списков пакетов... Готово Построение дерева зависимостей Чтение информации о состоянии... Готово E: Не удалось найти пакет trafshow |
#apt-get install trafshow4
Чтение списков пакетов... Готово Построение дерева зависимостей Чтение информации о состоянии... Готово E: Не удалось найти пакет trafshow4 |
#apt-get install trafshow4
Чтение списков пакетов... Готово Построение дерева зависимостей Чтение информации о состоянии... Готово E: Не удалось найти пакет trafshow4 |
#apt- search trafshow
apt-cache apt-ftparchive apt-mark apt-cdrom apt-get apt-sortpkgs apt-config apt-key apt-extracttemplates apt-listchanges |
#apt- search trafshow
apt-cache apt-ftparchive apt-mark apt-cdrom apt-get apt-sortpkgs apt-config apt-key apt-extracttemplates apt-listchanges |
#apt-cache search trafshow
netdiag - инструменты для диагностики сети (trafshow, strobe, netwatch, statnet, tcpspray, tcpblast) |
#apt-cache search trafshow
netdiag - инструменты для диагностики сети (trafshow, strobe, netwatch, statnet, tcpspray, tcpblast) |
#apt-get install netdiag
Чтение списков пакетов... Готово Построение дерева зависимостей Чтение информации о состоянии... Готово НОВЫЕ пакеты, которые будут установлены: netdiag обновлено 0, установлено 1 новых пакетов, для удаления отмечено 0 пакетов, и 0 пакетов не обновлено. Необходимо скачать 290 kБ архивов. После данной операции, объём занятого дискового пространства возрастёт на 1 004 kB. Получено:1 http://10.0.35.1/debian/ squeeze/main netdiag i386 1.0-13 [290 kB] Получено 290 kБ за 0с (6 534 kБ/c) Предварительная настройка пакетов ... Выбор ранее не выбранного пакета netdiag. (Чтение базы данных ... на данный момент установлено 115403 файла и каталога.) Распаковывается пакет netdiag (из файла .../netdiag_1.0-13_i386.deb)... Обрабатываются триггеры для man-db ... Обрабатываются триггеры для menu ... Настраивается пакет netdiag (1.0-13) ... Обрабатываются триггеры для menu ... |
#apt-get install netdiag
Чтение списков пакетов... Готово Построение дерева зависимостей Чтение информации о состоянии... Готово НОВЫЕ пакеты, которые будут установлены: netdiag обновлено 0, установлено 1 новых пакетов, для удаления отмечено 0 пакетов, и 0 пакетов не обновлено. Необходимо скачать 290 kБ архивов. После данной операции, объём занятого дискового пространства возрастёт на 1 004 kB. Получено:1 http://10.0.35.1/debian/ squeeze/main netdiag i386 1.0-13 [290 kB] Получено 290 kБ за 0с (6 534 kБ/c) Предварительная настройка пакетов ... Выбор ранее не выбранного пакета netdiag. (Чтение базы данных ... на данный момент установлено 115403 файла и каталога.) Распаковывается пакет netdiag (из файла .../netdiag_1.0-13_i386.deb)... Обрабатываются триггеры для man-db ... Обрабатываются триггеры для menu ... Настраивается пакет netdiag (1.0-13) ... Обрабатываются триггеры для menu ... |
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-2591.10866.11735 2011-10-18 10:06:44.000000000 +0300 +++ /etc/asterisk/sip.conf 2011-10-18 10:06:50.000000000 +0300 @@ -5,7 +5,7 @@ tcpenable=no tcpbindaddr=0.0.0.0 srvlookup=yes -canreinvite=yes +canreinvite=no [1101] type=friend |
#00:16:35:b3:20:76 01:80:c2:00:00:0e 88cc 180
/etc/asterisk/sip: Нет такого файла или каталога |
#00:16:35:b3:20:76 01:80:c2:00:00:0e 88cc 180
/etc/asterisk/sip: Нет такого файла или каталога |
#vi extensions.conf
--- /tmp/l3-saved-2251.21648.18666 2011-10-18 10:11:58.000000000 +0300 +++ extensions.conf 2011-10-18 10:13:15.000000000 +0300 @@ -4,6 +4,9 @@ exten => 1199,n,Playback(demo-thanks) exten => 1199,n,Playback(demo-thanks) +exten => 1198,1,Record(recorded-voice:gsm,2) +exten => 1198,n,Playback(recorded-voice) + exten => 1101,1,Dial(SIP/${EXTEN}) exten => 1102,1,Dial(SIP/${EXTEN}) |
#~
Asterisk 1.6.2.9-2+squeeze3, 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+squeeze3 currently running on linux1 (pid = 1256) Verbosity is at least 10 linux1*CLI> dialplan ... User-Agent: snom320/8.4.32 RTP-RxStat: Total_Rx_Pkts=22,Rx_Pkts=0,Rx_Pkts_Lost=1,Remote_Rx_Pkts_Lost=0 RTP-TxStat: Total_Tx_Pkts=24,Tx_Pkts=24,Remote_Tx_Pkts=0 Content-Length: 0 <-------------> --- (11 headers 0 lines) --- SIP Response message for INCOMING dialog BYE arrived Really destroying SIP dialog '3c2673cd2355-guwy4ps4owfg' Method: ACK linux1*CLI> exit Executing last minute cleanups |
#~
Asterisk 1.6.2.9-2+squeeze3, 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+squeeze3 currently running on linux1 (pid = 1256) Verbosity is at least 10 linux1*CLI> dialplan ... User-Agent: snom320/8.4.32 RTP-RxStat: Total_Rx_Pkts=22,Rx_Pkts=0,Rx_Pkts_Lost=1,Remote_Rx_Pkts_Lost=0 RTP-TxStat: Total_Tx_Pkts=24,Tx_Pkts=24,Remote_Tx_Pkts=0 Content-Length: 0 <-------------> --- (11 headers 0 lines) --- SIP Response message for INCOMING dialog BYE arrived Really destroying SIP dialog '3c2673cd2355-guwy4ps4owfg' Method: ACK linux1*CLI> exit Executing last minute cleanups |
#vi extensions.conf
--- /tmp/l3-saved-2251.24428.18981 2011-10-18 10:16:15.000000000 +0300 +++ extensions.conf 2011-10-18 10:18:42.000000000 +0300 @@ -4,8 +4,8 @@ exten => 1199,n,Playback(demo-thanks) exten => 1199,n,Playback(demo-thanks) -exten => 1198,1,Record(recorded-voice:gsm,2) -exten => 1198,n,Playback(recorded-voice) +exten => 1198,1,Record(/var/lib/asterisk/sounds/recorded-voice:gsm,2) +exten => 1198,n,Playback(/var/lib/asterisk/sounds/recorded-voice) exten => 1101,1,Dial(SIP/${EXTEN}) |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, 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+squeeze3 currently running on linux1 (pid = 1256) Verbosity is at least 10 linux1*CLI> ... <------------> Scheduling destruction of SIP dialog 'ODRiYmVlOGY2OTRlZTllZTQwOWJlNDAwOWRkZDA2NWI.' in 32000 ms (Method: REGISTER) <--- SIP read from UDP:192.168.10.200:53558 ---> <-------------> Really destroying SIP dialog 'ODRiYmVlOGY2OTRlZTllZTQwOWJlNDAwOWRkZDA2NWI.' Method: REGISTER <--- SIP read from UDP:192.168.10.200:53558 ---> <-------------> linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, 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+squeeze3 currently running on linux1 (pid = 1256) Verbosity is at least 10 linux1*CLI> ... <------------> Scheduling destruction of SIP dialog 'ODRiYmVlOGY2OTRlZTllZTQwOWJlNDAwOWRkZDA2NWI.' in 32000 ms (Method: REGISTER) <--- SIP read from UDP:192.168.10.200:53558 ---> <-------------> Really destroying SIP dialog 'ODRiYmVlOGY2OTRlZTllZTQwOWJlNDAwOWRkZDA2NWI.' Method: REGISTER <--- SIP read from UDP:192.168.10.200:53558 ---> <-------------> linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#ls
adsi.conf extconfig.conf osp.conf adtranvofr.conf extensions.ael oss.conf agents.conf extensions.conf phone.conf ais.conf extensions.conf0 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
adsi.conf extconfig.conf osp.conf adtranvofr.conf extensions.ael oss.conf agents.conf extensions.conf phone.conf ais.conf extensions.conf0 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 |
#dmesg
[ 0.000000] Initializing cgroup subsys cpuset [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Linux version 2.6.39-bpo.2-686-pae (Debian 2.6.39-3~bpo60+1) (norbert@tretkowski.de) (gcc version 4.4.5 (Debian 4.4.5-8) ) #1 SMP Thu Aug 4 11:02:22 UTC 2011 [ 0.000000] BIOS-provided physical RAM map: [ 0.000000] BIOS-e820: 0000000000000000 - 000000000009bc00 (usable) [ 0.000000] BIOS-e820: 000000000009bc00 - 00000000000a0000 (reserved) [ 0.000000] BIOS-e820: 00000000000e0000 - 0000000000100000 (reserved) [ 0.000000] BIOS-e820: 0000000000100000 - 0000000020000000 (usable) [ 0.000000] BIOS-e820: 0000000020000000 - 0000000020200000 (reserved) [ 0.000000] BIOS-e820: 0000000020200000 - 0000000040000000 (usable) ... [ 606.346480] usb 2-1.8: Manufacturer: Logitech [ 606.348783] input: Logitech Optical USB Mouse as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.8/2-1.8:1.0/input/input7 [ 606.348905] generic-usb 0003:046D:C016.0003: input,hidraw2: USB HID v1.10 Mouse [Logitech Optical USB Mouse] on usb-0000:00:1d.0-1.8/input0 [ 644.951458] usb 2-1.8: USB disconnect, device number 3 [ 1305.800123] device eth0 entered promiscuous mode [ 1305.805552] device lo entered promiscuous mode [ 1344.983105] device eth0 left promiscuous mode [ 1345.037375] device lo left promiscuous mode [ 1351.257683] device eth0 entered promiscuous mode [ 1782.896069] device eth0 left promiscuous mode |
#dmesg
[ 0.000000] Initializing cgroup subsys cpuset [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Linux version 2.6.39-bpo.2-686-pae (Debian 2.6.39-3~bpo60+1) (norbert@tretkowski.de) (gcc version 4.4.5 (Debian 4.4.5-8) ) #1 SMP Thu Aug 4 11:02:22 UTC 2011 [ 0.000000] BIOS-provided physical RAM map: [ 0.000000] BIOS-e820: 0000000000000000 - 000000000009bc00 (usable) [ 0.000000] BIOS-e820: 000000000009bc00 - 00000000000a0000 (reserved) [ 0.000000] BIOS-e820: 00000000000e0000 - 0000000000100000 (reserved) [ 0.000000] BIOS-e820: 0000000000100000 - 0000000020000000 (usable) [ 0.000000] BIOS-e820: 0000000020000000 - 0000000020200000 (reserved) [ 0.000000] BIOS-e820: 0000000020200000 - 0000000040000000 (usable) ... [ 606.346480] usb 2-1.8: Manufacturer: Logitech [ 606.348783] input: Logitech Optical USB Mouse as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.8/2-1.8:1.0/input/input7 [ 606.348905] generic-usb 0003:046D:C016.0003: input,hidraw2: USB HID v1.10 Mouse [Logitech Optical USB Mouse] on usb-0000:00:1d.0-1.8/input0 [ 644.951458] usb 2-1.8: USB disconnect, device number 3 [ 1305.800123] device eth0 entered promiscuous mode [ 1305.805552] device lo entered promiscuous mode [ 1344.983105] device eth0 left promiscuous mode [ 1345.037375] device lo left promiscuous mode [ 1351.257683] device eth0 entered promiscuous mode [ 1782.896069] device eth0 left promiscuous mode |
#ifconfig
eth0 Link encap:Ethernet HWaddr 2c:27:d7:46:19:8f inet addr:192.168.10.1 Bcast:192.168.10.255 Mask:255.255.255.0 inet6 addr: fe80::2e27:d7ff:fe46:198f/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:32408 errors:0 dropped:0 overruns:0 frame:0 TX packets:5940 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:7663489 (7.3 MiB) TX bytes:1469195 (1.4 MiB) Interrupt:20 Memory:fe400000-fe420000 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:15 errors:0 dropped:0 overruns:0 frame:0 TX packets:15 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:979 (979.0 B) TX bytes:979 (979.0 B) |
#ifconfig
eth0 Link encap:Ethernet HWaddr 2c:27:d7:46:19:8f inet addr:192.168.10.1 Bcast:192.168.10.255 Mask:255.255.255.0 inet6 addr: fe80::2e27:d7ff:fe46:198f/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:32408 errors:0 dropped:0 overruns:0 frame:0 TX packets:5940 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:7663489 (7.3 MiB) TX bytes:1469195 (1.4 MiB) Interrupt:20 Memory:fe400000-fe420000 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:15 errors:0 dropped:0 overruns:0 frame:0 TX packets:15 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:979 (979.0 B) TX bytes:979 (979.0 B) |
#arp -a
gw1.unix.nt (192.168.10.254) at 00:16:35:b3:20:60 [ether] on eth0 ^C |
#arp -an
? (192.168.10.254) at 00:16:35:b3:20:60 [ether] on eth0 ? (192.168.10.200) at f0:4d:a2:cc:4f:9b [ether] on eth0 ? (192.168.10.201) at 00:04:13:24:e5:7e [ether] on eth0 |
#arp -an
? (192.168.10.254) at 00:16:35:b3:20:60 [ether] on eth0 ? (192.168.10.200) at f0:4d:a2:cc:4f:9b [ether] on eth0 ? (192.168.10.201) at 00:04:13:24:e5:7e [ether] on eth0 |
#vi sip.conf
--- /tmp/l3-saved-2251.20325.30750 2011-10-18 11:28:40.000000000 +0300 +++ sip.conf 2011-10-18 11:35:47.000000000 +0300 @@ -6,6 +6,7 @@ tcpbindaddr=0.0.0.0 srvlookup=yes canreinvite=no +register => kv:1234@192.168.20.1/lv [1101] type=friend @@ -18,3 +19,9 @@ secret=1234 host=dynamic monitor=yes + +[lv] +type=friend +secret=1234 +host=dynamic +username=kv |
#asterisk -rvvvv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256) ... Content-Length: 0 <------------> [Oct 18 11:36:38] NOTICE[1303]: chan_sip.c:21763 handle_request_register: Registration from '<sip:kv@192.168.10.1>' failed for '192.168.20.1' - No matching peer found Scheduling destruction of SIP dialog '1ed789ad56b3e43a6a67751735cdb3eb@192.168.15.22' in 32000 ms (Method: REGISTER) linux1*CLI> <--- SIP read from UDP:192.168.10.200:53558 ---> <-------------> linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#asterisk -rvvvv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256) ... Content-Length: 0 <------------> [Oct 18 11:36:38] NOTICE[1303]: chan_sip.c:21763 handle_request_register: Registration from '<sip:kv@192.168.10.1>' failed for '192.168.20.1' - No matching peer found Scheduling destruction of SIP dialog '1ed789ad56b3e43a6a67751735cdb3eb@192.168.15.22' in 32000 ms (Method: REGISTER) linux1*CLI> <--- SIP read from UDP:192.168.10.200:53558 ---> <-------------> linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#vi sip.conf
--- /tmp/l3-saved-2251.14460.3477 2011-10-18 11:36:47.000000000 +0300 +++ sip.conf 2011-10-18 11:36:55.000000000 +0300 @@ -25,3 +25,4 @@ secret=1234 host=dynamic username=kv +monitor=yes |
#asterisk -rvvvv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256) ... --- (13 headers 0 lines) --- Scheduling destruction of SIP dialog '7af07fbf0512bf225bac37957646afa8@192.168.15.21' in 32000 ms (Method: REGISTER) [Oct 18 11:40:30] NOTICE[1303]: chan_sip.c:18392 handle_response_register: Outbound Registration: Expiry for 192.168.20.1 is 120 sec (Scheduling reregistration in 105 s) linux1*CLI> linux1*CLI> <--- SIP read from UDP:192.168.10.200:53558 ---> <-------------> linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#asterisk -rvvvv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256) ... --- (13 headers 0 lines) --- Scheduling destruction of SIP dialog '7af07fbf0512bf225bac37957646afa8@192.168.15.21' in 32000 ms (Method: REGISTER) [Oct 18 11:40:30] NOTICE[1303]: chan_sip.c:18392 handle_response_register: Outbound Registration: Expiry for 192.168.20.1 is 120 sec (Scheduling reregistration in 105 s) linux1*CLI> linux1*CLI> <--- SIP read from UDP:192.168.10.200:53558 ---> <-------------> linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#[lv]
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256) ... linux1*CLI> linux1*CLI> sip show peers Name/username Host Dyn Nat ACL Port Status 1101/1101 192.168.10.201 D 2049 Unmonitored 1102/1102 192.168.10.200 D 53558 Unmonitored lv/kv 192.168.20.1 D 5060 Unmonitored 3 sip peers [Monitored: 0 online, 0 offline Unmonitored: 3 online, 0 offline] linux1*CLI> sip show peers Disconnected from Asterisk server Executing last minute cleanups |
#[lv]
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256) ... linux1*CLI> linux1*CLI> sip show peers Name/username Host Dyn Nat ACL Port Status 1101/1101 192.168.10.201 D 2049 Unmonitored 1102/1102 192.168.10.200 D 53558 Unmonitored lv/kv 192.168.20.1 D 5060 Unmonitored 3 sip peers [Monitored: 0 online, 0 offline Unmonitored: 3 online, 0 offline] linux1*CLI> sip show peers Disconnected from Asterisk server Executing last minute cleanups |
#-- ВСТАВКА --
[1101]riend secret=1234 host=dynamic monitor=yes [1102] [1102]riend secret=1234 host=dynamic monitor=yes [lv] [lv] type=frie35 secret=1234 host=dynamic ;username=kv 27,1 Внизу "sip.conf" 28L, 342C записано |
#-- ВСТАВКА --
[1101]riend secret=1234 host=dynamic monitor=yes [1102] [1102]riend secret=1234 host=dynamic monitor=yes [lv] [lv] type=frie35 secret=1234 host=dynamic ;username=kv 27,1 Внизу "sip.conf" 28L, 342C записано |
#asterisk -rvvvv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256) ... 3 sip peers [Monitored: 0 online, 0 offline Unmonitored: 3 online, 0 offline] linux1*CLI> Really destroying SIP dialog '6b214bc868a17f4429d3ada436550e8c@192.168.15.22' Method: REGISTER linux1*CLI> sip show registry Host dnsmgr Username Refresh State Reg.Time 192.168.20.1:5060 N kv 105 Registered Tue, 18 Oct 2011 11:43:42 1 SIP registrations. linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#asterisk -rvvvv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256) ... 3 sip peers [Monitored: 0 online, 0 offline Unmonitored: 3 online, 0 offline] linux1*CLI> Really destroying SIP dialog '6b214bc868a17f4429d3ada436550e8c@192.168.15.22' Method: REGISTER linux1*CLI> sip show registry Host dnsmgr Username Refresh State Reg.Time 192.168.20.1:5060 N kv 105 Registered Tue, 18 Oct 2011 11:43:42 1 SIP registrations. linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#vi sip.conf
--- /tmp/l3-saved-2251.24172.15071 2011-10-18 11:44:01.000000000 +0300 +++ sip.conf 2011-10-18 11:44:15.000000000 +0300 @@ -24,5 +24,5 @@ type=friend secret=1235 host=dynamic -;username=kv +username=kv monitor=yes |
#asterisk -rvvvv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256) ... Name/username Host Dyn Nat ACL Port Status 1101/1101 192.168.10.201 D 2049 Unmonitored 1102/1102 192.168.10.200 D 53558 Unmonitored lv/kv 192.168.20.1 D 5060 Unmonitored 3 sip peers [Monitored: 0 online, 0 offline Unmonitored: 3 online, 0 offline] Really destroying SIP dialog 'ODRiYmVlOGY2OTRlZTllZTQwOWJlNDAwOWRkZDA2NWI.' Method: REGISTER Really destroying SIP dialog '3ab6530a2b8be35c314f037b02a5ac24@192.168.15.21' Method: REGISTER linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#asterisk -rvvvv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256) ... Name/username Host Dyn Nat ACL Port Status 1101/1101 192.168.10.201 D 2049 Unmonitored 1102/1102 192.168.10.200 D 53558 Unmonitored lv/kv 192.168.20.1 D 5060 Unmonitored 3 sip peers [Monitored: 0 online, 0 offline Unmonitored: 3 online, 0 offline] Really destroying SIP dialog 'ODRiYmVlOGY2OTRlZTllZTQwOWJlNDAwOWRkZDA2NWI.' Method: REGISTER Really destroying SIP dialog '3ab6530a2b8be35c314f037b02a5ac24@192.168.15.21' Method: REGISTER linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#vi sip.conf
--- /tmp/l3-saved-2251.15467.8535 2011-10-18 11:44:53.000000000 +0300 +++ sip.conf 2011-10-18 11:48:32.000000000 +0300 @@ -24,5 +24,5 @@ type=friend secret=1235 host=dynamic -username=kv +;username=kv monitor=yes |
#asterisk -rvvvv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256) ... Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO Supported: replaces, timer Expires: 120 Contact: <sip:kv@192.168.20.1>;expires=120 Date: Tue, 18 Oct 2011 08:51:01 GMT Content-Length: 0 <------------> Scheduling destruction of SIP dialog '77f39e7a2e7557d875e933c20a2e9dd7@192.168.15.22' in 32000 ms (Method: REGISTER) linux1*CLI> exit Executing last minute cleanups |
#asterisk -rvvvv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux1 (pid = 1256) ... Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO Supported: replaces, timer Expires: 120 Contact: <sip:kv@192.168.20.1>;expires=120 Date: Tue, 18 Oct 2011 08:51:01 GMT Content-Length: 0 <------------> Scheduling destruction of SIP dialog '77f39e7a2e7557d875e933c20a2e9dd7@192.168.15.22' in 32000 ms (Method: REGISTER) linux1*CLI> exit Executing last minute cleanups |
#vi extensions.conf
--- /tmp/l3-saved-2251.5088.24375 2011-10-18 11:51:09.000000000 +0300 +++ extensions.conf 2011-10-18 11:53:32.000000000 +0300 @@ -10,3 +10,5 @@ exten => 1101,1,Dial(SIP/${EXTEN}) exten => 1102,1,Dial(SIP/${EXTEN}) + +exten => _32XXXX,1,Dial(SIP/lv/${EXTEN}:2) |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, 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+squeeze3 currently running on linux1 (pid = 1256) Verbosity is at least 10 <--- SIP read from UDP:192.168.10.200:53558 ---> ... Expires: 120 Contact: <sip:kv@192.168.20.1>;expires=120 Date: Tue, 18 Oct 2011 08:54:25 GMT Content-Length: 0 <------------> Scheduling destruction of SIP dialog '77f39e7a2e7557d875e933c20a2e9dd7@192.168.15.22' in 32000 ms (Method: REGISTER) linux1*CLI> linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, 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+squeeze3 currently running on linux1 (pid = 1256) Verbosity is at least 10 <--- SIP read from UDP:192.168.10.200:53558 ---> ... Expires: 120 Contact: <sip:kv@192.168.20.1>;expires=120 Date: Tue, 18 Oct 2011 08:54:25 GMT Content-Length: 0 <------------> Scheduling destruction of SIP dialog '77f39e7a2e7557d875e933c20a2e9dd7@192.168.15.22' in 32000 ms (Method: REGISTER) linux1*CLI> linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#vi sip.conf
--- /tmp/l3-saved-2251.12190.27389 2011-10-18 11:54:40.000000000 +0300 +++ sip.conf 2011-10-18 11:54:43.000000000 +0300 @@ -24,5 +24,5 @@ type=friend secret=1235 host=dynamic -;username=kv +username=kv monitor=yes |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, 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+squeeze3 currently running on linux1 (pid = 1256) Verbosity is at least 10 linux1*CLI> sip reload ... <-------------> --- (10 headers 0 lines) --- linux1*CLI> <--- SIP read from UDP:192.168.10.200:53558 ---> <-------------> Really destroying SIP dialog '77f39e7a2e7557d875e933c20a2e9dd7@192.168.15.22' Method: REGISTER Really destroying SIP dialog '1d8c216f4d1621966d59f2ba17fe26dd@192.168.20.1' Method: ACK linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, 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+squeeze3 currently running on linux1 (pid = 1256) Verbosity is at least 10 linux1*CLI> sip reload ... <-------------> --- (10 headers 0 lines) --- linux1*CLI> <--- SIP read from UDP:192.168.10.200:53558 ---> <-------------> Really destroying SIP dialog '77f39e7a2e7557d875e933c20a2e9dd7@192.168.15.22' Method: REGISTER Really destroying SIP dialog '1d8c216f4d1621966d59f2ba17fe26dd@192.168.20.1' Method: ACK linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#less /etc/asterisk/sip.conf
|
#vi sip.conf
--- /tmp/l3-saved-2251.3598.22257 2011-10-18 11:56:06.000000000 +0300 +++ sip.conf 2011-10-18 11:56:11.000000000 +0300 @@ -22,7 +22,7 @@ [lv] type=friend -secret=1235 +secret=1234 host=dynamic username=kv monitor=yes |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, 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+squeeze3 currently running on linux1 (pid = 1256) Verbosity is at least 10 <--- SIP read from UDP:192.168.10.200:53558 ---> ... CSeq: 2 ACK Max-Forwards: 70 Contact: <sip:1101@192.168.10.201:2049;line=2txv9129>;reg-id=1 Content-Length: 0 <-------------> --- (9 headers 0 lines) --- Really destroying SIP dialog '0dd12ceb6e40c20c2e30643c72a7baee@192.168.10.1' Method: INVITE linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, 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+squeeze3 currently running on linux1 (pid = 1256) Verbosity is at least 10 <--- SIP read from UDP:192.168.10.200:53558 ---> ... CSeq: 2 ACK Max-Forwards: 70 Contact: <sip:1101@192.168.10.201:2049;line=2txv9129>;reg-id=1 Content-Length: 0 <-------------> --- (9 headers 0 lines) --- Really destroying SIP dialog '0dd12ceb6e40c20c2e30643c72a7baee@192.168.10.1' Method: INVITE linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#vi extensions.conf
--- /tmp/l3-saved-2251.3998.843 2011-10-18 11:57:49.000000000 +0300 +++ extensions.conf 2011-10-18 11:57:58.000000000 +0300 @@ -11,4 +11,4 @@ exten => 1102,1,Dial(SIP/${EXTEN}) -exten => _32XXXX,1,Dial(SIP/lv/${EXTEN}:2) +exten => _32XXXX,1,Dial(SIP/lv/${EXTEN:2}) |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, 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+squeeze3 currently running on linux1 (pid = 1256) Verbosity is at least 10 linux1*CLI> dialplan reload ... Content-Length: 0 <------------> Scheduling destruction of SIP dialog '42312c7e7053981c3919e87a0a478e09@192.168.15.22' in 32000 ms (Method: REGISTER) <--- SIP read from UDP:192.168.10.200:53558 ---> <-------------> Really destroying SIP dialog 'ODRiYmVlOGY2OTRlZTllZTQwOWJlNDAwOWRkZDA2NWI.' Method: REGISTER Really destroying SIP dialog '42312c7e7053981c3919e87a0a478e09@192.168.15.22' Method: REGISTER linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, 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+squeeze3 currently running on linux1 (pid = 1256) Verbosity is at least 10 linux1*CLI> dialplan reload ... Content-Length: 0 <------------> Scheduling destruction of SIP dialog '42312c7e7053981c3919e87a0a478e09@192.168.15.22' in 32000 ms (Method: REGISTER) <--- SIP read from UDP:192.168.10.200:53558 ---> <-------------> Really destroying SIP dialog 'ODRiYmVlOGY2OTRlZTllZTQwOWJlNDAwOWRkZDA2NWI.' Method: REGISTER Really destroying SIP dialog '42312c7e7053981c3919e87a0a478e09@192.168.15.22' Method: REGISTER linux1*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#vi sip.conf
--- /tmp/l3-saved-2251.20175.6795 2011-10-18 12:08:13.000000000 +0300 +++ sip.conf 2011-10-18 12:09:17.000000000 +0300 @@ -7,6 +7,7 @@ srvlookup=yes canreinvite=no register => kv:1234@192.168.20.1/lv +register => kv:1234@192.168.50.1/tbs [1101] type=friend @@ -24,5 +25,12 @@ type=friend secret=1234 host=dynamic +username=kv +monitor=yes + +[tbs] +type=friend +secret=1234 +host=dynamic username=kv monitor=yes |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, 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+squeeze3 currently running on linux1 (pid = 1256) Verbosity is at least 10 linux1*CLI> sip reload ... Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO Supported: replaces, timer Expires: 100 Contact: <sip:1102@192.168.10.200:53558;rinstance=2535e764b9d4e490;transport=udp>;expires=100 Date: Tue, 18 Oct 2011 09:09:43 GMT Content-Length: 0 <------------> Scheduling destruction of SIP dialog 'ODRiYmVlOGY2OTRlZTllZTQwOWJlNDAwOWRkZDA2NWI.' in 32000 ms (Method: REGISTER) linux1*CLI> exit Executing last minute cleanups |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze3, 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+squeeze3 currently running on linux1 (pid = 1256) Verbosity is at least 10 linux1*CLI> sip reload ... Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO Supported: replaces, timer Expires: 100 Contact: <sip:1102@192.168.10.200:53558;rinstance=2535e764b9d4e490;transport=udp>;expires=100 Date: Tue, 18 Oct 2011 09:09:43 GMT Content-Length: 0 <------------> Scheduling destruction of SIP dialog 'ODRiYmVlOGY2OTRlZTllZTQwOWJlNDAwOWRkZDA2NWI.' in 32000 ms (Method: REGISTER) linux1*CLI> exit Executing last minute cleanups |
Время первой команды журнала | 08:54:55 2011-10-18 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 11:09:44 2011-10-18 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 9.90 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.00 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 0.97 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.74 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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