/l3/users/Sergey-Bondarenko/asterisk/linux3.unix.nt/root :1 :2 :3 :4 :5 :6 :7 |
|
#dpkg -P zaptel-modules-2.6.26-2-686
(Reading database ... 106517 files and directories currently installed.) Removing zaptel-modules-2.6.26-2-686 ... Purging configuration files for zaptel-modules-2.6.26-2-686 ... |
#ls /etc/asterisk/
adsi.conf cdr_custom.conf esel.conf func_odbc.conf manager.conf oss.conf say.conf users.conf adtranvofr.conf cdr_manager.conf extconfig.conf gtalk.conf manager.d phone.conf sip.conf voicemail.conf agents.conf cdr_odbc.conf extensions.ael h323.conf meetme.conf privacy.conf sip.conf.backup vpb.conf alarmreceiver.conf cdr_pgsql.conf extensions.conf http.conf mgcp.conf queues.conf sip_notify.conf watchdog.conf alsa.conf cdr_tds.conf extensions.conf.good.old iax.conf misdn.conf res_odbc.conf skinny.conf zapata.conf amd.conf codecs.conf extensions.conf.SAVE iaxprov.conf modules.conf res_pgsql.conf sla.conf asterisk.adsi dnsmgr.conf features.conf indications.conf musiconhold.conf res_snmp.conf smdi.conf asterisk.conf dundi.conf festival.conf jabber.conf muted.conf rpt.conf telcordia-1.adsi cdr.conf enum.conf followme.conf logger.conf osp.conf rtp.conf udptl.conf |
#cat /etc/asterisk/extensions.conf
[local] exten => 4000,1,Answer exten => 4000,n,Wait(1) exten => 4000,n,Playback(demo-congrats) exten => 4000,n,Hangup ;exten => 301,1,Dial(SIP/301) exten => 4001,1,Answer exten => 4001,n,Wait(1) exten => 4001,n,Festival(wwaaasssuuuupppp nniiiggaaaa!) exten => 4001,n,Hangup ... [group1] ;only local include => local include => e1-outgoing [group2] ;only local and company include => local include => company [group3] ;full access include => local include => company include => world |
#cat /etc/asterisk/sip.conf
[general] context=default allowoverlap=no ; Disable overlap dialing support. (Def bindport=5060 ; UDP Port to bind to (SIP standard por bindaddr=0.0.0.0 ; IP address to bind to (0.0.0.0 binds srvlookup=yes ; Enable DNS SRV lookups on outbound ca language=ru register => khr:pass@192.168.17.4 register => khr:pass@192.168.15.2 register => khr:pass@192.168.14.1 ... type=peer username=khr secret=pass host=dynamic ; This device needs to register nat=yes ; X-Lite is behind a NAT router canreinvite=no ; Typically set to NO if behind NAT disallow=all allow=gsm ; GSM consumes far less bandwidth than ulaw allow=ulaw allow=alaw |
#cat /etc/asterisk/zapata.conf
; ; Zapata telephony interface ; ; Configuration file ; ; You need to restart Asterisk to re-configure the Zap channel ; CLI> reload chan_zap.so ; will reload the configuration file, ; but not all configuration options are ; re-configured during a reload. ... ; You can see the dringX patterns is to set any one of the dringXcontext fields ; and they will be printed on the console when an inbound call comes in. ; ;dring1=95,0,0 ;dring1context=internal1 ;dring2=325,95,0 ;dring2context=internal2 ; If no pattern is matched here is where we go. ;context=default ;channel => 1 |
#lsmod | grep za
zaptel 185060 1 ztdummy crc_ccitt 2080 1 zaptel |
#init 6
|
#screen -x
|
#hi
bash: hi: command not found |
#lsmod | grep za
|
#m-a a-i zaptel
Updated infos about 1 packages Getting source for kernel version: 2.6.26-2-686 Kernel headers available in /lib/modules/2.6.26-2-686/build apt-get install build-essential Reading package lists... Done Building dependency tree Reading state information... Done build-essential is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Done! unpack Extracting the package tarball, /usr/src/zaptel.tar.bz2, please wait... Target package file /usr/src/zaptel-modules-2.6.26-2-686_1.4.11~dfsg-3+2.6.26-21lenny4_i386.deb already exists, not rebuilding! (however, you could use the -f switch to ignore it) dpkg -Ei /usr/src/zaptel-modules-2.6.26-2-686_1.4.11~dfsg-3+2.6.26-21lenny4_i386.deb Selecting previously deselected package zaptel-modules-2.6.26-2-686. (Reading database ... 106475 files and directories currently installed.) Unpacking zaptel-modules-2.6.26-2-686 (from .../zaptel-modules-2.6.26-2-686_1.4.11~dfsg-3+2.6.26-21lenny4_i386.deb) ... Setting up zaptel-modules-2.6.26-2-686 (1:1.4.11~dfsg-3+2.6.26-21lenny4) ... |
#lsmod | grep za
|
#lspci
00:00.0 Host bridge: Intel Corporation 82P965/G965 Memory Controller Hub (rev 02) 00:02.0 VGA compatible controller: Intel Corporation 82G965 Integrated Graphics Controller (rev 02) 00:1a.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #4 (rev 02) 00:1a.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 (rev 02) 00:1a.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 (rev 02) 00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 02) 00:1c.0 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1 (rev 02) 00:1c.1 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 2 (rev 02) 00:1d.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1 (rev 02) 00:1d.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2 (rev 02) 00:1d.2 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3 (rev 02) 00:1d.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 (rev 02) 00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev f2) 00:1f.0 ISA bridge: Intel Corporation 82801HB/HR (ICH8/R) LPC Interface Controller (rev 02) 00:1f.2 IDE interface: Intel Corporation 82801H (ICH8 Family) 4 port SATA IDE Controller (rev 02) 00:1f.3 SMBus: Intel Corporation 82801H (ICH8 Family) SMBus Controller (rev 02) 00:1f.5 IDE interface: Intel Corporation 82801H (ICH8 Family) 2 port SATA IDE Controller (rev 02) 01:00.0 IDE interface: JMicron Technologies, Inc. JMB368 IDE controller 02:00.0 Ethernet controller: Attansic Technology Corp. L1 Gigabit Ethernet Adapter (rev b0) 03:00.0 Ethernet controller: Intel Corporation 82540EM Gigabit Ethernet Controller (rev 02) 03:01.0 Ethernet controller: Digium, Inc. Device 8001 (rev 11) |
#lspci -n
00:00.0 0600: 8086:29a0 (rev 02) 00:02.0 0300: 8086:29a2 (rev 02) 00:1a.0 0c03: 8086:2834 (rev 02) 00:1a.1 0c03: 8086:2835 (rev 02) 00:1a.7 0c03: 8086:283a (rev 02) 00:1b.0 0403: 8086:284b (rev 02) 00:1c.0 0604: 8086:283f (rev 02) 00:1c.1 0604: 8086:2841 (rev 02) 00:1d.0 0c03: 8086:2830 (rev 02) 00:1d.1 0c03: 8086:2831 (rev 02) 00:1d.2 0c03: 8086:2832 (rev 02) 00:1d.7 0c03: 8086:2836 (rev 02) 00:1e.0 0604: 8086:244e (rev f2) 00:1f.0 0601: 8086:2810 (rev 02) 00:1f.2 0101: 8086:2820 (rev 02) 00:1f.3 0c05: 8086:283e (rev 02) 00:1f.5 0101: 8086:2825 (rev 02) 01:00.0 0101: 197b:2368 02:00.0 0200: 1969:1048 (rev b0) 03:00.0 0200: 8086:100e (rev 02) 03:01.0 0200: d161:8001 (rev 11) |
#grep -i d161.*8001 /lib/modules/2.6.26-2-686/
build/ misc/ modules.ccwmap modules.ieee1394map modules.isapnpmap modules.pcimap modules.symbols kernel/ modules.alias modules.dep modules.inputmap modules.ofmap modules.seriomap modules.usbmap |
#grep -i d161.*8001 /lib/modules/2.6.26-2-686/modules.pcimap
wcte12xp 0x0000d161 0x00008001 0xffffffff 0xffffffff 0x00000000 0x00000000 0x0 |
#modprobe wcte12xp
|
#find /lib/modules/ -name wcte12xp\*
/lib/modules/2.6.26-2-686/misc/wcte12xp /lib/modules/2.6.26-2-686/misc/wcte12xp/wcte12xp.ko |
#history > /media/FLEHA/asterisk/labi/history2
|
#strings `!!` | grep /etc
strings `find /lib/modules/ -name zaptel\*` | grep /etc |
#vim /etc/zapata.conf
--- /dev/null 2010-03-19 12:50:48.503161440 +0200 +++ /etc/zapata.conf 2010-03-19 12:59:30.000000000 +0200 @@ -0,0 +1,24 @@ +[channels] +context=world +switchtype=national +signalling=fxo_ls + +usecallerid=yes +hidecallerid=no +callwaiting=yes +usecallingpres=yes +callwaitingcallerid=yes +threewaycalling=yes +transfer=yes +cancallforward=yes +callreturn=yes +echocaworlds +echocancelwhenbridged=yes +rxgain=0.0 +txgain=0.0 +group=1 +callgroup=1 +pickupgroup=1 + +immediate=no + |
#/usr/share/zaptel/
init_card_1_30 init_card_2_30 init_card_3_30 init_card_4_30 xpp_fxloader |
#ls /usr/share/zaptel/
init_card_1_30 init_card_2_30 init_card_3_30 init_card_4_30 init_fxo_modes xpp_fxloader |
#dpkg -L zaptel
zaptel zaptel-modules-2.6.26-2-686 zaptel-source |
#dpkg -L zaptel
/. /usr /usr/share /usr/share/doc-base /usr/share/doc-base/zaptel /usr/share/doc-base/zaptel.conf /usr/share/doc-base/zaptel.astribank /usr/share/man /usr/share/man/man8 /usr/share/man/man8/ztscan.8.gz ... /etc/modprobe.d /etc/hotplug /etc/hotplug/usb /etc/hotplug/usb/xpp_fxloader.usermap /etc/udev /etc/udev/rules.d /etc/udev/rules.d/xpp.rules /etc/init.d /etc/init.d/zaptel /etc/hotplug/usb/xpp_fxloader |
#dpkg -L zaptel | grep exa
/usr/share/doc/zaptel/examples /usr/share/doc/zaptel/examples/zaptel.conf.sample.gz /usr/share/doc/zaptel/examples/oslec-ctrl-panel.sh |
#vim /etc/zaptel.conf
--- /dev/null 2010-03-19 12:50:48.503161440 +0200 +++ /etc/zaptel.conf 2010-03-19 13:01:06.000000000 +0200 @@ -0,0 +1,5 @@ +span=1,0,0,ccs,hdb3,crc4 +bchan=1-2 +dchan=16 + + |
#/etc/init.d/zaptel restart
Zaptel telephony kernel driver: zaptel. |
#ztscan
[1] active=yes alarms=OK description=Wildcard TE122 Card 0 name=WCT1/0 manufacturer=Digium devicetype=Wildcard TE122 location=PCI Bus 03 Slot 02 basechan=1 totchans=31 irq=21 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 |
#ztcfg -vvv
Zaptel Version: 1.4.11 Echo Canceller: MG2 Configuration ====================== SPAN 1: CCS/HDB3 Build-out: 0 db (CSU)/0-133 feet (DSX-1) Channel map: Channel 01: Clear channel (Default) (Slaves: 01) Channel 02: Clear channel (Default) (Slaves: 02) Channel 16: D-channel (Default) (Slaves: 16) 3 channels to configure. |
#ztscan
[1] active=yes alarms=OK description=Wildcard TE122 Card 0 name=WCT1/0 manufacturer=Digium devicetype=Wildcard TE122 location=PCI Bus 03 Slot 02 basechan=1 totchans=31 irq=21 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 |
#vim /etc/asterisk/zapata.conf
--- /tmp/l3-saved-3722.28758.15593 2010-03-19 13:02:28.000000000 +0200 +++ /etc/asterisk/zapata.conf 2010-03-19 13:06:50.000000000 +0200 @@ -47,7 +47,7 @@ ; ; Default context ; -context=default +context=world ; ; Switchtype: Only used for PRI. ; @@ -59,7 +59,7 @@ ; ni1: Old National ISDN 1 ; qsig: Q.SIG ; -switchtype=national +switchtype=euroisdn ; ; Some switches (AT&T especially) require network specific facility IE ; supported values are currently 'none', 'sdn', 'megacom', 'tollfreemegacom', 'accunet' @@ -210,7 +210,7 @@ ; (2-way) ; sf_rxtx: Same as sf_txrx (for our dyslexic friends) ; -;signalling= +signalling=pri_cpe ; ; If you have an outbound signalling format that is different from format ; specified above (but compatible), you can specify outbound signalling format, @@ -401,7 +401,7 @@ ; Logical groups can be assigned to allow outgoing rollover. Groups range ; from 0 to 63, and multiple groups can be specified. ; -;group=1 +group=1 ; ; Ring groups (a.k.a. call groups) and pickup groups. If a phone is ringing ; and it is a member of a group which is one of your pickup groups, then @@ -611,8 +611,8 @@ ; -;callerid="Green Phone"<(256) 428-6121> -;channel => 1 +callerid="Pupkin inc."<(256) 428-6121> +channel => 1-2 ;callerid="Black Phone"<(256) 428-6122> ;channel => 2 ;callerid="CallerID Phone" <(256) 428-6123> |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3722.10767.3848 2010-03-19 13:07:47.000000000 +0200 +++ /etc/asterisk/extensions.conf 2010-03-19 13:17:31.000000000 +0200 @@ -115,11 +115,21 @@ exten => _821XX,n,Playback(vm-isunavail) +[e1-incom] +exten => _15X,1,Answer +exten => _15X,n,Dial(SIP/30${EXTEN:2},10,m) + +[e1-outgoing] +exten => _912X,1,Dial(ZAP/G1/${EXTEN:1},30,m) + + + + [group1] ;only local include => local include => e1-outgoing - +include => e1-incom [group2] ;only local and company @@ -127,7 +137,7 @@ include => company [group3] ;full access - +;include include => local include => company include => world |
#vim /etc/asterisk/extensions.conf
|
#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 ========================================================================= ... -- Channel 0/2, span 1 received AOC-E charging 0 units -- Channel 0/2, span 1 received AOC-E charging 0 units == Spawn extension (group2, 302, 5) exited non-zero on 'Zap/2-1' -- Hungup 'Zap/2-1' [Mar 19 15:15:37] NOTICE[4811]: res_monitor.c:339 ast_monitor_stop: monitor executing ( nice -n 19 sox -m "/var/spool/asterisk/monitor/02-2010-03-19-15:15:25-in.wav" "/var/spool/asterisk/monitor/02-2010-03-19-15:15:25-out.wav" "/var/spool/asterisk/monitor/02-2010-03-19-15:15:25.wav" && rm -f "/var/spool/asterisk/monitor/02-2010-03-19-15:15:25-"* ) & -- Remote UNIX connection Executing last minute cleanups == Destroying musiconhold processes Disconnected from Asterisk server Executing last minute cleanups |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3722.10803.27801 2010-03-19 14:01:24.000000000 +0200 +++ /etc/asterisk/extensions.conf 2010-03-19 15:17:58.000000000 +0200 @@ -80,8 +80,10 @@ [company] exten => _6XX,1,Answer -exten => _6XX,n,Set(CALLERID(name)="${CALLERID(name)} (KHR)") -exten => _6XX,n,Dial(SIP/odessa/${EXTEN},30) +;exten => _6XX,n,Set(CALLERID(name)="${CALLERID(name)} (KHR)") +;exten => _6XX,n,Dial(SIP/odessa/${EXTEN},30) +exten => _6XX,1,Dial(ZAP/G1/${EXTEN},30,m) + exten => _6XX,n,Playback(vm-isunavail) @@ -120,9 +122,10 @@ exten => _15X,n,Dial(SIP/30${EXTEN:2},10,m) [e1-outgoing] +;exten => _12X,1,Dial(ZAP/G1/${EXTEN:1},30,m) exten => _912X,1,Dial(ZAP/G1/${EXTEN:1},30,m) - - +;exten => _12X,1,Dial(ZAP/G1/${EXTEN},30,m) +;go-go-go [group1] ;only local |
#ssh barma@barma.mine.nu
The authenticity of host 'barma.mine.nu (95.133.82.213)' can't be established. RSA key fingerprint is 2f:01:bf:d8:f8:c8:05:32:9d:74:1e:ca:a4:55:b0:f4. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'barma.mine.nu,95.133.82.213' (RSA) to the list of known hosts. Password: Password: Last login: Thu Mar 11 13:18:10 2010 from 192.168.1.20 Have a lot of fun... barma@linux-xs8k:~> zypper se asterisk Repository 'openSUSE BuildService - Виртуализация (VirtualBox)' is out-of-date. You can run 'zypper refresh' as root to update it. ... Retrieving repository 'http://download.opensuse.org/repositories/home:/pikerhog:/utils/openSUSE_11.2' metadata [done] Building repository 'http://download.opensuse.org/repositories/home:/pikerhog:/utils/openSUSE_11.2' cache [done] Retrieving repository 'http://download.opensuse.org/repositories/openSUSE:/Tools:/Devel/openSUSE_11.2' metadata [done] Building repository 'http://download.opensuse.org/repositories/openSUSE:/Tools:/Devel/openSUSE_11.2' cache [done] Loading repository data... Reading installed packages... No packages found. barma@linux-xs8k:~> exit logout Connection to barma.mine.nu closed. |
#ssh root@linux1.unix.nt
root@linux1.unix.nt's password: Linux linux1 2.6.26-2-686 #1 SMP Tue Mar 9 17:35:51 UTC 2010 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Fri Mar 19 14:55:07 2010 from 192.168.15.210 l3-agent is already running: pid=2781; pidfile=/root/.lilalo/l3-agent.pid |
#cat /etc/asterisk/zapata.conf | grep -v ";"
[trunkgroups] [channels] context=group2 switchtype=euroisdn signalling=pri_cpe usecallerid=yes hidecallerid=no callwaiting=yes usecallingpres=yes callwaitingcallerid=yes ... cancallforward=yes callreturn=yes echocancel=yes echocancelwhenbridged=yes rxgain=0.0 txgain=0.0 group=1 immediate=no callerid="Pupkin inc."<(256) 428-6121> channel => 1-2 |
#asterisk -rvv
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 ========================================================================= ... [Mar 19 20:32:10] WARNING[4897]: chan_zap.c:2498 pri_find_dchan: No D-channels available! Using Primary channel 16 as D-channel anyway! == Primary D-Channel on span 1 up == Primary D-Channel on span 1 up [Mar 19 20:32:13] NOTICE[4897]: chan_zap.c:9024 pri_dchannel: PRI got event: No more alarm (5) on Primary D-channel of span 1 [Mar 19 20:32:13] NOTICE[4898]: chan_zap.c:6872 handle_init_event: Alarm cleared on channel 1 [Mar 19 20:32:13] NOTICE[4898]: chan_zap.c:6872 handle_init_event: Alarm cleared on channel 2 Executing last minute cleanups == Destroying musiconhold processes Disconnected from Asterisk server Executing last minute cleanups |
#~
exten => 4001,n,Hangup exten => 345,1,Answer exten => 345,n,MeetMe(,dMP,1234) exten => 4002,1,Answer exten => 4002,n,Wait(1) exten => 4002,n,System(/usr/local/bin/say-sys-info loadavg) exten => 4002,n,Wait(1) exten => 4002,n,Playback(/tmp/sys-info) exten => 4002,n,Hangup exten => 4003,1,Answer ... exten => _821XX,1,Answer ;exten => _1XX,n,Set(CALLERID(name)="${CALLERID(name)} (KHR)") exten => _821XX,n,Dial(SIP/khm/${EXTEN:2},30) exten => _821XX,n,Playback(vm-isunavail) [e1-incom] exten => _15X,1,Answer exten => _15X,n,Dial(SIP/30${EXTEN:2},10,m) exten => _6XX, n,Dial(ZAP/G1/${EXTEN},30,m) "/etc/asterisk/extensions.conf" 156L, 3701C written |
#exten => _9
linux3.unix.nt |
#umount /media/FLEHA/
|
#mount
/dev/sda1 on / type ext3 (rw,errors=remount-ro) tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755) proc on /proc type proc (rw,noexec,nosuid,nodev) sysfs on /sys type sysfs (rw,noexec,nosuid,nodev) procbususb on /proc/bus/usb type usbfs (rw) udev on /dev type tmpfs (rw,mode=0755) tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev) devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620) |
#ls /media/FLEHA/asterisk/labi/
history history2 linux1/ linux2/ linux3/ notify |
#ls /media/FLEHA/asterisk/labi/linux3
cfg |
#ls /media/FLEHA/asterisk/labi/linux3/cfg/
adsi.conf cdr_manager.conf extensions.ael http.conf misdn.conf res_pgsql.conf smdi.conf adtranvofr.conf cdr_odbc.conf extensions.conf iax.conf modules.conf res_snmp.conf telcordia-1.adsi agents.conf cdr_pgsql.conf extensions.conf.good.old iaxprov.conf musiconhold.conf rpt.conf udptl.conf alarmreceiver.conf cdr_tds.conf extensions.conf.SAVE indications.conf muted.conf rtp.conf users.conf alsa.conf codecs.conf features.conf jabber.conf osp.conf say.conf voicemail.conf amd.conf dnsmgr.conf festival.conf logger.conf oss.conf sip.conf vpb.conf asterisk.adsi dundi.conf followme.conf manager.conf phone.conf sip.conf.backup watchdog.conf asterisk.conf enum.conf func_odbc.conf manager.d privacy.conf sip_notify.conf zapata.conf cdr.conf esel.conf gtalk.conf meetme.conf queues.conf skinny.conf cdr_custom.conf extconfig.conf h323.conf mgcp.conf res_odbc.conf sla.conf |
#scp root@linux2.unix.nt:/etc/zap*.conf /media/FLEHA/asterisk/labi/linux1/
root@linux2.unix.nt's password: zaptel.conf 100% 43 0.0KB/s 00:00 |
#scp root@linux2.unix.nt:/etc/asterisk/zap*.conf /media/FLEHA/asterisk/labi/linux1/
root@linux2.unix.nt's password: zapata.conf 100% 539 0.5KB/s 00:00 |
#scp -c root@linux2.unix.nt:/etc/asterisk/zap*.conf /media/FLEHA/asterisk/labi/linux2/
usage: scp [-1246BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file] [-l limit] [-o ssh_option] [-P port] [-S program] [[user@]host1:]file1 ... [[user@]host2:]file2 |
#scp -C root@linux2.unix.nt:/etc/asterisk/zap*.conf /media/FLEHA/asterisk/labi/linux2/
root@linux2.unix.nt's password: zapata.conf 100% 539 0.5KB/s 00:00 |
#scp -C root@linux2.unix.nt:/etc/zap*.conf /media/FLEHA/asterisk/labi/linux2/
root@linux2.unix.nt's password: zaptel.conf 100% 43 0.0KB/s 00:00 |
#ssh root@linux2.unix.nt
root@linux2.unix.nt's password: Linux linux2 2.6.26-2-686 #1 SMP Tue Mar 9 17:35:51 UTC 2010 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Fri Mar 19 12:45:18 2010 from 192.168.17.4 l3-agent is already running: pid=3076; pidfile=/root/.lilalo/l3-agent.pid |
#screen -x
|
#tail /etc/passwd
haldaemon:x:106:114:Hardware abstraction layer,,,:/var/run/hal:/bin/false hplip:x:107:7:HPLIP system user,,,:/var/run/hplip:/bin/false user3:x:1000:1000:user,,,:/home/user3:/bin/bash sshd:x:108:65534::/var/run/sshd:/usr/sbin/nologin asterisk:x:109:116:Asterisk PBX daemon,,,:/var/lib/asterisk:/bin/false bind:x:110:117::/var/cache/bind:/bin/false smmta:x:111:118:Mail Transfer Agent,,,:/var/lib/sendmail:/bin/false smmsp:x:112:119:Mail Submission Program,,,:/var/lib/sendmail:/bin/false ejabberd:x:113:120::/var/lib/ejabberd:/bin/sh festival:x:114:29::/home/festival:/bin/false |
#passwd user3
Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully |
#~
PING 192.168.16.254 (192.168.16.254) 56(84) bytes of data. From 192.168.16.3 icmp_seq=1 Destination Host Unreachable From 192.168.16.3 icmp_seq=2 Destination Host Unreachable From 192.168.16.3 icmp_seq=3 Destination Host Unreachable ^C --- 192.168.16.254 ping statistics --- 4 packets transmitted, 0 received, +3 errors, 100% packet loss, time 3018ms , pipe 3 |
#mii-tool
eth0: no link eth1: negotiated 1000baseT-FD flow-control, link ok |
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:1b:fc:7d:bc:f0 inet addr:192.168.16.3 Bcast:192.168.16.255 Mask:255.255.255.0 UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) eth1 Link encap:Ethernet HWaddr 00:07:e9:0c:4f:9d inet addr:169.254.169.97 Bcast:169.254.255.255 Mask:255.255.0.0 inet6 addr: fe80::207:e9ff:fe0c:4f9d/64 Scope:Link ... collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:9823 (9.5 KiB) 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:1578 errors:0 dropped:0 overruns:0 frame:0 TX packets:1578 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:117898 (115.1 KiB) TX bytes:117898 (115.1 KiB) |
#ifdown eth0
SIOCDELRT: No such process |
#vi /etc/network/interfaces
--- /tmp/l3-saved-5527.11522.13138 2010-03-21 19:14:05.000000000 +0200 +++ /etc/network/interfaces 2010-03-21 19:14:17.000000000 +0200 @@ -6,8 +6,8 @@ iface lo inet loopback # The primary network interface -allow-hotplug eth0 -iface eth0 inet static +allow-hotplug eth1 +iface eth1 inet static address 192.168.16.3 netmask 255.255.255.0 network 192.168.16.0 |
#ifup eth1
|
#vi /etc/network/interfaces
|
#ping 192.168.15.254
PING 192.168.15.254 (192.168.15.254) 56(84) bytes of data. From 192.168.15.101 icmp_seq=1 Destination Host Unreachable From 192.168.15.101 icmp_seq=2 Destination Host Unreachable From 192.168.15.101 icmp_seq=3 Destination Host Unreachable ^C --- 192.168.15.254 ping statistics --- 4 packets transmitted, 0 received, +3 errors, 100% packet loss, time 3018ms , pipe 3 |
#ifconfig eth0 down
|
#ping 192.168.16.254
PING 192.168.16.254 (192.168.16.254) 56(84) bytes of data. 64 bytes from 192.168.16.254: icmp_seq=1 ttl=64 time=4.08 ms 64 bytes from 192.168.16.254: icmp_seq=2 ttl=64 time=0.909 ms ^C --- 192.168.16.254 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1002ms rtt min/avg/max/mdev = 0.909/2.496/4.083/1.587 ms |
#route add default gw 192.168.16.254
|
#ping ya.ru
^C |
#route -n
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.16.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1 0.0.0.0 192.168.16.254 0.0.0.0 UG 0 0 0 eth1 |
#ping 10.0.35.1
PING 10.0.35.1 (10.0.35.1) 56(84) bytes of data. From 192.168.16.254 icmp_seq=1 Destination Host Unreachable From 192.168.16.254 icmp_seq=2 Destination Host Unreachable ^C --- 10.0.35.1 ping statistics --- 2 packets transmitted, 0 received, +2 errors, 100% packet loss, time 999ms |
#ping 10.0.35.1
PING 10.0.35.1 (10.0.35.1) 56(84) bytes of data. From 192.168.16.254 icmp_seq=2 Destination Host Unreachable From 192.168.16.254 icmp_seq=3 Destination Host Unreachable From 192.168.16.254 icmp_seq=4 Destination Host Unreachable From 192.168.16.254 icmp_seq=5 Destination Host Unreachable From 192.168.16.254 icmp_seq=6 Destination Host Unreachable ^C --- 10.0.35.1 ping statistics --- 6 packets transmitted, 0 received, +5 errors, 100% packet loss, time 4999ms |
#ssh 192.168.16.254
Connection to 192.168.16.254 closed by remote host. |
#ping 10.0.35.1
PING 10.0.35.1 (10.0.35.1) 56(84) bytes of data. 64 bytes from 10.0.35.1: icmp_seq=1 ttl=63 time=0.201 ms 64 bytes from 10.0.35.1: icmp_seq=2 ttl=63 time=0.166 ms ^C --- 10.0.35.1 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1006ms rtt min/avg/max/mdev = 0.166/0.183/0.201/0.022 ms |
#apt-get install minicom
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: lrzsz The following NEW packages will be installed: lrzsz minicom 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 417kB of archives. After this operation, 1434kB of additional disk space will be used. ... Selecting previously deselected package lrzsz. (Reading database ... 106518 files and directories currently installed.) Unpacking lrzsz (from .../lrzsz_0.12.21-4.1_i386.deb) ... Selecting previously deselected package minicom. Unpacking minicom (from .../minicom_2.3-1_i386.deb) ... Processing triggers for man-db ... Processing triggers for menu ... Setting up lrzsz (0.12.21-4.1) ... Setting up minicom (2.3-1) ... Processing triggers for menu ... |
[local] exten => 4000,1,Answer exten => 4000,n,Wait(1) exten => 4000,n,Playback(demo-congrats) exten => 4000,n,Hangup ;exten => 301,1,Dial(SIP/301) exten => 4001,1,Answer exten => 4001,n,Wait(1) exten => 4001,n,Festival(wwaaasssuuuupppp nniiiggaaaa!) exten => 4001,n,Hangup exten => 345,1,Answer exten => 345,n,MeetMe(,dMP,1234) exten => 4002,1,Answer exten => 4002,n,Wait(1) exten => 4002,n,System(/usr/local/bin/say-sys-info loadavg) exten => 4002,n,Wait(1) exten => 4002,n,Playback(/tmp/sys-info) exten => 4002,n,Hangup exten => 4003,1,Answer exten => 4003,n,Wait(1) exten => 4003,n,System(/usr/local/bin/say-sys-info ps) exten => 4003,n,Wait(1) exten => 4003,n,Playback(/tmp/sys-info) exten => 4003,n,Hangup exten => 4004,1,Answer exten => 4004,n,Wait(1) exten => 4004,n,System(/usr/local/bin/say-sys-info df -h) exten => 4004,n,Wait(1) exten => 4004,n,Playback(/tmp/sys-info) exten => 4004,n,Hangup exten => _41XX,1,Answer exten => _41XX,n,Wait(1) exten => _41XX,n,Record(/tmp/message${EXTEN:2}:gsm,2) exten => _41XX,n,Playback(/tmp/message${EXTEN:2}) exten => 4800,1,VoicemailMain() ;NEW FROM LINUX2 exten => _3XX,1,Answer exten => _3XX,n,System(echo "Звонит ${CALLERID(all)}" | /usr/local/bin/notify ${EXTEN}) exten => _3XX,n,Set(CALLFILENAME=${EXTEN:1}-${STRFTIME(${EPOCH},Europe/Kiev,"%Y-%m-%d-%H:%M:%S")}) ;exten => _3XX,n,Set(CALLFILENAME=${EXTEN:1}-${STRFTIME(,,NaVM)}) exten => _3XX,n,Monitor(wav,${CALLFILENAME},m) exten => _3XX,n,Dial(SIP/${EXTEN},10,m) exten => _3XX,n,GotoIf($["${DIALSTATUS}" = "BUSY"]?busy:unavail) exten => _3XX,n(busy),Playback(vm-isunavail) ; OLD-GOOD ;exten => _3XX,1,Dial(SIP/${EXTEN},10) ;exten => _3XX,n,Voicemail(${EXTEN}@default) ;exten => _3XX,n,Playback(vm-isunavail) ;exten => _3XX,1,Answer ;exten => _3XX,n,Set(CALLERID(name)="$CALLERID(name)} (KHR)") ;exten => _3XX,n,Dial(SIP/${EXTEN},5) ;exten => _3XX,n,Playback(vm-isunavail) [company] exten => _6XX,1,Answer exten => _6XX,n,Set(CALLERID(name)="${CALLERID(name)} (KHR)") exten => _6XX,n,Dial(SIP/odessa/${EXTEN},30) exten => _6XX,n,Playback(vm-isunavail) exten => _2XX,1,Answer exten => _2XX,n,Set(CALLERID(name)="${CALLERID(name)} (KHR)") exten => _2XX,n,Dial(SIP/khm/${EXTEN},30) exten => _2XX,n,Playback(vm-isunavail) exten => _4XX,1,Answer exten => _4XX,n,Set(CALLERID(name)="${CALLERID(name)} (KHR)") exten => _4XX,n,Dial(SIP/khr/${EXTEN},30) exten => _4XX,n,Playback(vm-isunavail) ;exten => _4XX,1,Dial(SIP/kv/${EXTEN},30) [world] exten => _380XXXXXXXXX,1,Answer ;exten => _380XXXXXXXXX,n,Set(CALLERID(name)="${CALLERID(name)} (KHR)") exten => _380XXXXXXXXX,n,Dial(SIP/khm/${EXTEN},30) exten => _380XXXXXXXXX,n,Playback(vm-isunavail) ;exten => _1380XXXXXXXXX,1,Answer ;;exten => _1380XXXXXXXXX,n,Set(CALLERID(name)="${CALLERID(name)} (KHR)") ;exten => _1380XXXXXXXXX,n,Dial(SIP/odessa/${EXTEN:1:12},30) ;exten => _1380XXXXXXXXX,n,Playback(vm-isunavail) exten => _821XX,1,Answer ;exten => _1XX,n,Set(CALLERID(name)="${CALLERID(name)} (KHR)") exten => _821XX,n,Dial(SIP/khm/${EXTEN:2},30) exten => _821XX,n,Playback(vm-isunavail) [group1] ;only local include => local include => e1-outgoing [group2] ;only local and company include => local include => company [group3] ;full access include => local include => company include => world
[general] context=default allowoverlap=no ; Disable overlap dialing support. (Def bindport=5060 ; UDP Port to bind to (SIP standard por bindaddr=0.0.0.0 ; IP address to bind to (0.0.0.0 binds srvlookup=yes ; Enable DNS SRV lookups on outbound ca language=ru register => khr:pass@192.168.17.4 register => khr:pass@192.168.15.2 register => khr:pass@192.168.14.1 [301] type=friend ;context=demo1 context=group3 regexten=301 ; When they register, create extension callerid="KHR-BOSS" <301> host=dynamic ; This device needs to register nat=yes ; X-Lite is behind a NAT router canreinvite=no ; Typically set to NO if behind NAT disallow=all allow=gsm ; GSM consumes far less bandwidth than allow=ulaw allow=alaw mailbox=1234@default,1233@default ; Subscribe to status of multip [302] ;context=demo1 context=group3 type=friend regexten=302 ; When they register, create extension callerid="KHR-HARD" <302> host=dynamic ; This device needs to register nat=yes ; X-Lite is behind a NAT router canreinvite=no ; Typically set to NO if behind NAT disallow=all allow=gsm ; GSM consumes far less bandwidth than allow=ulaw allow=alaw [303] ;context=demo1 context=group3 type=friend regexten=303 ; When they register, create extension callerid="KHR2world" <302> host=dynamic ; This device needs to register nat=yes ; X-Lite is behind a NAT router canreinvite=no ; Typically set to NO if behind NAT disallow=all allow=gsm ; GSM consumes far less bandwidth than allow=ulaw allow=alaw ;inbound [kv] context=group3 secret=pass type=user username=khr host=dynamic ; This device needs to register nat=yes ; X-Lite is behind a NAT router canreinvite=no ; Typically set to NO if behind NAT disallow=all allow=gsm ; GSM consumes far less bandwidth than allow=ulaw allow=alaw ;outbound [kv] context=group3 secret=pass type=peer host=dynamic ; This device needs to register nat=yes ; X-Lite is behind a NAT router canreinvite=no ; Typically set to NO if behind NAT disallow=all allow=gsm ; GSM consumes far less bandwidth than allow=ulaw allow=alaw ;inbound [khm] context=group3 type=user secret=pass host=dynamic ; This device needs to register nat=yes ; X-Lite is behind a NAT router canreinvite=no ; Typically set to NO if behind NAT disallow=all allow=gsm ; GSM consumes far less bandwidth than ulaw allow=ulaw allow=alaw ;outbound [khm] context=group3 type=peer username=khr secret=pass host=dynamic ; This device needs to register nat=yes ; X-Lite is behind a NAT router canreinvite=no ; Typically set to NO if behind NAT disallow=all allow=gsm ; GSM consumes far less bandwidth than ulaw allow=ulaw allow=alaw ;inbound [odessa] context=group3 type=user secret=pass host=dynamic ; This device needs to register nat=yes ; X-Lite is behind a NAT router canreinvite=no ; Typically set to NO if behind NAT disallow=all allow=gsm ; GSM consumes far less bandwidth than ulaw allow=ulaw allow=alaw ;outbound [odessa] context=group3 type=peer username=khr secret=pass host=dynamic ; This device needs to register nat=yes ; X-Lite is behind a NAT router canreinvite=no ; Typically set to NO if behind NAT disallow=all allow=gsm ; GSM consumes far less bandwidth than ulaw allow=ulaw allow=alaw
; ; Zapata telephony interface ; ; Configuration file ; ; You need to restart Asterisk to re-configure the Zap channel ; CLI> reload chan_zap.so ; will reload the configuration file, ; but not all configuration options are ; re-configured during a reload. [trunkgroups] ; ; Trunk groups are used for NFAS or GR-303 connections. ; ; Group: Defines a trunk group. ; trunkgroup => <trunkgroup>,<dchannel>[,<backup1>...] ; ; trunkgroup is the numerical trunk group to create ; dchannel is the zap channel which will have the ; d-channel for the trunk. ; backup1 is an optional list of backup d-channels. ; ;trunkgroup => 1,24,48 ;trunkgroup => 1,24 ; ; Spanmap: Associates a span with a trunk group ; spanmap => <zapspan>,<trunkgroup>[,<logicalspan>] ; ; zapspan is the zap span number to associate ; trunkgroup is the trunkgroup (specified above) for the mapping ; logicalspan is the logical span number within the trunk group to use. ; if unspecified, no logical span number is used. ; ;spanmap => 1,1,1 ;spanmap => 2,1,2 ;spanmap => 3,1,3 ;spanmap => 4,1,4 [channels] ; ; Default language ; ;language=en ; ; Default context ; context=default ; ; Switchtype: Only used for PRI. ; ; national: National ISDN 2 (default) ; dms100: Nortel DMS100 ; 4ess: AT&T 4ESS ; 5ess: Lucent 5ESS ; euroisdn: EuroISDN ; ni1: Old National ISDN 1 ; qsig: Q.SIG ; switchtype=national ; ; Some switches (AT&T especially) require network specific facility IE ; supported values are currently 'none', 'sdn', 'megacom', 'tollfreemegacom', 'accunet' ; ;nsf=none ; ; PRI Dialplan: Only RARELY used for PRI. ; ; unknown: Unknown ; private: Private ISDN ; local: Local ISDN ; national: National ISDN ; international: International ISDN ; dynamic: Dynamically selects the appropriate dialplan ; ;pridialplan=national ; ; PRI Local Dialplan: Only RARELY used for PRI (sets the calling number's numbering plan) ; ; unknown: Unknown ; private: Private ISDN ; local: Local ISDN ; national: National ISDN ; international: International ISDN ; dynamic: Dynamically selects the appropriate dialplan ; ;prilocaldialplan=national ; ; PRI callerid prefixes based on the given TON/NPI (dialplan) ; This is especially needed for euroisdn E1-PRIs ; ; sample 1 for Germany ;internationalprefix = 00 ;nationalprefix = 0 ;localprefix = 0711 ;privateprefix = 07115678 ;unknownprefix = ; ; sample 2 for Germany ;internationalprefix = + ;nationalprefix = +49 ;localprefix = +49711 ;privateprefix = +497115678 ;unknownprefix = ; ; PRI resetinterval: sets the time in seconds between restart of unused ; channels, defaults to 3600; minimum 60 seconds. Some PBXs don't like ; channel restarts. so set the interval to a very long interval e.g. 100000000 ; or 'never' to disable *entirely*. ; ;resetinterval = 3600 ; ; Overlap dialing mode (sending overlap digits) ; ;overlapdial=yes ; ; PRI Out of band indications. ; Enable this to report Busy and Congestion on a PRI using out-of-band ; notification. Inband indication, as used by Asterisk doesn't seem to work ; with all telcos. ; ; outofband: Signal Busy/Congestion out of band with RELEASE/DISCONNECT ; inband: Signal Busy/Congestion using in-band tones ; passthrough: Listen to the telco ; ; priindication = outofband ; ; PRI/BRI transfers (HOLD -> SETUP -> ECT/Hangup) ; ; Configure how transfers are initiated. ECT should be preferred ; ; no: no transfers allowed (results in hangup) ; ect: use ECT (facility) ; hangup: transfer on hangup (if your phones dont support ECT) ; ; pritransfer = ect ; ; If you need to override the existing channels selection routine and force all ; PRI channels to be marked as exclusively selected, set this to yes. ; priexclusive = yes ; ; ISDN Timers ; All of the ISDN timers and counters that are used are configurable. Specify ; the timer name, and its value (in ms for timers). ; K: Layer 2 max number of outstanding unacknowledged I frames (default 7) ; N200: Layer 2 max number of retransmissions of a frame (default 3) ; T200: Layer 2 max time before retransmission of a frame (default 1000 ms) ; T203: Layer 2 max time without frames being exchanged (default 10000 ms) ; T305: Wait for DISCONNECT acknowledge (default 30000 ms) ; T308: Wait for RELEASE acknowledge (default 4000 ms) ; T309: Maintain active calls on Layer 2 disconnection (default -1, Asterisk clears calls) ; EuroISDN: 6000 to 12000 ms, according to (N200 + 1) x T200 + 2s ; May vary in other ISDN standards (Q.931 1993 : 90000 ms) ; T313: Wait for CONNECT acknowledge, CPE side only (default 3000 ms) ; ; pritimer => t200,1000 ; pritimer => t313,4000 ; ; To enable transmission of facility-based ISDN supplementary services (such ; as caller name from CPE over facility), enable this option. ; facilityenable = yes ; ; ; Signalling method (default is fxs). Valid values: ; em: E & M ; em_w: E & M Wink ; featd: Feature Group D (The fake, Adtran style, DTMF) ; featdmf: Feature Group D (The real thing, MF (domestic, US)) ; featdmf_ta: Feature Group D (The real thing, MF (domestic, US)) through ; a Tandem Access point ; featb: Feature Group B (MF (domestic, US)) ; fgccama Feature Group C-CAMA (DP DNIS, MF ANI) ; fgccamamf Feature Group C-CAMA MF (MF DNIS, MF ANI) ; fxs_ls: FXS (Loop Start) ; fxs_gs: FXS (Ground Start) ; fxs_ks: FXS (Kewl Start) ; fxo_ls: FXO (Loop Start) ; fxo_gs: FXO (Ground Start) ; fxo_ks: FXO (Kewl Start) ; pri_cpe: PRI signalling, CPE side ; pri_net: PRI signalling, Network side ; gr303fxoks_net: GR-303 Signalling, FXO Loopstart, Network side ; gr303fxsks_cpe: GR-303 Signalling, FXS Loopstart, CPE side ; sf: SF (Inband Tone) Signalling ; sf_w: SF Wink ; sf_featd: SF Feature Group D (The fake, Adtran style, DTMF) ; sf_featdmf: SF Feature Group D (The real thing, MF (domestic, US)) ; sf_featb: SF Feature Group B (MF (domestic, US)) ; e911: E911 (MF) style signalling ; ; The following are used for Radio interfaces: ; fxs_rx: Receive audio/COR on an FXS kewlstart interface (FXO at the ; channel bank) ; fxs_tx: Transmit audio/PTT on an FXS loopstart interface (FXO at the ; channel bank) ; fxo_rx: Receive audio/COR on an FXO loopstart interface (FXS at the ; channel bank) ; fxo_tx: Transmit audio/PTT on an FXO groundstart interface (FXS at ; the channel bank) ; em_rx: Receive audio/COR on an E&M interface (1-way) ; em_tx: Transmit audio/PTT on an E&M interface (1-way) ; em_txrx: Receive audio/COR AND Transmit audio/PTT on an E&M interface ; (2-way) ; em_rxtx: Same as em_txrx (for our dyslexic friends) ; sf_rx: Receive audio/COR on an SF interface (1-way) ; sf_tx: Transmit audio/PTT on an SF interface (1-way) ; sf_txrx: Receive audio/COR AND Transmit audio/PTT on an SF interface ; (2-way) ; sf_rxtx: Same as sf_txrx (for our dyslexic friends) ; ;signalling= ; ; If you have an outbound signalling format that is different from format ; specified above (but compatible), you can specify outbound signalling format, ; (see below). The 'signalling' format specified will be the inbound signalling ; format. If you only specify 'signalling', then it will be the format for ; both inbound and outbound. ; ; signalling=featdmf ; outsignalling=featb ; ; For Feature Group D Tandem access, to set the default CIC and OZZ use these ; parameters: ;defaultozz=0000 ;defaultcic=303 ; ; A variety of timing parameters can be specified as well ; Including: ; prewink: Pre-wink time (default 50ms) ; preflash: Pre-flash time (default 50ms) ; wink: Wink time (default 150ms) ; flash: Flash time (default 750ms) ; start: Start time (default 1500ms) ; rxwink: Receiver wink time (default 300ms) ; rxflash: Receiver flashtime (default 1250ms) ; debounce: Debounce timing (default 600ms) ; rxwink=300 ; Atlas seems to use long (250ms) winks ; ; How long generated tones (DTMF and MF) will be played on the channel ; (in milliseconds) ;toneduration=100 ; ; Whether or not to do distinctive ring detection on FXO lines ; ;usedistinctiveringdetection=yes ;distinctiveringaftercid=yes ; enable dring detection after callerid for those countries like Australia ; where the ring cadence is changed *after* the callerid spill. ; ; Whether or not to use caller ID ; usecallerid=yes ; ; Type of caller ID signalling in use ; bell = bell202 as used in US ; v23 = v23 as used in the UK ; v23_jp = v23 as used in Japan ; dtmf = DTMF as used in Denmark, Sweden and Netherlands ; smdi = Use SMDI for callerid. Requires SMDI to be enabled (usesmdi). ; ;cidsignalling=bell ; ; What signals the start of caller ID ; ring = a ring signals the start ; polarity = polarity reversal signals the start ; ;cidstart=ring ; ; Whether or not to hide outgoing caller ID (Override with *67 or *82) ; hidecallerid=no ; ; Whether or not to enable call waiting on internal extensions ; With this set to 'yes', busy extensions will hear the call-waiting ; tone, and can use hook-flash to switch between callers. The Dial() ; app will not return the "BUSY" result for extensions. ; callwaiting=yes ; ; Whether or not restrict outgoing caller ID (will be sent as ANI only, not ; available for the user) ; Mostly use with FXS ports ; ;restrictcid=no ; ; Whether or not use the caller ID presentation for the outgoing call that the ; calling switch is sending. ; See doc/callingpres.txt ; usecallingpres=yes ; ; Some countries (UK) have ring tones with different ring tones (ring-ring), ; which means the callerid needs to be set later on, and not just after ; the first ring, as per the default. ; ;sendcalleridafter=1 ; ; ; Support Caller*ID on Call Waiting ; callwaitingcallerid=yes ; ; Support three-way calling ; threewaycalling=yes ; ; For FXS ports (either direct analog or over T1/E1): ; Support flash-hook call transfer (requires three way calling) ; Also enables call parking (overrides the 'canpark' parameter) ; ; For digital ports using ISDN PRI protocols: ; Support switch-side transfer (called 2BCT, RLT or other names) ; This setting must be enabled on both ports involved, and the ; 'facilityenable' setting must also be enabled to allow sending ; the transfer to the ISDN switch, since it sent in a FACILITY ; message. ; transfer=yes ; ; Allow call parking ; ('canpark=no' is overridden by 'transfer=yes') ; canpark=yes ; ; Support call forward variable ; cancallforward=yes ; ; Whether or not to support Call Return (*69) ; callreturn=yes ; ; Stutter dialtone support: If a mailbox is specified without a voicemail ; context, then when voicemail is received in a mailbox in the default ; voicemail context in voicemail.conf, taking the phone off hook will cause a ; stutter dialtone instead of a normal one. ; ; If a mailbox is specified *with* a voicemail context, the same will result ; if voicemail received in mailbox in the specified voicemail context. ; ; for default voicemail context, the example below is fine: ; ;mailbox=1234 ; ; for any other voicemail context, the following will produce the stutter tone: ; ;mailbox=1234@context ; ; Enable echo cancellation ; Use either "yes", "no", or a power of two from 32 to 256 if you wish to ; actually set the number of taps of cancellation. ; ; Note that when setting the number of taps, the number 256 does not translate ; to 256 ms of echo cancellation. echocancel=256 means 256 / 8 = 32 ms. ; ; Note that if any of your Zaptel cards have hardware echo cancellers, ; then this setting only turns them on and off; numeric settings will ; be treated as "yes". There are no special settings required for ; hardware echo cancellers; when present and enabled in their kernel ; modules, they take precedence over the software echo canceller compiled ; into Zaptel automatically. ; echocancel=yes ; ; Generally, it is not necessary (and in fact undesirable) to echo cancel when ; the circuit path is entirely TDM. You may, however, change this behavior ; by enabling the echo cancel during pure TDM bridging below. ; echocancelwhenbridged=yes ; ; In some cases, the echo canceller doesn't train quickly enough and there ; is echo at the beginning of the call. Enabling echo training will cause ; asterisk to briefly mute the channel, send an impulse, and use the impulse ; response to pre-train the echo canceller so it can start out with a much ; closer idea of the actual echo. Value may be "yes", "no", or a number of ; milliseconds to delay before training (default = 400) ; ; WARNING: In some cases this option can make echo worse! If you are ; trying to debug an echo problem, it is worth checking to see if your echo ; is better with the option set to yes or no. Use whatever setting gives ; the best results. ; ; Note that these parameters do not apply to hardware echo cancellers. ; ;echotraining=yes ;echotraining=800 ; ; If you are having trouble with DTMF detection, you can relax the DTMF ; detection parameters. Relaxing them may make the DTMF detector more likely ; to have "talkoff" where DTMF is detected when it shouldn't be. ; ;relaxdtmf=yes ; ; You may also set the default receive and transmit gains (in dB) ; rxgain=0.0 txgain=0.0 ; ; Logical groups can be assigned to allow outgoing rollover. Groups range ; from 0 to 63, and multiple groups can be specified. ; ;group=1 ; ; Ring groups (a.k.a. call groups) and pickup groups. If a phone is ringing ; and it is a member of a group which is one of your pickup groups, then ; you can answer it by picking up and dialling *8#. For simple offices, just ; make these both the same. Groups range from 0 to 63. ; ;callgroup=1 ;pickupgroup=1 ; ; Specify whether the channel should be answered immediately or if the simple ; switch should provide dialtone, read digits, etc. ; Note: If immediate=yes the dialplan execution will always start at extension ; 's' priority 1 regardless of the dialed number! ; immediate=no ; ; Specify whether flash-hook transfers to 'busy' channels should complete or ; return to the caller performing the transfer (default is yes). ; ;transfertobusy=no ; ; CallerID can be set to "asreceived" or a specific number if you want to ; override it. Note that "asreceived" only applies to trunk interfaces. ; ;callerid=2564286000 ; ; AMA flags affects the recording of Call Detail Records. If specified ; it may be 'default', 'omit', 'billing', or 'documentation'. ; ;amaflags=default ; ; Channels may be associated with an account code to ease ; billing ; ;accountcode=lss0101 ; ; ADSI (Analog Display Services Interface) can be enabled on a per-channel ; basis if you have (or may have) ADSI compatible CPE equipment ; ;adsi=yes ; ; SMDI (Simplified Message Desk Interface) can be enabled on a per-channel ; basis if you would like that channel to behave like an SMDI message desk. ; The SMDI port specified should have already been defined in smdi.conf. The ; default port is /dev/ttyS0. ; ;usesmdi=yes ;smdiport=/dev/ttyS0 ; ; On trunk interfaces (FXS) and E&M interfaces (E&M, Wink, Feature Group D ; etc, it can be useful to perform busy detection either in an effort to ; detect hangup or for detecting busies. This enables listening for ; the beep-beep busy pattern. ; ;busydetect=yes ; ; If busydetect is enabled, it is also possible to specify how many busy tones ; to wait for before hanging up. The default is 4, but better results can be ; achieved if set to 6 or even 8. Mind that the higher the number, the more ; time that will be needed to hangup a channel, but lowers the probability ; that you will get random hangups. ; ;busycount=4 ; ; If busydetect is enabled, it is also possible to specify the cadence of your ; busy signal. In many countries, it is 500msec on, 500msec off. Without ; busypattern specified, we'll accept any regular sound-silence pattern that ; repeats <busycount> times as a busy signal. If you specify busypattern, ; then we'll further check the length of the sound (tone) and silence, which ; will further reduce the chance of a false positive. ; ;busypattern=500,500 ; ; NOTE: In the Asterisk Makefile you'll find further options to tweak the busy ; detector. If your country has a busy tone with the same length tone and ; silence (as many countries do), consider defining the ; -DBUSYDETECT_COMPARE_TONE_AND_SILENCE option. ; ; Use a polarity reversal to mark when a outgoing call is answered by the ; remote party. ; ;answeronpolarityswitch=yes ; ; In some countries, a polarity reversal is used to signal the disconnect of a ; phone line. If the hanguponpolarityswitch option is selected, the call will ; be considered "hung up" on a polarity reversal. ; ;hanguponpolarityswitch=yes ; ; On trunk interfaces (FXS) it can be useful to attempt to follow the progress ; of a call through RINGING, BUSY, and ANSWERING. If turned on, call ; progress attempts to determine answer, busy, and ringing on phone lines. ; This feature is HIGHLY EXPERIMENTAL and can easily detect false answers, ; so don't count on it being very accurate. ; ; Few zones are supported at the time of this writing, but may be selected ; with "progzone" ; ; This feature can also easily detect false hangups. The symptoms of this is ; being disconnected in the middle of a call for no reason. ; ;callprogress=yes ;progzone=us ; ; FXO (FXS signalled) devices must have a timeout to determine if there was a ; hangup before the line was answered. This value can be tweaked to shorten ; how long it takes before Zap considers a non-ringing line to have hungup. ; ;ringtimeout=8000 ; ; For FXO (FXS signalled) devices, whether to use pulse dial instead of DTMF ; ;pulsedial=yes ; ; For fax detection, uncomment one of the following lines. The default is *OFF* ; ;faxdetect=both ;faxdetect=incoming ;faxdetect=outgoing ;faxdetect=no ; ; This option specifies a preference for which music on hold class this channel ; should listen to when put on hold if the music class has not been set on the ; channel with Set(CHANNEL(musicclass)=whatever) in the dialplan, and the peer ; channel putting this one on hold did not suggest a music class. ; ; If this option is set to "passthrough", then the hold message will always be ; passed through as signalling instead of generating hold music locally. This ; setting is only valid when used on a channel that uses digital signalling. ; ; This option may be specified globally, or on a per-user or per-peer basis. ; ;mohinterpret=default ; ; This option specifies which music on hold class to suggest to the peer channel ; when this channel places the peer on hold. It may be specified globally or on ; a per-user or per-peer basis. ; ;mohsuggest=default ; ; PRI channels can have an idle extension and a minunused number. So long as ; at least "minunused" channels are idle, chan_zap will try to call "idledial" ; on them, and then dump them into the PBX in the "idleext" extension (which ; is of the form exten@context). When channels are needed the "idle" calls ; are disconnected (so long as there are at least "minidle" calls still ; running, of course) to make more channels available. The primary use of ; this is to create a dynamic service, where idle channels are bundled through ; multilink PPP, thus more efficiently utilizing combined voice/data services ; than conventional fixed mappings/muxings. ; ;idledial=6999 ;idleext=6999@dialout ;minunused=2 ;minidle=1 ; ; Configure jitter buffers in zapata (each one is 20ms, default is 4) ; ;jitterbuffers=4 ; ;------------------------------ JITTER BUFFER CONFIGURATION -------------------------- ; jbenable = yes ; Enables the use of a jitterbuffer on the receiving side of a ; ZAP channel. Defaults to "no". An enabled jitterbuffer will ; be used only if the sending side can create and the receiving ; side can not accept jitter. The ZAP channel can't accept jitter, ; thus an enabled jitterbuffer on the receive ZAP side will always ; be used if the sending side can create jitter. ; jbmaxsize = 200 ; Max length of the jitterbuffer in milliseconds. ; jbresyncthreshold = 1000 ; Jump in the frame timestamps over which the jitterbuffer is ; resynchronized. Useful to improve the quality of the voice, with ; big jumps in/broken timestamps, usually sent from exotic devices ; and programs. Defaults to 1000. ; jbimpl = fixed ; Jitterbuffer implementation, used on the receiving side of a ZAP ; channel. Two implementations are currently available - "fixed" ; (with size always equals to jbmax-size) and "adaptive" (with ; variable size, actually the new jb of IAX2). Defaults to fixed. ; jblog = no ; Enables jitterbuffer frame logging. Defaults to "no". ;----------------------------------------------------------------------------------- ; ; You can define your own custom ring cadences here. You can define up to 8 ; pairs. If the silence is negative, it indicates where the callerid spill is ; to be placed. Also, if you define any custom cadences, the default cadences ; will be turned off. ; ; Syntax is: cadence=ring,silence[,ring,silence[...]] ; ; These are the default cadences: ; ;cadence=125,125,2000,-4000 ;cadence=250,250,500,1000,250,250,500,-4000 ;cadence=125,125,125,125,125,-4000 ;cadence=1000,500,2500,-5000 ; ; Each channel consists of the channel number or range. It inherits the ; parameters that were specified above its declaration. ; ; For GR-303, CRV's are created like channels except they must start with the ; trunk group followed by a colon, e.g.: ; ; crv => 1:1 ; crv => 2:1-2,5-8 ; ; ;callerid="Green Phone"<(256) 428-6121> ;channel => 1 ;callerid="Black Phone"<(256) 428-6122> ;channel => 2 ;callerid="CallerID Phone" <(256) 428-6123> ;callerid="CallerID Phone" <(630) 372-1564> ;callerid="CallerID Phone" <(256) 704-4666> ;channel => 3 ;callerid="Pac Tel Phone" <(256) 428-6124> ;channel => 4 ;callerid="Uniden Dead" <(256) 428-6125> ;channel => 5 ;callerid="Cortelco 2500" <(256) 428-6126> ;channel => 6 ;callerid="Main TA 750" <(256) 428-6127> ;channel => 44 ; ; For example, maybe we have some other channels which start out in a ; different context and use E & M signalling instead. ; ;context=remote ;sigalling=em ;channel => 15 ;channel => 16 ;signalling=em_w ; ; All those in group 0 I'll use for outgoing calls ; ; Strip most significant digit (9) before sending ; ;stripmsd=1 ;callerid=asreceived ;group=0 ;signalling=fxs_ls ;channel => 45 ;signalling=fxo_ls ;group=1 ;callerid="Joe Schmoe" <(256) 428-6131> ;channel => 25 ;callerid="Megan May" <(256) 428-6132> ;channel => 26 ;callerid="Suzy Queue" <(256) 428-6233> ;channel => 27 ;callerid="Larry Moe" <(256) 428-6234> ;channel => 28 ; ; Sample PRI (CPE) config: Specify the switchtype, the signalling as either ; pri_cpe or pri_net for CPE or Network termination, and generally you will ; want to create a single "group" for all channels of the PRI. ; ; switchtype = national ; signalling = pri_cpe ; group = 2 ; channel => 1-23 ; ; Used for distinctive ring support for x100p. ; You can see the dringX patterns is to set any one of the dringXcontext fields ; and they will be printed on the console when an inbound call comes in. ; ;dring1=95,0,0 ;dring1context=internal1 ;dring2=325,95,0 ;dring2context=internal2 ; If no pattern is matched here is where we go. ;context=default ;channel => 1
Время первой команды журнала | 11:47:11 2010- 3-19 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 18:25:50 2010- 3-21 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 93 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 21.51 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 2.15 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.80 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.86 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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