/l3/users/roman-sidorenko/asterisk/debian4/root :1 :2 :3 :4 :5 :6 :7 |
|
#lspci
00:00.0 Host bridge: Intel Corporation 82865G/PE/P DRAM Controller/Host-Hub Interface (rev 02) 00:02.0 VGA compatible controller: Intel Corporation 82865G Integrated Graphics Controller (rev 02) 00:03.0 PCI bridge: Intel Corporation 82865G/PE/P PCI to CSA Bridge (rev 02) 00:1d.0 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #1 (rev 02) 00:1d.1 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #2 (rev 02) 00:1d.2 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #3 (rev 02) 00:1d.3 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #4 (rev 02) 00:1d.7 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB2 EHCI Controller (rev 02) 00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev c2) 00:1f.0 ISA bridge: Intel Corporation 82801EB/ER (ICH5/ICH5R) LPC Interface Bridge (rev 02) 00:1f.1 IDE interface: Intel Corporation 82801EB/ER (ICH5/ICH5R) IDE Controller (rev 02) 00:1f.2 IDE interface: Intel Corporation 82801EB (ICH5) SATA Controller (rev 02) 00:1f.3 SMBus: Intel Corporation 82801EB/ER (ICH5/ICH5R) SMBus Controller (rev 02) 00:1f.5 Multimedia audio controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) AC'97 Audio Controller (rev 02) 01:01.0 Ethernet controller: Intel Corporation 82547EI Gigabit Ethernet Controller 02:02.0 Ethernet controller: Digium, Inc. Device 8001 (rev 11) |
#apt-cache search zaptel
zaptel - zapata telephony utilities zaptel-source - Zapata telephony interface (source code for kernel driver) |
#apt-get install zaptel
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: fxload The following NEW packages will be installed: fxload zaptel 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 314kB of archives. After this operation, 1159kB of additional disk space will be used. Do you want to continue [Y/n]? n Abort. |
#apt-get install zaptel zaptel-source
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: fxload The following NEW packages will be installed: fxload zaptel zaptel-source 0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded. Need to get 1460kB of archives. After this operation, 2519kB of additional disk space will be used. ... Unpacking fxload (from .../fxload_0.0.20020411-1.1_i386.deb) ... Selecting previously deselected package zaptel. Unpacking zaptel (from .../zaptel_1%3a1.4.11~dfsg-3_i386.deb) ... Selecting previously deselected package zaptel-source. Unpacking zaptel-source (from .../zaptel-source_1%3a1.4.11~dfsg-3_all.deb) ... Processing triggers for man-db ... Setting up fxload (0.0.20020411-1.1) ... Setting up zaptel (1:1.4.11~dfsg-3) ... Zaptel telephony kernel driver: FATAL: Module ztdummy not found. Setting up zaptel-source (1:1.4.11~dfsg-3) ... |
#lspci
00:00.0 Host bridge: Intel Corporation 82865G/PE/P DRAM Controller/Host-Hub Interface (rev 02) 00:02.0 VGA compatible controller: Intel Corporation 82865G Integrated Graphics Controller (rev 02) 00:03.0 PCI bridge: Intel Corporation 82865G/PE/P PCI to CSA Bridge (rev 02) 00:1d.0 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #1 (rev 02) 00:1d.1 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #2 (rev 02) 00:1d.2 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #3 (rev 02) 00:1d.3 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #4 (rev 02) 00:1d.7 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB2 EHCI Controller (rev 02) 00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev c2) 00:1f.0 ISA bridge: Intel Corporation 82801EB/ER (ICH5/ICH5R) LPC Interface Bridge (rev 02) 00:1f.1 IDE interface: Intel Corporation 82801EB/ER (ICH5/ICH5R) IDE Controller (rev 02) 00:1f.2 IDE interface: Intel Corporation 82801EB (ICH5) SATA Controller (rev 02) 00:1f.3 SMBus: Intel Corporation 82801EB/ER (ICH5/ICH5R) SMBus Controller (rev 02) 00:1f.5 Multimedia audio controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) AC'97 Audio Controller (rev 02) 01:01.0 Ethernet controller: Intel Corporation 82547EI Gigabit Ethernet Controller 02:02.0 Ethernet controller: Digium, Inc. Device 8001 (rev 11) |
#lspci -v
00:00.0 Host bridge: Intel Corporation 82865G/PE/P DRAM Controller/Host-Hub Interface (rev 02) Subsystem: Intel Corporation 82865G/PE/P DRAM Controller/Host-Hub Interface Flags: bus master, fast devsel, latency 0 Memory at f8000000 (32-bit, prefetchable) [size=64M] Capabilities: [e4] Vendor Specific Information <?> Kernel driver in use: agpgart-intel Kernel modules: intel-agp 00:02.0 VGA compatible controller: Intel Corporation 82865G Integrated Graphics Controller (rev 02) (prog-if 00 [VGA controller]) Subsystem: Intel Corporation Desktop Board D865GLC Flags: bus master, fast devsel, latency 0, IRQ 16 ... Capabilities: [dc] Power Management version 2 Kernel driver in use: e1000 Kernel modules: e1000 02:02.0 Ethernet controller: Digium, Inc. Device 8001 (rev 11) Subsystem: Digium, Inc. Device 8001 Flags: bus master, medium devsel, latency 32, IRQ 3 I/O ports at b800 [size=256] Memory at ff8ffc00 (32-bit, non-prefetchable) [size=1K] Expansion ROM at 80000000 [disabled] [size=128K] Capabilities: [c0] Power Management version 2 |
#m-a a-i zaptel
│ │ │ │ │ │ │ │ │ │ │ │ │ 100% │ │ │ └─────────────────────────────────────────────────────────────────────────┘ Done with /usr/src/zaptel-modules-2.6.26-2-686_1.4.11~dfsg-3+2.6.26-19lenny2_i386.deb . dpkg -Ei /usr/src/zaptel-modules-2.6.26-2-686_1.4.11~dfsg-3+2.6.26-19lenny2_i386.deb Selecting previously deselected package zaptel-modules-2.6.26-2-686. (Reading database ... 53901 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-19lenny2_i386.deb) ... Setting up zaptel-modules-2.6.26-2-686 (1:1.4.11~dfsg-3+2.6.26-19lenny2) ... |
#/etc/init.d/zaptel start
Zaptel telephony kernel driver: Notice: Configuration file is /etc/zaptel.conf line 0: Unable to open master device '/dev/zap/ctl' 1 error(s) detected |
#/etc/init.d/zaptel restart
Zaptel telephony kernel driver: ZT_SPANCONFIG failed on span 1: Invalid argument (22) |
#/etc/init.d/zaptel restart
Zaptel telephony kernel driver: ZT_SPANCONFIG failed on span 1: Invalid argument (22) |
#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 03: Clear channel (Default) (Slaves: 03) Channel 04: Clear channel (Default) (Slaves: 04) ... Channel 09: Clear channel (Default) (Slaves: 09) Channel 10: Clear channel (Default) (Slaves: 10) Channel 11: Clear channel (Default) (Slaves: 11) Channel 12: Clear channel (Default) (Slaves: 12) Channel 13: Clear channel (Default) (Slaves: 13) Channel 14: Clear channel (Default) (Slaves: 14) Channel 15: Clear channel (Default) (Slaves: 15) Channel 16: D-channel (Default) (Slaves: 16) 16 channels to configure. ZT_SPANCONFIG failed on span 1: Invalid argument (22) |
#/etc/init.d/zaptel restart
Zaptel telephony kernel driver: ZT_SPANCONFIG failed on span 1: Invalid argument (22) |
#/etc/init.d/zaptel restart
Zaptel telephony kernel driver: ZT_SPANCONFIG failed on span 1: Invalid argument (22) |
#dmesg
[ 0.000000] Initializing cgroup subsys cpuset [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Linux version 2.6.26-2-686 (Debian 2.6.26-19lenny2) (dannf@debian.org) (gcc version 4.1.3 20080704 (prerelease) (Debian 4.1.2-25)) #1 SMP Wed Nov 4 20:45:37 UTC 2009 [ 0.000000] BIOS-provided physical RAM map: [ 0.000000] BIOS-e820: 0000000000000000 - 000000000009fc00 (usable) [ 0.000000] BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved) [ 0.000000] BIOS-e820: 00000000000e6000 - 0000000000100000 (reserved) [ 0.000000] BIOS-e820: 0000000000100000 - 000000007ef30000 (usable) [ 0.000000] BIOS-e820: 000000007ef30000 - 000000007ef40000 (ACPI data) [ 0.000000] BIOS-e820: 000000007ef40000 - 000000007eff0000 (ACPI NVS) ... [11256.221502] PCI: Setting latency timer of device 0000:00:1f.5 to 64 [11256.644025] intel8x0_measure_ac97_clock: measured 52018 usecs [11256.644035] intel8x0: clocking to 48000 [94558.547183] Zapata Telephony Interface Registered on major 196 [94558.547195] Zaptel Version: 1.4.11 [94558.547197] Zaptel Echo Canceller: MG2 [94558.551441] ztdummy: Trying to load High Resolution Timer [94558.551454] ztdummy: Initialized High Resolution Timer [94558.551456] ztdummy: Starting High Resolution Timer [94558.551461] ztdummy: High Resolution Timer started, good to go |
#ztscan
[1] active=yes alarms=UNCONFIGURED description=ZTDUMMY/1 (source: HRtimer) 1 name=ZTDUMMY/1 manufacturer= devicetype=Zaptel Dummy Timing Driver location= basechan=1 totchans=0 irq=0 |
#dmesg
[ 0.000000] Initializing cgroup subsys cpuset [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Linux version 2.6.26-2-686 (Debian 2.6.26-19lenny2) (dannf@debian.org) (gcc version 4.1.3 20080704 (prerelease) (Debian 4.1.2-25)) #1 SMP Wed Nov 4 20:45:37 UTC 2009 [ 0.000000] BIOS-provided physical RAM map: [ 0.000000] BIOS-e820: 0000000000000000 - 000000000009fc00 (usable) [ 0.000000] BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved) [ 0.000000] BIOS-e820: 00000000000e6000 - 0000000000100000 (reserved) [ 0.000000] BIOS-e820: 0000000000100000 - 000000007ef30000 (usable) [ 0.000000] BIOS-e820: 000000007ef30000 - 000000007ef40000 (ACPI data) [ 0.000000] BIOS-e820: 000000007ef40000 - 000000007eff0000 (ACPI NVS) ... [11256.221502] PCI: Setting latency timer of device 0000:00:1f.5 to 64 [11256.644025] intel8x0_measure_ac97_clock: measured 52018 usecs [11256.644035] intel8x0: clocking to 48000 [94558.547183] Zapata Telephony Interface Registered on major 196 [94558.547195] Zaptel Version: 1.4.11 [94558.547197] Zaptel Echo Canceller: MG2 [94558.551441] ztdummy: Trying to load High Resolution Timer [94558.551454] ztdummy: Initialized High Resolution Timer [94558.551456] ztdummy: Starting High Resolution Timer [94558.551461] ztdummy: High Resolution Timer started, good to go |
#/etc/init.d/zaptel restart
Zaptel telephony kernel driver: ZT_SPANCONFIG failed on span 1: Invalid argument (22) |
#mount /dev/
Display all 192 possibilities? (y or n) |
#mount /dev/sd
sda sda1 sda2 sda3 sda5 sda6 sda7 sda8 sdb |
#mount /dev/sda1 /mnt
|
#ls /mnt
bin dev initrd lib opt sbin sys var boot etc initrd.img media proc selinux tmp vmlinuz cdrom home initrd.img.old mnt root srv usr vmlinuz.old |
#less /mnt/etc/zaptel.conf
|
#less /mnt/etc/asterisk/zapata.conf
|
#reboot
Broadcast message from root@debian3 (pts/9) (Tue Dec 8 04:02:37 2009): The system is going down for reboot NOW! |
#ssh root@192.168.101.3
root@192.168.101.3's password: Linux debian3 2.6.26-2-686 #1 SMP Wed Nov 4 20:45:37 UTC 2009 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: Mon Dec 7 23:20:58 2009 from 192.168.102.1 Removing stale pidfile |
#zts
ztscan ztspeed |
#ztscan
[1] active=yes alarms=OK description=Wildcard TE122 Card 0 name=WCT1/0 manufacturer=Digium devicetype=Wildcard TE122 location=PCI Bus 02 Slot 03 basechan=1 totchans=31 irq=17 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 03: Clear channel (Default) (Slaves: 03) Channel 04: Clear channel (Default) (Slaves: 04) ... Channel 08: Clear channel (Default) (Slaves: 08) Channel 09: Clear channel (Default) (Slaves: 09) Channel 10: Clear channel (Default) (Slaves: 10) Channel 11: Clear channel (Default) (Slaves: 11) Channel 12: Clear channel (Default) (Slaves: 12) Channel 13: Clear channel (Default) (Slaves: 13) Channel 14: Clear channel (Default) (Slaves: 14) Channel 15: Clear channel (Default) (Slaves: 15) Channel 16: D-channel (Default) (Slaves: 16) 16 channels to configure. |
#vi /etc/asterisk/zapata.conf
|
#screen -x
|
#minicom -s
Welcome to minicom 2.3 OPTIONS: I18n Press CTRL-A Z for help on special keys Compiled on Feb 24 2008, 16:35:15. Port /dev/ttyUSB0 PSTN#AT S7=45 S0=0 L1 V1 X4 &c1 E1 Q0 ^ % Invalid input detected at '^' marker. PSTN# PSTN#sh ... session protocol sipv2 session target ipv4:10.1.4.102 codec g711ulaw ! ! ! ! gatekeeper shutdown ! |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#tail /var/log/messages
Dec 8 04:14:52 debian3 dhcpd: DHCPREQUEST for 192.168.101.102 from 00:1e:68:cd:7f:c8 (IT-NB-Mini) via eth0 Dec 8 04:14:52 debian3 dhcpd: DHCPACK on 192.168.101.102 to 00:1e:68:cd:7f:c8 (IT-NB-Mini) via eth0 Dec 8 04:15:26 debian3 dhcpd: DHCPREQUEST for 192.168.101.100 from 00:0e:a6:20:4c:29 (pc01) via eth0 Dec 8 04:15:26 debian3 dhcpd: DHCPACK on 192.168.101.100 to 00:0e:a6:20:4c:29 (pc01) via eth0 Dec 8 04:17:28 debian3 dhcpd: DHCPREQUEST for 192.168.101.101 (192.168.101.3) from 00:04:13:25:67:21 via eth0 Dec 8 04:17:28 debian3 dhcpd: DHCPACK on 192.168.101.101 to 00:04:13:25:67:21 via eth0 Dec 8 04:19:52 debian3 dhcpd: DHCPREQUEST for 192.168.101.102 from 00:1e:68:cd:7f:c8 (IT-NB-Mini) via eth0 Dec 8 04:19:52 debian3 dhcpd: DHCPACK on 192.168.101.102 to 00:1e:68:cd:7f:c8 (IT-NB-Mini) via eth0 Dec 8 04:20:26 debian3 dhcpd: DHCPREQUEST for 192.168.101.100 from 00:0e:a6:20:4c:29 (pc01) via eth0 Dec 8 04:20:26 debian3 dhcpd: DHCPACK on 192.168.101.100 to 00:0e:a6:20:4c:29 (pc01) via eth0 |
#tail /var/log/asterisk/messages
[Dec 8 04:21:01] NOTICE[3016] res_odbc.c: res_odbc loaded. [Dec 8 04:21:02] ERROR[3016] chan_vpb.cc: No Voicetronix cards detected [Dec 8 04:21:02] NOTICE[3016] pbx_ael.c: Starting AEL load process. [Dec 8 04:21:02] NOTICE[3016] pbx_ael.c: AEL load process: calculated config file name '/etc/asterisk/extensions.ael'. [Dec 8 04:21:02] NOTICE[3016] pbx_ael.c: AEL load process: parsed config file name '/etc/asterisk/extensions.ael'. [Dec 8 04:21:02] NOTICE[3016] pbx_ael.c: AEL load process: checked config file name '/etc/asterisk/extensions.ael'. [Dec 8 04:21:02] NOTICE[3016] pbx_ael.c: AEL load process: compiled config file name '/etc/asterisk/extensions.ael'. [Dec 8 04:21:02] NOTICE[3016] pbx_ael.c: AEL load process: merged config file name '/etc/asterisk/extensions.ael'. [Dec 8 04:21:02] NOTICE[3016] pbx_ael.c: AEL load process: verified config file name '/etc/asterisk/extensions.ael'. [Dec 8 04:21:05] WARNING[3027] chan_zap.c: No D-channels available! Using Primary channel 16 as D-channel anyway! |
#;spanmap => 4,1,4
Asterisk 1.4.21.2~dfsg-3, 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 ========================================================================= ... [Dec 8 04:23:21] WARNING[3027]: chan_zap.c:2498 pri_find_dchan: No D-channels available! Using Primary channel 16 as D-channel anyway! [Dec 8 04:23:26] WARNING[3027]: chan_zap.c:2498 pri_find_dchan: No D-channels available! Using Primary channel 16 as D-channel anyway! [Dec 8 04:23:31] WARNING[3027]: chan_zap.c:2498 pri_find_dchan: No D-channels available! Using Primary channel 16 as D-channel anyway! [Dec 8 04:23:36] WARNING[3027]: chan_zap.c:2498 pri_find_dchan: No D-channels available! Using Primary channel 16 as D-channel anyway! [Dec 8 04:23:41] WARNING[3027]: chan_zap.c:2498 pri_find_dchan: No D-channels available! Using Primary channel 16 as D-channel anyway! debian3*CLI> debian3*CLI> debian3*CLI> debian3*CLI> quit Executing last minute cleanups |
#cat /etc/zaptel.conf
span=1,1,0,ccs,hdb3,crc4 bchan=1-15 dchan=16 |
#tail /var/log/asterisk/messages
[Dec 8 04:24:09] ERROR[3165] chan_zap.c: Signalling requested on channel 16 is ISDN PRI but line is in Unknown signalling 896 signalling [Dec 8 04:24:09] ERROR[3165] chan_zap.c: Unable to register channel '1-2,16' [Dec 8 04:24:09] ERROR[3165] chan_vpb.cc: No Voicetronix cards detected [Dec 8 04:24:09] NOTICE[3165] pbx_ael.c: Starting AEL load process. [Dec 8 04:24:09] NOTICE[3165] pbx_ael.c: AEL load process: calculated config file name '/etc/asterisk/extensions.ael'. [Dec 8 04:24:09] NOTICE[3165] pbx_ael.c: AEL load process: parsed config file name '/etc/asterisk/extensions.ael'. [Dec 8 04:24:09] NOTICE[3165] pbx_ael.c: AEL load process: checked config file name '/etc/asterisk/extensions.ael'. [Dec 8 04:24:09] NOTICE[3165] pbx_ael.c: AEL load process: compiled config file name '/etc/asterisk/extensions.ael'. [Dec 8 04:24:09] NOTICE[3165] pbx_ael.c: AEL load process: merged config file name '/etc/asterisk/extensions.ael'. [Dec 8 04:24:09] NOTICE[3165] pbx_ael.c: AEL load process: verified config file name '/etc/asterisk/extensions.ael'. |
#tail /var/log/asterisk/messages
[Dec 8 04:24:33] NOTICE[3268] res_odbc.c: res_odbc loaded. [Dec 8 04:24:33] ERROR[3268] chan_vpb.cc: No Voicetronix cards detected [Dec 8 04:24:33] NOTICE[3268] pbx_ael.c: Starting AEL load process. [Dec 8 04:24:33] NOTICE[3268] pbx_ael.c: AEL load process: calculated config file name '/etc/asterisk/extensions.ael'. [Dec 8 04:24:33] NOTICE[3268] pbx_ael.c: AEL load process: parsed config file name '/etc/asterisk/extensions.ael'. [Dec 8 04:24:33] NOTICE[3268] pbx_ael.c: AEL load process: checked config file name '/etc/asterisk/extensions.ael'. [Dec 8 04:24:33] NOTICE[3268] pbx_ael.c: AEL load process: compiled config file name '/etc/asterisk/extensions.ael'. [Dec 8 04:24:33] NOTICE[3268] pbx_ael.c: AEL load process: merged config file name '/etc/asterisk/extensions.ael'. [Dec 8 04:24:33] NOTICE[3268] pbx_ael.c: AEL load process: verified config file name '/etc/asterisk/extensions.ael'. [Dec 8 04:24:37] WARNING[3279] chan_zap.c: No D-channels available! Using Primary channel 16 as D-channel anyway! |
#tail /var/log/asterisk/messages
[Dec 8 04:24:42] WARNING[3279] chan_zap.c: No D-channels available! Using Primary channel 16 as D-channel anyway! [Dec 8 04:24:47] WARNING[3279] chan_zap.c: No D-channels available! Using Primary channel 16 as D-channel anyway! [Dec 8 04:24:52] WARNING[3279] chan_zap.c: No D-channels available! Using Primary channel 16 as D-channel anyway! [Dec 8 04:24:57] WARNING[3279] chan_zap.c: No D-channels available! Using Primary channel 16 as D-channel anyway! [Dec 8 04:25:02] WARNING[3279] chan_zap.c: No D-channels available! Using Primary channel 16 as D-channel anyway! [Dec 8 04:25:07] WARNING[3279] chan_zap.c: No D-channels available! Using Primary channel 16 as D-channel anyway! [Dec 8 04:25:12] WARNING[3279] chan_zap.c: No D-channels available! Using Primary channel 16 as D-channel anyway! [Dec 8 04:25:17] WARNING[3279] chan_zap.c: No D-channels available! Using Primary channel 16 as D-channel anyway! [Dec 8 04:25:22] WARNING[3279] chan_zap.c: No D-channels available! Using Primary channel 16 as D-channel anyway! [Dec 8 04:25:27] WARNING[3279] chan_zap.c: No D-channels available! Using Primary channel 16 as D-channel anyway! |
#grep -v '^;' /etc/asterisk/zapata.conf
[trunkgroups] [channels] context=default switchtype=national rxwink=300 ; Atlas seems to use long (250ms) winks ; where the ring cadence is changed *after* the callerid spill. usecallerid=yes hidecallerid=no callwaiting=yes usecallingpres=yes ... ; big jumps in/broken timestamps, usually sent from exotic devices ; and programs. Defaults to 1000. ; 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. switchtype = euroisdn signalling = pri_cpe context=default group=1 channel => 1-3 |
#grep -v '^;' /etc/asterisk/zapata.conf | less
|
#tail /var/log/asterisk/messages
[Dec 8 04:26:48] NOTICE[3488] res_odbc.c: Adding ENV var: INFORMIXDIR=/opt/informix [Dec 8 04:26:48] NOTICE[3488] res_odbc.c: res_odbc loaded. [Dec 8 04:26:48] ERROR[3488] chan_vpb.cc: No Voicetronix cards detected [Dec 8 04:26:48] NOTICE[3488] pbx_ael.c: Starting AEL load process. [Dec 8 04:26:48] NOTICE[3488] pbx_ael.c: AEL load process: calculated config file name '/etc/asterisk/extensions.ael'. [Dec 8 04:26:48] NOTICE[3488] pbx_ael.c: AEL load process: parsed config file name '/etc/asterisk/extensions.ael'. [Dec 8 04:26:48] NOTICE[3488] pbx_ael.c: AEL load process: checked config file name '/etc/asterisk/extensions.ael'. [Dec 8 04:26:48] NOTICE[3488] pbx_ael.c: AEL load process: compiled config file name '/etc/asterisk/extensions.ael'. [Dec 8 04:26:48] NOTICE[3488] pbx_ael.c: AEL load process: merged config file name '/etc/asterisk/extensions.ael'. [Dec 8 04:26:48] NOTICE[3488] pbx_ael.c: AEL load process: verified config file name '/etc/asterisk/extensions.ael'. |
#tail /var/log/asterisk/messages
[Dec 8 04:26:48] NOTICE[3488] res_odbc.c: res_odbc loaded. [Dec 8 04:26:48] ERROR[3488] chan_vpb.cc: No Voicetronix cards detected [Dec 8 04:26:48] NOTICE[3488] pbx_ael.c: Starting AEL load process. [Dec 8 04:26:48] NOTICE[3488] pbx_ael.c: AEL load process: calculated config file name '/etc/asterisk/extensions.ael'. [Dec 8 04:26:48] NOTICE[3488] pbx_ael.c: AEL load process: parsed config file name '/etc/asterisk/extensions.ael'. [Dec 8 04:26:48] NOTICE[3488] pbx_ael.c: AEL load process: checked config file name '/etc/asterisk/extensions.ael'. [Dec 8 04:26:48] NOTICE[3488] pbx_ael.c: AEL load process: compiled config file name '/etc/asterisk/extensions.ael'. [Dec 8 04:26:48] NOTICE[3488] pbx_ael.c: AEL load process: merged config file name '/etc/asterisk/extensions.ael'. [Dec 8 04:26:48] NOTICE[3488] pbx_ael.c: AEL load process: verified config file name '/etc/asterisk/extensions.ael'. [Dec 8 04:26:52] WARNING[3499] chan_zap.c: No D-channels available! Using Primary channel 16 as D-channel anyway! |
#less /var/log/asterisk/
|
#less /var/log/asterisk/messages
|
#less /var/log/asterisk/messages
|
#apt-cache search zap
adzapper - proxy advertisement zapper add-on asterisk - Open Source Private Branch Exchange (PBX) dvb-apps - Digitial Video Broadcasting (DVB) applications fceu - FCE Ultra - a nintendo (8-bit) emulator freeradius-utils - FreeRadius client utilities ggz-kde-client - GGZ Gaming Zone: advanced core client for KDE mednafen - multi-platform emulator, including NES, GB/A, Lynx, PC Engine mpqc - The Massively Parallel Quantum Chemistry Program texlive-fonts-recommended - TeX Live: Recommended fonts typespeed - Zap words flying across the screen by typing them correctly xteddy - a cuddly teddy bear (or other image) for your X desktop zapping - television viewer for the GNOME environment zaptel - zapata telephony utilities zaptel-source - Zapata telephony interface (source code for kernel driver) |
#clear
|
#apt-get install zaptel zaptel-source
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: fxload The following NEW packages will be installed: fxload zaptel zaptel-source 0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded. Need to get 1460kB of archives. After this operation, 2519kB of additional disk space will be used. ... Unpacking fxload (from .../fxload_0.0.20020411-1.1_i386.deb) ... Selecting previously deselected package zaptel. Unpacking zaptel (from .../zaptel_1%3a1.4.11~dfsg-3_i386.deb) ... Selecting previously deselected package zaptel-source. Unpacking zaptel-source (from .../zaptel-source_1%3a1.4.11~dfsg-3_all.deb) ... Processing triggers for man-db ... Setting up fxload (0.0.20020411-1.1) ... Setting up zaptel (1:1.4.11~dfsg-3) ... Zaptel telephony kernel driver: FATAL: Module ztdummy not found. Setting up zaptel-source (1:1.4.11~dfsg-3) ... |
#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: Digium, Inc. Device 8005 (rev 11) 03:01.0 Ethernet controller: Intel Corporation 82540EM Gigabit Ethernet Controller (rev 02) |
#m-a a-i zaptel
Suggested packages: gcc-4.1-locales gcc-4.1-multilib gcc-4.1-doc libmudflap0-dev The following NEW packages will be installed: cpp-4.1 gcc-4.1 gcc-4.1-base linux-headers-2.6.26-2-686 linux-headers-2.6.26-2-common linux-kbuild-2.6.26 0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded. Need to get 7252kB of archives. After this operation, 41.2MB of additional disk space will be used. Do you want to continue [Y/n]? Get:1 http://10.0.35.1 lenny/main gcc-4.1-base 4.1.2-25 [207kB] Get:2 http://10.0.35.1 lenny/main cpp-4.1 4.1.2-25 [2317kB] ... â â â 100% â â â âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ Done with /usr/src/zaptel-modules-2.6.26-2-686_1.4.11~dfsg-3+2.6.26-19_i386.deb . dpkg -Ei /usr/src/zaptel-modules-2.6.26-2-686_1.4.11~dfsg-3+2.6.26-19_i386.deb Selecting previously deselected package zaptel-modules-2.6.26-2-686. (Reading database ... 52501 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-19_i386.deb) ... Setting up zaptel-modules-2.6.26-2-686 (1:1.4.11~dfsg-3+2.6.26-19) ... |
#lspci -v
00:00.0 Host bridge: Intel Corporation 82P965/G965 Memory Controller Hub (rev 02) Subsystem: ASUSTeK Computer Inc. Device 823b Flags: bus master, fast devsel, latency 0 Capabilities: [e0] Vendor Specific Information <?> Kernel driver in use: agpgart-intel Kernel modules: intel-agp 00:02.0 VGA compatible controller: Intel Corporation 82G965 Integrated Graphics Controller (rev 02) (prog-if 00 [VGA controller]) Subsystem: ASUSTeK Computer Inc. Device 823b Flags: bus master, fast devsel, latency 0, IRQ 16 Memory at dfc00000 (32-bit, non-prefetchable) [size=1M] ... Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 21 Memory at dffa0000 (32-bit, non-prefetchable) [size=128K] Memory at dff80000 (32-bit, non-prefetchable) [size=128K] I/O ports at ec00 [size=64] Expansion ROM at d0020000 [disabled] [size=128K] Capabilities: [dc] Power Management version 2 Capabilities: [e4] PCI-X non-bridge device Capabilities: [f0] Message Signalled Interrupts: Mask- 64bit+ Queue=0/0 Enable- Kernel driver in use: e1000 Kernel modules: e1000 |
#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: Digium, Inc. Device 8005 (rev 11) 03:01.0 Ethernet controller: Intel Corporation 82540EM Gigabit Ethernet Controller (rev 02) |
#lspci -v
00:00.0 Host bridge: Intel Corporation 82P965/G965 Memory Controller Hub (rev 02) Subsystem: ASUSTeK Computer Inc. Device 823b Flags: bus master, fast devsel, latency 0 Capabilities: [e0] Vendor Specific Information <?> Kernel driver in use: agpgart-intel Kernel modules: intel-agp 00:02.0 VGA compatible controller: Intel Corporation 82G965 Integrated Graphics Controller (rev 02) (prog-if 00 [VGA controller]) Subsystem: ASUSTeK Computer Inc. Device 823b Flags: bus master, fast devsel, latency 0, IRQ 11 Memory at dfc00000 (32-bit, non-prefetchable) [size=1M] ... Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 21 Memory at dffa0000 (32-bit, non-prefetchable) [size=128K] Memory at dff80000 (32-bit, non-prefetchable) [size=128K] I/O ports at ec00 [size=64] Expansion ROM at d0020000 [disabled] [size=128K] Capabilities: [dc] Power Management version 2 Capabilities: [e4] PCI-X non-bridge device Capabilities: [f0] Message Signalled Interrupts: Mask- 64bit+ Queue=0/0 Enable- Kernel driver in use: e1000 Kernel modules: e1000 |
#zap
zapconf zaptel_hardware |
#vi /etc/zaptel.conf
|
#vi /etc/zaptel.conf
--- /dev/null 2009-12-08 04:42:44.502473027 -1000 +++ /etc/zaptel.conf 2009-12-08 04:46:19.000000000 -1000 @@ -0,0 +1,4 @@ +loadzone=no +defaultzone=no +fxoks=1-4 + |
#ztcfg -vvv
Zaptel Version: 1.4.11 Echo Canceller: MG2 Configuration ====================== Channel map: Channel 01: FXO Kewlstart (Default) (Slaves: 01) Channel 02: FXO Kewlstart (Default) (Slaves: 02) Channel 03: FXO Kewlstart (Default) (Slaves: 03) Channel 04: FXO Kewlstart (Default) (Slaves: 04) 4 channels to configure. |
#ztscan
[1] active=yes alarms=OK description=Wildcard TDM410P Board 1 name=WCTDM/0 manufacturer=Digium devicetype=Wildcard TDM410P location=PCI Bus 03 Slot 01 basechan=1 totchans=4 irq=20 type=analog port=1,FXS port=2,none port=3,none port=4,none |
#vi /etc/asterisk/zapata.conf
|
#grep -v '^;' /etc/asterisk/zapata.conf | less
|
#vi /etc/asterisk/zapata.conf
|
#;spanmap => 2,1,2
exten => 202,n,Hangup exten => _2XX,1,Set(CALLERID(number)=5${CALLERID(number)}) exten => _2XX,n,Dial(SIP/${EXTEN}) exten => 4000,1,Dial(SIP/vkiev/${EXTEN}) exten => _380XXXXXXXXX,1,Dial(SIP/vkiev/${EXTEN}) exten => _1XX,1,Dial(SIP/poltava/${EXTEN}) ;exten => _1XX,1,Dial(IAX2/poltava/${EXTEN}) exten => 999,1,Answer exten => 999,n,Echonsions.conf" 30 lines, 689 characters exten => 999,n,Hangup ... ;exten => 291,n,Playback(demo-congrats) exten => 202,1,Answer exten => 221,n,Wait(1) exten => 221,n,Dial(ZAP/G1/${EXTEN}) exten => 221,n,Hangup exten => 221 ~ ~ ~ "/etc/asterisk/extensions.conf" 35 lines, 794 characters written |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#tail /var/log/messages
Dec 8 04:53:48 debian4 dhcpd: DHCPDISCOVER from 00:15:de:3f:83:a1 via eth1 Dec 8 04:53:48 debian4 dhcpd: DHCPOFFER on 192.168.102.106 to 00:15:de:3f:83:a1 via eth1 Dec 8 04:53:53 debian4 dhcpd: DHCPREQUEST for 192.168.102.102 (192.168.102.1) from 00:04:13:24:e5:7e via eth1 Dec 8 04:53:53 debian4 dhcpd: DHCPACK on 192.168.102.102 to 00:04:13:24:e5:7e via eth1 Dec 8 04:53:56 debian4 dhcpd: DHCPDISCOVER from 00:15:de:3f:83:a1 via eth1 Dec 8 04:53:56 debian4 dhcpd: DHCPOFFER on 192.168.102.106 to 00:15:de:3f:83:a1 via eth1 Dec 8 04:53:58 debian4 dhcpd: DHCPDISCOVER from 00:15:de:3f:83:a1 via eth1 Dec 8 04:53:58 debian4 dhcpd: DHCPOFFER on 192.168.102.106 to 00:15:de:3f:83:a1 via eth1 Dec 8 04:54:02 debian4 dhcpd: DHCPDISCOVER from 00:15:de:3f:83:a1 via eth1 Dec 8 04:54:02 debian4 dhcpd: DHCPOFFER on 192.168.102.106 to 00:15:de:3f:83:a1 via eth1 |
#tail /var/log/asterisk/messages
[Dec 8 04:53:59] NOTICE[3533] res_odbc.c: Adding ENV var: INFORMIXDIR=/opt/informix [Dec 8 04:53:59] NOTICE[3533] res_odbc.c: res_odbc loaded. [Dec 8 04:53:59] ERROR[3533] chan_vpb.cc: No Voicetronix cards detected [Dec 8 04:53:59] NOTICE[3533] pbx_ael.c: Starting AEL load process. [Dec 8 04:53:59] NOTICE[3533] pbx_ael.c: AEL load process: calculated config file name '/etc/asterisk/extensions.ael'. [Dec 8 04:53:59] NOTICE[3533] pbx_ael.c: AEL load process: parsed config file name '/etc/asterisk/extensions.ael'. [Dec 8 04:53:59] NOTICE[3533] pbx_ael.c: AEL load process: checked config file name '/etc/asterisk/extensions.ael'. [Dec 8 04:53:59] NOTICE[3533] pbx_ael.c: AEL load process: compiled config file name '/etc/asterisk/extensions.ael'. [Dec 8 04:53:59] NOTICE[3533] pbx_ael.c: AEL load process: merged config file name '/etc/asterisk/extensions.ael'. [Dec 8 04:53:59] NOTICE[3533] pbx_ael.c: AEL load process: verified config file name '/etc/asterisk/extensions.ael'. |
#tail /var/log/asterisk/messages
[Dec 8 04:53:59] NOTICE[3533] res_odbc.c: Adding ENV var: INFORMIXDIR=/opt/informix [Dec 8 04:53:59] NOTICE[3533] res_odbc.c: res_odbc loaded. [Dec 8 04:53:59] ERROR[3533] chan_vpb.cc: No Voicetronix cards detected [Dec 8 04:53:59] NOTICE[3533] pbx_ael.c: Starting AEL load process. [Dec 8 04:53:59] NOTICE[3533] pbx_ael.c: AEL load process: calculated config file name '/etc/asterisk/extensions.ael'. [Dec 8 04:53:59] NOTICE[3533] pbx_ael.c: AEL load process: parsed config file name '/etc/asterisk/extensions.ael'. [Dec 8 04:53:59] NOTICE[3533] pbx_ael.c: AEL load process: checked config file name '/etc/asterisk/extensions.ael'. [Dec 8 04:53:59] NOTICE[3533] pbx_ael.c: AEL load process: compiled config file name '/etc/asterisk/extensions.ael'. [Dec 8 04:53:59] NOTICE[3533] pbx_ael.c: AEL load process: merged config file name '/etc/asterisk/extensions.ael'. [Dec 8 04:53:59] NOTICE[3533] pbx_ael.c: AEL load process: verified config file name '/etc/asterisk/extensions.ael'. |
#asterisk -rv
Asterisk 1.4.21.2~dfsg-3, 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 ========================================================================= ... -- Executing [204@default:2] Dial("Zap/1-1", "SIP/204") in new stack -- Called 204 -- SIP/204-08d24c60 is ringing -- SIP/204-08d24c60 answered Zap/1-1 == Spawn extension (default, 204, 2) exited non-zero on 'Zap/1-1' -- Hungup 'Zap/1-1' debian4*CLI> debian4*CLI> debian4*CLI> quit Executing last minute cleanups |
#vi /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2969.12483.22673 2009-12-08 04:59:48.000000000 -1000 +++ /etc/asterisk/extensions.conf 2009-12-08 05:00:09.000000000 -1000 @@ -33,3 +33,6 @@ ;exten => 291,n,Playback(alba) ;exten => 291,n,Playback(demo-congrats) +exten => s,1,Answer +exten => s,n,Wait(1) +exten => s,n,Playback(alba) |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#less /var/log/asterisk/messages
|
#asterisk -rvvvv
Asterisk 1.4.21.2~dfsg-3, 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 currently running on debian4 (pid = 3794) Verbosity was 0 and is now 4 == Spawn extension (default, s, 3) exited non-zero on 'Zap/1-1' -- Hungup 'Zap/1-1' -- Remote UNIX connection Executing last minute cleanups == Destroying musiconhold processes Disconnected from Asterisk server Executing last minute cleanups |
#asterisk -rvvvv
Asterisk 1.4.21.2~dfsg-3, 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 ========================================================================= ... == CDR updated on Zap/1-1 -- Executing [999@default:1] Answer("Zap/1-1", "") in new stack -- Executing [999@default:2] Echo("Zap/1-1", "") in new stack == Spawn extension (default, 999, 2) exited non-zero on 'Zap/1-1' -- Hungup 'Zap/1-1' -- Remote UNIX connection Executing last minute cleanups == Destroying musiconhold processes Disconnected from Asterisk server Executing last minute cleanups |
#vi /etc/asterisk/zapata.conf
--- /tmp/l3-saved-3997.19950.25512 2009-12-08 05:10:59.000000000 -1000 +++ /etc/asterisk/zapata.conf 2009-12-08 05:12:10.000000000 -1000 @@ -210,7 +210,7 @@ ; (2-way) ; sf_rxtx: Same as sf_txrx (for our dyslexic friends) ; -signalling=fxo_ks +signalling=fxs_ls ; ; If you have an outbound signalling format that is different from format ; specified above (but compatible), you can specify outbound signalling format, @@ -417,7 +417,7 @@ ; Note: If immediate=yes the dialplan execution will always start at extension ; 's' priority 1 regardless of the dialed number! ; -immediate=yes +immediate=no ; ; Specify whether flash-hook transfers to 'busy' channels should complete or ; return to the caller performing the transfer (default is yes). @@ -677,6 +677,6 @@ ;dring2=325,95,0 ;dring2context=internal2 ; If no pattern is matched here is where we go. -context=default -channel => 1 +; context=default +; channel => 1 |
#ls -l
total 440 -rw-r----- 1 asterisk asterisk 140 2009-01-04 09:26 adsi.conf -rw-r----- 1 asterisk asterisk 840 2009-01-04 09:26 adtranvofr.conf -rw-r----- 1 asterisk asterisk 2724 2009-01-04 09:26 agents.conf -rw-r----- 1 asterisk asterisk 2227 2009-01-04 09:26 alarmreceiver.conf -rw-r----- 1 asterisk asterisk 2675 2009-01-04 09:26 alsa.conf -rw-r----- 1 asterisk asterisk 767 2009-01-04 09:26 amd.conf -rw-r----- 1 asterisk asterisk 3260 2009-01-04 09:26 asterisk.adsi -rw-r----- 1 asterisk asterisk 247 2009-01-04 09:17 asterisk.conf -rw-r----- 1 asterisk asterisk 7324 2009-01-04 09:26 cdr.conf ... -rw-r----- 1 asterisk asterisk 4044 2009-01-04 09:26 skinny.conf -rw-r----- 1 asterisk asterisk 6691 2009-01-04 09:26 sla.conf -rw-r----- 1 asterisk asterisk 2665 2009-01-04 09:26 smdi.conf -rw-r----- 1 asterisk asterisk 1384 2009-01-04 09:26 telcordia-1.adsi -rw-r----- 1 asterisk asterisk 598 2009-01-04 09:26 udptl.conf -rw-r----- 1 asterisk asterisk 1804 2009-01-04 09:26 users.conf -rw-r----- 1 asterisk asterisk 11723 2009-01-04 09:26 voicemail.conf -rw-r----- 1 asterisk asterisk 2772 2009-01-04 09:26 vpb.conf -rw-r----- 1 asterisk asterisk 393 2009-01-04 09:26 watchdog.conf -rw-r----- 1 asterisk asterisk 24192 2009-12-08 04:59 zapata.conf |
#cat 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 |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#asterisk -rvvvv
Asterisk 1.4.21.2~dfsg-3, 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 currently running on debian4 (pid = 4097) Verbosity was 0 and is now 4 -- Saved useragent "Asterisk PBX" for peer poltava -- Remote UNIX connection Executing last minute cleanups == Destroying musiconhold processes Disconnected from Asterisk server Executing last minute cleanups |
#~
exten => 202,n,Playback(alba) ;exten => 202,n,Playback(demo-congrats) exten => 202,n,Hangup exten => 221,n,Dial(ZAP/G1/${EXTEN}) exten => 221,n,Hangup exten => 999,n,Echo exten => 999,n,Hangup exten => 291,1,Dial(SIP/201,10) exten => 291,n,Dial(SIP/vkiev/380674074085,10) exten => 291,1,Dial(SIP/201,10) exten => 291,n,Dial(SIP/vkiev/380674074085,10) "/etc/asterisk/extensions.conf" 33 lines, 760 characters written |
#vim zapata.conf
--- /tmp/l3-saved-2969.14541.13076 2009-12-08 05:12:45.000000000 -1000 +++ zapata.conf 2009-12-08 05:14:22.000000000 -1000 @@ -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 @@ -643,7 +643,7 @@ ;stripmsd=1 ;callerid=asreceived ;group=0 -;signalling=fxs_ls +signalling=fxo_ks ;channel => 45 ;signalling=fxo_ls @@ -677,6 +677,7 @@ ;dring2=325,95,0 ;dring2context=internal2 ; If no pattern is matched here is where we go. -; context=default -; channel => 1 +context=default +channel => 1 +group=1 |
#vim ../zaptel.conf
--- /dev/null 2009-12-08 04:42:44.502473027 -1000 +++ ../zaptel.conf 2009-12-08 05:18:00.000000000 -1000 @@ -0,0 +1,3 @@ +loadzone=no +defaultzone=no +fxoks=1-4 |
#zap
zapconf zaptel_hardware |
#ztscan
[1] active=yes alarms=OK description=Wildcard TDM410P Board 1 name=WCTDM/0 manufacturer=Digium devicetype=Wildcard TDM410P location=PCI Bus 03 Slot 01 basechan=1 totchans=4 irq=20 type=analog port=1,FXS port=2,none port=3,none port=4,none |
#/etc/init.d/zaptel restart
Zaptel telephony kernel driver: zaptel. |
span=1,1,0,ccs,hdb3,crc4 bchan=1-15 dchan=16
; ; 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=fxo_ks ; ; 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=yes ; ; 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
Время первой команды журнала | 14:06:50 2009-12- 8 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 16:18:22 2009-12- 8 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 18.81 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 2.97 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 2.19 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.77 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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