How do I get ISDN HFC card to work

ospito
Posts: 13
Member Since:
2006-06-26

Hello all,
I was wondering if someone can help me out with this. I installed TB1.0 and setup 2 extensions. That's working fine, we can call to eachother (same network). But in this box there is an ISDN card (HFC) which I can't get to work. Why I don't know. I'm familiar with linux/FreeBSD, but ISDN cards in it is really horror fot me :)
I ran the script install-HFC and everything went fine. Zaptel picked up the card I think, from dmesg:
[size=xx-small][font=Courier]zaphfc: CCD/Billion/Asuscom 2BD0 configured at mem d899c000 fifo d60b8000(0x160b8000) IRQ 10 HZ 1000
zaphfc: Card 0 configured for TE mode
zaphfc: 1 hfc-pci card(s) in this box.[/font][/size]

i tried to make a ZAP trunk and make incoming and outgoing routes with freepbx, but I can't make it to work. It's very frustrating. I was trying to debug more low-level. I thought maybe an outgoing call with minicom should be possible, but I have no idea to which device I need to connect. I was trying setserial to make a serial device. But this wasn't a success either.
Well, I won't bother you with this any further. To the point. Below you'll find all the information you asked for in the sticky post for this kind of troubles. If you need any more information, please ask. I need to get it to work, I can't stand it. :D
[size=xx-small][font=Courier]
[root@asterisk1 ~]# lspci
00:00.0 Host bridge: Intel Corporation 82815 815 Chipset Host Bridge and Memory Controller Hub (rev 02)
00:02.0 VGA compatible controller: Intel Corporation 82815 CGC [Chipset Graphics Controller] (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 01)
00:1f.0 ISA bridge: Intel Corporation 82801BA ISA Bridge (LPC) (rev 01)
00:1f.1 IDE interface: Intel Corporation 82801BA IDE U100 (rev 01)
00:1f.4 USB Controller: Intel Corporation 82801BA/BAM USB (Hub #2) (rev 01)
00:1f.5 Multimedia audio controller: Intel Corporation 82801BA/BAM AC'97 Audio (rev 01)
02:08.0 Ethernet controller: Intel Corporation 82801BA/BAM/CA/CAM Ethernet Controller (rev 01)
02:09.0 Network controller: Cologne Chip Designs GmbH ISDN network controller [HFC-PCI] (rev 02)

[root@asterisk1 ~]# lsmod
Module Size Used by
md5 4033 1
ipv6 235137 12
autofs4 24773 0
i2c_dev 11329 0
i2c_core 22081 1 i2c_dev
sunrpc 162725 1
zaphfc 15124 0
wctdm 34880 0
wcfxo 13088 0
wcte11xp 27936 0
wct1xxp 19488 0
wct4xxp 65728 0
tor2 91936 0
zaptel 207876 9 zaphfc,wctdm,wcfxo,wcte11xp,wct1xxp,wct4xxp,tor2
crc_ccitt 2113 1 zaptel
dm_mirror 27825 0
dm_mod 57556 1 dm_mirror
uhci_hcd 31065 0
hw_random 5845 0
snd_intel8x0 33897 0
snd_ac97_codec 63889 1 snd_intel8x0
snd_pcm_oss 49017 0
snd_mixer_oss 17985 1 snd_pcm_oss
snd_pcm 96841 2 snd_intel8x0,snd_pcm_oss
snd_timer 29893 1 snd_pcm
snd_page_alloc 9673 2 snd_intel8x0,snd_pcm
snd_mpu401_uart 8769 1 snd_intel8x0
snd_rawmidi 26597 1 snd_mpu401_uart
snd_seq_device 8137 1 snd_rawmidi
snd 55461 9 snd_intel8x0,snd_ac97_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi,snd_seq_device
soundcore 9889 1 snd
e100 41793 0
mii 5185 1 e100
floppy 58481 0
ext3 116809 2
jbd 71385 1 ext3

[root@asterisk1 ~]# cat /proc/zaptel/*
Span 1: ZTHFC1 "HFC-S PCI A ISDN card 0 [TE] layer 1 DEACTIVATED (F4)" AMI/CCS

1 ZTHFC1/0/1 Clear
2 ZTHFC1/0/2 Clear
3 ZTHFC1/0/3 HDLCFCS

[root@asterisk1 ~]# cat /etc/zaptel.conf
# Autogenerated by /usr/local/sbin/genzaptelconf -- do not hand edit
# Zaptel Configuration File
#
# This file is parsed by the Zaptel Configurator, ztcfg
#

# It must be in the module loading order

# Global data

loadzone = nl
defaultzone = nl

# HFC CARD NOTE:
# When run for the first time the card numbers start from 1
# When run subsequently the card numbers start from 0
# Go figure!

# Span 1: ZTHFC1 "HFC-S PCI A ISDN card 1 [TE]"
span=1,1,3,ccs,ami
bchan=1-2
dchan=3

[root@asterisk1 ~]# cat /etc/sysconfig/zaptel
TELEPHONY=yes
#DEBUG=yes

# Un-comment as per your requirements; modules to load/unload
# genzaptelconf will populate this file

#Module Name Hardware
MODULES="$MODULES tor2" # T400P - Quad Span T1 Card
# E400P - Quad Span E1 Card

MODULES="$MODULES wct4xxp" # TE405P - Quad Span T1/E1 Card (5v version)
# TE410P - Quad Span T1/E1 Card (3.3v version)

MODULES="$MODULES wct1xxp" # T100P - Single Span T1 Card
# E100P - Single Span E1 Card

MODULES="$MODULES wcte11xp" # TE110P - Single Span T1/E1 Card

MODULES="$MODULES wcfxo" # X100P - Single port FXO interface
# X101P - Single port FXO interface

MODULES="$MODULES wctdm" # TDM400P - Modular FXS/FXO interface (1-4 ports)
MODULES="$MODULES wcfxs" # either above or this

#MODULES="$MODULES wcusb" # S100U - Single port FXS USB Interface
#MODULES="$MODULES wcfxsusb" # either above or this

#MODULES="$MODULES torisa" # Old Tormenta1 ISA Card

#MODULES="$MODULES ztdummy" # UHCI USB Zaptel Timing Only Interface

MODULES="$MODULES zaphfc" # HFC ISDN module

[root@asterisk1 asterisk]# cat /etc/asterisk/zapata*
; Autogenerated by /usr/local/sbin/genzaptelconf -- do not hand edit
; Zaptel Channels Configurations (zapata.conf)
;
; This is not intended to be a complete zapata.conf. Rather, it is intended
; to be #include-d by /etc/zapata.conf that will include the global settings
;
callerid=asreceived

; Basic ISDN Card TE mode config
resetinterval=never
immediate=no
switchtype=euroisdn
signalling=bri_cpe_ptmp
pridialplan=dynamic
prilocaldialplan=local
nationalprefix=0
internationalprefix=00
usecallingpres=yes
echocancel=yes
echocancelwhenbridged=yes
echotraining=100
context=from-pstn
group=0

channel => 1-2
;
; Zapata telephony interface
;
; Configuration file

[trunkgroups]

[channels]

language=nl
context=from-zaptel
signalling=fxs_ks
rxwink=300 ; Atlas seems to use long (250ms) winks
;
; Whether or not to do distinctive ring detection on FXO lines
;
;usedistinctiveringdetection=yes

usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=no
echotraining=800
rxgain=0.0
txgain=0.0
group=0
callgroup=1
pickupgroup=1
immediate=no

;faxdetect=both
faxdetect=incoming
;faxdetect=outgoing
;faxdetect=no

;Include genzaptelconf configs
#include zapata-auto.conf

group=1

;Include AMP configs
#include zapata_additional.conf

;Include BRI-HFC configs
include zapata-BRI-HFC.conf
[/font][/size]

The problem is that I can't make any calls, and can't receive any calls. But the real problem is that I don't know how the procedures are to get this to work :)
Thank you very much in advance. I would be pleased with any reactions.
Hans Middelhoek



ospito
Posts: 13
Member Since:
2006-06-26
Re: How do I get ISDN HFC card to work

Well guys. I solved it. I've read a lot more information on this forum and came across something it was worth a shot.
;Include AMP configs
#include zapata_additional.conf

;Include BRI-HFC configs
include zapata-BRI-HFC.conf

There was the problem. There needed to be a # in front of the include zapara-BRI-HFC.conf so that it becomes:
;Include AMP configs
#include zapata_additional.conf

;Include BRI-HFC configs
#include zapata-BRI-HFC.conf

That did the trick for me. Now I can make outgoing and receive calls.
thanks for your time though.
Hans Middelhoek



W1zz
Posts: 562
Member Since:
2006-05-31
Re: How do I get ISDN HFC card to work

I've heard of several people thinking it was a comment.

Can you confirm you had edited out the # previously?

Alan

--

Alan

install-ZAPHFC

Look here for more help.
Current version is 1.4.0 (25 January 2008)



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.