All pastes #164610 Raw Edit

Someone

public text v1 · immutable
·published 2006-09-08 20:10 UTC
rendered paste body
I have a Digium TE110P card in my computer, but no T1 hooked up to it yet.

Here is the lspci -v entry:

01:01.0 Network controller: Tiger Jet Network Inc. Tiger3XX Modem/ISDN interface
        Subsystem: Unknown device 79fe:0001
        Flags: bus master, medium devsel, latency 64, IRQ 10
        I/O ports at de00 [size=256]
        Memory at feafe000 (32-bit, non-prefetchable) [size=4K]
        Capabilities: [40] Power Management version 2

Here is my /etc/zaptel.conf -- note I stripped all the comments for size:
=============================================================================
[root@linux79 ~]# cat /etc/zaptel.conf | grep -v -e "^#"

span=1,1,0,esf,b8zs

bchan=1-23
dchan=24

loadzone = us
defaultzone=us
[root@linux79 ~]# 
=============================================================================

Here is my /etc/asterisk/zapata.conf:
=============================================================================
[root@linux79 ~]# cat /etc/asterisk/zapata.conf | grep -v -e "^;"
[trunkgroups]


[channels]
signalling=pri_cpe
switchtype=national
overlapdial=no
pridialplan=unknown
callgroup=1
pickupgroup=1
immediate=no
echocancel=yes
echocancelwhenbridged=yes
context=from-trunk
musiconhold=default
group=1
channel=>1-23
faxdetect=incoming

usecallingpres=yes

[root@linux79 ~]# 
=============================================================================

Here is the output of ztcfg:

[root@linux79 ~]# ztcfg -vvvv                

Zaptel Configuration
======================

SPAN 1: ESF/B8ZS 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 05: Clear channel (Default) (Slaves: 05)
Channel 06: Clear channel (Default) (Slaves: 06)
Channel 07: Clear channel (Default) (Slaves: 07)
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: Clear channel (Default) (Slaves: 16)
Channel 17: Clear channel (Default) (Slaves: 17)
Channel 18: Clear channel (Default) (Slaves: 18)
Channel 19: Clear channel (Default) (Slaves: 19)
Channel 20: Clear channel (Default) (Slaves: 20)
Channel 21: Clear channel (Default) (Slaves: 21)
Channel 22: Clear channel (Default) (Slaves: 22)
Channel 23: Clear channel (Default) (Slaves: 23)
Channel 24: D-channel (Default) (Slaves: 24)

24 channels configured.

ZT_SPANCONFIG failed on span 1: No such device or address (6)
[root@linux79 ~]# 

When I run asterisk, it fails, and here is the end of /var/log/asterisk/full:

