[Asterisk-Users] HFC BRIstuff woes

Zoltan Szecsei zoltans at geograph.co.za
Sun Jul 17 12:55:57 MST 2005


Hi All,
It's broken !!  (drat)

Asterisk if failing to load with the following error (taken from end of 
/var/log/asterisk/full) after adding bristuff.

Can anyone help please?

Jul 17 19:57:54 VERBOSE[2503]:   == Registered channel type 'Phone' 
(Standard Linux Telephony API Driver)
Jul 17 19:57:54 VERBOSE[2503]:  [chan_zap.so]Jul 17 19:57:54 
VERBOSE[2503]:  [chan_zap.so] => (Zapata Telephony w/PRI)
Jul 17 19:57:54 VERBOSE[2503]:   == Parsing '/etc/asterisk/zapata.conf': 
Jul 17 19:57:54 VERBOSE[2503]:   == Parsing '/etc/asterisk/zapata.conf': 
Found
Jul 17 19:57:54 VERBOSE[2503]:   == Parsing 
'/etc/asterisk/zapata_additional.conf': Jul 17 19:57:54 VERBOSE[2503]:   
== Parsing '/etc/asterisk/zapata_additional.conf': Found
Jul 17 19:57:54 VERBOSE[2503]:   == Parsing 
'/etc/asterisk/zapata-auto.conf': Jul 17 19:57:54 VERBOSE[2503]:   == 
Parsing '/etc/asterisk/zapata-auto.conf': Not found (No such file or 
directory)
:-(  Jul 17 19:57:54 WARNING[2503]: Unable to specify channel 1: Device 
or resource busy
:-( Jul 17 19:57:54 ERROR[2503]: Unable to open channel 1: Device or 
resource busy
:-( here = 0, tmp->channel = 1, channel = 1
:-( Jul 17 19:57:54 ERROR[2503]: Unable to register channel '1-2'
:-( Jul 17 19:57:54 WARNING[2503]: chan_zap.so: load_module failed, 
returning -1
:-( Jul 17 19:57:54 VERBOSE[2503]:   == Unregistered channel type 'Tor'
:-( Jul 17 19:57:54 VERBOSE[2503]:   == Unregistered channel type 'Zap'
:-( Jul 17 19:57:54 WARNING[2503]: Loading module chan_zap.so failed!

Here's some background:
Loaded a new AAH 1.1 Centos 3.4 on a PIII with 2 pci HFC ISDN - Asterisk 
loaded & I could play with internal extensions.
Added bristuff-0.2.0-RC8h which did a wget and updated to asterisk 1.0.8 
- all seemed OK & I could load asterisk.
Did make load manually (by running the steps in zaphfc/Makefile) and 
ztcfg returned:

[root at asterisk1 zaphfc]# ztcfg -v
Zaptel Configuration
======================
SPAN 1: CCS/ AMI Build-out: 399-533 feet (DSX-1)
3 channels configured.
ZT_SPANCONFIG failed on span 1: Invalid argument (22)
[root at asterisk1 zaphfc]#

The original /etc/zaptel.conf was empty so I added the one from zaphfc/
The original /etc/asterisk/zapata had a whole lot of stuff in it so I 
*patched in* the details from zaphfc/zapata.conf

So, I'm looking for help on what's gone wrong.

Couple of thoughts:
Before I added the bristuff I had a zap/g0 channel - given I had only 2 
IAX IP phones and an x-lite SIP softphone from my XP box, is this 
channel even used?

There are 2 HFC cards in the box - yet zaptel.conf only has:
span=1,1,3,ccs,ami
bchan=1-2
dchan=3
Surely that only relates to one of the ISDN cards?


Here is a listing of my (hybrid) zapata.conf that I patched with the 
bristuff zaphfc/zapata.conf. Can anyone tell me what I should have 
deleted - I am nervous to mess up all the facilities that came 
preconfigured with AAH1.1, but I'm sure some of the lines will clash 
with the ISDN needed stuff. What should/must I delete?

TIA,
Zoltan.


[root at asterisk1 asterisk]# cat zapata.conf
;
; Zapata telephony interface
;
; Configuration file

[trunkgroups]

[channels]

language=en
context=from-pstn
;start zoltan changes
; zoltan commented out:   signalling=fxs_ks
; zoltan commented out:   rxwink=300                ; Atlas seems to use 
long (250ms) winks
signalling=bri_cpe_ptmp ; added by zoltan from bristuff p2mp TE mode
;signalling=bri_cpe          ; added but commented by zoltan from 
bristuff if p2p TE mode
; end zoltan changes - but see lower down

;
; 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

; START added by zoltan from bristuff
pridialplan = dynamic
prilocaldialplan = local
nationalprefix = 0
internationalprefix = 09

echocancel=yes
echotraining = 100
echocancelwhenbridged=yes

immediate=yes
group = 1
context=demo
channel => 1-2

; END   added by zoltan from bristuff


;Include AMP configs
#include zapata_additional.conf ; this file is empty on zoltan pc

;Include genzaptelconf configs
#include zapata-auto.conf ; file does not exist on zoltan pc
[root at asterisk1 asterisk]#


-- 

==================================
Geograph (Pty) Ltd
P.O. Box 31255
Tokai
7966
Tel:    +27-21-7018492
Fax:	+27-86-6115323
Mobile: +27-83-6004028
==================================





More information about the asterisk-users mailing list