[Asterisk-Users] Failed to read gains: Invalid argument

Mimmus dviggiani at tiscali.it
Thu Mar 23 01:45:29 MST 2006


> On 3/22/06, Mimmus <dviggiani at tiscali.it> wrote:
> > What are these error messages?
> >
> > Mar 22 17:41:10 DEBUG[3592] chan_zap.c: Failed to read 
> gains: Invalid 
> > argument Mar 22 17:41:10 DEBUG[3592] chan_zap.c: Failed to 
> read gains: 
> > Invalid argument Mar 22 17:41:10 DEBUG[3592] chan_zap.c: Updated 
> > conferencing on 1, with 0 conference users
> > Mar 22 17:41:10 VERBOSE[3592] logger.c:     -- Registered 
> channel 1, PRI
> > Signalling signalling
> > ...
> > (for all channels)
>
> that means chan_zap is not communicating well with zaptel 
> driver. I have never had that problem with zapata, wich 
> version of asteris are you using? 
>
> Post more relevant 
> configuration of zapata.conf, like the channels configured, 
> does ztcfg gives any errors?
This is my setup:
  PSTN PRI E1 --- Asterisk --- Crossed E1 cable --- Alcatel PBX
Asterisk v.1.2.1 with a Sangoma A102 card (wanpipe driver v. beta1-2.3.4)
'ztcfg -vv' gives no error.

# wanpipe1.conf
[devices]
wanpipe1 = WAN_AFT, Comment
[interfaces]
w1g1 = wanpipe1, , TDM_VOICE, Comment
[wanpipe1]
CARD_TYPE       = AFT
S514CPU         = A
CommPort        = PRI
AUTO_PCISLOT    = NO
PCISLOT         = 1
PCIBUS          = 6
FE_MEDIA        = E1
FE_LCODE        = HDB3
FE_FRAME        = CRC4
FE_LINE         = 1
TE_CLOCK        = NORMAL
TE_REF_CLOCK    = 0
TE_HIGHIMPEDANCE        = NO
FE_TXTRISTATE   = NO
MTU             = 1500
UDPPORT         = 9000
TTL             = 255
IGNORE_FRONT_END = NO
TDMV_SPAN       = 1
TDMV_DCHAN      = 0
TDMV_HWEC       = NO
[w1g1]
ACTIVE_CH       = ALL
TDMV_ECHO_OFF   = NO

# zaptel.conf:
span=1,1,2,ccs,hdb3,crc4,yellow
span=2,0,2,ccs,hdb3
bchan = 1-15, 17-31
dchan = 16
bchan = 32-46,48-62
dchan = 47
loadzone        = it
defaultzone     = it

# zapata.conf:
[trunkgroups]
[channels]
language=it
switchtype=euroisdn
pridialplan=dynamic
prilocaldialplan=local
overlapdial=yes
internationalprefix=00
nationalprefix=0
localprefix=omissis
privateprefix=omissis
unknownprefix=
priindication=inband
facilityenable=yes
rxgain=0.0
txgain=0.0
jitterbuffers=2
usecallerid=yes
hidecallerid=no
callwaiting=yes
callwaitingcallerid=yes
usecallingpres=yes
useincomingcalleridonzaptransfer=yes
threewaycalling=yes
transfer=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=yes
echotraining=800
immediate=no
callerid=asreceived
musiconhold=native-random
; Incoming only
group=0
signalling=pri_cpe
context=from-pstn
faxdetect=incoming
channel => 1-10
; Outgoing only
group=1
faxdetect=no
channel => 11-15,17-21
; Not used
group=3
faxdetect=no
channel => 22-31
; To/From Alcatel
group=2
signalling=pri_net
faxdetect=no
context=from-alcatel
channel => 32-46,48-62


Thanks
Mimmus




More information about the asterisk-users mailing list