[root@linux79 ~]# tail -n 50 /var/log/asterisk/full
Sep  8 14:27:51 VERBOSE[3812] logger.c:     -- Added extension '500' priority 2 to ael-demo
Sep  8 14:27:51 VERBOSE[3812] logger.c:     -- Added extension '500' priority 3 to ael-demo
Sep  8 14:27:51 VERBOSE[3812] logger.c:     -- Added extension '500' priority 4 to ael-demo
Sep  8 14:27:51 VERBOSE[3812] logger.c:     -- Added extension '600' priority 1 to ael-demo
Sep  8 14:27:51 VERBOSE[3812] logger.c:     -- Added extension '600' priority 2 to ael-demo
Sep  8 14:27:51 VERBOSE[3812] logger.c:     -- Added extension '600' priority 3 to ael-demo
Sep  8 14:27:51 VERBOSE[3812] logger.c:     -- Added extension '600' priority 4 to ael-demo
Sep  8 14:27:51 VERBOSE[3812] logger.c:     -- Added extension '_1234' priority 1 to ael-demo
Sep  8 14:27:51 VERBOSE[3812] logger.c:     -- Added extension '#' priority 1 to ael-demo
Sep  8 14:27:51 VERBOSE[3812] logger.c:     -- Added extension '#' priority 2 to ael-demo
Sep  8 14:27:51 VERBOSE[3812] logger.c:     -- Added extension 't' priority 1 to ael-demo
Sep  8 14:27:51 VERBOSE[3812] logger.c:     -- Added extension 'i' priority 1 to ael-demo
Sep  8 14:27:51 WARNING[3812] pbx.c: Context 'from-internal' tries includes nonexistent context 'from-internal-custom'
Sep  8 14:27:51 WARNING[3812] pbx.c: Context 'from-internal' tries includes nonexistent context 'ext-queues'
Sep  8 14:27:51 WARNING[3812] pbx.c: Context 'from-pstn' tries includes nonexistent context 'from-pstn-custom'
Sep  8 14:27:51 WARNING[3812] pbx.c: Context 'outrt-001-9_outside' tries includes nonexistent context 'outrt-001-9_outside-custom'
Sep  8 14:27:51 WARNING[3812] pbx.c: Context 'outbound-allroutes' tries includes nonexistent context 'outbound-allroutes-custom'
Sep  8 14:27:51 WARNING[3812] pbx.c: Context 'ext-group' tries includes nonexistent context 'ext-group-custom'
Sep  8 14:27:51 WARNING[3812] pbx.c: Context 'ext-local' tries includes nonexistent context 'ext-local-custom'
Sep  8 14:27:51 VERBOSE[3812] logger.c:  [chan_mgcp.so]Sep  8 14:27:51 VERBOSE[3812] logger.c:  [chan_mgcp.so] => (Media Gateway Control Protocol (MGCP))
Sep  8 14:27:51 VERBOSE[3812] logger.c:   == Parsing '/etc/asterisk/mgcp.conf': Sep  8 14:27:51 VERBOSE[3812] logger.c:   == Parsing '/etc/asterisk/mgcp.conf': Found
Sep  8 14:27:51 VERBOSE[3812] logger.c:   == MGCP Listening on 0.0.0.0:2727
Sep  8 14:27:51 VERBOSE[3812] logger.c:   == Using TOS bits 0
Sep  8 14:27:51 VERBOSE[3812] logger.c:   == Registered channel type 'MGCP' (Media Gateway Control Protocol (MGCP))
Sep  8 14:27:51 VERBOSE[3812] logger.c:  [skipping chan_oss.so]
Sep  8 14:27:51 VERBOSE[3812] logger.c:  [chan_iax2.so]Sep  8 14:27:51 VERBOSE[3812] logger.c:  [chan_iax2.so] => (Inter Asterisk eXchange (Ver 2))
Sep  8 14:27:51 VERBOSE[3812] logger.c:   == Registered custom function IAXPEER
Sep  8 14:27:51 WARNING[3812] chan_iax2.c: Unable to open IAX timing interface: No such device or address
Sep  8 14:27:51 VERBOSE[3812] logger.c:   == Registered application 'IAX2Provision'
Sep  8 14:27:51 VERBOSE[3812] logger.c:   == Manager registered action IAXpeers
Sep  8 14:27:51 VERBOSE[3812] logger.c:   == Manager registered action IAXnetstats
Sep  8 14:27:51 VERBOSE[3812] logger.c:   == Parsing '/etc/asterisk/iax.conf': Sep  8 14:27:51 VERBOSE[3812] logger.c:   == Parsing '/etc/asterisk/iax.conf': Found
Sep  8 14:27:51 VERBOSE[3812] logger.c:   == Parsing '/etc/asterisk/iax_additional.conf': Sep  8 14:27:51 VERBOSE[3812] logger.c:   == Parsing '/etc/asterisk/iax_additional.conf': Found
Sep  8 14:27:51 VERBOSE[3812] logger.c:   == Using TOS bits 0
Sep  8 14:27:51 VERBOSE[3812] logger.c:   == Binding IAX2 to '0.0.0.0:4569'
Sep  8 14:27:51 VERBOSE[3812] logger.c:   == Registered channel type 'IAX2' (Inter Asterisk eXchange Driver (Ver 2))
Sep  8 14:27:51 VERBOSE[3812] logger.c:   == IAX Ready and Listening
Sep  8 14:27:51 VERBOSE[3812] logger.c:   == Loaded firmware 'iaxy.bin'
Sep  8 14:27:51 VERBOSE[3812] logger.c:   == Parsing '/etc/asterisk/iaxprov.conf': Sep  8 14:27:51 VERBOSE[3812] logger.c:   == Parsing '/etc/asterisk/iaxprov.conf': Found
Sep  8 14:27:51 VERBOSE[3812] logger.c:     -- Loaded provisioning template 'default'
Sep  8 14:27:51 VERBOSE[3812] logger.c:  [chan_features.so]Sep  8 14:27:51 VERBOSE[3812] logger.c:  [chan_features.so] => (Feature Proxy Channel)
Sep  8 14:27:51 VERBOSE[3812] logger.c:   == Registered channel type 'Feature' (Feature Proxy Channel Driver)
Sep  8 14:27:51 VERBOSE[3812] logger.c:  [chan_zap.so]Sep  8 14:27:51 VERBOSE[3812] logger.c:  [chan_zap.so] => (Zapata Telephony w/PRI)
Sep  8 14:27:51 VERBOSE[3812] logger.c:   == Parsing '/etc/asterisk/zapata.conf': Sep  8 14:27:51 VERBOSE[3812] logger.c:   == Parsing '/etc/asterisk/zapata.conf': Found
Sep  8 14:27:51 WARNING[3812] chan_zap.c: Unable to specify channel 1: No such device or address
Sep  8 14:27:51 ERROR[3812] chan_zap.c: Unable to open channel 1: No such device or address
here = 0, tmp->channel = 1, channel = 1
Sep  8 14:27:51 ERROR[3812] chan_zap.c: Unable to register channel '1-23'
Sep  8 14:27:51 WARNING[3812] loader.c: chan_zap.so: load_module failed, returning -1
Sep  8 14:27:51 WARNING[3812] loader.c: Loading module chan_zap.so failed!
[root@linux79 ~]# 


