[Asterisk-Users] zaphfc troubles

Nicolas Olivier nolivier at alphalink.fr
Wed May 18 02:34:12 MST 2005


Hi,

I'm trying to setup a small BRI ISDN <-> voip gateway.
The ISDN card is based on Cologne chipset, so I try set it up with zaphfc.

The versions i'm running:
kernel-2.4.27
Asterisk 1.0.7-BRIstuffed-0.2.0-RC8e
zaptel modules 1.0.7
zaphfc is from bristuff-0.2.0-RC8e

When I'm doing the insmod on zaptel, zaphfc, zaprtc:

Zapata Telephony Interface Registered on major 196
PCI: Found IRQ 12 for device 00:12.0
zaphfc: CCD/Billion/Asuscom 2BD0 configured at mem 0xc3840000 fifo 0xc2d58000(0x2d58000) IRQ 12 HZ 100
zaphfc: Card 0 configured for TE mode
Registered Span 1 ('ZTHFC1') with 3 channels
Span ('ZTHFC1') is new master
zaphfc: 1 hfc-pci card(s) in this box.
Registered Span 2 ('ZTRTC/1') with 0 channels
Real Time Clock Driver v1.10e

I'm using zaprtc as the gateway is running on a VIA motherboard without USB controller.

When I'm doing ztcfg -vv:

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

SPAN 1: CCS/ AMI Build-out: 399-533 feet (DSX-1)

Channel map:

Channel 01: Individual Clear channel (Default) (Slaves: 01)
Channel 02: Individual Clear channel (Default) (Slaves: 02)
Channel 03: D-channel (Default) (Slaves: 03)

3 channels configured.

Here are my confs:

/etc/zaptel.conf:

loadzone=fr
defaultzone=fr

span=1,1,3,ccs,ami
bchan=1-2
dchan=3

/etc/asterisk/zapata.conf:

[channels]

language=fr
context=test
switchtype=euroisdn
signalling=bri_cpe
echocancel=yes
immediate=yes
channel => 1-2

/etc/asterisk/modules.conf:

[modules]
autoload=yes

noload => pbx_gtkconsole.so
noload => pbx_kdeconsole.so

noload => app_intercom.so

load => chan_modem.so
load => res_features.so
load => res_musiconhold.so
load => chan_zap.so

noload => chan_alsa.so
noload => chan_oss.so

[global]
chan_modem.so=yes
chan_zap.so=yes


The problem is that after ztcfg ran, I've got the following logs:

Registered tone zone 2 (France)
zaphfc: card 0 layer 1 state = F4
zaphfc: card 0 layer 1 state = F5
zaphfc: card 0 layer 1 state = F7
zaphfc: card 0 RX [ 0xfe 0xff 0x3 0xf 0x0 0x0 0x4 0xff ] 8 bytes
zaphfc: card 0 RX [ 0xfe 0xff 0x3 0xf 0x0 0x0 0x4 0xff ] 8 bytes
zaphfc: card 0 layer 1 state = F3
zaphfc: card 0 layer 1 state = F4
zaphfc: card 0 layer 1 state = F5
zaphfc: card 0 layer 1 state = F7
zaphfc: bchan rx fifo not enough bytes to receive! (z1=5630, z2=5623, wanted 8 got 7), probably a buffer overrun.
zaphfc: bchan rx fifo not enough bytes to receive! (z1=6163, z2=6156, wanted 8 got 7), probably a buffer overrun.
zaphfc: card 0 RX [ 0xfe 0xff 0x3 0xf 0x0 0x0 0x4 0xff ] 8 bytes
zaphfc: card 0 RX [ 0xfe 0xff 0x3 0xf 0x0 0x0 0x4 0xff ] 8 bytes

And when I start asterisk -vvvvc, same logs keep on, and I've finally a kernel crash:

