[Asterisk-Users] zaphfc troubles

Nicolas Olivier nolivier at alphalink.fr
Wed May 18 02:55:19 MST 2005


Just an update, I deoopsed the kernel dump, must be usable...

Nicolas Olivier wrote:
> 
> 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>]
> 

>>EIP; c0113cc0 <__wake_up+20/a0>   <=====

>>eax; c248015c <_end+217f0d0/34fef74>
>>esi; c24803a0 <_end+217f314/34fef74>
>>edi; c248015c <_end+217f0d0/34fef74>
>>ebp; c2c8fe2c <_end+298eda0/34fef74>
>>esp; c2c8fe14 <_end+298ed88/34fef74>

Trace; c3819545 <[zaptel]__zt_receive_chunk+133d/1484>
Trace; c01cb6b1 <__ide_do_rw_disk+3e1/650>
Trace; c381aae6 <[zaptel]zt_receive+a26/b0c>
Trace; c381aad7 <[zaptel]zt_receive+a17/b0c>
Trace; c383cd78 <[zaphfc]hfc_interrupt+228/358>
Trace; c01cae16 <read_intr+76/1b0>
Trace; c383ce95 <[zaphfc]hfc_interrupt+345/358>
Trace; c01c5416 <ide_intr+96/100>
Trace; c01cad01 <lba_capacity_is_ok+81/120>
Trace; c0109ddd <handle_IRQ_event+3d/70>
Trace; c0109f78 <do_IRQ+68/a0>
Trace; c010c328 <call_do_IRQ+5/d>

Code;  c0113cc0 <__wake_up+20/a0>
00000000 <_EIP>:
Code;  c0113cc0 <__wake_up+20/a0>   <=====
   0:   8b 4b fc                  mov    0xfffffffc(%ebx),%ecx   <=====
Code;  c0113cc3 <__wake_up+23/a0>
   3:   8b 01                     mov    (%ecx),%eax
Code;  c0113cc5 <__wake_up+25/a0>
   5:   85 45 f0                  test   %eax,0xfffffff0(%ebp)
Code;  c0113cc8 <__wake_up+28/a0>
   8:   74 56                     je     60 <_EIP+0x60> c0113d20 <__wake_up+80/a0>
Code;  c0113cca <__wake_up+2a/a0>
   a:   31 c0                     xor    %eax,%eax
Code;  c0113ccc <__wake_up+2c/a0>
   c:   9c                        pushf
Code;  c0113ccd <__wake_up+2d/a0>
   d:   5e                        pop    %esi
Code;  c0113cce <__wake_up+2e/a0>
   e:   fa                        cli
Code;  c0113ccf <__wake_up+2f/a0>
   f:   8b 51 3c                  mov    0x3c(%ecx),%edx
Code;  c0113cd2 <__wake_up+32/a0>
  12:   c7 01 00 00 00 00         movl   $0x0,(%ecx)

> 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
> 
> 
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
> 




More information about the asterisk-users mailing list