/l3/users/maxim/ais-voip-2011-jun/linux2.unix.ais/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 |
|
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux2 (pid = 1313) Verbosity is at least 2 linux2*CLI> dialplan reload Dialplan reloaded. == Parsing '/etc/asterisk/extensions.conf': == Found == Parsing '/etc/asterisk/users.conf': == Found == Using SIP RTP CoS mark 5 == Spawn extension (menu, s, 5) exited non-zero on 'SIP/1202-0000005c' linux2*CLI> exit Executing last minute cleanups |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux2 (pid = 1313) Verbosity is at least 2 linux2*CLI> dialplan reload Dialplan reloaded. == Parsing '/etc/asterisk/extensions.conf': == Found == Parsing '/etc/asterisk/users.conf': == Found == Using SIP RTP CoS mark 5 == Spawn extension (menu, s, 5) exited non-zero on 'SIP/1202-0000005c' linux2*CLI> exit Executing last minute cleanups |
#vim extensions.conf
--- /tmp/l3-saved-2226.29374.19754 2011-06-29 17:10:22.000000000 +0400 +++ extensions.conf 2011-06-29 17:13:19.000000000 +0400 @@ -37,7 +37,7 @@ exten => s,n,Hangup exten => 1,1,Goto(submenu,s,1) - +exten => 2,1,Goto(SIP/1201) exten => 9,1,Goto(menu,s,start) [submenu] |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux2 (pid = 1313) Verbosity is at least 2 linux2*CLI> dialplan reload Dialplan reloaded. == Parsing '/etc/asterisk/extensions.conf': == Found == Parsing '/etc/asterisk/users.conf': == Found linux2*CLI> exit Executing last minute cleanups |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux2 (pid = 1313) Verbosity is at least 2 linux2*CLI> dialplan reload Dialplan reloaded. == Parsing '/etc/asterisk/extensions.conf': == Found == Parsing '/etc/asterisk/users.conf': == Found linux2*CLI> exit Executing last minute cleanups |
#vim extensions.conf
--- /tmp/l3-saved-2226.14112.22049 2011-06-29 17:13:25.000000000 +0400 +++ extensions.conf 2011-06-29 17:15:16.000000000 +0400 @@ -37,7 +37,7 @@ exten => s,n,Hangup exten => 1,1,Goto(submenu,s,1) -exten => 2,1,Goto(SIP/1201) +exten => 2,1,Dial(SIP/1201) exten => 9,1,Goto(menu,s,start) [submenu] |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux2 (pid = 1313) Verbosity is at least 2 linux2*CLI> dialplan reload Dialplan reloaded. == Parsing '/etc/asterisk/extensions.conf': == Found == Parsing '/etc/asterisk/users.conf': == Found linux2*CLI> exit Executing last minute cleanups |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux2 (pid = 1313) Verbosity is at least 2 linux2*CLI> dialplan reload Dialplan reloaded. == Parsing '/etc/asterisk/extensions.conf': == Found == Parsing '/etc/asterisk/users.conf': == Found linux2*CLI> exit Executing last minute cleanups |
#vim extensions.conf
--- /tmp/l3-saved-2226.26575.6493 2011-06-29 17:15:22.000000000 +0400 +++ extensions.conf 2011-06-29 17:16:27.000000000 +0400 @@ -20,7 +20,7 @@ ;Srazu play last records exten => _82XX,n,Playback(/var/tmp/asterisk/message${EXTEN:2}) -;Vihod ns golosovoe menu +;Vihod na golosovoe menu exten => 8400,1,Goto(menu,s,1) |
#vim extensions.conf
--- /tmp/l3-saved-2226.20649.17698 2011-06-29 17:16:30.000000000 +0400 +++ extensions.conf 2011-06-29 17:23:06.000000000 +0400 @@ -37,7 +37,8 @@ exten => s,n,Hangup exten => 1,1,Goto(submenu,s,1) -exten => 2,1,Dial(SIP/1201) +;exten => 2,1,Dial(SIP/1201) +exten => 2,1,Dial(SIP/ast/1103) exten => 9,1,Goto(menu,s,start) [submenu] |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux2 (pid = 1313) Verbosity is at least 2 linux2*CLI> dialplan reload Dialplan reloaded. == Parsing '/etc/asterisk/extensions.conf': == Found == Parsing '/etc/asterisk/users.conf': == Found == Using SIP RTP CoS mark 5 == Using SIP RTP CoS mark 5 == Spawn extension (menu, 2, 1) exited non-zero on 'SIP/1202-0000005d' linux2*CLI> exit Executing last minute cleanups |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux2 (pid = 1313) Verbosity is at least 2 linux2*CLI> dialplan reload Dialplan reloaded. == Parsing '/etc/asterisk/extensions.conf': == Found == Parsing '/etc/asterisk/users.conf': == Found == Using SIP RTP CoS mark 5 == Using SIP RTP CoS mark 5 == Spawn extension (menu, 2, 1) exited non-zero on 'SIP/1202-0000005d' linux2*CLI> exit Executing last minute cleanups |
#lspci
00:00.0 Host bridge: Intel Corporation 82G33/G31/P35/P31 Express DRAM Controller (rev 10) 00:02.0 VGA compatible controller: Intel Corporation 82G33/G31 Express Integrated Graphics Controller (rev 10) 00:1b.0 Audio device: Intel Corporation N10/ICH 7 Family High Definition Audio Controller (rev 01) 00:1c.0 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 1 (rev 01) 00:1c.1 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 2 (rev 01) 00:1d.0 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #1 (rev 01) 00:1d.1 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #2 (rev 01) 00:1d.2 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #3 (rev 01) 00:1d.3 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #4 (rev 01) 00:1d.7 USB Controller: Intel Corporation N10/ICH 7 Family USB2 EHCI Controller (rev 01) 00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev e1) 00:1f.0 ISA bridge: Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface Bridge (rev 01) 00:1f.2 IDE interface: Intel Corporation N10/ICH7 Family SATA IDE Controller (rev 01) 00:1f.3 SMBus: Intel Corporation N10/ICH 7 Family SMBus Controller (rev 01) 02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 02) 03:00.0 Ethernet controller: Digium, Inc. Wildcard TE122 single-span T1/E1/J1 card (rev 11) |
#lspci
00:00.0 Host bridge: Intel Corporation 82G33/G31/P35/P31 Express DRAM Controller (rev 10) 00:02.0 VGA compatible controller: Intel Corporation 82G33/G31 Express Integrated Graphics Controller (rev 10) 00:1b.0 Audio device: Intel Corporation N10/ICH 7 Family High Definition Audio Controller (rev 01) 00:1c.0 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 1 (rev 01) 00:1c.1 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 2 (rev 01) 00:1d.0 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #1 (rev 01) 00:1d.1 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #2 (rev 01) 00:1d.2 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #3 (rev 01) 00:1d.3 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #4 (rev 01) 00:1d.7 USB Controller: Intel Corporation N10/ICH 7 Family USB2 EHCI Controller (rev 01) 00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev e1) 00:1f.0 ISA bridge: Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface Bridge (rev 01) 00:1f.2 IDE interface: Intel Corporation N10/ICH7 Family SATA IDE Controller (rev 01) 00:1f.3 SMBus: Intel Corporation N10/ICH 7 Family SMBus Controller (rev 01) 02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 02) 03:00.0 Ethernet controller: Digium, Inc. Wildcard TE122 single-span T1/E1/J1 card (rev 11) |
#apt-get install dahdi-source
Чтение списков пакетов... Готово Построение дерева зависимостей Чтение информации о состоянии... Готово НОВЫЕ пакеты, которые будут установлены: dahdi-source обновлено 0, установлено 1 новых пакетов, для удаления отмечено 0 пакетов, и 0 пакетов не обновлено. Необходимо скачать 912 kБ архивов. После данной операции, объём занятого дискового пространства возрастёт на 1 044 kB. Получено:1 http://192.168.15.253/debian/ squeeze/main dahdi-source all 1:2.3.0.1+dfsg-2 [912 kB] Получено 912 kБ за 0с (8 540 kБ/c) Выбор ранее не выбранного пакета dahdi-source. (Чтение базы данных ... на данный момент установлено 113518 файлов и каталогов.) Распаковывается пакет dahdi-source (из файла .../dahdi-source_1%3a2.3.0.1+dfsg-2_all.deb)... Настраивается пакет dahdi-source (1:2.3.0.1+dfsg-2) ... |
#apt-get install dahdi-source
Чтение списков пакетов... Готово Построение дерева зависимостей Чтение информации о состоянии... Готово НОВЫЕ пакеты, которые будут установлены: dahdi-source обновлено 0, установлено 1 новых пакетов, для удаления отмечено 0 пакетов, и 0 пакетов не обновлено. Необходимо скачать 912 kБ архивов. После данной операции, объём занятого дискового пространства возрастёт на 1 044 kB. Получено:1 http://192.168.15.253/debian/ squeeze/main dahdi-source all 1:2.3.0.1+dfsg-2 [912 kB] Получено 912 kБ за 0с (8 540 kБ/c) Выбор ранее не выбранного пакета dahdi-source. (Чтение базы данных ... на данный момент установлено 113518 файлов и каталогов.) Распаковывается пакет dahdi-source (из файла .../dahdi-source_1%3a2.3.0.1+dfsg-2_all.deb)... Настраивается пакет dahdi-source (1:2.3.0.1+dfsg-2) ... |
#m-a a-i dahdi
│ │ │ │ │ │ │ │ │ 100% │ │ │ └─────────────────────────────────────────────────────────────────────────┘ Завершено с /usr/src/dahdi-modules-2.6.32-5-amd64_2.3.0.1+dfsg-2+2.6.32-35_amd64.deb . dpkg -Ei /usr/src/dahdi-modules-2.6.32-5-amd64_2.3.0.1+dfsg-2+2.6.32-35_amd64.deb Выбор ранее не выбранного пакета dahdi-modules-2.6.32-5-amd64. (Чтение базы данных ... на данный момент установлено 121123 файла и каталога.) Распаковывается пакет dahdi-modules-2.6.32-5-amd64 (из файла .../dahdi-modules-2.6.32-5-amd64_2.3.0.1+dfsg-2+2.6.32-35_amd64.deb)... Настраивается пакет dahdi-modules-2.6.32-5-amd64 (1:2.3.0.1+dfsg-2+2.6.32-35) ... |
#m-a a-i dahdi
Распаковывается пакет linux-headers-2.6.32-5-common (из файла .../linux-headers-2.6.32-5-common_2.6.32-35_amd64.deb)... Выбор ранее не выбранного пакета linux-kbuild-2.6.32. Распаковывается пакет linux-kbuild-2.6.32 (из файла .../linux-kbuild-2.6.32_2.6.32-1_amd64.deb)... Выбор ранее не выбранного пакета linux-headers-2.6.32-5-amd64. Распаковывается пакет linux-headers-2.6.32-5-amd64 (из файла .../linux-headers-2.6.32-5-amd64_2.6.32-35_amd64.deb)... Настраивается пакет gcc-4.3-base (4.3.5-4) ... Настраивается пакет cpp-4.3 (4.3.5-4) ... Настраивается пакет gcc-4.3 (4.3.5-4) ... Настраивается пакет linux-headers-2.6.32-5-common (2.6.32-35) ... Настраивается пакет linux-kbuild-2.6.32 (2.6.32-1) ... ... │ │ │ 100% │ │ │ └─────────────────────────────────────────────────────────────────────────┘ Завершено с /usr/src/dahdi-modules-2.6.32-5-amd64_2.3.0.1+dfsg-2+2.6.32-35_amd64.deb . dpkg -Ei /usr/src/dahdi-modules-2.6.32-5-amd64_2.3.0.1+dfsg-2+2.6.32-35_amd64.deb Выбор ранее не выбранного пакета dahdi-modules-2.6.32-5-amd64. (Чтение базы данных ... на данный момент установлено 121123 файла и каталога.) Распаковывается пакет dahdi-modules-2.6.32-5-amd64 (из файла .../dahdi-modules-2.6.32-5-amd64_2.3.0.1+dfsg-2+2.6.32-35_amd64.deb)... Настраивается пакет dahdi-modules-2.6.32-5-amd64 (1:2.3.0.1+dfsg-2+2.6.32-35) ... |
#cat /etc/dahdi/system.conf
# Autogenerated by /usr/sbin/dahdi_genconf on Thu Jun 30 10:38:29 2011 # If you edit this file and execute /usr/sbin/dahdi_genconf again, # your manual changes will be LOST. # Dahdi Configuration File # # This file is parsed by the Dahdi Configurator, dahdi_cfg # # Global data loadzone = us defaultzone = us |
#cat /etc/dahdi/system.conf
# Autogenerated by /usr/sbin/dahdi_genconf on Thu Jun 30 10:38:29 2011 # If you edit this file and execute /usr/sbin/dahdi_genconf again, # your manual changes will be LOST. # Dahdi Configuration File # # This file is parsed by the Dahdi Configurator, dahdi_cfg # # Global data loadzone = us defaultzone = us |
#grep -i d161.*8001 /lib/modules/2.6.32-5-amd64//modules.alias
alias pci:v0000D161d00008001sv*sd*bc*sc*i* wcte12xp |
#grep -i d161.*8001 /lib/modules/2.6.32-5-amd64//modules.alias
alias pci:v0000D161d00008001sv*sd*bc*sc*i* wcte12xp |
#dahdi_cfg -v
DAHDI Tools Version - 2.2.1.1 DAHDI Version: 2.3.0.1 Echo Canceller(s): OSLEC Configuration ====================== SPAN 1: CCS/HDB3 Build-out: 0 db (CSU)/0-133 feet (DSX-1) 31 channels to configure. Setting echocan for channel 1 to oslec Setting echocan for channel 2 to oslec Setting echocan for channel 3 to oslec ... Setting echocan for channel 22 to oslec Setting echocan for channel 23 to oslec Setting echocan for channel 24 to oslec Setting echocan for channel 25 to oslec Setting echocan for channel 26 to oslec Setting echocan for channel 27 to oslec Setting echocan for channel 28 to oslec Setting echocan for channel 29 to oslec Setting echocan for channel 30 to oslec Setting echocan for channel 31 to oslec |
#dahdi_cfg -v
DAHDI Tools Version - 2.2.1.1 DAHDI Version: 2.3.0.1 Echo Canceller(s): OSLEC Configuration ====================== SPAN 1: CCS/HDB3 Build-out: 0 db (CSU)/0-133 feet (DSX-1) 31 channels to configure. Setting echocan for channel 1 to oslec Setting echocan for channel 2 to oslec Setting echocan for channel 3 to oslec ... Setting echocan for channel 22 to oslec Setting echocan for channel 23 to oslec Setting echocan for channel 24 to oslec Setting echocan for channel 25 to oslec Setting echocan for channel 26 to oslec Setting echocan for channel 27 to oslec Setting echocan for channel 28 to oslec Setting echocan for channel 29 to oslec Setting echocan for channel 30 to oslec Setting echocan for channel 31 to oslec |
#dmesg
[ 0.000000] Initializing cgroup subsys cpuset [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Linux version 2.6.32-5-amd64 (Debian 2.6.32-35) (dannf@debian.org) (gcc version 4.3.5 (Debian 4.3.5-4) ) #1 SMP Tue Jun 14 09:42:28 UTC 2011 [ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-2.6.32-5-amd64 root=UUID=ba2c6fad-710b-41ba-95df-4f2300a3c24b ro quiet [ 0.000000] KERNEL supported cpus: [ 0.000000] Intel GenuineIntel [ 0.000000] AMD AuthenticAMD [ 0.000000] Centaur CentaurHauls [ 0.000000] BIOS-provided physical RAM map: [ 0.000000] BIOS-e820: 0000000000000000 - 000000000009f800 (usable) ... [ 16.012004] eth0: no IPv6 routers present [ 17.371269] CPU0 attaching NULL sched-domain. [ 17.371275] CPU1 attaching NULL sched-domain. [ 17.404136] CPU0 attaching sched-domain: [ 17.404141] domain 0: span 0-1 level MC [ 17.404143] groups: 0 1 [ 17.404149] CPU1 attaching sched-domain: [ 17.404151] domain 0: span 0-1 level MC [ 17.404154] groups: 1 0 [ 17.717477] wcte12xp 0000:03:00.0: Missed interrupt. Increasing latency to 11 ms in order to compensate. |
#dmesg
[ 0.000000] Initializing cgroup subsys cpuset [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Linux version 2.6.32-5-amd64 (Debian 2.6.32-35) (dannf@debian.org) (gcc version 4.3.5 (Debian 4.3.5-4) ) #1 SMP Tue Jun 14 09:42:28 UTC 2011 [ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-2.6.32-5-amd64 root=UUID=ba2c6fad-710b-41ba-95df-4f2300a3c24b ro quiet [ 0.000000] KERNEL supported cpus: [ 0.000000] Intel GenuineIntel [ 0.000000] AMD AuthenticAMD [ 0.000000] Centaur CentaurHauls [ 0.000000] BIOS-provided physical RAM map: [ 0.000000] BIOS-e820: 0000000000000000 - 000000000009f800 (usable) ... [ 16.012004] eth0: no IPv6 routers present [ 17.371269] CPU0 attaching NULL sched-domain. [ 17.371275] CPU1 attaching NULL sched-domain. [ 17.404136] CPU0 attaching sched-domain: [ 17.404141] domain 0: span 0-1 level MC [ 17.404143] groups: 0 1 [ 17.404149] CPU1 attaching sched-domain: [ 17.404151] domain 0: span 0-1 level MC [ 17.404154] groups: 1 0 [ 17.717477] wcte12xp 0000:03:00.0: Missed interrupt. Increasing latency to 11 ms in order to compensate. |
#~
; Default language ; ;language=en ; ; Context for calls. Defaults to 'default' #include /etc/asterisk/dahdi-channels.conf ; ;context=incoming ; ; Switchtype: Only used for PRI. ; ; national: National ISDN 2 (default) "/etc/asterisk/chan_dahdi.conf" 1225L, 47049C записано |
#~
; [ Trunk grou]s are used for NFAS or GR-303 connections. [ ] ; ; Group: Defines a trunk group. ; ; trunkgroup is the numerical trunk group to create ; dchannel is the DAHDI channel which will have the ; d-channel for the trunk. ; backup1 is an optional list of backup d-channels. ... ; ; Context for calls. Defaults to 'default' #include /etc/asterisk/dahdi-channels.conf ; ;context=incoming ; ; Switchtype: Only used for PRI. ; ; national: National ISDN 2 (default) "/etc/asterisk/chan_dahdi.conf" 1225L, 47049C записано |
#~
; ; Span 1: WCT1/0 "Wildcard TE122 Card 0" (MASTER) group=0,11 =1 context=from-pstn switchtype = euroisdn channel => 1-15,17-31 ~ ~ ~ ~ ~ ~ ~ ~ "/etc/asterisk/dahdi-channels.conf" 16L, 533C записано |
#~
; ; Span 1: WCT1/0 "Wildcard TE122 Card 0" (MASTER) group=0,11 =1 context=from-pstn switchtype = euroisdn channel => 1-15,17-31 ~ ~ ~ ~ ~ ~ ~ ~ "/etc/asterisk/dahdi-channels.conf" 16L, 533C записано |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#asterisk -rvv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux2 (pid = 2384) Verbosity is at least 3 linux2*CLI> exit Executing last minute cleanups |
#asterisk -rvv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux2 (pid = 2384) Verbosity is at least 3 linux2*CLI> exit Executing last minute cleanups |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux2 (pid = 2384) Verbosity is at least 3 linux2*CLI> exit Executing last minute cleanups |
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux2 (pid = 2384) Verbosity is at least 3 linux2*CLI> exit Executing last minute cleanups |
#asterisk -rvv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux2 (pid = 2384) ... DND: no Echo Cancellation: 1 taps (unless TDM bridged) currently OFF Wait for dialtone: 0ms PRI Flags: PRI Logical Span: Implicit Hookstate (FXS only): Onhook linux2*CLI> exit Executing last minute cleanups |
#asterisk -rvv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux2 (pid = 2384) ... DND: no Echo Cancellation: 1 taps (unless TDM bridged) currently OFF Wait for dialtone: 0ms PRI Flags: PRI Logical Span: Implicit Hookstate (FXS only): Onhook linux2*CLI> exit Executing last minute cleanups |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2108.16154.2621 2011-06-30 11:53:06.000000000 +0400 +++ /etc/asterisk/extensions.conf 2011-06-30 12:00:37.000000000 +0400 @@ -89,12 +89,19 @@ [national] exten => _11XX,1,Dial(SIP/ast/${EXTEN}) + ;M/N [international] -exten => _21XX,1,Dial(SIP/mn/${EXTEN}) -exten => _22XX,1,Dial(SIP/mn/${EXTEN}) -exten => _31XX,1,Dial(SIP/ny/${EXTEN}) -exten => _32XX,1,Dial(SIP/ny/${EXTEN}) +;exten => _21XX,1,Dial(SIP/mn/${EXTEN}) +;exten => _22XX,1,Dial(SIP/mn/${EXTEN}) +exten => _21XX,1,Dial(DAHDI/g1/${EXTEN}) +exten => _22XX,1,Dial(DAHDI/g1/${EXTEN}) + +;exten => _31XX,1,Dial(SIP/ny/${EXTEN}) +;exten => _32XX,1,Dial(SIP/ny/${EXTEN}) +exten => _31XX,1,Dial(DAHDI/g1/${EXTEN}) +exten => _32XX,1,Dial(DAHDI/g1/${EXTEN}) + [gr1] |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2108.21658.29278 2011-06-30 12:01:10.000000000 +0400 +++ /etc/asterisk/extensions.conf 2011-06-30 12:02:52.000000000 +0400 @@ -123,4 +123,8 @@ include => national include => international +[from-pstn] +include => local +include => national +include => international |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2108.6581.900 2011-06-30 12:03:57.000000000 +0400 +++ /etc/asterisk/extensions.conf 2011-06-30 12:04:37.000000000 +0400 @@ -37,6 +37,7 @@ exten => s,n,Hangup exten => 1,1,Goto(submenu,s,1) +;Dial na operator ;exten => 2,1,Dial(SIP/1201) exten => 2,1,Dial(SIP/ast/1103) exten => 9,1,Goto(menu,s,start) |
#[ ]
type=friend secret=1234 host=dynamic canreinvite=no callerid = "Max Moscow <1201>" context=gr1 language=ru mailbox=1201 [1202] type=friend secret=1234 host=dynamic canreinvite=no callerid = "Max Moscow <1202>" context=gr2 mailbox=1202 language=ru [ast] type=friend username=msk type=friend 17,0-1 25% |
#[ ]
type=friend secret=1234 host=dynamic canreinvite=no callerid = "Max Moscow <1201>" context=gr1 language=ru mailbox=1201 [1202] type=friend secret=1234 host=dynamic canreinvite=no callerid = "Max Moscow <1202>" context=gr2 mailbox=1202 language=ru [ast] type=friend username=msk type=friend 17,0-1 25% |
#[1202]
exten => _12XX,n,GotoIf($["${DIALSTATUS}" = "CONGESTION"]?voicemail) exten => _12XX,n,Hangup exten => _12XX,n(voicemail),Voicemail(${EXTEN}@default) exten => _12XX,n,Hangup ;M/G [national] [ ] ;M/N [international] [ ] ... ;[gr3] [gr4] [gr4] include => national include => international [from-pstn] include => local include => national include => international include => local 130,2 99% |
#[1202]
;Record each voice to each files correspond nomber dial exten => _82XX,1,Record(/var/tmp/asterisk/message${EXTEN:2}:wav,2) ;Srazu play last records exten => _82XX,n,Playback(/var/tmp/asterisk/message${EXTEN:2}) ;Vihod na golosovoe menu [menu] [menu] exten => s,1,Answer 29,1 3% include => internal ... [gr4] [gr4] include => national include => local1,Dial(SIP/mn/${EXTEN}) 124,2 93% include => international [from-pstn] include => local include => national include => international 130,2 99% |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2108.10013.9433 2011-06-30 13:09:55.000000000 +0400 +++ /etc/asterisk/extensions.conf 2011-06-30 13:10:03.000000000 +0400 @@ -11,7 +11,7 @@ exten => _81XX,1,VoicemailMain(12${EXTEN:2}) ;Record any voice to file, example for make menu -exten => 8200,1,Record(/var/tmp/asterisk/message00:wav,2) ;2 - posle 2 ces record will stop +exten => 8199,1,Record(/var/tmp/asterisk/message00:wav,2) ;2 - posle 2 ces record will stop ;Play file exten => 8200,n,Playback(/var/tmp/asterisk/message00) |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2108.25190.15985 2011-06-30 13:10:42.000000000 +0400 +++ /etc/asterisk/extensions.conf 2011-06-30 13:21:28.000000000 +0400 @@ -40,6 +40,15 @@ ;Dial na operator ;exten => 2,1,Dial(SIP/1201) exten => 2,1,Dial(SIP/ast/1103) + +exten => 3,1,Read(PASSWORD, /var/tmp/asterisk/message07) +;proverka parolya +exten => 3,n,GotoIf($[${PASSWORD} = 1234]?correct_password) +exten => 3,n,Playback(/var/tmp/asterisk/message08) ; incorrect +exten => 3,n,Hangup +exten => 3,n(correct_password),Playback(/var/tmp/asterisk/message09) ; correct +exten => 3,n,System(touch /tmp/zdes-byl-asterisk) + exten => 9,1,Goto(menu,s,start) [submenu] @@ -49,6 +58,7 @@ exten => 1,1,Goto(submenu-moskva,s,1) exten => 2,1,Goto(submenu-burunduk,s,1) + exten => 9,1,Goto(submenu,s,1) exten => 0,1,Goto(menu,s,start) |
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-2108.12005.3693 2011-06-30 13:21:33.000000000 +0400 +++ /etc/asterisk/sip.conf 2011-06-30 13:22:08.000000000 +0400 @@ -21,7 +21,7 @@ host=dynamic canreinvite=no callerid = "Max Moscow <1202>" -context=gr4 +context=gr3 mailbox=1202 language=ru |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2108.24973.5779 2011-06-30 13:22:10.000000000 +0400 +++ /etc/asterisk/extensions.conf 2011-06-30 13:23:38.000000000 +0400 @@ -125,9 +125,10 @@ include => local include => national -;[gr3] -;include => local -;include => international +[gr3] +inernal => internal +include => local +include => international [gr4] include => local |
#include => international
register => msk:password@192.168.15.1/ast register => msk:password@192.168.15.6/ny register => msk:password@192.168.15.3/mn [1201] type=friend secret=1234 host=dynamic canreinvite=no callerid = "Max Moscow <1201>" context=gr1 language=ru mailbox=1201 [1202] [1202]riend secret=1234 host=dynamic canreinvite=no callerid = "Max Moscow <1202>" context=gr3 mailbox=1202 "/etc/asterisk/sip.conf" 56L, 675C записано |
#include => international
host=dynamic canreinvite=no username=msk context=gr4 [mn] [mn] secret=password host=dynamic canreinvite=no username=msk ... mailbox=1201 [1202] [1202]riend secret=1234 host=dynamic canreinvite=no callerid = "Max Moscow <1202>" context=gr3 mailbox=1202 "/etc/asterisk/sip.conf" 56L, 675C записано |
#ls /var/tmp/asterisk
message01.wav message03.wav message05.wav message07.wav message09.wav ru-burunduk.wav ru-moskva.wav message02.wav message04.wav message06.wav message08.wav ru-burunduk.txt ru-moskva.txt |
#ls /var/tmp/asterisk
message01.wav message03.wav message05.wav message07.wav message09.wav ru-burunduk.wav ru-moskva.wav message02.wav message04.wav message06.wav message08.wav ru-burunduk.txt ru-moskva.txt |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2108.12530.11235 2011-06-30 13:40:55.000000000 +0400 +++ /etc/asterisk/extensions.conf 2011-06-30 13:42:28.000000000 +0400 @@ -41,7 +41,7 @@ ;exten => 2,1,Dial(SIP/1201) exten => 2,1,Dial(SIP/ast/1103) -exten => 3,1,Read(PASSWORD, /var/tmp/asterisk/message07) +exten => 3,1,Read(PASSWORD,/var/tmp/asterisk/message07) ;proverka parolya exten => 3,n,GotoIf($[${PASSWORD} = 1234]?correct_password) exten => 3,n,Playback(/var/tmp/asterisk/message08) ; incorrect |
#asterisk -rvvvvv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux2 (pid = 3318) ... -- <SIP/1202-0000000a> Playing '/var/tmp/asterisk/message07.slin' (language 'ru') -- User entered '1234' -- Executing [3@menu:2] GotoIf("SIP/1202-0000000a", "1?correct_password") in new stack -- Goto (menu,3,5) -- Executing [3@menu:5] Playback("SIP/1202-0000000a", "/var/tmp/asterisk/message09") in new stack -- <SIP/1202-0000000a> Playing '/var/tmp/asterisk/message09.slin' (language 'ru') -- Executing [3@menu:6] System("SIP/1202-0000000a", "touch /tmp/zdes-byl-asterisk") in new stack -- Auto fallthrough, channel 'SIP/1202-0000000a' status is 'UNKNOWN' linux2*CLI> exit Executing last minute cleanups |
# Autogenerated by /usr/sbin/dahdi_genconf on Thu Jun 30 10:38:29 2011 # If you edit this file and execute /usr/sbin/dahdi_genconf again, # your manual changes will be LOST. # Dahdi Configuration File # # This file is parsed by the Dahdi Configurator, dahdi_cfg # # Global data loadzone = us defaultzone = us
Время первой команды журнала | 15:09:32 2011- 6-29 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 11:42:58 2011- 6-30 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 3.96 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 1.98 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 2.51 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.67 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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