Re: [asterisk-users] chan_zap.c: Failed to read gains: Invalid argument

2007-01-05 Thread Eric \ManxPower\ Wieling

Lee Archer wrote:
I am running Asterisk 1.2.14 and Zaptel 1.2.12 and using a Digium TE110P 
card in E1 mode.  I've recently noticed in my logs the following


Jan  5 01:27:11 VERBOSE[22490] logger.c:  [chan_zap.so]Jan  5 01:27:11 
VERBOSE[22490] logger.c:  [chan_zap.so] = (Zapata Telephony w/PRI)


Jan  5 01:27:11 VERBOSE[22490] logger.c:   == Parsing 
'/etc/asterisk/zapata.conf': Jan  5 01:27:11 VERBOSE[22490] logger.c:   
== Parsing '/etc/asterisk/zapata.conf': Found


Jan  5 01:27:11 DEBUG[22490] chan_zap.c: Failed to read gains: Invalid 
argument
Jan  5 01:27:11 DEBUG[22490] chan_zap.c: Failed to read gains: Invalid 




Which seems to suggest that I've done something wrong with the rx and 
txgain option in /etc/asterisk/zapata.conf.  But these haven't been 
changed in 18 months and still say


; You may also set the default receive and transmit gains (in dB)
;
rxgain=4.0
txgain=0.0

Have I done something wrong or has something changed?


Don't use fractional gains.  i.e. use rxgain=4 and txgain=0

___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] chan_zap.c: Failed to read gains: Invalid argument

2007-01-05 Thread Tzafrir Cohen
On Fri, Jan 05, 2007 at 07:47:15AM -, Lee Archer wrote:
 I am running Asterisk 1.2.14 and Zaptel 1.2.12 and using a Digium TE110P
 card in E1 mode.  I've recently noticed in my logs the following
 
 Jan  5 01:27:11 VERBOSE[22490] logger.c:  [chan_zap.so]Jan  5 01:27:11
 VERBOSE[22490] logger.c:  [chan_zap.so] = (Zapata Telephony w/PRI)
 Jan  5 01:27:11 VERBOSE[22490] logger.c:   == Parsing
 '/etc/asterisk/zapata.conf': Jan  5 01:27:11 VERBOSE[22490] logger.c:
 == Parsing '/etc/asterisk/zapata.conf': Found
 Jan  5 01:27:11 DEBUG[22490] chan_zap.c: Failed to read gains: Invalid
 argument
 Jan  5 01:27:11 DEBUG[22490] chan_zap.c: Failed to read gains: Invalid
 argument

This is a debug message and not even a warning message. I'm not sure
that this is something to worry about.

The code there tries to first read the gains and set the gains based on
them. The return value from the ioctl that sets the gains does not seem
to be checked in several code pathes, though. So it may actually fail
silently.

Do you get the same debug messages on 'reload chan_zap.so' ?

-- 
   Tzafrir Cohen   
icq#16849755jabber:[EMAIL PROTECTED]
+972-50-7952406   mailto:[EMAIL PROTECTED]   
http://www.xorcom.com  iax:[EMAIL PROTECTED]/tzafrir
___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] chan_zap.c: Failed to read gains: Invalid argument

2007-01-05 Thread Tzafrir Cohen
On Fri, Jan 05, 2007 at 10:53:17AM +0200, Tzafrir Cohen wrote:
 On Fri, Jan 05, 2007 at 07:47:15AM -, Lee Archer wrote:
  I am running Asterisk 1.2.14 and Zaptel 1.2.12 and using a Digium TE110P
  card in E1 mode.  I've recently noticed in my logs the following
  
  Jan  5 01:27:11 VERBOSE[22490] logger.c:  [chan_zap.so]Jan  5 01:27:11
  VERBOSE[22490] logger.c:  [chan_zap.so] = (Zapata Telephony w/PRI)
  Jan  5 01:27:11 VERBOSE[22490] logger.c:   == Parsing
  '/etc/asterisk/zapata.conf': Jan  5 01:27:11 VERBOSE[22490] logger.c:
  == Parsing '/etc/asterisk/zapata.conf': Found
  Jan  5 01:27:11 DEBUG[22490] chan_zap.c: Failed to read gains: Invalid
  argument
  Jan  5 01:27:11 DEBUG[22490] chan_zap.c: Failed to read gains: Invalid
  argument
 
 This is a debug message and not even a warning message. I'm not sure
 that this is something to worry about.

Sorry, my stupid misreading of the code. If this message was given,
ZT_SETGAINS will not be called.

-- 
   Tzafrir Cohen   
icq#16849755jabber:[EMAIL PROTECTED]
+972-50-7952406   mailto:[EMAIL PROTECTED]   
http://www.xorcom.com  iax:[EMAIL PROTECTED]/tzafrir
___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[asterisk-users] chan_zap.c: Failed to read gains: Invalid argument

2007-01-04 Thread Lee Archer
I am running Asterisk 1.2.14 and Zaptel 1.2.12 and using a Digium TE110P
card in E1 mode.  I've recently noticed in my logs the following