Unable to handle kernel paging request at virtual address fffffffc
 printing eip:
 c0113cc0
 *pde = 0000d063
 *pte = 00000000
 Oops: 0000
 CPU:    0
 EIP:    0010:[<c0113cc0>]    Not tainted
 EFLAGS: 00010013
 eax: c248015c   ebx: 00000000   ecx: 00000001   edx: 00000001
 esi: c24803a0   edi: c248015c   ebp: c2c8fe2c   esp: c2c8fe14
 ds: 0018   es: 0018   ss: 0018
 Process sshd (pid: 146, stackpage=c2c8f000)
 Stack: 00000001 00000086 00000001 c24803a0 c24803a0 c270c940 c2480000 c3819545
        00000010 00000010 c2c8ff24 00000046 00001140 00000003 c2c8ffc4 00000086
        c01cb6b1 c02f8bc4 c24803a0 8005003b c2c8feb4 00000002 00000008 c270c800
Call Trace:    [<c3819545>] [<c01cb6b1>] [<c381aae6>] [<c381aad7>] [<c383cd78>]
  [<c01cae16>] [<c383ce95>] [<c01c5416>] [<c01cad01>] [<c0109ddd>] [<c0109f78>]
  [<c010c328>]

Code: 8b 4b fc 8b 01 85 45 f0 74 56 31 c0 9c 5e fa 8b 51 3c c7 01
 <0>Kernel panic: Aiee, killing interrupt handler!
In interrupt handler - not syncing

Here is the output from asterisk:

No entry for terminal type "screen";
using dumb terminal settings.
  == Parsing '/etc/asterisk/asterisk.conf': Found
  == Parsing '/etc/asterisk/extconfig.conf': Found
Asterisk 1.0.7-BRIstuffed-0.2.0-RC8e, Copyright (C) 1999-2004 Digium.
Written by Mark Spencer <markster at digium.com>
=========================================================================
  == Parsing '/etc/asterisk/logger.conf': Found
Asterisk Event Logger Started /var/log/asterisk/event_log
  == Manager registered action Ping
  == Manager registered action Events
  == Manager registered action Logoff
  == Manager registered action Hangup
  == Manager registered action Status
  == Manager registered action Setvar
  == Manager registered action Getvar
  == Manager registered action Redirect
  == Manager registered action Originate
  == Manager registered action Command
  == Manager registered action ExtensionState
  == Manager registered action AbsoluteTimeout
  == Manager registered action MailboxStatus
  == Manager registered action MailboxCount
  == Manager registered action DBget
  == Manager registered action DBput
  == Manager registered action DBdel
  == Manager registered action ListCommands
  == Parsing '/etc/asterisk/manager.conf': Found
Asterisk Management interface listening on port 5038
  == Parsing '/etc/asterisk/rtp.conf': Found
  == RTP Allocating from port range 10000 -> 20000
Asterisk PBX Core Initializing
Registering builtin applications:
 [AbsoluteTimeout]
  == Registered application 'AbsoluteTimeout'
(...)
 [WaitExten]
  == Registered application 'WaitExten'
Asterisk Dynamic Loader Starting:
  == Parsing '/etc/asterisk/modules.conf': Found
 [chan_modem.so] => (Generic Voice Modem Driver)
  == Parsing '/etc/asterisk/modem.conf': Found
  == Loading modem driver chan_modem_aopen.so => (A/Open (Rockwell Chipset) ITU-2 VoiceModem Driver)
  == Registered channel type 'Modem' (Generic Voice Modem Channel Driver)
 [res_features.so] => (Call Parking Resource)
  == Parsing '/etc/asterisk/features.conf': Found
    -- Registered extension context 'parkedcalls'
    -- Added extension '700' priority 1 to parkedcalls
  == Registered application 'ParkedCall'
  == Registered application 'Park'
  == Manager registered action ParkedCalls
  == Registered application 'HoldedCall'
  == Registered application 'AutoanswerLogin'
  == Registered application 'Autoanswer'
 [res_musiconhold.so] => (Music On Hold Resource)
  == Parsing '/etc/asterisk/musiconhold.conf': Found
  == Registered application 'MusicOnHold'
  == Registered application 'WaitMusicOnHold'
  == Registered application 'SetMusicOnHold'
 [chan_zap.so]

The ISDN line has been validated, and the ISDN is known to work. I've searched in the archives, wiki, and can't see what's wrong.
If anyone has an advice, it will be greatly appreciated.

Nicolas Olivier





More information about the asterisk-users mailing list