/l3/users/angell2807/nt-voip/linux2.unix.nt.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 |
|
#tail -f /var/log/
![]() apt/ atop.log.2 debug dmesg.4.gz fsck/ mail.err pycentral.log syslog.4.gz aptitude auth.log dmesg dpkg.log gdm/ mail.info samba/ unattended-upgrades/ asterisk/ boot dmesg.0 exim4/ installer/ mail.log syslog user.log atop/ btmp dmesg.1.gz faillog kern.log mail.warn syslog.1 wtmp atop.log cups/ dmesg.2.gz festival/ lastlog messages syslog.2.gz Xorg.0.log atop.log.1 daemon.log dmesg.3.gz fontconfig.log lpr.log news/ syslog.3.gz Xorg.0.log.old |
#tail -f /var/log/messages
![]() Oct 29 10:17:49 linux2 dhcpd: DHCPACK on 192.168.102.100 to 00:04:13:24:e5:7e via eth0 Oct 29 10:20:15 linux2 dhcpd: DHCPREQUEST for 192.168.102.101 from 00:1a:92:0d:cd:39 via eth0 Oct 29 10:20:15 linux2 dhcpd: DHCPACK on 192.168.102.101 to 00:1a:92:0d:cd:39 via eth0 Oct 29 10:20:59 linux2 kernel: [ 351.838360] tor2 4: invalid span timing value 4. Oct 29 10:22:43 linux2 kernel: [ 454.906355] Registered tone zone 0 (United States / North America) Oct 29 10:22:43 linux2 kernel: [ 455.092967] Zaptel: Master changed to Tor2/0/2 Oct 29 10:22:43 linux2 kernel: [ 455.094570] Zaptel: Master changed to Tor2/0/3 Oct 29 10:22:43 linux2 kernel: [ 455.140006] SPAN 4: Primary Sync Source Oct 29 10:22:49 linux2 dhcpd: DHCPREQUEST for 192.168.102.100 from 00:04:13:24:e5:7e via eth0 Oct 29 10:22:49 linux2 dhcpd: DHCPACK on 192.168.102.100 to 00:04:13:24:e5:7e via eth0 ... Oct 29 14:04:13 linux2 dhcpd: DHCPACK on 192.168.102.101 to 00:1a:92:0d:cd:39 via eth0 Oct 29 14:07:50 linux2 dhcpd: DHCPREQUEST for 192.168.102.100 from 00:04:13:24:e5:7e via eth0 Oct 29 14:07:50 linux2 dhcpd: DHCPACK on 192.168.102.100 to 00:04:13:24:e5:7e via eth0 Oct 29 14:08:04 linux2 dhcpd: DHCPREQUEST for 192.168.102.101 from 00:1a:92:0d:cd:39 via eth0 Oct 29 14:08:04 linux2 dhcpd: DHCPACK on 192.168.102.101 to 00:1a:92:0d:cd:39 via eth0 Oct 29 14:12:50 linux2 dhcpd: DHCPREQUEST for 192.168.102.100 from 00:04:13:24:e5:7e via eth0 Oct 29 14:12:50 linux2 dhcpd: DHCPACK on 192.168.102.100 to 00:04:13:24:e5:7e via eth0 Oct 29 14:12:50 linux2 dhcpd: DHCPREQUEST for 192.168.102.101 from 00:1a:92:0d:cd:39 via eth0 Oct 29 14:12:50 linux2 dhcpd: DHCPACK on 192.168.102.101 to 00:1a:92:0d:cd:39 via eth0 ^C |
#ztscan
[1] active=yes alarms=BLU/RED description=Tormenta 2 (PCI) Quad E1 Card 0 Span 1 name=Tor2/0/1 manufacturer=Digium devicetype=Tormenta 2 Quad T1/PRI or E1/PRA location=PCI Bus 01 Slot 10 basechan=1 totchans=31 ... basechan=94 totchans=31 irq=0 type=digital-E1 syncsrc=0 lbo=0 db (CSU)/0-133 feet (DSX-1) coding_opts=HDB3 framing_opts=CCS,CRC4 coding=HDB3 framing=CCS |
#ztscan
[1] active=yes alarms=BLU/RED description=Tormenta 2 (PCI) Quad E1 Card 0 Span 1 name=Tor2/0/1 manufacturer=Digium devicetype=Tormenta 2 Quad T1/PRI or E1/PRA location=PCI Bus 01 Slot 10 basechan=1 totchans=31 ... basechan=94 totchans=31 irq=0 type=digital-E1 syncsrc=0 lbo=0 db (CSU)/0-133 feet (DSX-1) coding_opts=HDB3 framing_opts=CCS,CRC4 coding=HDB3 framing=CCS |
#ztscan | less
|
#dmesg | less
|
#~
170 ; featdmf: Feature Group D (The real thing, MF (domestic, US)) 171 ; featdmf_ta: Feature Group D (The real thing, MF (domestic, US)) through 172 ; a Tandem Access point 173 ; featb: Feature Group B (MF (domestic, US)) 174 ; fgccama Feature Group C-CAMA (DP DNIS, MF ANI) 175 ; fgccamamf Feature Group C-CAMA MF (MF DNIS, MF ANI) 176 ; fxs_ls: FXS (Loop Start) 177 ; fxs_gs: FXS (Ground Start) 178 ; fxs_ks: FXS (Kewl Start) 179 ; fxo_ls: FXO (Loop Start) ... 674 ; and they will be printed on the console when an inbound call comes in. 675 ; 676 ;dring1=95,0,0 677 ;dring1context=internal1 678 ;dring2=325,95,0 679 ;dring2context=internal2 680 ; If no pattern is matched here is where we go. 681 ;context=default 682 ;channel => 1 683 |
#vi /etc/asterisk/zapata.conf
|
#683
4 # This file is parsed by the Zaptel Configurator, ztcfg 5 # 6 # Span 1: Tor2/0/1 "Tormenta 2 (PCI) Quad E1 Card 0 Span 1" (MASTER) HDB3/CCS/CRC4 7 span=1,1,0,ccs,hdb3,crc4 8 # termtype: te 9 bchan=1-15,17-31 10 dchan=16 11 12 # Span 2: Tor2/0/2 "Tormenta 2 (PCI) Quad E1 Card 0 Span 2" HDB3/CCS/CRC4 13 span=2,1,0,ccs,hdb3,crc4 ... 25 span=4,1,0,ccs,hdb3,crc4 26 # termtype: te 27 bchan=94-108,110-124 28 dchan=109 29 30 # Global data 31 "/etc/zaptel.conf" 33L, 803C 32 loadzone = us 33 defaultzone = us |
#~
|
#asterisk -rvvv
![]() Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... 6 sip peers [Monitored: 0 online, 0 offline Unmonitored: 2 online, 4 offline] linux2*CLI> iax2 show pe peers peer linux2*CLI> iax2 show peers Name/Username Host Mask Port Status vn/rv 192.168.104.1 (D) 255.255.255.255 4569 OK (14 ms) nk/rv 192.168.101.1 (D) 255.255.255.255 4569 OK (14 ms) kv/rv 192.168.103.1 (D) 255.255.255.255 4569 OK (6 ms) 3 iax2 peers [3 online, 0 offline, 0 unmonitored] linux2*CLI> |
#vi /etc/asterisk/zapata.conf
--- /tmp/l3-saved-3339.19703.24863 2010-10-29 10:43:32.000000000 +0300 +++ /etc/asterisk/zapata.conf 2010-10-29 10:44:37.000000000 +0300 @@ -667,6 +667,10 @@ ; group = 2 ; channel => 1-23 +group=1 +channel => 1-4 + + ; ; Used for distinctive ring support for x100p. |
#vi /etc/asterisk/zapata.conf
--- /tmp/l3-saved-3339.12648.25924 2010-10-29 10:45:07.000000000 +0300 +++ /etc/asterisk/zapata.conf 2010-10-29 10:45:28.000000000 +0300 @@ -211,7 +211,7 @@ ; sf_rxtx: Same as sf_txrx (for our dyslexic friends) ; ;signalling=fxo_ls -signalling=fxo_net +signalling=pri_net ; ; If you have an outbound signalling format that is different from format ; specified above (but compatible), you can specify outbound signalling format, |
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': Found == Parsing '/etc/asterisk/extconfig.conf': Found Connected to Asterisk 1.4.21.2~dfsg-3+lenny1 currently running on linux2 (pid = 2530) Verbosity is at least 3 [Oct 29 10:46:54] WARNING[4270]: chan_zap.c:2498 pri_find_dchan: No D-channels available! Using Primary channel 16 as D-channel anyway! linux2*CLI> linux2*CLI> [Oct 29 10:46:59] WARNING[4270]: chan_zap.c:2498 pri_find_dchan: No D-channels available! Using Primary channel 16 as D-channel anyway! [Oct 29 10:47:04] WARNING[4270]: chan_zap.c:2498 pri_find_dchan: No D-channels available! Using Primary channel 16 as D-channel anyway! linux2*CLI> |
#~
-rw-r--r-- 1 root root 803 Окт 29 10:22 /etc/zaptel.conf |
#/etc/init.d/asterisk start
Starting Asterisk PBX: asterisk. |
#vi extensions.conf
--- /tmp/l3-saved-3339.18185.28788 2010-10-29 11:00:00.000000000 +0300 +++ extensions.conf 2010-10-29 11:01:30.000000000 +0300 @@ -151,8 +151,9 @@ [national] ; Николаев -exten => _11XX,1,Macro(dial-with-callerid,IAX2/nk/${EXTEN}) +;;exten => _11XX,1,Macro(dial-with-callerid,IAX2/nk/${EXTEN}) ;exten => _11XX,1,Dial(SIP/nk/${EXTEN}) +exten => _11XX,1,Dial(ZAP/g1/${EXTEN}) ;exten => _13XX,1,Dial(SIP/kv/${EXTEN}) ;exten => _14XX,1,Dial(SIP/vn/${EXTEN}) exten => _13XX,1,Macro(dial-with-callerid,IAX2/kv/${EXTEN}) |
#asterisk -rvvv
![]() Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... -- Including context 'servise' in context 'grup3' -- Including context 'local' in context 'grup3' == Parsing '/etc/asterisk/users.conf': Found -- Executing [1101@grup2:1] Dial("SIP/1201-08658b20", "ZAP/g1/1101") in new stack -- Requested transfer capability: 0x00 - SPEECH -- Called g1/1101 -- Channel 0/1, span 1 got hangup, cause 1 -- Hungup 'Zap/1-1' == Everyone is busy/congested at this time (1:0/0/1) == Auto fallthrough, channel 'SIP/1201-08658b20' status is 'CHANUNAVAIL' |
#asterisk -rvvv
![]() Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': Found == Parsing '/etc/asterisk/extconfig.conf': Found Connected to Asterisk 1.4.21.2~dfsg-3+lenny1 currently running on linux2 (pid = 4468) Verbosity is at least 3 -- SIP/1201-08658b20 is ringing linux2*CLI> |
#asterisk -rvvv
![]() Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... -- Called 1201 -- SIP/1201-08658b20 is ringing -- SIP/1201-08658b20 is ringing -- SIP/1201-08658b20 is ringing -- SIP/1201-08658b20 is ringing -- SIP/1201-08658b20 answered Zap/4-1 -- Channel 0/4, span 1 got hangup request, cause 16 == Spawn extension (default, 1201, 1) exited non-zero on 'Zap/4-1' -- Hungup 'Zap/4-1' linux2*CLI> |
#vi extensions.conf
|
#179 include => local
5 ;exten => _12XX,1,Dial(SIP/1201) 6 exten => _12XX,1,Dial(SIP/${EXTEN},10) 7 exten => _1201,n,Dial(SIP/1202,20) 8 9 10 exten => _12XXX,1,Dial(SIP/${EXTEN:0:4}) ; Используем только первые 4 цифры - 5-тую отбрасываем 11 exten => _12XXX,1,Dial(SIP/1${EXTEN:1:4}) 12 13 14 exten => _62XX,1,Wait(2) ... 170 include => servise 171 include => local 172 include => national 173 include => international 174 175 [grup1] 176 177 ;exten => 1201,1,Dial(SIP/1201) 178 include => servise 179 include => local |
#vi zapata.conf
|
# 61 [general]mic
75 ; national: National ISDN 76 ; international: International ISDN 77 ; dynamic: Dynamically selects the appropriate dialplan 78 ; 79 ;pridialplan=national 80 ; 81 ; PRI Local Dialplan: Only RARELY used for PRI (sets the calling number's numbering plan) 82 ; 83 ; unknown: Unknown 84 ; private: Private ISDN ... 680 ; 681 ;dring1=95,0,0 682 ;dring1context=internal1 683 ;dring2=325,95,0 684 ;dring2context=internal2 685 ; If no pattern is matched here is where we go. 686 ;context=default 687 ;channel => 1 688 -- ВСТАВКА -- 628,1 Внизу |
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... linux2*CLI> linux2*CLI> -- Executing [1101@grup2:1] Dial("SIP/1201-085ffd68", "ZAP/G1/1101") in new stack [Oct 29 11:05:59] WARNING[4770]: app_dial.c:1202 dial_exec_full: Unable to create channel of type 'ZAP' (cause 34 - Circuit/channel congestion) == Everyone is busy/congested at this time (1:0/1/0) == Auto fallthrough, channel 'SIP/1201-085ffd68' status is 'CONGESTION' == Primary D-Channel on span 1 up linux2*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#asterisk -rvvv
![]() Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': Found == Parsing '/etc/asterisk/extconfig.conf': Found Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?) |
#asterisk -rvvv
![]() Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': Found == Parsing '/etc/asterisk/extconfig.conf': Found Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?) |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#cd /
|
#tar -zxvpf etc-20101029.tgz /etc
![]() tar: etc-20101029.tgz: Невозможно open: Нет такого файла или каталога tar: Неисправимая ошибка: завершение работы tar: Child returned status 2 tar: /etc: Не найден в архиве tar: Выход, отложенный по результатам предыдущих ошибок |
#tar -zcvpf etc-20101029.tgz /etc
tar: Удаляется начальный `/' из имен объектов /etc/ /etc/sysctl.d/ /etc/perl/ /etc/perl/Net/ /etc/perl/Net/libnet.cfg /etc/perl/CPAN/ /etc/timezone /etc/securetty /etc/python/ ... /etc/pam.d/cups /etc/pam.d/sudo /etc/pam.d/common-session /etc/w3m/ /etc/w3m/config /etc/w3m/mailcap /etc/texmf/ /etc/texmf/fmt.d/ /etc/texmf/fmt.d/50cyrtexinfo.cnf /etc/sensors.conf |
#mc
|
#asterisk -rvvv
![]() Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... -- B-channel 0/1 successfully restarted on span 1 -- B-channel 0/3 restarted on span 1 -- B-channel 0/2 successfully restarted on span 1 -- B-channel 0/4 restarted on span 1 -- B-channel 0/3 successfully restarted on span 1 -- B-channel 0/4 successfully restarted on span 1 [Oct 29 13:44:34] NOTICE[5118]: chan_iax2.c:8882 __iax2_poke_noanswer: Peer 'kv' is now UNREACHABLE! Time: 15 -- Registered IAX2 'kv' (AUTHENTICATED) at 192.168.103.1:4569 -- Registered IAX2 to '192.168.103.1', who sees us as 192.168.102.1:4569 with no messages waiting linux2*CLI> |
#apt-get install ejabberd
Чтение списков пакетов... Готово Построение дерева зависимостей Чтение информации о состоянии... Готово Будут установлены следующие дополнительные пакеты: erlang-base erlang-nox libsctp1 lksctp-tools Предлагаемые пакеты: libunix-syslog-perl erlang-x11 erlang erlang-manpages erlang-doc-html НОВЫЕ пакеты, которые будут установлены: ejabberd erlang-base erlang-nox libsctp1 lksctp-tools обновлено 0, установлено 5 новых пакетов, для удаления отмечено 0 пакетов, и 4 пакетов не обновлено. ... Настраивается пакет erlang-base (1:12.b.3-dfsg-4) ... Searching for services which depend on erlang and should be started...none found. Настраивается пакет erlang-nox (1:12.b.3-dfsg-4) ... Настраивается пакет ejabberd (2.0.1-6+lenny2) ... adduser: Предупреждение: домашний каталог `/var/lib/ejabberd' не принадлежит пользователю, который сейчас создаётся. Generating SSL certificate /etc/ejabberd/ejabberd.pem... Creating config file /etc/ejabberd/ejabberd.cfg with new version Starting jabber server: ejabberd. Настраивается пакет lksctp-tools (1.0.9.dfsg-1) ... Обрабатываются триггеры для menu ... |
#apt-get install tkabber
Чтение списков пакетов... Готово Построение дерева зависимостей Чтение информации о состоянии... Готово Будут установлены следующие дополнительные пакеты: bwidget libtk-img libudp-tcl tcl-tls tcl8.4 tcllib tk8.4 Предлагаемые пакеты: libtk-img-doc tclreadline tkabber-plugins НОВЫЕ пакеты, которые будут установлены: bwidget libtk-img libudp-tcl tcl-tls tcl8.4 tcllib tk8.4 tkabber обновлено 0, установлено 8 новых пакетов, для удаления отмечено 0 пакетов, и 4 пакетов не обновлено. ... Обрабатываются триггеры для menu ... Настраивается пакет tcl8.4 (8.4.19-2) ... Настраивается пакет tk8.4 (8.4.19-2) ... Настраивается пакет bwidget (1.8.0-3) ... Настраивается пакет libtk-img (1:1.3-release-7+lenny1) ... Настраивается пакет libudp-tcl (1.0.8-5) ... Настраивается пакет tcl-tls (1.5.0.dfsg-9) ... Настраивается пакет tcllib (1.10-dfsg-3) ... Настраивается пакет tkabber (0.11.0-3) ... Обрабатываются триггеры для menu ... |