Jan  5 01:27:11 VERBOSE[22490] logger.c:  [chan_zap.so]Jan  5 01:27:11
VERBOSE[22490] logger.c:  [chan_zap.so] = (Zapata Telephony w/PRI)
Jan  5 01:27:11 VERBOSE[22490] logger.c:   == Parsing
'/etc/asterisk/zapata.conf': Jan  5 01:27:11 VERBOSE[22490] logger.c:
== Parsing '/etc/asterisk/zapata.conf': Found
Jan  5 01:27:11 DEBUG[22490] chan_zap.c: Failed to read gains: Invalid
argument
Jan  5 01:27:11 DEBUG[22490] chan_zap.c: Failed to read gains: Invalid
argument
Jan  5 01:27:11 DEBUG[22490] chan_zap.c: Updated conferencing on 1, with
0 conference users
Jan  5 01:27:11 VERBOSE[22490] logger.c: -- Registered channel 1,
PRI Signalling signalling
Jan  5 01:27:11 DEBUG[22490] chan_zap.c: Failed to read gains: Invalid
argument
Jan  5 01:27:11 DEBUG[22490] chan_zap.c: Failed to read gains: Invalid
argument
Jan  5 01:27:11 DEBUG[22490] chan_zap.c: Updated conferencing on 2, with
0 conference users
Jan  5 01:27:11 VERBOSE[22490] logger.c: -- Registered channel 2,
PRI Signalling signalling
Jan  5 01:27:11 DEBUG[22490] chan_zap.c: Failed to read gains: Invalid
argument
Jan  5 01:27:11 DEBUG[22490] chan_zap.c: Failed to read gains: Invalid
argument
Jan  5 01:27:11 DEBUG[22490] chan_zap.c: Updated conferencing on 3, with
0 conference users
Jan  5 01:27:11 VERBOSE[22490] logger.c: -- Registered channel 3,
PRI Signalling signalling
Jan  5 01:27:11 DEBUG[22490] chan_zap.c: Failed to read gains: Invalid
argument
Jan  5 01:27:11 DEBUG[22490] chan_zap.c: Failed to read gains: Invalid
argument
Jan  5 01:27:11 DEBUG[22490] chan_zap.c: Updated conferencing on 4, with
0 conference users
Jan  5 01:27:11 VERBOSE[22490] logger.c: -- Registered channel 4,
PRI Signalling signalling
Jan  5 01:27:11 DEBUG[22490] chan_zap.c: Failed to read gains: Invalid
argument
Jan  5 01:27:11 DEBUG[22490] chan_zap.c: Failed to read gains: Invalid
argument
Jan  5 01:27:11 DEBUG[22490] chan_zap.c: Updated conferencing on 5, with
0 conference users
Jan  5 01:27:11 VERBOSE[22490] logger.c: -- Registered channel 5,
PRI Signalling signalling
Jan  5 01:27:11 DEBUG[22490] chan_zap.c: Failed to read gains: Invalid
argument
Jan  5 01:27:11 DEBUG[22490] chan_zap.c: Failed to read gains: Invalid
argument
Jan  5 01:27:11 DEBUG[22490] chan_zap.c: Updated conferencing on 6, with
0 conference users
Jan  5 01:27:11 VERBOSE[22490] logger.c: -- Registered channel 6,
PRI Signalling signalling
Jan  5 01:27:11 DEBUG[22490] chan_zap.c: Failed to read gains: Invalid
argument
Jan  5 01:27:11 DEBUG[22490] chan_zap.c: Failed to read gains: Invalid
argument
Jan  5 01:27:11 DEBUG[22490] chan_zap.c: Updated conferencing on 7, with
0 conference users
Jan  5 01:27:11 VERBOSE[22490] logger.c: -- Registered channel 7,
PRI Signalling signalling
Jan  5 01:27:11 DEBUG[22490] chan_zap.c: Failed to read gains: Invalid
argument
Jan  5 01:27:11 DEBUG[22490] chan_zap.c: Failed to read gains: Invalid
argument
Jan  5 01:27:11 DEBUG[22490] chan_zap.c: Updated conferencing on 8, with
0 conference users
Jan  5 01:27:11 VERBOSE[22490] logger.c: -- Registered channel 8,
PRI Signalling signalling
Jan  5 01:27:11 VERBOSE[22490] logger.c: -- Automatically generated
pseudo channel
Jan  5 01:27:11 VERBOSE[22490] logger.c:   == Starting D-Channel on span
1

Which seems to suggest that I've done something wrong with the rx and
txgain option in /etc/asterisk/zapata.conf.  But these haven't been
changed in 18 months and still say

; You may also set the default receive and transmit gains (in dB)
;
rxgain=4.0
txgain=0.0

Have I done something wrong or has something changed?

Thanks

Lee
###

This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange.
For more information, connect to http://www.f-secure.com/___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[asterisk-users] chan_zap.c: Failed to read gains: Invalid argument

2006-08-02 Thread jan.sarin
Hi,

I'm recieving the following error in my asterisk log (when starting *):
chan_zap.c: Failed to read gains: Invalid argument

Why? Attaching my zapata.conf and zaptel.conf. Using TE405P.

Thanks!

zaptel.conf:

span=1,1,0,ccs,hdb3
span=2,0,0,ccs,hdb3
span=3,0,0,ccs,hdb3
span=4,0,0,ccs,hdb3

bchan=1-15,17-31
dchan=16
bchan=32-46,48-62
dchan=47
bchan=63-77,79-93
dchan=78
bchan=94-108,110-124
dchan=109

loadzone=se
defaultzone=se

Zapata.conf

[channels] 
language=se
context=from-pstn 
switchtype=euroisdn 
pridialplan=unknown 
prilocaldialplan=unknown 
signalling=pri_cpe 
usecallerid=yes 
hidecallerid=no
callwaiting=yes 
callerid=asreceived
usecallingpres=yes
callwaitingcallerid=yes 
threewaycalling=yes 
transfer=yes 
cancallforward=yes 
callreturn=yes 
echocancel=yes 
echocancelwhenbridged=no 
echotraining=400
rxgain=-1.0
txgain=-1.5
group=0 
callgroup=1 
pickupgroup=1 
immediate=no 
overlapdial=no
channel = 1-15,17-31,32-46,48-62

group=1
channel = 94-108,110-124

group=2
context=from-internal
signalling=pri_net
channel = 63-77,79-93

Regards,
Jan
___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users