Is this due to no live T1 being actually connected ?

I tried adding channels=1-24 in both .conf files also.

here is /proc/interrupts:
===============================================
[root@linux79 ~]# cat /proc/interrupts 
           CPU0       
  0:    2825083    IO-APIC-edge  timer
  1:        164    IO-APIC-edge  i8042
  7:          0    IO-APIC-edge  parport0
  8:          1    IO-APIC-edge  rtc
  9:          1   IO-APIC-level  acpi
 12:         67    IO-APIC-edge  i8042
 14:      10192    IO-APIC-edge  ide0
 15:     101021    IO-APIC-edge  ide1
177:      30144   IO-APIC-level  eth0
185:          0   IO-APIC-level  Intel ICH5
193:          0   IO-APIC-level  ehci_hcd:usb1
201:       1623   IO-APIC-level  uhci_hcd:usb2, uhci_hcd:usb4
209:          0   IO-APIC-level  uhci_hcd:usb3
NMI:          0 
LOC:    2824943 
ERR:          0
MIS:          0
[root@linux79 ~]# 
====================================================================


Here is also my kernel info, and the appropriate few lines from /etc/udev/rules.d/50-udev.rules:

[root@linux79 ~]# uname -a
Linux linux79 2.6.17-1.2139_FC4 #1 Fri Jun 23 20:56:41 EDT 2006 i686 i686 i386 GNU/Linux
[root@linux79 ~]# 

# Section for zaptel device
KERNEL=="zapctl",               NAME="zap/ctl"
KERNEL=="zaptimer",             NAME="zap/timer"
KERNEL=="zapchannel",           NAME="zap/channel"
KERNEL=="zappseudo",            NAME="zap/pseudo"
KERNEL=="zap[0-9]*",            NAME="zap/%n"